|
@@ -23,6 +23,7 @@ public class YwzxyyFirstCourseRecordXmlAnalysis implements YwzxyyXmlAnalysis {
|
|
|
Map<String, String> level1StructureMap = Maps.newHashMap();
|
|
|
try {
|
|
|
String xml = args[0];
|
|
|
+ xml = StringUtil.matRegx(xml, "(<病情摘要>)[\\s\\S]*(</病情摘要>)", "(<病人姓名>)[\\s\\S]*(</病情摘要>)", "");
|
|
|
String level1Text = YwzxyyXmlUtil.bcXmlAna(xml);
|
|
|
List<String> level1Titles = CommonAnalysisUtil.sortTitles(Lists.newArrayList("病历记录时间", "病历记录标题", "原始文本", "记录医师"), level1Text);
|
|
|
CommonAnalysisUtil.cutByTitles(level1Text, level1Titles, 0, level1StructureMap);
|
|
@@ -36,6 +37,7 @@ public class YwzxyyFirstCourseRecordXmlAnalysis implements YwzxyyXmlAnalysis {
|
|
|
level2StructureMap.put(key, removeWN(level2StructureMap.get(key)));
|
|
|
});
|
|
|
level1StructureMap.putAll(level2StructureMap);
|
|
|
+ level1StructureMap.put("记录医生", level1StructureMap.get("记录医师"));
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage(), e);
|
|
|
}
|