|
@@ -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");
|