|
@@ -37,8 +37,8 @@ public class QiYuanFirstCourseRecordDocTrans extends ModelDocTrans {
|
|
Map<String, String> sourceMap = QiYuanXmlUtil.xmlToMap(content);
|
|
Map<String, String> sourceMap = QiYuanXmlUtil.xmlToMap(content);
|
|
// sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
// sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
sourceMap.put("modeId",ModuleMappingUtil.getDeptModuleId(modeId));
|
|
sourceMap.put("modeId",ModuleMappingUtil.getDeptModuleId(modeId));
|
|
- List<String> titles = Lists.newArrayList("病历记录时间", "一、病史特点", "一、病例特点", "初步诊断","初步西医诊断","初步中医诊断", "入院诊断"
|
|
|
|
- , "鉴别诊断", "诊断依据", "诊疗计划", "既往史", "体格检查","精神检查","辅助检查");
|
|
|
|
|
|
+ List<String> titles = Lists.newArrayList("病历记录时间", "一、病史特点", "一、病例特点", "初步诊断","初步西医诊断","初步中医诊断", "入院诊断","依据如下"
|
|
|
|
+ , "鉴别诊断", "诊断依据", "诊疗计划");
|
|
String text = sourceMap.get("原始文本");
|
|
String text = sourceMap.get("原始文本");
|
|
titles = CommonAnalysisUtil.sortTitles(titles, text);
|
|
titles = CommonAnalysisUtil.sortTitles(titles, text);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
@@ -62,6 +62,11 @@ public class QiYuanFirstCourseRecordDocTrans extends ModelDocTrans {
|
|
if (sourceMap.containsKey("诊疗计划")) {
|
|
if (sourceMap.containsKey("诊疗计划")) {
|
|
sourceMap.put("诊疗计划", sourceMap.get("诊疗计划").split("记录医师")[0]);
|
|
sourceMap.put("诊疗计划", sourceMap.get("诊疗计划").split("记录医师")[0]);
|
|
}
|
|
}
|
|
|
|
+ if (!sourceMap.containsKey("初步诊断")){
|
|
|
|
+ if (sourceMap.containsKey("初步中医诊断")||sourceMap.containsKey("初步西医诊断")){
|
|
|
|
+ sourceMap.put("初步诊断","初步中医诊断: "+sourceMap.get("初步中医诊断")+" 初步西医诊断: "+sourceMap.get("初步西医诊断"));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
sourceMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
sourceMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
sourceMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
sourceMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts, modeId);
|
|
structureMap = OrdinaryAssistant.mapKeyContrast(sourceMap, keyContrasts, modeId);
|
|
@@ -94,7 +99,10 @@ public class QiYuanFirstCourseRecordDocTrans extends ModelDocTrans {
|
|
"病程时间=病历日期",
|
|
"病程时间=病历日期",
|
|
"记录医师=记录医生",
|
|
"记录医师=记录医生",
|
|
"病例日期=病历日期",
|
|
"病例日期=病历日期",
|
|
- "一般情况=病历内容"
|
|
|
|
|
|
+ "一般情况=病历内容",
|
|
|
|
+ "一、病史特点=病史特点",
|
|
|
|
+ "入院诊断=初步诊断",
|
|
|
|
+ "依据如下=诊断依据"
|
|
);
|
|
);
|
|
|
|
|
|
}
|
|
}
|