浏览代码

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

hujing 5 年之前
父节点
当前提交
d18df6c010
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0005.java

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

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