فهرست منبع

1.手术患者缺术前讨论或术前小结修改逻辑

hujing 5 سال پیش
والد
کامیت
c76634dfd3
1فایلهای تغییر یافته به همراه10 افزوده شده و 4 حذف شده
  1. 10 4
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/operationdiscussion/OPE0370.java

+ 10 - 4
kernel/src/main/java/com/lantone/qc/kernel/catalogue/operationdiscussion/OPE0370.java

@@ -30,12 +30,18 @@ public class OPE0370 extends QCCatalogue {
         if (operationDocs == null || operationDocs.size() < 1) {
             return;
         }
+        int i = 0, j = 0;
         for (OperationDoc operationDoc : operationDocs) {
-            if (operationDoc.getPreoperativeDiscussionDoc() == null) {
-                status.set("-1");
-                info.set("手术记录不一致");
-                return;
+            if (operationDoc.getOperationRecordDoc() != null) {
+                i++;
             }
+            if (operationDoc.getPreoperativeDiscussionDoc() != null) {
+                j++;
+            }
+        }
+        if (i != j) {
+            status.set("-1");
+            info.set("手术记录不一致");
         }
         //            OperationRecordDoc operationRecordDoc = operationDoc.getOperationRecordDoc();
         //            if (operationRecordDoc == null) {