|
@@ -28,7 +28,7 @@ public class BeiLunTransferOutHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
String recTitle = args[1];
|
|
|
String recTypeId = args[2];
|
|
|
Element bigDivElement = Jsoup.parse(html).selectFirst("body").child(0);
|
|
|
- analysisGeneral(recTitle,bigDivElement, map);
|
|
|
+ analysisGeneral(recTitle, bigDivElement, map);
|
|
|
BeiLunHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, map);
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage(), e);
|
|
@@ -36,7 +36,7 @@ public class BeiLunTransferOutHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
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) {
|
|
|
bigDivElement = bigDivElement.child(0);
|
|
|
}
|
|
@@ -44,16 +44,22 @@ public class BeiLunTransferOutHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
bigDivElement.selectFirst("hr").previousElementSiblings().remove();
|
|
|
}
|
|
|
String text = BeiLunHtmlAnalysisUtil.blockDivToStr(bigDivElement, true);
|
|
|
- CommonAnalysisUtil.extractWardInfo(recTitle,text, map);
|
|
|
- String bqjlText = "病情记录" + map.get("病情记录");
|
|
|
+ CommonAnalysisUtil.extractWardInfo(recTitle, text, map);
|
|
|
+ String bqjlText = "病情记录" + map.get("病情记录").replace("年 月 日 时 分 ","");
|
|
|
List<String> titles = Lists.newArrayList(
|
|
|
"病情记录",
|
|
|
"医师签名",
|
|
|
"签名时间",
|
|
|
- "患者签名"
|
|
|
+ "患者签名",
|
|
|
+ "签名时间"
|
|
|
);
|
|
|
titles = CommonAnalysisUtil.sortTitlesNoColon(titles, bqjlText);
|
|
|
CommonAnalysisUtil.cutByTitlesNoColon(bqjlText, titles, 0, map);
|
|
|
+ List<String> tits = Lists.newArrayList(
|
|
|
+ "签名时间",
|
|
|
+ "患者签名"
|
|
|
+ );
|
|
|
+ tits = CommonAnalysisUtil.sortTitlesNoColon(tits, text);
|
|
|
+ CommonAnalysisUtil.cutByTitlesNoColon(text, tits, 0, map);
|
|
|
}
|
|
|
-
|
|
|
}
|