|
@@ -3,7 +3,6 @@ package com.lantone.qc.trans.beilun.util;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Maps;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -14,8 +13,6 @@ import java.util.Map;
|
|
|
* @time: 2020/9/12 13:53
|
|
|
*/
|
|
|
public class BeiLunConsultationHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
- @Autowired
|
|
|
- CommonAnalysisUtil commonAnalysisUtil;
|
|
|
|
|
|
@Override
|
|
|
public Map<String, String> analysis(String... args) {
|
|
@@ -29,18 +26,18 @@ public class BeiLunConsultationHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
String htmlContent = null;
|
|
|
switch (recTitle) {
|
|
|
case "377":
|
|
|
- htmlContent = commonAnalysisUtil.html2String(html);
|
|
|
+ htmlContent = CommonAnalysisUtil.html2String(html);
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
htmlContent = htmlContent.replaceAll("[ ]", " ");
|
|
|
- commonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
+ CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
}
|
|
|
structureMap.put("rec_title=", recTitle);
|
|
|
break;
|
|
|
case "7883":
|
|
|
- htmlContent = commonAnalysisUtil.html2String(html);
|
|
|
+ htmlContent = CommonAnalysisUtil.html2String(html);
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
htmlContent = htmlContent.replaceAll("[ ]", " ");
|
|
|
- commonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
+ CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
}
|
|
|
if (StringUtil.isNotBlank(structureMap.get("会诊时间"))) {
|
|
|
String[] strArr = structureMap.get("会诊时间").split(" ");
|
|
@@ -54,24 +51,24 @@ public class BeiLunConsultationHtmlAnalysis implements BeiLunHtmlAnalysis {
|
|
|
"申请科室", "入院/首诊时间", "住院号", "病情概述(含主诉、病史、诊断、诊治过程等)", "拟申请MDT时间、地点",
|
|
|
"拟请MDT参加科室", "MDT目的", "申请人签名", "申请递交时间", "科主任签字", "专家诊治建议", "专家科室", "签名",
|
|
|
"填写时间", "主持科室小结(MDT的最终诊治决议)", "科主任(主持人)签名", "记录人(主管医师)签字", "日期");
|
|
|
- htmlContent = commonAnalysisUtil.html2String(html);
|
|
|
+ htmlContent = CommonAnalysisUtil.html2String(html);
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
htmlContent = htmlContent.replaceAll("[ ]", " ");
|
|
|
- commonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
+ CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
}
|
|
|
structureMap.put("rec_title=", recTitle);
|
|
|
break;
|
|
|
default:
|
|
|
- htmlContent = commonAnalysisUtil.html2String(html);
|
|
|
+ htmlContent = CommonAnalysisUtil.html2String(html);
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
htmlContent = htmlContent.replaceAll("[ ]", " ");
|
|
|
- commonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
+ CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
}
|
|
|
structureMap.put("rec_title=", "371");
|
|
|
break;
|
|
|
}
|
|
|
- commonAnalysisUtil.extractDateByTitle(structureMap, "会诊到达时间");
|
|
|
- commonAnalysisUtil.processType(structureMap, "会诊类型");
|
|
|
+ CommonAnalysisUtil.extractDateByTitle(structureMap, "会诊到达时间");
|
|
|
+ CommonAnalysisUtil.processType(structureMap, "会诊类型");
|
|
|
return structureMap;
|
|
|
}
|
|
|
|