|
@@ -3,6 +3,7 @@ package com.lantone.qc.trans.changx;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.lantone.qc.pub.model.doc.DoctorAdviceDoc;
|
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
|
+import com.lantone.qc.pub.util.FastJsonUtils;
|
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -18,9 +19,9 @@ public class ChangxDoctorAdviceDocTrans extends ModelDocTrans {
|
|
|
@Override
|
|
|
public List<DoctorAdviceDoc> extract(MedrecVo medrecVo) {
|
|
|
List<DoctorAdviceDoc> retList = Lists.newArrayList();
|
|
|
- List<Map<String, String>> contents = (List) medrecVo.getContent().get("content");
|
|
|
+ List<String> contents = (List) medrecVo.getContent().get("content");
|
|
|
contents.forEach(content -> {
|
|
|
- retList.add(getDoctorAdviceDoc(content));
|
|
|
+ retList.add(getDoctorAdviceDoc((Map) FastJsonUtils.getJsonToMap(content)));
|
|
|
});
|
|
|
return retList;
|
|
|
}
|