|
@@ -3,10 +3,12 @@ package com.lantone.qc.trans.taizhou;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
|
|
import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
|
|
+import com.lantone.qc.pub.util.MapUtil;
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
import com.lantone.qc.trans.taizhou.util.TzXmlUtil;
|
|
import com.lantone.qc.trans.taizhou.util.TzXmlUtil;
|
|
|
|
|
|
|
|
+import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -23,6 +25,44 @@ public class TaiZhouFirstCourseRecordDocTrans extends ModelDocTrans {
|
|
|
|
|
|
Map<String, String> sourceMap = TzXmlUtil.getXmlToMapForTZ(content); // xml原始数据给华卓
|
|
Map<String, String> sourceMap = TzXmlUtil.getXmlToMapForTZ(content); // xml原始数据给华卓
|
|
Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts);
|
|
Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts);
|
|
|
|
+ // 病例特点=主诉+现病史-发病情况+专科检查+实验室检查+影像学检查+辅助检查结果+呼吸+脉搏+体温+血压
|
|
|
|
+ structureMap.put("病例特点", MapUtil.getSelectString(structureMap, Arrays.asList(
|
|
|
|
+ "主诉",
|
|
|
|
+ "现病史-发病情况",
|
|
|
|
+ "专科检查",
|
|
|
|
+ "实验室检查",
|
|
|
|
+ "影像学检查",
|
|
|
|
+ "辅助检查结果",
|
|
|
|
+ "呼吸",
|
|
|
|
+ "脉搏",
|
|
|
|
+ "体温",
|
|
|
|
+ "血压"
|
|
|
|
+ ))
|
|
|
|
+ );
|
|
|
|
+ // 诊断依据=性别+年龄+主诉+现病史-发病情况+专科检查+实验室检查+影像学检查+辅助检查结果+呼吸+脉搏+体温+血压
|
|
|
|
+ structureMap.put("诊断依据", MapUtil.getSelectString(structureMap, Arrays.asList(
|
|
|
|
+ "性别",
|
|
|
|
+ "年龄",
|
|
|
|
+ "主诉",
|
|
|
|
+ "现病史-发病情况",
|
|
|
|
+ "专科检查",
|
|
|
|
+ "实验室检查",
|
|
|
|
+ "影像学检查",
|
|
|
|
+ "辅助检查结果",
|
|
|
|
+ "呼吸",
|
|
|
|
+ "脉搏",
|
|
|
|
+ "体温",
|
|
|
|
+ "血压"
|
|
|
|
+ ))
|
|
|
|
+ );
|
|
|
|
+ // 诊疗计划=检查计划+治疗计划和措施
|
|
|
|
+ structureMap.put("诊疗计划", MapUtil.getSelectString(structureMap, Arrays.asList(
|
|
|
|
+ "检查计划",
|
|
|
|
+ "治疗计划和措施"
|
|
|
|
+ ))
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // 诊疗计划
|
|
FirstCourseRecordDoc firstCourseRecordDoc = new FirstCourseRecordDoc();
|
|
FirstCourseRecordDoc firstCourseRecordDoc = new FirstCourseRecordDoc();
|
|
firstCourseRecordDoc.setText(content);
|
|
firstCourseRecordDoc.setText(content);
|
|
firstCourseRecordDoc.setStructureMap(structureMap);
|
|
firstCourseRecordDoc.setStructureMap(structureMap);
|
|
@@ -31,37 +71,10 @@ public class TaiZhouFirstCourseRecordDocTrans extends ModelDocTrans {
|
|
}
|
|
}
|
|
|
|
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
private List<String> keyContrasts = Lists.newArrayList(
|
|
- "鉴别诊断=",
|
|
|
|
- "检查计划=",
|
|
|
|
- "文书内容=",
|
|
|
|
- "病例特点=",
|
|
|
|
- "诊断依据=",
|
|
|
|
- "诊疗计划=",
|
|
|
|
- "医生=",
|
|
|
|
- "专科检查=",
|
|
|
|
- "拟诊讨论=",
|
|
|
|
- "血压=",
|
|
|
|
- "影像学检查=",
|
|
|
|
- "年龄=",
|
|
|
|
- "治疗计划和措施=",
|
|
|
|
- "主诉=",
|
|
|
|
- "床号=",
|
|
|
|
- "实验室检查=",
|
|
|
|
- "病人基本信息=",
|
|
|
|
- "医疗组长=",
|
|
|
|
- "性别=",
|
|
|
|
- "辅助检查结果=",
|
|
|
|
- "本人姓名=",
|
|
|
|
- "病历号=",
|
|
|
|
- "初步诊断=",
|
|
|
|
- "病历日期=记录时间",
|
|
|
|
- "现病史-发病情况=",
|
|
|
|
- "脉搏=",
|
|
|
|
- "入院日期=",
|
|
|
|
- "呼吸=",
|
|
|
|
- "临床科室=",
|
|
|
|
- "体温=",
|
|
|
|
- "病历状态="
|
|
|
|
|
|
+ "初步诊断=初步诊断",
|
|
|
|
+ "鉴别诊断=鉴别诊断",
|
|
|
|
+ "医生=记录医师",
|
|
|
|
+ "病历日期=记录时间"
|
|
);
|
|
);
|
|
|
|
|
|
}
|
|
}
|