Browse Source

宁波代码逻辑修改

daiyi 3 years ago
parent
commit
b53a8b0e26

+ 10 - 6
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hospital/ningbozhongyi/preoperativediscussion/PRE0328.java

@@ -48,9 +48,9 @@ public class PRE0328 extends QCCatalogue {
             String startTime = "";
             if (operationRecordDoc != null) {
                 startTime = operationRecordDoc.getStructureMap().get("手术开始时间");
-            }
-            if(StringUtil.isBlank(startTime)){
-                startTime = operationRecordDoc.getStructureMap().get("手术日期").replace(" 时","时");
+                if(StringUtil.isBlank(startTime)){
+                    startTime = operationRecordDoc.getStructureMap().get("手术日期").replace(" 时","时");
+                }
             }
             if (StringUtil.isNotBlank(startTime) && StringUtil.isNotBlank(admisTime) &&
                     StringUtil.parseDateTime(startTime) != null) {
@@ -86,9 +86,13 @@ public class PRE0328 extends QCCatalogue {
 //            }
 //        }
 
-        if (i == 0 && i < j) {
-            status.set("0");
-            info.set("无手术记录");
+//        if (i == 0 && i < j) {
+//            status.set("0");
+//            info.set("无手术记录");
+//        }
+        if (i != 0 && i > j){
+            status.set("-1");
+            info.set("手术次数和术前小结次数不一致");
         }
     }