|
@@ -14,6 +14,7 @@ import java.text.ParseException;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.regex.Pattern;
|
|
|
|
|
|
/**
|
|
|
* @Description: 手术患者无术前讨论记录(邵逸夫)
|
|
@@ -37,7 +38,8 @@ public class PRE03025 extends QCCatalogue {
|
|
|
}
|
|
|
if (inputInfo.getBeHospitalizedDoc() != null
|
|
|
&& inputInfo.getBeHospitalizedDoc().getStructureMap().get("现病史") != null
|
|
|
- && inputInfo.getBeHospitalizedDoc().getStructureMap().get("现病史").matches(".*急诊.*术.*|.*急症.*术.*")) {
|
|
|
+// && inputInfo.getBeHospitalizedDoc().getStructureMap().get("现病史").matches(".*急诊.*术.*|.*急症.*术.*")) {
|
|
|
+ && match_word(inputInfo.getBeHospitalizedDoc().getStructureMap().get("现病史"))) {
|
|
|
return;
|
|
|
}
|
|
|
//判断首程里是否有急诊
|
|
@@ -71,11 +73,12 @@ public class PRE03025 extends QCCatalogue {
|
|
|
private boolean findEmergencyOperation(InputInfo inputInfo) {
|
|
|
FirstCourseRecordDoc firstCourseRecordDoc = inputInfo.getFirstCourseRecordDoc();
|
|
|
if (firstCourseRecordDoc != null) {
|
|
|
- String treatPlan = firstCourseRecordDoc.getStructureMap().get("诊疗计划");
|
|
|
+ String treatPlan = firstCourseRecordDoc.getStructureMap().get("治疗计划");
|
|
|
// 根据医学部要求,加入“急症”和“术”
|
|
|
if (StringUtil.isNotBlank(treatPlan)) {
|
|
|
- String regex = ".*急诊.*术.*|.*急症.*术.*";
|
|
|
- return treatPlan.matches(regex);
|
|
|
+ return match_word(treatPlan);
|
|
|
+// String regex = ".*急诊.*术.*|.*急症.*术.*";
|
|
|
+// return treatPlan.matches(regex);
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
@@ -125,4 +128,11 @@ public class PRE03025 extends QCCatalogue {
|
|
|
}
|
|
|
return num;
|
|
|
}
|
|
|
+
|
|
|
+ private boolean match_word(String content){
|
|
|
+ String regex = "(?<=急诊)(.+)(?=术)";
|
|
|
+ Pattern p = Pattern.compile(regex);
|
|
|
+ boolean b = p.matcher(content).find();
|
|
|
+ return b;
|
|
|
+ }
|
|
|
}
|