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

药物过敏与既往史不一致 修改

rengb 5 лет назад
Родитель
Сommit
999c4c1ab1

+ 7 - 4
kernel/src/main/java/com/lantone/qc/kernel/catalogue/firstpagerecord/FIRP02992.java

@@ -24,16 +24,19 @@ public class FIRP02992 extends QCCatalogue {
         status.set("0");
         if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getBeHospitalizedDoc() != null) {
             Map<String, String> fpStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
-            String fpDrugAllergy = fpStructureMap.get(Content.drugAllergy);
-            fpDrugAllergy = StringUtil.isBlank(fpDrugAllergy) ? "" : fpDrugAllergy;
+            if (StringUtil.isBlank(fpStructureMap.get(Content.drugAllergy))) {
+                return;
+            }
+            String fpAllergyDrug = fpStructureMap.get(Content.allergyDrug);
+            fpAllergyDrug = StringUtil.isBlank(fpAllergyDrug) ? "" : fpAllergyDrug;
 
             Map<String, String> beStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
             String beDrugAllergy = beStructureMap.get("过敏史");
             beDrugAllergy = StringUtil.isBlank(beDrugAllergy) ? "" : beDrugAllergy;
 
-            if (!fpDrugAllergy.equals(beDrugAllergy)) {
+            if (!fpAllergyDrug.equals(beDrugAllergy)) {
                 String regx = ";|;|,|,|、| ";
-                List<String> fpList = Lists.newArrayList(fpDrugAllergy.split(regx));
+                List<String> fpList = Lists.newArrayList(fpAllergyDrug.split(regx));
                 List<String> beList = Lists.newArrayList(beDrugAllergy.split(regx));
                 if (!ListUtil.equals(fpList, beList)) {
                     status.set("-1");