|
@@ -1,11 +1,12 @@
|
|
|
package com.lantone.qc.trans.taizhou;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
+import com.google.common.collect.Maps;
|
|
|
+import com.lantone.qc.pub.Content;
|
|
|
import com.lantone.qc.pub.model.doc.FirstPageRecordDoc;
|
|
|
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.OrdinaryAssistant;
|
|
|
-import com.lantone.qc.trans.taizhou.util.TzXmlUtil;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -19,14 +20,32 @@ public class TaiZhouFirstPageRecordDocTrans extends ModelDocTrans {
|
|
|
|
|
|
@Override
|
|
|
public FirstPageRecordDoc extract(MedrecVo medrecVo) {
|
|
|
- String content = ((List<String>) medrecVo.getContent().get("content")).get(0);
|
|
|
-
|
|
|
- Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(TzXmlUtil.getXmlToMapForTZ(content), keyContrasts);
|
|
|
|
|
|
+ // 与长兴一直,直接传json
|
|
|
+ Map<String, String> content = (Map) medrecVo.getContent();
|
|
|
FirstPageRecordDoc firstPageRecordDoc = new FirstPageRecordDoc();
|
|
|
- firstPageRecordDoc.setStructureMap(structureMap);
|
|
|
+ firstPageRecordDoc.setStructureMap(content);
|
|
|
+
|
|
|
+ Map<String, Object> structureExtMap = Maps.newHashMap();
|
|
|
+ structureExtMap.putAll(content);
|
|
|
+ structureExtMap.put(Content.diagnose_cts, FastJsonUtils.getJsonToBean(content.get(Content.diagnose_cts), Object.class));
|
|
|
+ structureExtMap.put(Content.outpatientEmergencyDiag, FastJsonUtils.getJsonToBean(content.get(Content.outpatientEmergencyDiag), Object.class));
|
|
|
+ structureExtMap.put(Content.operative_information, FastJsonUtils.getJsonToBean(content.get(Content.operative_information), Object.class));
|
|
|
+ structureExtMap.put(Content.dischargeDiag, FastJsonUtils.getJsonToBean(content.get(Content.dischargeDiag), Object.class));
|
|
|
+ structureExtMap.put(Content.pathologyDiagnose, FastJsonUtils.getJsonToBean(content.get(Content.pathologyDiagnose), Object.class));
|
|
|
+ firstPageRecordDoc.setStructureExtMap(structureExtMap);
|
|
|
+ firstPageRecordDoc.setPageData(medrecVo.getContent());
|
|
|
|
|
|
return firstPageRecordDoc;
|
|
|
+
|
|
|
+// String content = ((List<String>) medrecVo.getContent().get("content")).get(0);
|
|
|
+//
|
|
|
+// Map<String, String> structureMap = OrdinaryAssistant.mapKeyContrast(TzXmlUtil.getXmlToMapForTZ(content), keyContrasts);
|
|
|
+//
|
|
|
+// FirstPageRecordDoc firstPageRecordDoc = new FirstPageRecordDoc();
|
|
|
+// firstPageRecordDoc.setStructureMap(structureMap);
|
|
|
+//
|
|
|
+// return firstPageRecordDoc;
|
|
|
}
|
|
|
|
|
|
private List<String> keyContrasts = Lists.newArrayList(
|