|
@ -1727,6 +1727,9 @@ public class XzzxEntranceService{
|
|
|
}
|
|
|
return personInfoVOS;
|
|
|
}
|
|
|
public String replaceHtml(String demoData,String oldChar,String newChar){
|
|
|
return demoData.replace(oldChar,null==newChar?"无":newChar);
|
|
|
}
|
|
|
/**
|
|
|
* 同步门诊病历
|
|
|
* @return
|
|
@ -1746,22 +1749,22 @@ public class XzzxEntranceService{
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = wlyyHospitalSysDictDao.findById("EMRHTMLDEMO");
|
|
|
if (null!=wlyyHospitalSysDictDO){
|
|
|
htmlDeo = wlyyHospitalSysDictDO.getDictValue();
|
|
|
htmlDeo = htmlDeo.replace("@patientName@",jsonObject.getString("patientName"));
|
|
|
htmlDeo = htmlDeo.replace("@patientAge@",jsonObject.getString("patientAge"));
|
|
|
htmlDeo = htmlDeo.replace("@patientsex@",jsonObject.getString("patientsex"));
|
|
|
htmlDeo = htmlDeo.replace("@deptCode@",jsonObject.getString("deptCode"));
|
|
|
htmlDeo = htmlDeo.replace("@r+outpatientCode@",jsonObject.getString("outpatientCode"));
|
|
|
htmlDeo = htmlDeo.replace("@patientClan@",jsonObject.getString("patientClan"));
|
|
|
htmlDeo = htmlDeo.replace("@Special@",prescriptionEmrDO.getSpecialHistory());
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@patientName@",jsonObject.getString("patientName"));
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@patientAge@",jsonObject.getString("patientAge"));
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@patientsex@",jsonObject.getString("patientsex"));
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@deptCode@",jsonObject.getString("deptCode"));
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@r+outpatientCode@",jsonObject.getString("outpatientCode"));
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@patientClan@",jsonObject.getString("patientClan"));
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@Special@",prescriptionEmrDO.getSpecialHistory());
|
|
|
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd hh:MM");
|
|
|
htmlDeo = htmlDeo.replace("@createTime@",sf.format(prescriptionEmrDO.getCreateTime()));
|
|
|
htmlDeo = htmlDeo.replace("@complaint@",prescriptionEmrDO.getComplaint());
|
|
|
htmlDeo = htmlDeo.replace("@medicalHistory@",prescriptionEmrDO.getMedicalHistory());
|
|
|
htmlDeo = htmlDeo.replace("@popularHistory@",prescriptionEmrDO.getPopularHistory());
|
|
|
htmlDeo = htmlDeo.replace("@pastHistory@",prescriptionEmrDO.getPastHistory());
|
|
|
htmlDeo = htmlDeo.replace("@allergicHistory@",prescriptionEmrDO.getAllergicHistory());
|
|
|
htmlDeo = htmlDeo.replace("@physicalExamination@",prescriptionEmrDO.getPhysicalExamination());
|
|
|
htmlDeo = htmlDeo.replace("@assistExamination@",prescriptionEmrDO.getAssistExamination());
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@createTime@",sf.format(prescriptionEmrDO.getCreateTime()));
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@complaint@",prescriptionEmrDO.getComplaint());
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@medicalHistory@",prescriptionEmrDO.getMedicalHistory());
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@popularHistory@",prescriptionEmrDO.getPopularHistory());
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@pastHistory@",prescriptionEmrDO.getPastHistory());
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@allergicHistory@",prescriptionEmrDO.getAllergicHistory());
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@physicalExamination@",prescriptionEmrDO.getPhysicalExamination());
|
|
|
htmlDeo = replaceHtml(htmlDeo,"@assistExamination@",prescriptionEmrDO.getAssistExamination());
|
|
|
condition+="<content>"+htmlDeo+"</content>";
|
|
|
}
|
|
|
}
|