Kaynağa Gözat

医嘱文档添加

rengb 5 yıl önce
ebeveyn
işleme
8de94e25c0

+ 3 - 0
public/src/main/java/com/lantone/qc/pub/model/InputInfo.java

@@ -8,6 +8,7 @@ import com.lantone.qc.pub.model.doc.CriticallyIllNoticeDoc;
 import com.lantone.qc.pub.model.doc.DeathCaseDiscussDoc;
 import com.lantone.qc.pub.model.doc.DeathRecordDoc;
 import com.lantone.qc.pub.model.doc.DifficultCaseDiscussDoc;
+import com.lantone.qc.pub.model.doc.DoctorAdviceDoc;
 import com.lantone.qc.pub.model.doc.DutyShiftSystemDoc;
 import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
 import com.lantone.qc.pub.model.doc.FirstPageRecordDoc;
@@ -57,6 +58,8 @@ public class InputInfo {
     private DeathRecordDoc deathRecordDoc;
     //疑难病例讨论记录
     private List<DifficultCaseDiscussDoc> difficultCaseDiscussDocs = new ArrayList<>();
+    //医嘱信息
+    private List<DoctorAdviceDoc> doctorAdviceDocs = new ArrayList<>();
     //值班交接制度
     private List<DutyShiftSystemDoc> dutyShiftSystemDocs = new ArrayList<>();
     //首次病程录

+ 14 - 0
public/src/main/java/com/lantone/qc/pub/model/doc/DoctorAdviceDoc.java

@@ -0,0 +1,14 @@
+package com.lantone.qc.pub.model.doc;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description: 医嘱信息文档
+ * @author: rengb
+ * @time: 2020/3/20 15:47
+ */
+@Getter
+@Setter
+public class DoctorAdviceDoc extends ModelDoc {
+}

+ 3 - 0
public/src/main/java/com/lantone/qc/pub/model/keys/ModelStandardKeys.java

@@ -153,6 +153,9 @@ public class ModelStandardKeys {
             "结 论"
     );
 
+    //医嘱信息的标准key
+    public static final List<String> doctorAdvice = Lists.newArrayList();
+
     //值班交接制度的标准key
     public static final List<String> dutyShiftSystem = Lists.newArrayList();
 

+ 4 - 0
trans/src/main/java/com/lantone/qc/trans/changx/ChangxDocTrans.java

@@ -49,6 +49,10 @@ public class ChangxDocTrans extends DocTrans {
                 ChangxDifficultCaseDiscussDocTrans difficultCaseDiscussDocTrans = new ChangxDifficultCaseDiscussDocTrans();
                 inputInfo.setDifficultCaseDiscussDocs(difficultCaseDiscussDocTrans.extract(i));
             }
+            if (i.getTitle().equals("医嘱信息")) {
+                ChangxDoctorAdviceDocTrans doctorAdviceDocTrans = new ChangxDoctorAdviceDocTrans();
+                inputInfo.setDoctorAdviceDocs(doctorAdviceDocTrans.extract(i));
+            }
             if (i.getTitle().equals("值班交接制度")) {
                 ChangxDutyShiftSystemDocTrans dutyShiftSystemDocTrans = new ChangxDutyShiftSystemDocTrans();
                 inputInfo.setDutyShiftSystemDocs(dutyShiftSystemDocTrans.extract(i));

+ 41 - 0
trans/src/main/java/com/lantone/qc/trans/changx/ChangxDoctorAdviceDocTrans.java

@@ -0,0 +1,41 @@
+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.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 ChangxDoctorAdviceDocTrans extends ModelDocTrans {
+
+    @Override
+    public List<DoctorAdviceDoc> extract(MedrecVo medrecVo) {
+        List<DoctorAdviceDoc> 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.doctorAdvice : medrecVo.getLabel(),
+                            content
+                    );
+
+            DoctorAdviceDoc doctorAdviceDoc = ModelDocGenerate.doctorAdviceDocGen(structureMap);
+            doctorAdviceDoc.setText(content);
+            retList.add(doctorAdviceDoc);
+        });
+        return retList;
+    }
+
+}

+ 13 - 0
trans/src/main/java/com/lantone/qc/trans/comsis/ModelDocGenerate.java

@@ -8,6 +8,7 @@ import com.lantone.qc.pub.model.doc.CriticallyIllNoticeDoc;
 import com.lantone.qc.pub.model.doc.DeathCaseDiscussDoc;
 import com.lantone.qc.pub.model.doc.DeathRecordDoc;
 import com.lantone.qc.pub.model.doc.DifficultCaseDiscussDoc;
+import com.lantone.qc.pub.model.doc.DoctorAdviceDoc;
 import com.lantone.qc.pub.model.doc.DutyShiftSystemDoc;
 import com.lantone.qc.pub.model.doc.FirstCourseRecordDoc;
 import com.lantone.qc.pub.model.doc.LeaveHospitalDoc;
@@ -203,6 +204,18 @@ public class ModelDocGenerate {
         return difficultCaseDiscussDoc;
     }
 
+    /**
+     * 医嘱信息
+     *
+     * @param structureMap
+     * @return
+     */
+    public static DoctorAdviceDoc doctorAdviceDocGen(Map<String, String> structureMap) {
+        DoctorAdviceDoc doctorAdviceDoc = new DoctorAdviceDoc();
+        doctorAdviceDoc.setStructureMap(structureMap);
+        return doctorAdviceDoc;
+    }
+
     /**
      * 值班交接制度
      *