|
@@ -6,6 +6,7 @@ import com.lantone.qc.pub.util.StringUtil;
|
|
|
import com.lantone.qc.trans.changshaxy.util.comsis.XyCommonAnalysisUtil;
|
|
|
import com.lantone.qc.trans.comsis.CommonAnalysisUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.jsoup.Jsoup;
|
|
|
import org.jsoup.nodes.Document;
|
|
|
|
|
@@ -28,7 +29,11 @@ public class XyConsultationHtmlAnalysis implements XyHtmlAnalysis {
|
|
|
Map<String, String> structureMap = Maps.newLinkedHashMap();
|
|
|
|
|
|
try {
|
|
|
- List<String> titles = Lists.newArrayList("会诊病人姓名", "初步诊断", "会诊目的","申请会诊病室负责人签名", "申请日期", "医务办意见", "主任签名");
|
|
|
+
|
|
|
+// List<String> titles = Lists.newArrayList("会诊病人姓名", "初步诊断", "会诊目的","申请会诊病室负责人签名", "申请日期", "医务办意见", "主任签名");
|
|
|
+ List<String> titles = Lists.newArrayList("会诊病人姓名", "主诉","现病史","既往史","相关检验检查","24h动态",
|
|
|
+ "目前诊断","治疗","主持人","会诊意见回报","总结意见",
|
|
|
+ "初步诊断", "会诊目的","申请会诊病室负责人签名", "申请日期","医师签名","记录人", "医务办意见", "主任签名");
|
|
|
String html = args[0];
|
|
|
String recTitle = args[1];
|
|
|
String recTypeId = args[2];
|
|
@@ -36,10 +41,11 @@ public class XyConsultationHtmlAnalysis implements XyHtmlAnalysis {
|
|
|
Document doc = Jsoup.parse(html);
|
|
|
if ("2001-14".equals(recTypeId)) {
|
|
|
htmlContent = CommonAnalysisUtil.html2String(html);
|
|
|
- titles = Lists.newArrayList("会诊意见回报","会诊意见执行情况","会诊诊断","诊断为","会诊建议","医师签名");
|
|
|
+// titles = Lists.newArrayList("会诊意见回报","会诊意见执行情况","会诊诊断","诊断为","会诊建议","医师签名");
|
|
|
if (StringUtil.isNotBlank(htmlContent)) {
|
|
|
XyCommonAnalysisUtil.extractWardInfo(recTitle, htmlContent, structureMap);
|
|
|
XyCommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
+
|
|
|
}
|
|
|
} else {
|
|
|
htmlContent = XyHtmlAnalysisUtil.blockDivToStr(doc.selectFirst("body"), true).replace(" ", "");
|
|
@@ -53,6 +59,10 @@ public class XyConsultationHtmlAnalysis implements XyHtmlAnalysis {
|
|
|
CommonAnalysisUtil.html2StructureMap(titles, htmlContent, structureMap);
|
|
|
}
|
|
|
}
|
|
|
+ if (StringUtils.isNotEmpty(structureMap.get("医师签名"))&&structureMap.get("医师签名").contains("记录人")){
|
|
|
+ String[] strings = structureMap.get("医师签名").split("记录人");
|
|
|
+ structureMap.put("医师签名",strings[0]);
|
|
|
+ }
|
|
|
XyCommonAnalysisUtil.processType(structureMap, "会诊类型");
|
|
|
XyHtmlAnalysisUtil.insertModuleId(modeId, recTypeId, structureMap);
|
|
|
} catch (Exception e) {
|