فهرست منبع

三级查房修改规则:若相应查房记录为空,则直接返回0

hujing 5 سال پیش
والد
کامیت
1b1f617eec
20فایلهای تغییر یافته به همراه278 افزوده شده و 226 حذف شده
  1. 8 6
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0125.java
  2. 8 6
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0126.java
  3. 4 0
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0127.java
  4. 4 0
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0128.java
  5. 17 15
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0130.java
  6. 20 18
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0131.java
  7. 20 18
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0132.java
  8. 17 15
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0133.java
  9. 12 9
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0134.java
  10. 17 15
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0135.java
  11. 20 18
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0136.java
  12. 20 18
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0137.java
  13. 17 15
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0138.java
  14. 11 9
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0139.java
  15. 5 0
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0140.java
  16. 16 14
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0144.java
  17. 4 0
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0698.java
  18. 12 10
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0700.java
  19. 23 20
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0701.java
  20. 23 20
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0702.java

+ 8 - 6
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0125.java

@@ -41,12 +41,14 @@ public class THR0125 extends QCCatalogue {
             }
             ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
             List<DirectorDoctorWardDoc> directorDoctorWardDocs = threeLevelWardDoc.getDirectorDoctorWardDocs();
-            if (directorDoctorWardDocs != null && directorDoctorWardDocs.size() > 0) {
-                DirectorDoctorWardDoc firstDirector = directorDoctorWardDocs.get(0);
-                String wardDateStr = firstDirector.getStructureMap().get("查房日期");
-                if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(wardDateStr), (long) (72 * 60))) {
-                    status.set("0");
-                }
+            if (directorDoctorWardDocs.size() == 0) {
+                status.set("0");
+                return;
+            }
+            DirectorDoctorWardDoc firstDirector = directorDoctorWardDocs.get(0);
+            String wardDateStr = firstDirector.getStructureMap().get("查房日期");
+            if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(wardDateStr), (long) (72 * 60))) {
+                status.set("0");
             }
         }
     }

+ 8 - 6
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0126.java

@@ -39,12 +39,14 @@ public class THR0126 extends QCCatalogue {
             }
             ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
             List<AttendingDoctorWardDoc> attendingDoctorWardDocs = threeLevelWardDoc.getAttendingDoctorWardDocs();
-            if (attendingDoctorWardDocs != null && attendingDoctorWardDocs.size() > 0) {
-                AttendingDoctorWardDoc firstAttending = attendingDoctorWardDocs.get(0);
-                String wardDateStr = firstAttending.getStructureMap().get("查房日期");
-                if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(wardDateStr), (long) (48 * 60))) {
-                    status.set("0");
-                }
+            if (attendingDoctorWardDocs.size() == 0) {
+                status.set("0");
+                return;
+            }
+            AttendingDoctorWardDoc firstAttending = attendingDoctorWardDocs.get(0);
+            String wardDateStr = firstAttending.getStructureMap().get("查房日期");
+            if (!CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(wardDateStr), (long) (48 * 60))) {
+                status.set("0");
             }
         }
     }

+ 4 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0127.java

@@ -46,6 +46,10 @@ public class THR0127 extends QCCatalogue {
 
             ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
             List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
+            if (allDoctorWradDocs.size() == 0){
+                status.set("0");
+                return;
+            }
             Date lastRecordDate = getLastRecordDate(allDoctorWradDocs);
             if (lastRecordDate == null) {
                 return;

+ 4 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0128.java

@@ -53,6 +53,10 @@ public class THR0128 extends QCCatalogue {
 
             ThreeLevelWardDoc threeLevelWardDoc = inputInfo.getThreeLevelWardDocs().get(0);
             List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDoc.getAllDoctorWradDocs();
+            if (allDoctorWradDocs.size() == 0){
+                status.set("0");
+                return;
+            }
             Date lastRecordDate = getLastRecordDate(allDoctorWradDocs);
             if (lastRecordDate == null) {
                 return;

+ 17 - 15
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0130.java

@@ -25,22 +25,24 @@ public class THR0130 extends QCCatalogue {
             return;
         }
         List<AttendingDoctorWardDoc> attendDocs = inputInfo.getThreeLevelWardDocs().get(0).getAttendingDoctorWardDocs();
-        if (attendDocs.size() > 0) {
-            AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
-            //先取结构化数据判断
-            Map<String, String> firstAttendStructureMap = firstAttendDoc.getStructureMap();
-            if (StringUtil.isNotBlank(firstAttendStructureMap.get("体检"))) {
-                status.set("0");
-                return;
-            }
-            ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
-            if (firstAttendLabel == null) {
-                return;
-            }
+        if (attendDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
+        //先取结构化数据判断
+        Map<String, String> firstAttendStructureMap = firstAttendDoc.getStructureMap();
+        if (StringUtil.isNotBlank(firstAttendStructureMap.get("体检"))) {
+            status.set("0");
+            return;
+        }
+        ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
+        if (firstAttendLabel == null) {
+            return;
+        }
 
-            if (firstAttendLabel.getClinicals().size() != 0 || firstAttendLabel.getSigns().size() != 0) {
-                status.set("0");
-            }
+        if (firstAttendLabel.getClinicals().size() != 0 || firstAttendLabel.getSigns().size() != 0) {
+            status.set("0");
         }
     }
 }

+ 20 - 18
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0131.java

@@ -25,27 +25,29 @@ public class THR0131 extends QCCatalogue {
             return;
         }
         List<AttendingDoctorWardDoc> attendDocs = inputInfo.getThreeLevelWardDocs().get(0).getAttendingDoctorWardDocs();
-        if (attendDocs.size() > 0) {
-            AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
-            //先取结构化数据判断
-            Map<String, String> firstAttendStructureMap = firstAttendDoc.getStructureMap();
-            String conditionRecord = firstAttendStructureMap.get("病情记录");
-            if (StringUtil.isNotBlank(conditionRecord)) {
-                if (conditionRecord.contains("鉴别")
-                        || conditionRecord.contains("诊断明确")
-                        || conditionRecord.contains("无需鉴别")) {
-                    status.set("0");
-                    return;
-                }
-            }
-            ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
-            if (firstAttendLabel == null) {
+        if (attendDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
+        //先取结构化数据判断
+        Map<String, String> firstAttendStructureMap = firstAttendDoc.getStructureMap();
+        String conditionRecord = firstAttendStructureMap.get("病情记录");
+        if (StringUtil.isNotBlank(conditionRecord)) {
+            if (conditionRecord.contains("鉴别")
+                    || conditionRecord.contains("诊断明确")
+                    || conditionRecord.contains("无需鉴别")) {
+                status.set("0");
                 return;
             }
+        }
+        ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
+        if (firstAttendLabel == null) {
+            return;
+        }
 
-            if (firstAttendLabel.getDiffDiag().size() != 0 || StringUtil.isNotBlank(firstAttendLabel.getDiffDiagText())) {
-                status.set("0");
-            }
+        if (firstAttendLabel.getDiffDiag().size() != 0 || StringUtil.isNotBlank(firstAttendLabel.getDiffDiagText())) {
+            status.set("0");
         }
     }
 }

+ 20 - 18
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0132.java

@@ -26,25 +26,27 @@ public class THR0132 extends QCCatalogue {
             return;
         }
         List<AttendingDoctorWardDoc> attendDocs = inputInfo.getThreeLevelWardDocs().get(0).getAttendingDoctorWardDocs();
-        if (attendDocs.size() > 0) {
-            AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
-            //先取结构化数据判断
-            Map<String, String> firstAttendStructureMap = firstAttendDoc.getStructureMap();
-            if (StringUtil.isNotBlank(firstAttendStructureMap.get("病情记录"))) {
-                status.set("0");
-                return;
-            }
-            ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
-            if (firstAttendLabel == null) {
-                return;
-            }
+        if (attendDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
+        //先取结构化数据判断
+        Map<String, String> firstAttendStructureMap = firstAttendDoc.getStructureMap();
+        if (StringUtil.isNotBlank(firstAttendStructureMap.get("病情记录"))) {
+            status.set("0");
+            return;
+        }
+        ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
+        if (firstAttendLabel == null) {
+            return;
+        }
 
-            if (firstAttendLabel.getDiags().size() > 0
-                    || StringUtil.isNotBlank(firstAttendLabel.getDiagBasisText())
-                    || (firstAttendLabel.getDiffDiag().size() > 0 || StringUtils.isNotEmpty(firstAttendLabel.getDiffDiagText()))
-                    || firstAttendLabel.getTreatmentPlans().size() > 0) {
-                status.set("0");
-            }
+        if (firstAttendLabel.getDiags().size() > 0
+                || StringUtil.isNotBlank(firstAttendLabel.getDiagBasisText())
+                || (firstAttendLabel.getDiffDiag().size() > 0 || StringUtils.isNotEmpty(firstAttendLabel.getDiffDiagText()))
+                || firstAttendLabel.getTreatmentPlans().size() > 0) {
+            status.set("0");
         }
     }
 }

+ 17 - 15
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0133.java

@@ -25,22 +25,24 @@ public class THR0133 extends QCCatalogue {
             return;
         }
         List<AttendingDoctorWardDoc> attendDocs = inputInfo.getThreeLevelWardDocs().get(0).getAttendingDoctorWardDocs();
-        if (attendDocs.size() > 0) {
-            AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
-            //先取结构化数据判断
-            Map<String, String> firstAttendStructureMap = firstAttendDoc.getStructureMap();
-            if (StringUtil.isNotBlank(firstAttendStructureMap.get("治疗计划和措施"))) {
-                status.set("0");
-                return;
-            }
-            ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
-            if (firstAttendLabel == null) {
-                return;
-            }
+        if (attendDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
+        //先取结构化数据判断
+        Map<String, String> firstAttendStructureMap = firstAttendDoc.getStructureMap();
+        if (StringUtil.isNotBlank(firstAttendStructureMap.get("治疗计划和措施"))) {
+            status.set("0");
+            return;
+        }
+        ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
+        if (firstAttendLabel == null) {
+            return;
+        }
 
-            if (firstAttendLabel.getTreatmentPlans().size() != 0) {
-                status.set("0");
-            }
+        if (firstAttendLabel.getTreatmentPlans().size() != 0) {
+            status.set("0");
         }
     }
 }

+ 12 - 9
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0134.java

@@ -23,16 +23,19 @@ public class THR0134 extends QCCatalogue {
             return;
         }
         List<AttendingDoctorWardDoc> attendDocs = inputInfo.getThreeLevelWardDocs().get(0).getAttendingDoctorWardDocs();
-        if (attendDocs.size() > 0) {
-            AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
-            ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
-            if (firstAttendLabel == null) {
-                return;
-            }
+        if (attendDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
+        ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
+        if (firstAttendLabel == null) {
+            return;
+        }
 
-            if (firstAttendLabel.getDiags().size() != 0) {
-                status.set("0");
-            }
+        if (firstAttendLabel.getDiags().size() != 0) {
+            status.set("0");
         }
+
     }
 }

+ 17 - 15
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0135.java

@@ -25,22 +25,24 @@ public class THR0135 extends QCCatalogue {
             return;
         }
         List<DirectorDoctorWardDoc> directorDocs = inputInfo.getThreeLevelWardDocs().get(0).getDirectorDoctorWardDocs();
-        if (directorDocs.size() > 0) {
-            DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
-            //先取结构化数据判断
-            Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
-            if (StringUtil.isNotBlank(firstDirectStructureMap.get("体检"))) {
-                status.set("0");
-                return;
-            }
-            ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
-            if (firstDirectLabel == null) {
-                return;
-            }
+        if (directorDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
+        //先取结构化数据判断
+        Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
+        if (StringUtil.isNotBlank(firstDirectStructureMap.get("体检"))) {
+            status.set("0");
+            return;
+        }
+        ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
+        if (firstDirectLabel == null) {
+            return;
+        }
 
-            if (firstDirectLabel.getClinicals().size() != 0 || firstDirectLabel.getSigns().size() != 0) {
-                status.set("0");
-            }
+        if (firstDirectLabel.getClinicals().size() != 0 || firstDirectLabel.getSigns().size() != 0) {
+            status.set("0");
         }
     }
 }

+ 20 - 18
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0136.java

@@ -25,27 +25,29 @@ public class THR0136 extends QCCatalogue {
             return;
         }
         List<DirectorDoctorWardDoc> directorDocs = inputInfo.getThreeLevelWardDocs().get(0).getDirectorDoctorWardDocs();
-        if (directorDocs.size() > 0) {
-            DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
-            //先取结构化数据判断
-            Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
-            String conditionRecord = firstDirectStructureMap.get("病情记录");
-            if (StringUtil.isNotBlank(conditionRecord)) {
-                if (conditionRecord.contains("鉴别")
-                        || conditionRecord.contains("诊断明确")
-                        || conditionRecord.contains("无需鉴别")) {
-                    status.set("0");
-                    return;
-                }
-            }
-            ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
-            if (firstDirectLabel == null) {
+        if (directorDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
+        //先取结构化数据判断
+        Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
+        String conditionRecord = firstDirectStructureMap.get("病情记录");
+        if (StringUtil.isNotBlank(conditionRecord)) {
+            if (conditionRecord.contains("鉴别")
+                    || conditionRecord.contains("诊断明确")
+                    || conditionRecord.contains("无需鉴别")) {
+                status.set("0");
                 return;
             }
+        }
+        ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
+        if (firstDirectLabel == null) {
+            return;
+        }
 
-            if (firstDirectLabel.getDiffDiag().size() != 0 || StringUtil.isNotBlank(firstDirectLabel.getDiffDiagText())) {
-                status.set("0");
-            }
+        if (firstDirectLabel.getDiffDiag().size() != 0 || StringUtil.isNotBlank(firstDirectLabel.getDiffDiagText())) {
+            status.set("0");
         }
     }
 }

+ 20 - 18
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0137.java

@@ -26,25 +26,27 @@ public class THR0137 extends QCCatalogue {
             return;
         }
         List<DirectorDoctorWardDoc> directorDocs = inputInfo.getThreeLevelWardDocs().get(0).getDirectorDoctorWardDocs();
-        if (directorDocs.size() > 0) {
-            DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
-            //先取结构化数据判断
-            Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
-            if (StringUtil.isNotBlank(firstDirectStructureMap.get("病情记录"))) {
-                status.set("0");
-                return;
-            }
-            ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
-            if (firstDirectLabel == null) {
-                return;
-            }
+        if (directorDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
+        //先取结构化数据判断
+        Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
+        if (StringUtil.isNotBlank(firstDirectStructureMap.get("病情记录"))) {
+            status.set("0");
+            return;
+        }
+        ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
+        if (firstDirectLabel == null) {
+            return;
+        }
 
-            if (firstDirectLabel.getDiags().size() > 0
-                    || StringUtil.isNotBlank(firstDirectLabel.getDiagBasisText())
-                    || (firstDirectLabel.getDiffDiag().size() > 0 || StringUtils.isNotEmpty(firstDirectLabel.getDiffDiagText()))
-                    || firstDirectLabel.getTreatmentPlans().size() > 0) {
-                status.set("0");
-            }
+        if (firstDirectLabel.getDiags().size() > 0
+                || StringUtil.isNotBlank(firstDirectLabel.getDiagBasisText())
+                || (firstDirectLabel.getDiffDiag().size() > 0 || StringUtils.isNotEmpty(firstDirectLabel.getDiffDiagText()))
+                || firstDirectLabel.getTreatmentPlans().size() > 0) {
+            status.set("0");
         }
     }
 }

+ 17 - 15
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0138.java

@@ -25,22 +25,24 @@ public class THR0138 extends QCCatalogue {
             return;
         }
         List<DirectorDoctorWardDoc> directorDocs = inputInfo.getThreeLevelWardDocs().get(0).getDirectorDoctorWardDocs();
-        if (directorDocs.size() > 0) {
-            DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
-            //先取结构化数据判断
-            Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
-            if (StringUtil.isNotBlank(firstDirectStructureMap.get("治疗计划和措施"))) {
-                status.set("0");
-                return;
-            }
-            ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
-            if (firstDirectLabel == null) {
-                return;
-            }
+        if (directorDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
+        //先取结构化数据判断
+        Map<String, String> firstDirectStructureMap = firstDirectDoc.getStructureMap();
+        if (StringUtil.isNotBlank(firstDirectStructureMap.get("治疗计划和措施"))) {
+            status.set("0");
+            return;
+        }
+        ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
+        if (firstDirectLabel == null) {
+            return;
+        }
 
-            if (firstDirectLabel.getTreatmentPlans().size() != 0) {
-                status.set("0");
-            }
+        if (firstDirectLabel.getTreatmentPlans().size() != 0) {
+            status.set("0");
         }
     }
 }

+ 11 - 9
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0139.java

@@ -23,16 +23,18 @@ public class THR0139 extends QCCatalogue {
             return;
         }
         List<DirectorDoctorWardDoc> directorDocs = inputInfo.getThreeLevelWardDocs().get(0).getDirectorDoctorWardDocs();
-        if (directorDocs.size() > 0) {
-            DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
-            ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
-            if (firstDirectLabel == null) {
-                return;
-            }
+        if (directorDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        DirectorDoctorWardDoc firstDirectDoc = directorDocs.get(0);
+        ThreeLevelWardLabel firstDirectLabel = firstDirectDoc.getThreeLevelWardLabel();
+        if (firstDirectLabel == null) {
+            return;
+        }
 
-            if (firstDirectLabel.getDiags().size() != 0) {
-                status.set("0");
-            }
+        if (firstDirectLabel.getDiags().size() != 0) {
+            status.set("0");
         }
     }
 }

+ 5 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0140.java

@@ -24,9 +24,14 @@ public class THR0140 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         List<ThreeLevelWardDoc> threeLevelWardDocs = inputInfo.getThreeLevelWardDocs();
         if (threeLevelWardDocs.size() == 0) {
+            status.set("0");
             return;
         }
         List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDocs.get(0).getAllDoctorWradDocs();
+        if (allDoctorWradDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
         List<ThreeLevelWardDoc> recordDoctorList = allDoctorWradDocs
                 .stream()
                 .filter(doc -> StringUtil.isBlank(doc.getStructureMap().get("记录医师")))

+ 16 - 14
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0144.java

@@ -26,20 +26,22 @@ public class THR0144 extends QCCatalogue {
             return;
         }
         List<ThreeLevelWardDoc> allDoctorWradDocs = inputInfo.getThreeLevelWardDocs().get(0).getAllDoctorWradDocs();
-        if (allDoctorWradDocs.size() > 0) {
-            ThreeLevelWardDoc lastWardDoc = allDoctorWradDocs.get(allDoctorWradDocs.size() - 1);
-            Map<String, String> structureMap = lastWardDoc.getStructureMap();
-            String conditionRecord = structureMap.get("病情记录");
-            String treatmentPlan = structureMap.get("治疗计划和措施");
-            String title = structureMap.get("查房标题");
-            if (StringUtil.isBlank(conditionRecord) && StringUtil.isBlank(treatmentPlan)) {
-                return;
-            }
-            if ((conditionRecord.contains("出院") || treatmentPlan.contains("出院"))
-                    && StringUtil.isNotBlank(title)
-                    && (CatalogueUtil.subTitle(title).contains(Content.attend) || CatalogueUtil.subTitle(title).contains(Content.director))) {
-                status.set("0");
-            }
+        if (allDoctorWradDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        ThreeLevelWardDoc lastWardDoc = allDoctorWradDocs.get(allDoctorWradDocs.size() - 1);
+        Map<String, String> structureMap = lastWardDoc.getStructureMap();
+        String conditionRecord = structureMap.get("病情记录");
+        String treatmentPlan = structureMap.get("治疗计划和措施");
+        String title = structureMap.get("查房标题");
+        if (StringUtil.isBlank(conditionRecord) && StringUtil.isBlank(treatmentPlan)) {
+            return;
+        }
+        if ((conditionRecord.contains("出院") || treatmentPlan.contains("出院"))
+                && StringUtil.isNotBlank(title)
+                && (CatalogueUtil.subTitle(title).contains(Content.attend) || CatalogueUtil.subTitle(title).contains(Content.director))) {
+            status.set("0");
         }
     }
 }

+ 4 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0698.java

@@ -28,6 +28,10 @@ public class THR0698 extends QCCatalogue {
             return;
         }
         List<ThreeLevelWardDoc> allDoctorWradDocs = threeLevelWardDocs.get(0).getAllDoctorWradDocs();
+        if (allDoctorWradDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
         List<ThreeLevelWardDoc> recordDoctorList = allDoctorWradDocs
                 .stream()
                 .filter(doc -> StringUtil.isBlank(doc.getStructureMap().get("记录时间")))

+ 12 - 10
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0700.java

@@ -23,16 +23,18 @@ public class THR0700 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         if (inputInfo.getThreeLevelWardDocs().size() > 0) {
             List<ThreeLevelWardDoc> allDoctorWradDocs = inputInfo.getThreeLevelWardDocs().get(0).getAllDoctorWradDocs();
-            if (allDoctorWradDocs.size() > 0) {
-                ThreeLevelWardDoc lastWardDoc = allDoctorWradDocs.get(allDoctorWradDocs.size() - 1);
-                Map<String, String> structureMap = lastWardDoc.getStructureMap();
-                String conditionRecord = structureMap.get("病情记录");
-                if (StringUtil.isBlank(conditionRecord)){
-                    return;
-                }
-                if (conditionRecord.contains("上级医师")){
-                    status.set("0");
-                }
+            if (allDoctorWradDocs.size() == 0) {
+                status.set("0");
+                return;
+            }
+            ThreeLevelWardDoc lastWardDoc = allDoctorWradDocs.get(allDoctorWradDocs.size() - 1);
+            Map<String, String> structureMap = lastWardDoc.getStructureMap();
+            String conditionRecord = structureMap.get("病情记录");
+            if (StringUtil.isBlank(conditionRecord)) {
+                return;
+            }
+            if (conditionRecord.contains("上级医师")) {
+                status.set("0");
             }
         }
     }

+ 23 - 20
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0701.java

@@ -31,30 +31,33 @@ public class THR0701 extends QCCatalogue {
         if (StringUtil.isBlank(firstCourseDiffDiag)) {
             return;
         }
-        if (attendDocs.size() > 0) {
-            AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
-            ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
-            if (firstAttendLabel == null) {
-                return;
-            }
-            if (firstAttendLabel.getDiffDiag().size() != 0) {
-                for (Diag diffDiag : firstAttendLabel.getDiffDiag()) {
-                    String diffDiagName = diffDiag.getHospitalDiagName();
-                    if (StringUtil.isBlank(diffDiagName)) {
-                        continue;
-                    }
-                    if (firstCourseDiffDiag.equals(diffDiagName)) {
-                        status.set("0");
-                        return;
-                    }
+        if (attendDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        AttendingDoctorWardDoc firstAttendDoc = attendDocs.get(0);
+        ThreeLevelWardLabel firstAttendLabel = firstAttendDoc.getThreeLevelWardLabel();
+        if (firstAttendLabel == null) {
+            status.set("0");
+            return;
+        }
+        if (firstAttendLabel.getDiffDiag().size() != 0) {
+            for (Diag diffDiag : firstAttendLabel.getDiffDiag()) {
+                String diffDiagName = diffDiag.getHospitalDiagName();
+                if (StringUtil.isBlank(diffDiagName)) {
+                    continue;
                 }
-
-            }
-            if (StringUtil.isNotBlank(firstAttendLabel.getDiffDiagText())) {
-                if (firstAttendLabel.getDiffDiagText().equals(firstCourseDiffDiag)) {
+                if (firstCourseDiffDiag.equals(diffDiagName)) {
                     status.set("0");
+                    return;
                 }
             }
+
+        }
+        if (StringUtil.isNotBlank(firstAttendLabel.getDiffDiagText())) {
+            if (firstAttendLabel.getDiffDiagText().equals(firstCourseDiffDiag)) {
+                status.set("0");
+            }
         }
     }
 

+ 23 - 20
kernel/src/main/java/com/lantone/qc/kernel/catalogue/threelevelward/THR0702.java

@@ -32,30 +32,33 @@ public class THR0702 extends QCCatalogue {
         if (StringUtil.isBlank(firstCourseDiffDiag)) {
             return;
         }
-        if (directorDocs.size() > 0) {
-            DirectorDoctorWardDoc firstDirectorDoc = directorDocs.get(0);
-            ThreeLevelWardLabel firstAttendLabel = firstDirectorDoc.getThreeLevelWardLabel();
-            if (firstAttendLabel == null) {
-                return;
-            }
-            if (firstAttendLabel.getDiffDiag().size() != 0) {
-                for (Diag diffDiag : firstAttendLabel.getDiffDiag()) {
-                    String diffDiagName = diffDiag.getHospitalDiagName();
-                    if (StringUtil.isBlank(diffDiagName)) {
-                        continue;
-                    }
-                    if (firstCourseDiffDiag.equals(diffDiagName)) {
-                        status.set("0");
-                        return;
-                    }
+        if (directorDocs.size() == 0) {
+            status.set("0");
+            return;
+        }
+        DirectorDoctorWardDoc firstDirectorDoc = directorDocs.get(0);
+        ThreeLevelWardLabel firstAttendLabel = firstDirectorDoc.getThreeLevelWardLabel();
+        if (firstAttendLabel == null) {
+            status.set("0");
+            return;
+        }
+        if (firstAttendLabel.getDiffDiag().size() != 0) {
+            for (Diag diffDiag : firstAttendLabel.getDiffDiag()) {
+                String diffDiagName = diffDiag.getHospitalDiagName();
+                if (StringUtil.isBlank(diffDiagName)) {
+                    continue;
                 }
-
-            }
-            if (StringUtil.isNotBlank(firstAttendLabel.getDiffDiagText())) {
-                if (firstAttendLabel.getDiffDiagText().equals(firstCourseDiffDiag)) {
+                if (firstCourseDiffDiag.equals(diffDiagName)) {
                     status.set("0");
+                    return;
                 }
             }
+
+        }
+        if (StringUtil.isNotBlank(firstAttendLabel.getDiffDiagText())) {
+            if (firstAttendLabel.getDiffDiagText().equals(firstCourseDiffDiag)) {
+                status.set("0");
+            }
         }
     }