|
@@ -0,0 +1,41 @@
|
|
|
+package com.lantone.qc.trans.changx;
|
|
|
+
|
|
|
+import com.google.common.collect.Lists;
|
|
|
+import com.lantone.qc.pub.model.doc.CrisisValueReportDoc;
|
|
|
+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: 危急值记录文档生成
|
|
|
+ * @author: rengb
|
|
|
+ * @time: 2020/3/19 19:41
|
|
|
+ */
|
|
|
+public class ChangxCrisisValueReportDocTrans extends ModelDocTrans {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<CrisisValueReportDoc> extract(MedrecVo medrecVo) {
|
|
|
+ List<CrisisValueReportDoc> 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.crisisValueReport : medrecVo.getLabel(),
|
|
|
+ content
|
|
|
+ );
|
|
|
+
|
|
|
+ CrisisValueReportDoc crisisValueReportDoc = ModelDocGenerate.crisisValueReportDocGen(structureMap);
|
|
|
+ crisisValueReportDoc.setText(content);
|
|
|
+ retList.add(crisisValueReportDoc);
|
|
|
+ });
|
|
|
+ return retList;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|