|
@@ -11,6 +11,8 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.regex.Matcher;
|
|
|
+import java.util.regex.Pattern;
|
|
|
|
|
|
/**
|
|
|
* @ClassName : THR0134
|
|
@@ -37,7 +39,8 @@ public class THR0134 extends QCCatalogue {
|
|
|
String recordDateStr = firstAttendStructureMap.get("查房日期");
|
|
|
String content = firstAttendStructureMap.get("病情记录");
|
|
|
if (content.contains("诊断明确") || content.contains("目前诊断") || content.contains("目前考虑") || content.contains("当前诊断") ||
|
|
|
- content.contains("考虑诊断") || content.contains("诊断考虑") || content.contains("诊断基本明确") || content.contains("初步诊断")) {
|
|
|
+ content.contains("考虑诊断") || content.contains("诊断考虑") || content.contains("诊断基本明确") || content.contains("初步诊断") ||
|
|
|
+ regexFind(content, "诊断", "基本明确")) {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|
|
@@ -58,6 +61,16 @@ public class THR0134 extends QCCatalogue {
|
|
|
if (firstAttendLabel.getDiags().size() != 0 || StringUtil.isNotBlank(firstAttendLabel.getDiagText())) {
|
|
|
status.set("0");
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
+ private boolean regexFind(String content, String... str) {
|
|
|
+ String s = "";
|
|
|
+ for (String word : str) {
|
|
|
+ s += word + ".*";
|
|
|
+ }
|
|
|
+ s = s.substring(0, s.lastIndexOf(".*"));
|
|
|
+ Pattern p = Pattern.compile(s);
|
|
|
+ Matcher m = p.matcher(content);
|
|
|
+ return m.find();
|
|
|
}
|
|
|
}
|