|
@@ -23,24 +23,8 @@ public class BeiLunThreeLevelWardHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
String html = args[0];
|
|
String html = args[0];
|
|
String recTitle = args[1];
|
|
String recTitle = args[1];
|
|
Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
- List<String> htmlText = html2List(html, true);
|
|
|
|
- String dateTitle = htmlText.get(0).replaceAll("[ ]", " ");
|
|
|
|
- String date = CommonAnalysisUtil.extractDate(dateTitle);
|
|
|
|
- if (date != null) {
|
|
|
|
- structureMap.put("查房日期", date);
|
|
|
|
- String title = dateTitle.replace(date, "").trim();
|
|
|
|
- structureMap.put("查房标题", title);
|
|
|
|
- }
|
|
|
|
- htmlText.remove(0);
|
|
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
|
- for (String line : htmlText) {
|
|
|
|
- String text = line.replaceAll("[ ]", " ");
|
|
|
|
- if (text.length() == 0) {
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
- sb.append(text).append("\n");
|
|
|
|
- }
|
|
|
|
- structureMap.put("病情记录", sb.toString());
|
|
|
|
|
|
+ String htmlText = CommonAnalysisUtil.html2String(html);
|
|
|
|
+ CommonAnalysisUtil.extractWardInfo(htmlText, structureMap);
|
|
structureMap.put("rec_title=", "5254");
|
|
structureMap.put("rec_title=", "5254");
|
|
return structureMap;
|
|
return structureMap;
|
|
}
|
|
}
|