|
@@ -4,6 +4,7 @@ import com.lantone.qc.kernel.catalogue.QCCatalogue;
|
|
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.Operation;
|
|
import com.lantone.qc.pub.model.entity.Operation;
|
|
|
|
+import com.lantone.qc.pub.model.label.PastLabel;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
import com.lantone.qc.pub.util.ListUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -34,15 +35,18 @@ public class BEH0025 extends QCCatalogue {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//规则硬匹配
|
|
//规则硬匹配
|
|
- if (inputInfo.getBeHospitalizedDoc().getPastLabel().getText().contains("手术")) {
|
|
|
|
- status.set("0");
|
|
|
|
- return;
|
|
|
|
|
|
+ PastLabel pastLabel = inputInfo.getBeHospitalizedDoc().getPastLabel();
|
|
|
|
+ if (pastLabel != null){
|
|
|
|
+ String pastLabelText = pastLabel.getText();
|
|
|
|
+ if (StringUtil.isNotBlank(pastLabelText) && pastLabelText.contains("手术")){
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//台州结构化
|
|
//台州结构化
|
|
Map<String, String> structureMap_beh = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
Map<String, String> structureMap_beh = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
if(StringUtils.isNotEmpty(structureMap_beh.get("手术外伤史"))){
|
|
if(StringUtils.isNotEmpty(structureMap_beh.get("手术外伤史"))){
|
|
status.set("0");
|
|
status.set("0");
|
|
- return;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|