|
@@ -41,9 +41,13 @@ public class LEA0149 extends QCCatalogue {
|
|
String bhChief = CatalogueUtil.int2ChineseNum(chiefLabel.getText().replaceAll("[\\p{Punct}\\pP。-]", ""));
|
|
String bhChief = CatalogueUtil.int2ChineseNum(chiefLabel.getText().replaceAll("[\\p{Punct}\\pP。-]", ""));
|
|
String leaveChief = lhStructureMap.get("主诉");
|
|
String leaveChief = lhStructureMap.get("主诉");
|
|
String bhThings = lhStructureMap.get("入院情况");
|
|
String bhThings = lhStructureMap.get("入院情况");
|
|
|
|
+ String reThings = lhStructureMap.get("入院原因"); //邵逸夫主诉在入院原因内
|
|
if (StringUtil.isNotBlank(bhThings)) {
|
|
if (StringUtil.isNotBlank(bhThings)) {
|
|
bhThings = CatalogueUtil.int2ChineseNum(bhThings.replaceAll("[\\p{Punct}\\pP。-]", ""));
|
|
bhThings = CatalogueUtil.int2ChineseNum(bhThings.replaceAll("[\\p{Punct}\\pP。-]", ""));
|
|
}
|
|
}
|
|
|
|
+ if (StringUtil.isNotBlank(reThings)) {
|
|
|
|
+ reThings = CatalogueUtil.int2ChineseNum(reThings.replaceAll("[\\p{Punct}\\pP。-]", ""));
|
|
|
|
+ }
|
|
|
|
|
|
//如果出院小结结构化数据能取出主诉,则直接用该主诉和入院记录主诉比较
|
|
//如果出院小结结构化数据能取出主诉,则直接用该主诉和入院记录主诉比较
|
|
if (StringUtil.isNotBlank(leaveChief)) {
|
|
if (StringUtil.isNotBlank(leaveChief)) {
|
|
@@ -57,6 +61,11 @@ public class LEA0149 extends QCCatalogue {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ //邵逸夫主诉写在入院原因
|
|
|
|
+ if (StringUtil.isNotBlank(reThings) && reThings.replace(" ", "").contains(bhChief.replace(" ", ""))) {
|
|
|
|
+ status.set("0");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
Pattern compile = Pattern.compile("(?<=2.).*(?=3.体格检查)");
|
|
Pattern compile = Pattern.compile("(?<=2.).*(?=3.体格检查)");
|
|
Matcher matcher = compile.matcher(bhThings);
|
|
Matcher matcher = compile.matcher(bhThings);
|
|
while (matcher.find()) {
|
|
while (matcher.find()) {
|