|
@@ -28,8 +28,8 @@ public class BeiLunOperationHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
String recTitle = args[1];
|
|
String recTitle = args[1];
|
|
String recTypeId = args[2];
|
|
String recTypeId = args[2];
|
|
Element bigDivElement = Jsoup.parse(html).selectFirst("body").child(0);
|
|
Element bigDivElement = Jsoup.parse(html).selectFirst("body").child(0);
|
|
- analysisGeneral(recTitle,bigDivElement, map);
|
|
|
|
- CommonAnalysisUtil.makeEmpty(map,"医生签名");
|
|
|
|
|
|
+ analysisGeneral(recTitle, bigDivElement, map);
|
|
|
|
+ CommonAnalysisUtil.makeEmpty(map, "医生签名");
|
|
BeiLunHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, map);
|
|
BeiLunHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, map);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(e.getMessage(), e);
|
|
log.error(e.getMessage(), e);
|
|
@@ -37,7 +37,7 @@ public class BeiLunOperationHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
|
|
- private void analysisGeneral(String recTitle,Element bigDivElement, Map<String, String> map) {
|
|
|
|
|
|
+ private void analysisGeneral(String recTitle, Element bigDivElement, Map<String, String> map) {
|
|
if (bigDivElement.childNodeSize() == 1) {
|
|
if (bigDivElement.childNodeSize() == 1) {
|
|
bigDivElement = bigDivElement.child(0);
|
|
bigDivElement = bigDivElement.child(0);
|
|
}
|
|
}
|
|
@@ -45,10 +45,10 @@ public class BeiLunOperationHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
bigDivElement.selectFirst("hr").previousElementSiblings().remove();
|
|
bigDivElement.selectFirst("hr").previousElementSiblings().remove();
|
|
}
|
|
}
|
|
String text = BeiLunHtmlAnalysisUtil.blockDivToStr(bigDivElement, true);
|
|
String text = BeiLunHtmlAnalysisUtil.blockDivToStr(bigDivElement, true);
|
|
- CommonAnalysisUtil.extractWardInfo(recTitle,text, map);
|
|
|
|
|
|
+ CommonAnalysisUtil.extractWardInfo(recTitle, text, map);
|
|
String bqjlText = "病情记录" + map.get("病情记录");
|
|
String bqjlText = "病情记录" + map.get("病情记录");
|
|
List<String> titles = Lists.newArrayList(
|
|
List<String> titles = Lists.newArrayList(
|
|
- "病情记录", "患者手术后情况", "术后去向", "术后去向", "术后诊断", "术后处理措施", "术后应当特别注意观察的事项:"
|
|
|
|
|
|
+ "病情记录", "患者手术后情况", "术后去向", "术后去向", "术后诊断", "术后处理措施", "术后应当特别注意观察的事项:", "医生签名"
|
|
);
|
|
);
|
|
titles = CommonAnalysisUtil.sortTitlesNoColon(titles, bqjlText);
|
|
titles = CommonAnalysisUtil.sortTitlesNoColon(titles, bqjlText);
|
|
CommonAnalysisUtil.cutByTitlesNoColon(bqjlText, titles, 0, map);
|
|
CommonAnalysisUtil.cutByTitlesNoColon(bqjlText, titles, 0, map);
|