|
@@ -28,8 +28,8 @@ public class NHDiYiBeiYuanCriticallyIllNoticeHtmlAnalysis implements NHDiYiBeiYu
|
|
|
try {
|
|
|
List<String> titles = Lists.newArrayList("姓名", "性别", "年龄", "出生日期", "科室", "科别", "病区", "床号", "住院号",
|
|
|
"单位或地址", "联系电话", "初步诊断", "临床诊断", "病情摘要", "主要症状", "体格检查", "辅助检查", "告知医师签名",
|
|
|
- "告知时间", "患方意见", "患方签名", "手印说明", "与患者关系", "患者(或被授权人)签名与患方关系", "医师签名", "时间", "签字时间");
|
|
|
- String html = args[0].replace(" "," ");
|
|
|
+ "告知时间", "患方意见", "患方签名", "手印说明", "患者(或被授权人)签名", "与患者关系", "与患方关系", "患者(或被授权人)签名与患方关系", "医师签名", "时间", "时 间", "签字时间");
|
|
|
+ String html = args[0].replace(" ", " ");
|
|
|
String recTitle = args[1];
|
|
|
String recTypeId = args[2];
|
|
|
Document doc = Jsoup.parse(html);
|
|
@@ -37,12 +37,16 @@ public class NHDiYiBeiYuanCriticallyIllNoticeHtmlAnalysis implements NHDiYiBeiYu
|
|
|
structureMap.forEach((key, value) -> structureMap.put(key, value.replace("\n", "")));
|
|
|
String htmlContent = NHDiYiBeiYuanHtmlAnalysisUtil.blockDivToStr(doc.selectFirst("body").child(0).getElementById("main"), true);
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
- if (htmlContent.contains("宁海县第一医院重、危病员通知单(交患方)")) {
|
|
|
- htmlContent = htmlContent.substring(0, htmlContent.indexOf("宁海县第一医院重、危病员通知单(交患方)"));
|
|
|
+ if (htmlContent.contains("宁海县第一医院医疗健康集团北部医院重、危病员通知单(交患方)")) {
|
|
|
+ htmlContent = htmlContent.substring(0, htmlContent.indexOf("宁海县第一医院医疗健康集团北部医院重、危病员通知单(交患方)"));
|
|
|
}
|
|
|
htmlContent = htmlContent.replaceAll("[ ]", " ").replace("--", "");
|
|
|
CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
}
|
|
|
+ if (structureMap.containsKey("时间") && structureMap.get("时间").replace(" ", "").contains("时间")) {
|
|
|
+ String dateStr = structureMap.get("时间").replace(" ", "");
|
|
|
+ structureMap.put("医生签名时间", dateStr.substring(0, dateStr.indexOf("时间")));
|
|
|
+ }
|
|
|
CommonAnalysisUtil.extractDateByTitle(structureMap, "告知时间");
|
|
|
NHDiYiBeiYuanHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, structureMap);
|
|
|
} catch (Exception e) {
|