|
@@ -0,0 +1,34 @@
|
|
|
+package com.lantone.qc.trans.beilun.util;
|
|
|
+
|
|
|
+import com.google.common.collect.Lists;
|
|
|
+import com.google.common.collect.Maps;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 病危(重)通知单html解析
|
|
|
+ * @author: HUJING
|
|
|
+ * @time: 2020/9/14 15:28
|
|
|
+ */
|
|
|
+public class BeiLunCriticallyIllNoticeHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
+ @Autowired
|
|
|
+ CommonAnalysisUtil commonAnalysisUtil;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Map<String, String> analysis(String... args) {
|
|
|
+ List<String> titles = Lists.newArrayList("临床诊断", "主要症状", "体格检查", "辅助检查", "告知医师签名",
|
|
|
+ "告知时间", "患方意见", "患方签名", "手印说明", "与患者关系", "签字时间");
|
|
|
+ String html = args[0];
|
|
|
+ String recTitle = args[1];
|
|
|
+ Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
|
+ List<String> htmlText = commonAnalysisUtil.html2List(html, true);
|
|
|
+ commonAnalysisUtil.removeRepeat(htmlText);
|
|
|
+ commonAnalysisUtil.html2StructureMap(titles, htmlText, structureMap);
|
|
|
+ commonAnalysisUtil.extractDateByTitle(structureMap, "告知时间");
|
|
|
+ structureMap.put("rec_title=", "405");
|
|
|
+ return structureMap;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|