|
@@ -1,6 +1,7 @@
|
|
package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
package com.lantone.qc.kernel.catalogue.behospitalized;
|
|
|
|
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
|
|
+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.doc.BeHospitalizedDoc;
|
|
@@ -22,21 +23,22 @@ public class BEH0053 extends QCCatalogue {
|
|
@Override
|
|
@Override
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();
|
|
BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();
|
|
- if(beHospitalizedDoc == null){
|
|
|
|
|
|
+ if (beHospitalizedDoc == null) {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//硬规则 匹配未婚
|
|
//硬规则 匹配未婚
|
|
|
|
+ String marry = beHospitalizedDoc.getStructureMap().get(Content.marry);
|
|
MaritalLabel maritalLabel = beHospitalizedDoc.getMaritalLabel();
|
|
MaritalLabel maritalLabel = beHospitalizedDoc.getMaritalLabel();
|
|
- if (maritalLabel != null &&
|
|
|
|
- (StringUtil.isBlank(maritalLabel.getText()) || maritalLabel.getText().contains("未婚"))) {
|
|
|
|
|
|
+ if ("未婚".equals(marry) || (maritalLabel != null &&
|
|
|
|
+ (StringUtil.isBlank(maritalLabel.getText()) || maritalLabel.getText().contains("未婚")))) {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//先取一次结构化数据
|
|
//先取一次结构化数据
|
|
Map<String, String> beHospitalizedStructureMap = beHospitalizedDoc.getStructureMap();
|
|
Map<String, String> beHospitalizedStructureMap = beHospitalizedDoc.getStructureMap();
|
|
String marryiAgeStr = beHospitalizedStructureMap.get("结婚年龄");
|
|
String marryiAgeStr = beHospitalizedStructureMap.get("结婚年龄");
|
|
- if (StringUtil.isNotBlank(marryiAgeStr)){
|
|
|
|
|
|
+ if (StringUtil.isNotBlank(marryiAgeStr)) {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|