|
@@ -1,11 +1,12 @@
|
|
package com.lantone.qc.trans.changx;
|
|
package com.lantone.qc.trans.changx;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Lists;
|
|
|
|
+import com.lantone.qc.dbanaly.facade.changx.CxXmlUtil;
|
|
import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
import com.lantone.qc.pub.model.vo.MedrecVo;
|
|
|
|
+import com.lantone.qc.pub.util.MapUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
import com.lantone.qc.trans.ModelDocTrans;
|
|
-import com.lantone.qc.dbanaly.facade.changx.CxXmlUtil;
|
|
|
|
import com.lantone.qc.trans.comsis.ModelDocGenerate;
|
|
import com.lantone.qc.trans.comsis.ModelDocGenerate;
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
import com.lantone.qc.trans.comsis.OrdinaryAssistant;
|
|
|
|
|
|
@@ -50,13 +51,31 @@ public class ChangxBeHospitalizedDocTrans extends ModelDocTrans {
|
|
if (StringUtil.isBlank(marital) && StringUtil.isNotBlank(marry)) {
|
|
if (StringUtil.isBlank(marital) && StringUtil.isNotBlank(marry)) {
|
|
structureMap.put("婚育史", marry);
|
|
structureMap.put("婚育史", marry);
|
|
}
|
|
}
|
|
|
|
+ if (StringUtil.isBlank(structureMap.get("既往史"))) {
|
|
|
|
+ List<String> jwsList = Lists.newArrayList(
|
|
|
|
+ "药物过敏史",
|
|
|
|
+ "浮肿少尿史",
|
|
|
|
+ "出血史",
|
|
|
|
+ "多饮多尿史",
|
|
|
|
+ "传染病史",
|
|
|
|
+ "尿频尿痛史",
|
|
|
|
+ "外伤手术史",
|
|
|
|
+ "咳嗽气喘史",
|
|
|
|
+ "抽搐史",
|
|
|
|
+ "重大疾病史和治疗史",
|
|
|
|
+ "腹痛腹泻史",
|
|
|
|
+ "过敏史",
|
|
|
|
+ "输血史",
|
|
|
|
+ "胸闷心悸史"
|
|
|
|
+ );
|
|
|
|
+ structureMap.put("既往史", MapUtil.getSelectString(structureMap, jwsList));
|
|
|
|
+ }
|
|
BeHospitalizedDoc beHospitalizedDoc = ModelDocGenerate.beHospitalizedDocGen(structureMap);
|
|
BeHospitalizedDoc beHospitalizedDoc = ModelDocGenerate.beHospitalizedDocGen(structureMap);
|
|
beHospitalizedDoc.setText(content);
|
|
beHospitalizedDoc.setText(content);
|
|
beHospitalizedDoc.setPageData((Map) structureMap);
|
|
beHospitalizedDoc.setPageData((Map) structureMap);
|
|
return beHospitalizedDoc;
|
|
return beHospitalizedDoc;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
private String concatSpecialCheck(Map<String, String> sourceMap) {
|
|
private String concatSpecialCheck(Map<String, String> sourceMap) {
|
|
return concatString(sourceMap.get("一般情况")) +
|
|
return concatString(sourceMap.get("一般情况")) +
|
|
concatString(sourceMap.get("皮肤情况")) +
|
|
concatString(sourceMap.get("皮肤情况")) +
|