瀏覽代碼

bug【入院记录】长兴-ZY010000668365-有既往史内容,缺陷详情出现“既往史未填写”不合理。

wangfeng 5 年之前
父節點
當前提交
dbefc42a91
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0400.java

+ 14 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0400.java

@@ -7,6 +7,11 @@ import com.lantone.qc.pub.model.label.PastLabel;
 import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+
 /**
  * @Description: 既往史未填写
  * @author: rengb
@@ -21,6 +26,15 @@ public class BEH0400 extends QCCatalogue {
             status.set("0");
             return;
         }
+        List<String>  Str =  Arrays.asList("咳嗽气喘史","胸闷心悸史","腹痛腹泻史","多饮多尿史","浮肿少尿史","尿频尿痛史","抽搐史","出血史","过敏史","药物过敏史","传染病史","外伤手术史","输血史","重大疾病史和治疗史");
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        for(String s : Str){
+            if(structureMap!=null &&structureMap.containsKey(s)){
+                status.set("0");
+                return;
+            }
+        }
+
         PastLabel pastLabel = inputInfo.getBeHospitalizedDoc().getPastLabel();
         if (pastLabel != null && StringUtil.isNotBlank(pastLabel.getText())) {
             status.set("0");