|
@@ -25,19 +25,19 @@ public class ShenZhenzxwsyFirstCourseRecordHtmlAnalysis implements ShenZhenzxwsy
|
|
|
public Map<String, String> analysis(String... args) {
|
|
|
Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
|
try {
|
|
|
- List<String> titles = Lists.newArrayList("一. 病例特点", "二. 拟诊讨论", "三. 诊疗计划", "三、诊疗计划", "三、根据人民卫生出版社《妇产科学》第九版拟定如下诊疗计划", "医师签名");
|
|
|
+ List<String> titles = Lists.newArrayList("病例特点", "初步诊断", "拟诊讨论(诊断依据及鉴别诊断)", "一.诊断依据", "二.鉴别诊断", "诊疗计划", "预后分析", "三、根据人民卫生出版社《妇产科学》第九版拟定如下诊疗计划", "医师签名");
|
|
|
Document doc = Jsoup.parse(args[0].replace(" ", " "));
|
|
|
String htmlContent = ShenZhenzxwsyHtmlAnalysisUtil.blockDivToStr(doc.selectFirst("body").child(0), true);
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
}
|
|
|
- if (structureMap.containsKey("二.拟诊讨论")) {
|
|
|
- List<String> listTitle = CommonAnalysisUtil.sortTitles(
|
|
|
- Lists.newArrayList("1.初步诊断", "2.诊断依据", "3.鉴别诊断"
|
|
|
- , "诊断依据", "鉴别诊断", "初步诊断"), structureMap.get("二.拟诊讨论")
|
|
|
- );
|
|
|
- CommonAnalysisUtil.cutByTitles(structureMap.get("二.拟诊讨论"), listTitle, 0, structureMap);
|
|
|
- }
|
|
|
+// if (structureMap.containsKey("拟诊讨论(诊断依据及鉴别诊断)")) {
|
|
|
+// List<String> listTitle = CommonAnalysisUtil.sortTitles(
|
|
|
+// Lists.newArrayList("1.初步诊断", "2.诊断依据", "3.鉴别诊断"
|
|
|
+// , "诊断依据", "鉴别诊断", "初步诊断"), structureMap.get("二.拟诊讨论")
|
|
|
+// );
|
|
|
+// CommonAnalysisUtil.cutByTitles(structureMap.get("拟诊讨论(诊断依据及鉴别诊断)"), listTitle, 0, structureMap);
|
|
|
+// }
|
|
|
ShenZhenzxwsyHtmlAnalysisUtil.insertModuleId(modeId, args[2], structureMap);
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage(), e);
|