|
@@ -1,12 +1,17 @@
|
|
|
package com.lantone.qc.trans.changx;
|
|
|
|
|
|
import com.google.common.collect.Maps;
|
|
|
+import com.google.gson.JsonArray;
|
|
|
+import com.google.gson.JsonObject;
|
|
|
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 java.util.HashMap;
|
|
|
+import java.util.Iterator;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -30,8 +35,20 @@ public class ChangxFirstPageRecordDocTrans extends ModelDocTrans {
|
|
|
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);
|
|
|
+ //病案首页出院诊断页面信息只保留主要诊断和其他诊断
|
|
|
+ List<Map<String,String>> list = (List<Map<String, String>>) FastJsonUtils.getJsonToBean(content.get(Content.dischargeDiag), Object.class);
|
|
|
+ Iterator<Map<String,String>> iterator = list.iterator();
|
|
|
+ Map<String,String> map = new HashMap<>();
|
|
|
+ while (iterator.hasNext()) {
|
|
|
+ map = new HashMap<>();
|
|
|
+ map = iterator.next();
|
|
|
+ if(!((map.get("诊断类别") != null && map.get("诊断类别").equals("主要诊断"))
|
|
|
+ || (map.get("诊断类别") != null && map.get("诊断类别").equals("其他诊断")))){
|
|
|
+ iterator.remove();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ medrecVo.getContent().put("出院诊断",list.toString());
|
|
|
firstPageRecordDoc.setPageData(medrecVo.getContent());
|
|
|
-
|
|
|
return firstPageRecordDoc;
|
|
|
}
|
|
|
|