|
@@ -1,10 +1,10 @@
|
|
package com.lantone.qc.kernel.catalogue.firstpagerecord;
|
|
package com.lantone.qc.kernel.catalogue.firstpagerecord;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
-import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
|
import com.lantone.qc.pub.Content;
|
|
import com.lantone.qc.pub.Content;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -24,8 +24,13 @@ public class FIRP02904 extends QCCatalogue {
|
|
}
|
|
}
|
|
if (inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
if (inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
- String name = firstpageStructureMap.get(Content.allergyDrug);
|
|
|
|
- if (!CatalogueUtil.isEmpty(name)) {
|
|
|
|
|
|
+ String drugAllergy = firstpageStructureMap.get(Content.drugAllergy);
|
|
|
|
+ if (StringUtil.isBlank(drugAllergy) || "无".equals(drugAllergy)) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ String allergicDrugs = firstpageStructureMap.get(Content.allergyDrug);
|
|
|
|
+ if (StringUtil.isNotEmpty(allergicDrugs)) {
|
|
status.set("0");
|
|
status.set("0");
|
|
}
|
|
}
|
|
}
|
|
}
|