|
@@ -1,5 +1,6 @@
|
|
package com.lantone.qc.trans.comsis;
|
|
package com.lantone.qc.trans.comsis;
|
|
|
|
|
|
|
|
+import com.google.common.collect.Lists;
|
|
import com.lantone.qc.pub.model.doc.*;
|
|
import com.lantone.qc.pub.model.doc.*;
|
|
import com.lantone.qc.pub.model.doc.consultation.ConsultationApplicationDoc;
|
|
import com.lantone.qc.pub.model.doc.consultation.ConsultationApplicationDoc;
|
|
import com.lantone.qc.pub.model.doc.consultation.ConsultationRecordDoc;
|
|
import com.lantone.qc.pub.model.doc.consultation.ConsultationRecordDoc;
|
|
@@ -9,9 +10,6 @@ import com.lantone.qc.pub.model.doc.operation.OperationInformedConsentDoc;
|
|
import com.lantone.qc.pub.model.doc.operation.OperationRecordDoc;
|
|
import com.lantone.qc.pub.model.doc.operation.OperationRecordDoc;
|
|
import com.lantone.qc.pub.model.doc.operation.OperationSafetyChecklistDoc;
|
|
import com.lantone.qc.pub.model.doc.operation.OperationSafetyChecklistDoc;
|
|
import com.lantone.qc.pub.model.doc.operation.PreoperativeDiscussionDoc;
|
|
import com.lantone.qc.pub.model.doc.operation.PreoperativeDiscussionDoc;
|
|
-import com.lantone.qc.pub.model.doc.transferrecord.TransferIntoDoc;
|
|
|
|
-import com.lantone.qc.pub.model.doc.transferrecord.TransferOutDoc;
|
|
|
|
-import com.lantone.qc.pub.model.doc.transferrecord.TransferRecordDoc;
|
|
|
|
import com.lantone.qc.pub.model.label.CaseCharacteristicLabel;
|
|
import com.lantone.qc.pub.model.label.CaseCharacteristicLabel;
|
|
import com.lantone.qc.pub.model.label.ChiefLabel;
|
|
import com.lantone.qc.pub.model.label.ChiefLabel;
|
|
import com.lantone.qc.pub.model.label.DiagLabel;
|
|
import com.lantone.qc.pub.model.label.DiagLabel;
|
|
@@ -26,7 +24,9 @@ import com.lantone.qc.pub.model.label.PresentLabel;
|
|
import com.lantone.qc.pub.model.label.TreatPlanLabel;
|
|
import com.lantone.qc.pub.model.label.TreatPlanLabel;
|
|
import com.lantone.qc.pub.model.label.VitalLabel;
|
|
import com.lantone.qc.pub.model.label.VitalLabel;
|
|
import com.lantone.qc.pub.model.label.VitalLabelSpecial;
|
|
import com.lantone.qc.pub.model.label.VitalLabelSpecial;
|
|
|
|
+import com.lantone.qc.pub.util.StringUtil;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -365,6 +365,9 @@ public class ModelDocGenerate {
|
|
|
|
|
|
TreatPlanLabel treatPlanLabel = new TreatPlanLabel();
|
|
TreatPlanLabel treatPlanLabel = new TreatPlanLabel();
|
|
treatPlanLabel.setText(structureMap.get("诊疗计划"));
|
|
treatPlanLabel.setText(structureMap.get("诊疗计划"));
|
|
|
|
+ List<String> keys = Lists.newArrayList("需求评估", "预期目标", "诊疗计划", "治疗监测计划");
|
|
|
|
+ String treatPlanJoin = structureMapJoin(structureMap, keys);
|
|
|
|
+ treatPlanLabel.setAiText(treatPlanJoin);
|
|
firstCourseRecordDoc.setTreatPlanLabel(treatPlanLabel);
|
|
firstCourseRecordDoc.setTreatPlanLabel(treatPlanLabel);
|
|
// structureMap.remove("诊疗计划");
|
|
// structureMap.remove("诊疗计划");
|
|
|
|
|
|
@@ -454,4 +457,17 @@ public class ModelDocGenerate {
|
|
return threeLevelWardDoc;
|
|
return threeLevelWardDoc;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 拼接结构化数据
|
|
|
|
+ **/
|
|
|
|
+ private static String structureMapJoin(Map<String, String> structureMap, List<String> keys) {
|
|
|
|
+ String textJoin = "";
|
|
|
|
+ for (String key : keys) {
|
|
|
|
+ if (StringUtil.isNotBlank(structureMap.get(key))) {
|
|
|
|
+ textJoin += key + ":" + structureMap.get(key) + "\n";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return textJoin;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|