Explorar el Código

主诉未填写,现病史或既往史填写显示报错

wangsy hace 4 años
padre
commit
1bb8b7b250

+ 4 - 6
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0001.java

@@ -3,12 +3,9 @@ package com.lantone.qc.kernel.catalogue.behospitalized;
 import com.lantone.qc.kernel.catalogue.QCCatalogue;
 import com.lantone.qc.pub.model.InputInfo;
 import com.lantone.qc.pub.model.OutputInfo;
-import com.lantone.qc.pub.model.entity.Clinical;
 import com.lantone.qc.pub.model.entity.PD;
 import com.lantone.qc.pub.model.label.ChiefLabel;
-import com.lantone.qc.pub.util.ListUtil;
 import com.lantone.qc.pub.util.StringUtil;
-import org.apache.commons.lang3.StringUtils;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -23,17 +20,17 @@ import java.util.List;
 @Component
 public class BEH0001 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
-
-        status.set("0");
         if (inputInfo.getBeHospitalizedDoc() == null) {
+            status.set("0");
             return;
         }
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
         if (chiefLabel == null) {
+            status.set("0");
             return;
         }
         String chiefText = chiefLabel.getText();
-        if(StringUtil.isBlank(chiefText)){
+        if (StringUtil.isBlank(chiefText)) {
             status.set("0");
             return;
         }
@@ -75,6 +72,7 @@ public class BEH0001 extends QCCatalogue {
             status.set("-1");
         }*/
     }
+
     private boolean isDate(String pdName) {
         String regex = "[0-9]{4}.?[0-9]{2}.?[0-9]{2}";
         return pdName.matches(regex);