|
@@ -0,0 +1,40 @@
|
|
|
|
+package com.lantone.qc.trans.changx;
|
|
|
|
+
|
|
|
|
+import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
|
|
+import com.lantone.qc.pub.model.label.ChiefLabel;
|
|
|
|
+import com.lantone.qc.pub.model.label.PastLabel;
|
|
|
|
+import com.lantone.qc.pub.model.label.PresentLabel;
|
|
|
|
+import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
|
|
+import com.lantone.qc.trans.ModelDocTrans;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @Description: 门诊入院记录文档生成
|
|
|
|
+ * @author: rengb
|
|
|
|
+ * @time: 2020/3/19 19:41
|
|
|
|
+ */
|
|
|
|
+public class ChangxOutDepDocTrans extends ModelDocTrans {
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public BeHospitalizedDoc extract(MedrecVo medrecVo) {
|
|
|
|
+ BeHospitalizedDoc beHospitalizedDoc = new BeHospitalizedDoc();
|
|
|
|
+ Map<String, String> structureMap = ((List<Map>) medrecVo.getContent().get("content")).get(0);
|
|
|
|
+
|
|
|
|
+ ChiefLabel chiefLabel = new ChiefLabel();
|
|
|
|
+ chiefLabel.setText(structureMap.get("主诉"));
|
|
|
|
+ beHospitalizedDoc.setChiefLabel(chiefLabel);
|
|
|
|
+
|
|
|
|
+ PresentLabel presentLabel = new PresentLabel();
|
|
|
|
+ presentLabel.setText(structureMap.get("现病史"));
|
|
|
|
+ beHospitalizedDoc.setPresentLabel(presentLabel);
|
|
|
|
+
|
|
|
|
+ PastLabel pastLabel = new PastLabel();
|
|
|
|
+ pastLabel.setText(structureMap.get("既往史"));
|
|
|
|
+ beHospitalizedDoc.setPastLabel(pastLabel);
|
|
|
|
+
|
|
|
|
+ return beHospitalizedDoc;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|