|
@@ -45,9 +45,15 @@ public class LEA0149 extends QCCatalogue {
|
|
String reThings = 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 (bhThings.contains("\n")) {
|
|
|
|
+ bhThings = bhThings.replace("\n", "");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (StringUtil.isNotBlank(reThings)) {
|
|
if (StringUtil.isNotBlank(reThings)) {
|
|
reThings = CatalogueUtil.int2ChineseNum(reThings.replaceAll("[\\p{Punct}\\pP。-]", ""));
|
|
reThings = CatalogueUtil.int2ChineseNum(reThings.replaceAll("[\\p{Punct}\\pP。-]", ""));
|
|
|
|
+ if (reThings.contains("\n")) {
|
|
|
|
+ reThings = reThings.replace("\n", "");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
//如果出院小结结构化数据能取出主诉,则直接用该主诉和入院记录主诉比较
|
|
//如果出院小结结构化数据能取出主诉,则直接用该主诉和入院记录主诉比较
|
|
@@ -67,7 +73,7 @@ public class LEA0149 extends QCCatalogue {
|
|
status.set("0");
|
|
status.set("0");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if(StringUtils.isNotBlank(bhThings)){
|
|
|
|
|
|
+ if (StringUtils.isNotBlank(bhThings)) {
|
|
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()) {
|
|
@@ -83,7 +89,6 @@ public class LEA0149 extends QCCatalogue {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
// bhThings = bhThings.replaceAll("[\\p{Punct}\\pP]", "");
|
|
// bhThings = bhThings.replaceAll("[\\p{Punct}\\pP]", "");
|
|
// if (bhThings.indexOf(bhChief) < 0) {
|
|
// if (bhThings.indexOf(bhChief) < 0) {
|
|
// status.set("-1");
|
|
// status.set("-1");
|