Browse Source

主诉症状时间描述前后不合理修改逻辑

hujing 5 years ago
parent
commit
d18df6c010

+ 4 - 5
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0005.java

@@ -22,20 +22,19 @@ import java.util.List;
 @Component
 @Component
 public class BEH0005 extends QCCatalogue {
 public class BEH0005 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        status.set("0");
         if (inputInfo.getBeHospitalizedDoc() == null) {
         if (inputInfo.getBeHospitalizedDoc() == null) {
-            status.set("0");
             return;
             return;
         }
         }
         List<Integer> timeIndex = new ArrayList<>();
         List<Integer> timeIndex = new ArrayList<>();
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
         if (chiefLabel == null) {
         if (chiefLabel == null) {
-            status.set("0");
             return;
             return;
         }
         }
         List<PD> pds = chiefLabel.getPds();
         List<PD> pds = chiefLabel.getPds();
         String chiefText = chiefLabel.getText();
         String chiefText = chiefLabel.getText();
         if (chiefText.contains("检查") || chiefText.contains("术后") || chiefText.contains("药物")) {
         if (chiefText.contains("检查") || chiefText.contains("术后") || chiefText.contains("药物")) {
-            status.set("0");
+            return;
         } else {
         } else {
             List<String> words = Lists.newArrayList("年", "月", "周", "天", "日", "时","分");
             List<String> words = Lists.newArrayList("年", "月", "周", "天", "日", "时","分");
             String name;
             String name;
@@ -58,8 +57,8 @@ public class BEH0005 extends QCCatalogue {
                     min = data;
                     min = data;
                 }
                 }
             }
             }
-            if (min == timeIndex.get(0)) {
-                status.set("0");
+            if (min != timeIndex.get(0)) {
+                status.set("-1");
             }
             }
         }
         }
     }
     }