|
@@ -3,11 +3,15 @@ package com.lantone.qc.kernel.catalogue.leavehospital;
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
import com.lantone.qc.pub.model.InputInfo;
|
|
|
import com.lantone.qc.pub.model.OutputInfo;
|
|
|
+import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
|
+import com.lantone.qc.pub.model.doc.LeaveHospitalDoc;
|
|
|
import com.lantone.qc.pub.model.entity.Chief;
|
|
|
import com.lantone.qc.pub.model.entity.General;
|
|
|
+import com.lantone.qc.pub.model.label.ChiefLabel;
|
|
|
import com.lantone.qc.pub.model.label.LeaveHospitalLabel;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -24,15 +28,18 @@ public class LEA0149 extends QCCatalogue {
|
|
|
@Override
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
status.set("0");
|
|
|
- try {
|
|
|
- Map<String, String> lhStructureMap = inputInfo.getLeaveHospitalDoc().getStructureMap();
|
|
|
- String bhChief = inputInfo.getBeHospitalizedDoc().getChiefLabel().getText();
|
|
|
- String bhThings = lhStructureMap.get("入院情况");
|
|
|
- if(bhThings.indexOf(bhChief)<0){
|
|
|
- status.set("-1");
|
|
|
+ LeaveHospitalDoc leaveHospitalDoc = inputInfo.getLeaveHospitalDoc();
|
|
|
+ BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();
|
|
|
+ if(leaveHospitalDoc != null && beHospitalizedDoc != null){
|
|
|
+ Map<String, String> lhStructureMap = leaveHospitalDoc.getStructureMap();
|
|
|
+ ChiefLabel chiefLabel = beHospitalizedDoc.getChiefLabel();
|
|
|
+ if(lhStructureMap != null && chiefLabel != null){
|
|
|
+ String bhChief = chiefLabel.getText();
|
|
|
+ String bhThings = lhStructureMap.get("入院情况");
|
|
|
+ if(bhThings.indexOf(bhChief)<0){
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
}
|
|
|
- }catch (Exception e){
|
|
|
- e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
}
|