浏览代码

药物过敏与既往史不一致

kongwz 5 年之前
父节点
当前提交
2b048529eb
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstpagerecord/FIRP02992.java

+ 3 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstpagerecord/FIRP02992.java

@@ -7,10 +7,12 @@ import com.lantone.qc.pub.Content;
 import com.lantone.qc.pub.model.InputInfo;
 import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.util.StringUtil;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
 import java.util.Map;
+import java.util.stream.Collectors;
 
 /**
  * @ClassName : FIRP02992
@@ -49,6 +51,7 @@ public class FIRP02992 extends QCCatalogue {
             }
             String regx = ";|;|,|,|、| ";
             List<String> fpList = Lists.newArrayList(fpAllergyDrug.split(regx));
+            fpList = fpList.stream().filter(x -> StringUtils.isNotBlank(x) && !x.trim().equals("其它")).collect(Collectors.toList());
             // 全部包含
             for (String s : fpList) {
                 if (!beDrugAllergy.contains(s)) {