|
@@ -22,14 +22,14 @@ public class YwzxyyLeaveHospitalXmlAnalysis implements YwzxyyXmlAnalysis {
|
|
Map<String, String> structureMap = Maps.newHashMap();
|
|
Map<String, String> structureMap = Maps.newHashMap();
|
|
try {
|
|
try {
|
|
String xml = args[0];
|
|
String xml = args[0];
|
|
|
|
+ xml = xml.replace("</出院情况>出院情况", "</出院情况>出院去向");
|
|
String text = YwzxyyXmlUtil.xml2Txt(xml);
|
|
String text = YwzxyyXmlUtil.xml2Txt(xml);
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
Lists.newArrayList("入院时间", "出院时间", "住院天数", "入院诊断", "出院诊断", "入院情况",
|
|
Lists.newArrayList("入院时间", "出院时间", "住院天数", "入院诊断", "出院诊断", "入院情况",
|
|
- "住院经过", "出院情况", "出院医嘱", "健康教育", "随访计划", "医师签名", "签名时间"),
|
|
|
|
|
|
+ "住院经过", "出院情况", "出院去向", "出院医嘱", "健康教育", "随访计划", "医师签名", "签名时间"),
|
|
text
|
|
text
|
|
);
|
|
);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, structureMap);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, structureMap);
|
|
- structureMap.put("出院去向", structureMap.get("出院情况"));
|
|
|
|
structureMap.put("入院日期", structureMap.get("入院时间"));
|
|
structureMap.put("入院日期", structureMap.get("入院时间"));
|
|
structureMap.put("出院日期", structureMap.get("出院时间"));
|
|
structureMap.put("出院日期", structureMap.get("出院时间"));
|
|
structureMap.put("记录时间", structureMap.get("签名时间"));
|
|
structureMap.put("记录时间", structureMap.get("签名时间"));
|