|
@@ -3,8 +3,8 @@ package com.lantone.qc.trans.yiwu;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Maps;
|
|
|
import com.google.common.collect.Sets;
|
|
|
-import com.lantone.qc.dbanaly.facade.taizhou.TzXmlUtil;
|
|
|
import com.lantone.qc.dbanaly.facade.yiwu.YiWuXmlUtil;
|
|
|
+import com.lantone.qc.dbanaly.util.ModuleMappingUtil;
|
|
|
import com.lantone.qc.pub.model.doc.operation.OperationDiscussionDoc;
|
|
|
import com.lantone.qc.pub.model.doc.operation.OperationDoc;
|
|
|
import com.lantone.qc.pub.model.doc.operation.OperationInformedConsentDoc;
|
|
@@ -102,27 +102,28 @@ public class YiWuOperationDocTrans extends ModelDocTrans {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
|
} else {
|
|
|
Map<String, String> sourceMap = YiWuXmlUtil.xmlToMap(content);
|
|
|
- List<String> titles = Lists.newArrayList("手术开始时间","术中诊断","麻醉方式","手术方式",
|
|
|
- "手术简要经过(包括术中所见)","术后诊疗计划(处理措施)","术后注意观察事项","医师签名",
|
|
|
- "签名时间","患者或代理人签名","签名时间");
|
|
|
+ sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
|
+ List<String> titles = Lists.newArrayList("手术开始时间", "术中诊断", "麻醉方式", "手术方式",
|
|
|
+ "手术简要经过(包括术中所见)", "术后诊疗计划(处理措施)", "术后注意观察事项", "医师签名",
|
|
|
+ "签名时间", "患者或代理人签名", "签名时间");
|
|
|
String text = sourceMap.get("原始文本");
|
|
|
- List<String> sortTitles=CommonAnalysisUtil.sortTitles(titles,text);
|
|
|
- CommonAnalysisUtil.cutByTitles(text,sortTitles,0,sourceMap);
|
|
|
+ List<String> sortTitles = CommonAnalysisUtil.sortTitles(titles, text);
|
|
|
+ CommonAnalysisUtil.cutByTitles(text, sortTitles, 0, sourceMap);
|
|
|
sourceMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
sourceMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
|
int index = 0;
|
|
|
- if(text.contains("手术开始时间")){
|
|
|
- index=text.indexOf("手术开始时间")+8;
|
|
|
+ if (text.contains("手术开始时间")) {
|
|
|
+ index = text.indexOf("手术开始时间") + 8;
|
|
|
}
|
|
|
- String timevalue=text.substring(index,index+18);
|
|
|
- sourceMap.put("手术开始时间",timevalue);
|
|
|
- String [] str = new String[3];
|
|
|
- String s="";
|
|
|
- if(text.contains("术中诊断")){
|
|
|
- str=text.split("术中诊断");
|
|
|
- s=str[1].replace(":","");
|
|
|
+ String timevalue = text.substring(index, index + 18);
|
|
|
+ sourceMap.put("手术开始时间", timevalue);
|
|
|
+ String[] str = new String[3];
|
|
|
+ String s = "";
|
|
|
+ if (text.contains("术中诊断")) {
|
|
|
+ str = text.split("术中诊断");
|
|
|
+ s = str[1].replace(":", "");
|
|
|
}
|
|
|
- sourceMap.put("术中诊断",s);
|
|
|
+ sourceMap.put("术中诊断", s);
|
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, operationDiscussion_keyContrasts, modeId);
|
|
|
|
|
|
}
|
|
@@ -181,14 +182,15 @@ public class YiWuOperationDocTrans extends ModelDocTrans {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
|
} else {
|
|
|
Map<String, String> sourceMap = YiWuXmlUtil.xmlToMap(content);
|
|
|
- List<String> titles = Lists.newArrayList("手术开始时间","手术结束时间","手术前诊断","术(中)后诊断",
|
|
|
- "手术名称","手术医师","助手医师","第一助手","洗手护士","麻醉方式","手术人员",
|
|
|
- "麻醉医师","手术护士","巡回护士","手术中用药(化疗等药物)","手术切口类别(可选)","术中出血量","输血量","术中输血量"
|
|
|
- ,"围术期并发症","手术切除标本","冰冻切片结果","标本件数","是否有植入物","手术步骤","记录者签名","记录日期","术中失血量",
|
|
|
- "手术简要经过(包括“术中所见”)","医师签名","时间","患者或代理人签名","术中并发症","日 期");
|
|
|
+ sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
|
+ List<String> titles = Lists.newArrayList("手术开始时间", "手术结束时间", "手术前诊断", "术(中)后诊断",
|
|
|
+ "手术名称", "手术医师", "助手医师", "第一助手", "洗手护士", "麻醉方式", "手术人员",
|
|
|
+ "麻醉医师", "手术护士", "巡回护士", "手术中用药(化疗等药物)", "手术切口类别(可选)", "术中出血量", "输血量", "术中输血量"
|
|
|
+ , "围术期并发症", "手术切除标本", "冰冻切片结果", "标本件数", "是否有植入物", "手术步骤", "记录者签名", "记录日期", "术中失血量",
|
|
|
+ "手术简要经过(包括“术中所见”)", "医师签名", "时间", "患者或代理人签名", "术中并发症", "日 期");
|
|
|
String text = sourceMap.get("原始文本");
|
|
|
- List<String> sortTitles=CommonAnalysisUtil.sortTitles(titles,text);
|
|
|
- CommonAnalysisUtil.cutByTitles(text,sortTitles,0,sourceMap);
|
|
|
+ List<String> sortTitles = CommonAnalysisUtil.sortTitles(titles, text);
|
|
|
+ CommonAnalysisUtil.cutByTitles(text, sortTitles, 0, sourceMap);
|
|
|
sourceMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
sourceMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, operationRecord_keyContrasts, modeId);
|
|
@@ -265,12 +267,13 @@ public class YiWuOperationDocTrans extends ModelDocTrans {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
|
} else {
|
|
|
Map<String, String> sourceMap = YiWuXmlUtil.xmlToMap(content);
|
|
|
- List<String> titles = Lists.newArrayList("讨论时间","讨论地点","主持人","经治医师",
|
|
|
- "参加人员及技术职称","讨论方式","讨论记录","主持人签名","记录人签名","病史摘要","术前诊断","术前准备"
|
|
|
- ,"拟施手术","拟施麻醉","术中注意点","家属谈话内容","医生签名","日 期");
|
|
|
+ sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
|
+ List<String> titles = Lists.newArrayList("讨论时间", "讨论地点", "主持人", "经治医师",
|
|
|
+ "参加人员及技术职称", "讨论方式", "讨论记录", "主持人签名", "记录人签名", "病史摘要", "术前诊断", "术前准备"
|
|
|
+ , "拟施手术", "拟施麻醉", "术中注意点", "家属谈话内容", "医生签名", "日 期");
|
|
|
String text = sourceMap.get("原始文本");
|
|
|
- List<String> sortTitles=CommonAnalysisUtil.sortTitles(titles,text);
|
|
|
- CommonAnalysisUtil.cutByTitles(text,sortTitles,0,sourceMap);
|
|
|
+ List<String> sortTitles = CommonAnalysisUtil.sortTitles(titles, text);
|
|
|
+ CommonAnalysisUtil.cutByTitles(text, sortTitles, 0, sourceMap);
|
|
|
sourceMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
sourceMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, preoperativeDiscussion_keyContrasts, modeId);
|
|
@@ -345,6 +348,7 @@ public class YiWuOperationDocTrans extends ModelDocTrans {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
|
} else {
|
|
|
Map<String, String> sourceMap = YiWuXmlUtil.xmlToMap(content);
|
|
|
+ sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
|
sourceMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
sourceMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, operationInformedConsent_keyContrasts, modeId);
|
|
@@ -403,6 +407,7 @@ public class YiWuOperationDocTrans extends ModelDocTrans {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
|
} else {
|
|
|
Map<String, String> sourceMap = YiWuXmlUtil.xmlToMap(content);
|
|
|
+ sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
|
sourceMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
sourceMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, operationSafetyChecklist_keyContrasts, modeId);
|