|
@@ -5,6 +5,7 @@ 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.entity.Family;
|
|
|
+import com.lantone.qc.pub.model.label.MaritalLabel;
|
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -25,16 +26,22 @@ public class BEH0376 extends QCCatalogue {
|
|
|
|
|
|
@Override
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
- if (StringUtils.isEmpty(inputInfo.getBeHospitalizedDoc().getMaritalLabel().getText())
|
|
|
- || inputInfo.getBeHospitalizedDoc().getMaritalLabel().getMaritalStatus().getName().contains("未婚")) {
|
|
|
- status.set("0");
|
|
|
- }
|
|
|
//台州市结构化的
|
|
|
Map<String, String> structureMap_beh = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
|
if(StringUtils.isNotEmpty(structureMap_beh.get("子女健康状况"))){
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
+ MaritalLabel maritalLabel = inputInfo.getBeHospitalizedDoc().getMaritalLabel();
|
|
|
+ if (maritalLabel == null || StringUtils.isEmpty(maritalLabel.getText())) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //未婚 无子女
|
|
|
+ if (maritalLabel.getMaritalStatus() != null && maritalLabel.getMaritalStatus().getName().contains("未婚")) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
List<Family> familyList = Lists.newArrayList();
|
|
|
List<Family> familiesFl = inputInfo.getBeHospitalizedDoc().getFamilyLabel().getFamilies();
|
|
|
List<Family> familiesMl = inputInfo.getBeHospitalizedDoc().getMaritalLabel().getFamily();
|