Просмотр исходного кода

1.现病史缺少有鉴别意义的阴性症状:修改逻辑,现病史包含无就不报错

hujing 5 лет назад
Родитель
Сommit
18fbba6633

+ 10 - 3
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0013.java

@@ -4,8 +4,7 @@ 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.Lis;
-import com.lantone.qc.pub.model.entity.Negative;
+import com.lantone.qc.pub.model.label.PresentLabel;
 import org.springframework.stereotype.Component;
 
 import java.util.ArrayList;
@@ -25,8 +24,16 @@ public class BEH0013 extends QCCatalogue {
         if(inputInfo.getBeHospitalizedDoc() == null){
             return;
         }
+        PresentLabel presentLabel = inputInfo.getBeHospitalizedDoc().getPresentLabel();
+        if (presentLabel == null){
+            return;
+        }
+        String text = presentLabel.getText();
+        if (text.contains("无")){
+            return;
+        }
         List<Clinical> clinicalNegative = new ArrayList<>();
-        List<Clinical> clinicals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getClinicals();
+        List<Clinical> clinicals = presentLabel.getClinicals();
         if(clinicals.size()>0){
             for (Clinical clinical:clinicals) {
                 if(clinical.getNegative() != null){