|
@@ -1,6 +1,16 @@
|
|
|
package com.lantone.qc.trans.changx;
|
|
|
|
|
|
+import com.google.common.collect.Lists;
|
|
|
+import com.lantone.qc.pub.model.doc.ThreeLevelWardDoc;
|
|
|
+import com.lantone.qc.pub.model.keys.ModelStandardKeys;
|
|
|
+import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
|
+import com.lantone.qc.pub.util.ListUtil;
|
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
|
+import com.lantone.qc.trans.comsis.ModelDocGenerate;
|
|
|
+import com.lantone.qc.trans.comsis.Preproc;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @Description: 查房记录文档生成
|
|
@@ -8,4 +18,24 @@ import com.lantone.qc.trans.ModelDocTrans;
|
|
|
* @time: 2020/3/17 13:27
|
|
|
*/
|
|
|
public class ChangxThreeLevelWardDocTrans extends ModelDocTrans {
|
|
|
-}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<ThreeLevelWardDoc> extract(MedrecVo medrecVo) {
|
|
|
+ List<ThreeLevelWardDoc> retList = Lists.newArrayList();
|
|
|
+ List<String> contents = (List) medrecVo.getContent().get("content");
|
|
|
+ contents.forEach(content -> {
|
|
|
+ Map<String, String> structureMap =
|
|
|
+ Preproc.extract_doc_pub(
|
|
|
+ false,
|
|
|
+ ListUtil.isEmpty(medrecVo.getLabel()) ? ModelStandardKeys.threeLevelWard : medrecVo.getLabel(),
|
|
|
+ content
|
|
|
+ );
|
|
|
+
|
|
|
+ ThreeLevelWardDoc threeLevelWardDoc = ModelDocGenerate.threeLevelWardDocGen(structureMap);
|
|
|
+ threeLevelWardDoc.setText(content);
|
|
|
+ retList.add(threeLevelWardDoc);
|
|
|
+ });
|
|
|
+ return retList;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|