|
@@ -5,6 +5,7 @@ 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.model.doc.BeHospitalizedDoc;
|
|
import com.lantone.qc.pub.model.entity.AllergyMedicine;
|
|
import com.lantone.qc.pub.model.entity.AllergyMedicine;
|
|
import com.lantone.qc.pub.model.label.PastLabel;
|
|
import com.lantone.qc.pub.model.label.PastLabel;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
@@ -25,12 +26,11 @@ import java.util.Map;
|
|
public class FIRP0185 extends QCCatalogue {
|
|
public class FIRP0185 extends QCCatalogue {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
status.set("0");
|
|
status.set("0");
|
|
- if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null
|
|
|
|
- && inputInfo.getBeHospitalizedDoc() != null && inputInfo.getBeHospitalizedDoc().getStructureMap() != null) {
|
|
|
|
|
|
+ if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getBeHospitalizedDoc() != null) {
|
|
Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
String drugAllergy = firstpageStructureMap.get(Content.drugAllergy);
|
|
String drugAllergy = firstpageStructureMap.get(Content.drugAllergy);
|
|
-
|
|
|
|
- PastLabel pastLabel = inputInfo.getBeHospitalizedDoc().getPastLabel();
|
|
|
|
|
|
+ BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();
|
|
|
|
+ PastLabel pastLabel = beHospitalizedDoc.getPastLabel();
|
|
List<AllergyMedicine> allergyMedicines = pastLabel.getAllergyMedicines();
|
|
List<AllergyMedicine> allergyMedicines = pastLabel.getAllergyMedicines();
|
|
if (allergyMedicines.size() == 0 || CatalogueUtil.isEmpty(drugAllergy)) {
|
|
if (allergyMedicines.size() == 0 || CatalogueUtil.isEmpty(drugAllergy)) {
|
|
return;
|
|
return;
|