Browse Source

入院时间与入院记录时间不一致,只判断到日期

kwzbigdata 5 years ago
parent
commit
5fecac6bc5

+ 6 - 4
kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstpagerecord/FIRP0220.java

@@ -13,14 +13,14 @@ import java.util.Map;
 
 /**
  * @ClassName : FIRP0220
- * @Description : 入院时间与入院记录时间不一致
+ * @Description : 入院时间与入院记录时间不一致,只判断到日期
  * @Author : 胡敬
  * @Date: 2020-03-14 17:10
  */
 @Component
 public class FIRP0220 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
-        status.set("0");
+
         if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null
                 && inputInfo.getBeHospitalizedDoc() != null && inputInfo.getBeHospitalizedDoc().getStructureMap() != null) {
             Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
@@ -30,8 +30,10 @@ public class FIRP0220 extends QCCatalogue {
             Date firstDate = StringUtil.parseDateTime(firstAdmissionDate);
             Date admisDate = StringUtil.parseDateTime(admissionDate);
             if(firstDate != null && admisDate != null){
-                if(firstDate.getTime() != admisDate.getTime()){
-                    status.set("-1");
+                if(firstDate.getYear() == admisDate.getYear() &&
+                firstDate.getMonth() == admisDate.getMonth() &&
+                firstDate.getDay() == admisDate.getDay()){
+                    status.set("0");
                 }
             }
         }