|
@@ -21,30 +21,36 @@ public class BEH0059 extends QCCatalogue {
|
|
|
@Override
|
|
|
protected void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
if (inputInfo.getBeHospitalizedDoc() != null) {
|
|
|
- if (inputInfo.getBeHospitalizedDoc().getStructureMap() == null
|
|
|
- || inputInfo.getBeHospitalizedDoc().getStructureMap().get("性别") == null
|
|
|
- || inputInfo.getBeHospitalizedDoc().getStructureMap().get("性别").contains("男")) {
|
|
|
+ Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
|
+ String s = structureMap.get("性别");
|
|
|
+ if (StringUtil.isNotBlank(s) && s.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;
|
|
|
- }
|
|
|
- String menstrualText = StringUtil.removeBlank(menstrualLabel.getText()).replaceAll("[月经史|:|:|null]", "");
|
|
|
- if (StringUtil.isBlank(menstrualText)) {
|
|
|
- return;
|
|
|
- }
|
|
|
- boolean containChinese = CatalogueUtil.isContainChinese(menstrualText);
|
|
|
- if (containChinese) {
|
|
|
- status.set("0"); //如果性别是女,不为空就不报错
|
|
|
- }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ String menstrualStr = structureMap.get("月经史");
|
|
|
+ if (StringUtil.isNotBlank(menstrualStr)) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ String concatMenstrualText = concatMenstrualText(inputInfo);
|
|
|
+ if (StringUtil.isNotBlank(concatMenstrualText)) {
|
|
|
+ status.set("0");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ MenstrualLabel menstrualLabel = inputInfo.getBeHospitalizedDoc().getMenstrualLabel();
|
|
|
+ if (menstrualLabel == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ String menstrualText = StringUtil.removeBlank(menstrualLabel.getText()).replaceAll("[月经史|:|:|null]", "");
|
|
|
+ if (StringUtil.isBlank(menstrualText)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ boolean containChinese = CatalogueUtil.isContainChinese(menstrualText);
|
|
|
+ if (containChinese) {
|
|
|
+ status.set("0"); //如果性别是女,不为空就不报错
|
|
|
}
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|