|
@@ -1,6 +1,7 @@
|
|
|
package com.lantone.qc.trans.comsis;
|
|
|
|
|
|
import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
|
+import com.lantone.qc.pub.model.doc.LeaveHospitalDoc;
|
|
|
import com.lantone.qc.pub.model.label.ChiefLabel;
|
|
|
import com.lantone.qc.pub.model.label.DiagLabel;
|
|
|
import com.lantone.qc.pub.model.label.FamilyLabel;
|
|
@@ -102,4 +103,29 @@ public class ModelDocGenerate {
|
|
|
|
|
|
return beHospitalizedDoc;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 出院小结
|
|
|
+ *
|
|
|
+ * @param structureMap
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static LeaveHospitalDoc leaveHospitalDocGen(Map<String, String> structureMap) {
|
|
|
+ LeaveHospitalDoc leaveHospitalDoc = new LeaveHospitalDoc();
|
|
|
+
|
|
|
+ DiagLabel beDiagLabel = new DiagLabel();
|
|
|
+ beDiagLabel.setText(structureMap.get("入院诊断"));
|
|
|
+ leaveHospitalDoc.setBeDiagLabel(beDiagLabel);
|
|
|
+ structureMap.remove("入院诊断");
|
|
|
+
|
|
|
+ DiagLabel leaveDiagLabel = new DiagLabel();
|
|
|
+ leaveDiagLabel.setText(structureMap.get("出院诊断"));
|
|
|
+ leaveHospitalDoc.setLeaveDiagLabel(leaveDiagLabel);
|
|
|
+ structureMap.remove("出院诊断");
|
|
|
+
|
|
|
+ leaveHospitalDoc.setStructureMap(structureMap);
|
|
|
+
|
|
|
+ return leaveHospitalDoc;
|
|
|
+ }
|
|
|
+
|
|
|
}
|