zhoutg 5 lat temu
rodzic
commit
fc6bfefe53

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

@@ -2,6 +2,7 @@ package com.lantone.qc.kernel.catalogue.firstpagerecord;
 
 import com.google.common.collect.Lists;
 import com.lantone.qc.kernel.catalogue.QCCatalogue;
+import com.lantone.qc.kernel.util.RegularUtil;
 import com.lantone.qc.pub.Content;
 import com.lantone.qc.pub.model.InputInfo;
 import com.lantone.qc.pub.model.OutputInfo;
@@ -29,10 +30,12 @@ public class FIRP02992 extends QCCatalogue {
             }
             String fpAllergyDrug = fpStructureMap.get(Content.allergyDrug);
             fpAllergyDrug = StringUtil.isBlank(fpAllergyDrug) ? "" : fpAllergyDrug;
+            fpAllergyDrug = RegularUtil.ClearBracket(fpAllergyDrug); // 括号内容不匹配
 
             Map<String, String> beStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
             String beDrugAllergy = beStructureMap.get("过敏史");
             beDrugAllergy = StringUtil.isBlank(beDrugAllergy) ? "" : beDrugAllergy;
+            beDrugAllergy = RegularUtil.ClearBracket(beDrugAllergy); // 括号内容不匹配
 
             if (!fpAllergyDrug.equals(beDrugAllergy)) {
                 String regx = ";|;|,|,|、| ";