|
@@ -8,6 +8,8 @@ import com.lantone.qc.pub.model.label.MenstrualLabel;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
/**
|
|
|
* @ClassName : BEH0059
|
|
|
* @Description : 月经史未填写
|
|
@@ -24,6 +26,11 @@ public class BEH0059 extends QCCatalogue {
|
|
|
|| inputInfo.getBeHospitalizedDoc().getStructureMap().get("性别").contains("男")) {
|
|
|
status.set("0"); //如果性别是男,就不报错
|
|
|
} else {
|
|
|
+ String concatMenstrualText = concatMenstrualText(inputInfo);
|
|
|
+ if (StringUtil.isNotBlank(concatMenstrualText)) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
MenstrualLabel menstrualLabel = inputInfo.getBeHospitalizedDoc().getMenstrualLabel();
|
|
|
if (menstrualLabel == null) {
|
|
|
return;
|
|
@@ -39,4 +46,17 @@ public class BEH0059 extends QCCatalogue {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private String concatMenstrualText(InputInfo inputInfo) {
|
|
|
+ Map<String, String> beHospitalizedStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ for (Map.Entry<String, String> bhMap : beHospitalizedStructureMap.entrySet()) {
|
|
|
+ if (bhMap.getKey().contains("月经") || bhMap.getKey().contains("经期") || bhMap.getKey().contains("绝经")) {
|
|
|
+ if (StringUtil.isNotBlank(bhMap.getValue())) {
|
|
|
+ sb.append(bhMap.getValue());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
}
|