|
@@ -5,6 +5,7 @@ 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.entity.Consanguineous;
|
|
import com.lantone.qc.pub.model.entity.Consanguineous;
|
|
|
|
+import com.lantone.qc.pub.model.label.FamilyLabel;
|
|
import com.lantone.qc.pub.model.label.MaritalLabel;
|
|
import com.lantone.qc.pub.model.label.MaritalLabel;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
@@ -26,6 +27,7 @@ public class BEH0054 extends QCCatalogue {
|
|
//硬规则 未婚
|
|
//硬规则 未婚
|
|
String marry = inputInfo.getBeHospitalizedDoc().getStructureMap().get(Content.marry);
|
|
String marry = inputInfo.getBeHospitalizedDoc().getStructureMap().get(Content.marry);
|
|
MaritalLabel maritalLabel = inputInfo.getBeHospitalizedDoc().getMaritalLabel();
|
|
MaritalLabel maritalLabel = inputInfo.getBeHospitalizedDoc().getMaritalLabel();
|
|
|
|
+ FamilyLabel familyLabel = inputInfo.getBeHospitalizedDoc().getFamilyLabel();
|
|
if (maritalLabel == null) {
|
|
if (maritalLabel == null) {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
@@ -35,6 +37,14 @@ public class BEH0054 extends QCCatalogue {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ /* 有少数病历的近亲结婚时会写在家族史中(普通病历会写在婚育史里) */
|
|
|
|
+ if (familyLabel != null) {
|
|
|
|
+ String familyText = familyLabel.getText();
|
|
|
|
+ if (StringUtil.isNotBlank(familyText) && familyText.contains("近亲结婚")) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
Consanguineous consanguineous = inputInfo.getBeHospitalizedDoc().getMaritalLabel().getConsanguineous();
|
|
Consanguineous consanguineous = inputInfo.getBeHospitalizedDoc().getMaritalLabel().getConsanguineous();
|
|
if (consanguineous != null && StringUtil.isNotBlank(consanguineous.getName())) {
|
|
if (consanguineous != null && StringUtil.isNotBlank(consanguineous.getName())) {
|
|
status.set("0");
|
|
status.set("0");
|