|
@@ -2,9 +2,13 @@ package com.lantone.qc.trans.beilun;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
import com.lantone.qc.dbanaly.facade.changx.CxXmlUtil;
|
|
import com.lantone.qc.dbanaly.facade.changx.CxXmlUtil;
|
|
|
|
+import com.lantone.qc.pub.model.doc.DeathCaseDiscussDoc;
|
|
import com.lantone.qc.pub.model.doc.DifficultCaseDiscussDoc;
|
|
import com.lantone.qc.pub.model.doc.DifficultCaseDiscussDoc;
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
|
|
+import com.lantone.qc.trans.beilun.util.BeiLunDeathCaseDiscussHtmlAnalysis;
|
|
|
|
+import com.lantone.qc.trans.beilun.util.BeiLunDifficultCaseDiscussHtmlAnalysis;
|
|
|
|
+import com.lantone.qc.trans.beilun.util.BeiLunHtmlAnalysis;
|
|
import com.lantone.qc.trans.comsis.ModelDocGenerate;
|
|
import com.lantone.qc.trans.comsis.ModelDocGenerate;
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
import com.lantone.qc.trans.comsis.Preproc;
|
|
import com.lantone.qc.trans.comsis.Preproc;
|
|
@@ -31,18 +35,14 @@ public class BeiLunDifficultCaseDiscussDocTrans extends ModelDocTrans {
|
|
|
|
|
|
private DifficultCaseDiscussDoc getDifficultCaseDiscussDoc(Map<String, Object> contentMap) {
|
|
private DifficultCaseDiscussDoc getDifficultCaseDiscussDoc(Map<String, Object> contentMap) {
|
|
String content = contentMap.get("xmlText").toString();
|
|
String content = contentMap.get("xmlText").toString();
|
|
- Map<String, String> xmlNodeValueMap = CxXmlUtil.firstLevelNodeValue(content);
|
|
|
|
- xmlNodeValueMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
|
- xmlNodeValueMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
|
|
- Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(xmlNodeValueMap, keyContrasts);
|
|
|
|
|
|
+ String recTitle = contentMap.get("recTitle").toString();
|
|
|
|
+ String recTypeId = contentMap.get("recTypeId").toString();
|
|
|
|
+ BeiLunHtmlAnalysis beiLunHtmlAnalysis = new BeiLunDifficultCaseDiscussHtmlAnalysis();
|
|
|
|
+ Map<String, String> sourceMap = beiLunHtmlAnalysis.analysis(content, recTitle, recTypeId);
|
|
|
|
+ Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts);
|
|
|
|
|
|
- String text = CxXmlUtil.getXmlText(content);
|
|
|
|
- Map<String, String> cutWordMap = Preproc.getCutWordMap(true, sourceTitles, text);
|
|
|
|
- cutWordMap.putAll(structureMap);
|
|
|
|
-
|
|
|
|
- DifficultCaseDiscussDoc difficultCaseDiscussDoc = ModelDocGenerate.difficultCaseDiscussDocGen(cutWordMap);
|
|
|
|
- difficultCaseDiscussDoc.setText(content);
|
|
|
|
- difficultCaseDiscussDoc.setPageData((Map) cutWordMap);
|
|
|
|
|
|
+ DifficultCaseDiscussDoc difficultCaseDiscussDoc = ModelDocGenerate.difficultCaseDiscussDocGen(structureMap);
|
|
|
|
+ difficultCaseDiscussDoc.setPageData((Map) structureMap);
|
|
|
|
|
|
return difficultCaseDiscussDoc;
|
|
return difficultCaseDiscussDoc;
|
|
}
|
|
}
|
|
@@ -62,11 +62,11 @@ public class BeiLunDifficultCaseDiscussDocTrans extends ModelDocTrans {
|
|
);
|
|
);
|
|
|
|
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
- "讨论日期=讨论时间",
|
|
|
|
- "人员及专业技术职务++++专业技术职务=参加讨论者",
|
|
|
|
- "患者病情汇报=简要病情",
|
|
|
|
- "讨论结果++++主持人小结意见=结论",
|
|
|
|
- "签名++++=签名",
|
|
|
|
|
|
+ "讨论日期=讨论时间",
|
|
|
|
+ "人员及专业技术职务++++专业技术职务=参加讨论者",
|
|
|
|
+ "患者病情汇报=简要病情",
|
|
|
|
+ "讨论结果++++主持人小结意见=结论",
|
|
|
|
+ "签名++++=签名",
|
|
"患者病情汇报=讨论内容"
|
|
"患者病情汇报=讨论内容"
|
|
);
|
|
);
|
|
|
|
|