瀏覽代碼

宁波代码逻辑修改

daiyi 3 年之前
父節點
當前提交
fe561266e2

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

@@ -34,7 +34,7 @@ public class PRE0328 extends QCCatalogue {
          * 3:如果手术记录次数(第一次手术的日期内有其他手术不算次数) 大于 术前讨论、术前小结次数,则出错
          */
         status.set("0");
-        List<DoctorAdviceDoc> doctorAdviceDocs = inputInfo.getDoctorAdviceDocs();
+       // List<DoctorAdviceDoc> doctorAdviceDocs = inputInfo.getDoctorAdviceDocs();
         List<OperationDoc> operationDocs = inputInfo.getOperationDocs();
         if (operationDocs == null || operationDocs.size() == 0) {
             return;
@@ -77,18 +77,18 @@ public class PRE0328 extends QCCatalogue {
             }
         }
         //医嘱中包含“冠状动脉造影术”,且无术前讨论.则报规则
-        for (DoctorAdviceDoc doctorAdviceDoc : doctorAdviceDocs) {
-            Map<String, String> doctorAdviceStructuerMap = doctorAdviceDoc.getStructureMap();
-            String advicename = doctorAdviceStructuerMap.get("医嘱项目名称");
-            if (StringUtil.isNotBlank(advicename) && advicename.contains("冠状动脉造影术") && j == 0) {
-                status.set("-1");
-                info.set("手术记录不一致");
-            }
-        }
+//        for (DoctorAdviceDoc doctorAdviceDoc : doctorAdviceDocs) {
+//            Map<String, String> doctorAdviceStructuerMap = doctorAdviceDoc.getStructureMap();
+//            String advicename = doctorAdviceStructuerMap.get("医嘱项目名称");
+//            if (StringUtil.isNotBlank(advicename) && advicename.contains("冠状动脉造影术") && j == 0) {
+//                status.set("-1");
+//                info.set("手术记录不一致");
+//            }
+//        }
 
-        if (i > 0 && i > j) {
-            status.set("-1");
-            info.set("手术记录不一致");
+        if (i == 0 && i < j) {
+            status.set("0");
+            info.set("手术记录");
         }
     }