|
@@ -7,6 +7,7 @@ import com.lantone.qc.pub.model.doc.LeaveHospitalDoc;
|
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
|
import com.lantone.qc.pub.util.FastJsonUtils;
|
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
|
+import com.lantone.qc.trans.comsis.CommonAnalysisUtil;
|
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -29,6 +30,11 @@ public class YiWuLeaveHospitalDocTrans extends ModelDocTrans {
|
|
|
structureMap = (Map) FastJsonUtils.getJsonToMap(content);
|
|
|
} else {
|
|
|
Map<String, String> sourceMap = YiWuXmlUtil.xmlToMap(content);
|
|
|
+ List<String> titles = Lists.newArrayList( "入院时间","出院时间","住院天数","入院诊断","出院诊断","出院诊断"
|
|
|
+ ,"入院情况","住院经过","出院情况","出院医嘱","医师签名","签名时间","主诉","诊疗过程","医师签名时间");
|
|
|
+ String text = sourceMap.get("原始文本");
|
|
|
+ List<String> sortTitles = CommonAnalysisUtil.sortTitles(titles, text);
|
|
|
+ CommonAnalysisUtil.cutByTitles(text, sortTitles, 0, sourceMap);
|
|
|
sourceMap.put("mode_id", ModuleMappingUtil.getDeptModuleId(modeId));
|
|
|
sourceMap.put("mode_id=" + contentMap.get("modeId").toString(), "");
|
|
|
sourceMap.put("rec_title=" + contentMap.get("recTitle").toString(), "");
|
|
@@ -59,7 +65,8 @@ public class YiWuLeaveHospitalDocTrans extends ModelDocTrans {
|
|
|
"初步诊断=入院诊断",
|
|
|
"住院经过=诊治经过",
|
|
|
"患者签名日期=记录时间",
|
|
|
- "医师签名=记录医生"
|
|
|
+ "医师签名=记录医生",
|
|
|
+ "签名时间=记录时间"
|
|
|
);
|
|
|
|
|
|
}
|