|
@ -2846,6 +2846,14 @@ public class DsyyEntranceService {
|
|
|
infoDO.getUsageName()+"|"+infoDO.getDays()+"|"+infoDO.getQuantity()+"|"+infoDO.getPackUnit()+"|";
|
|
|
info = info.substring(0,info.length()-1);
|
|
|
}
|
|
|
BasePatientDO patientDO = patientDao.findById(prescriptionDO.getPatientCode()).get();
|
|
|
String sexName="未知";
|
|
|
if (patientDO.getSex()==1){
|
|
|
sexName="男";
|
|
|
}else if (patientDO.getSex()==2){
|
|
|
sexName="女";
|
|
|
}
|
|
|
Integer age = DateUtil.getAgeForIdcard(patientDO.getIdcard());
|
|
|
String condition = "<MESSAGE><PATIENT_ID>"+patientMappingDO.getMappingCode()+"</PATIENT_ID>" +
|
|
|
"<HIS_REGISTER_PK>"+outpatientDO.getRegisterNo()+"</HIS_REGISTER_PK>" +
|
|
|
"<VISIT_ID>"+(visitId==0?"":visitId)+"</VISIT_ID>"+
|
|
@ -2872,6 +2880,14 @@ public class DsyyEntranceService {
|
|
|
"<门诊处置>"+info+"</门诊处置>" +
|
|
|
"<检验></检验>" +
|
|
|
"<检查></检查>" +
|
|
|
"<姓名>"+outpatientDO.getPatientName()+"</姓名>" +
|
|
|
"<性别>"+sexName+"</性别>" +
|
|
|
"<年龄>"+age+"岁</年龄>" +
|
|
|
"<科室>"+outpatientDO.getDeptName()+"</科室>" +
|
|
|
"<ID号>"+outpatientDO.getRegisterNo()+"</ID号>" +
|
|
|
"<就诊状态>复诊</就诊状态>" +
|
|
|
"<就诊时间>"+DateUtil.dateToStrShort(outpatientDO.getRegisterDate())+"</就诊时间>" +
|
|
|
"<起草医师>"+outpatientDO.getDoctorName()+"</起草医师>"+
|
|
|
"</Structured_medical>" +
|
|
|
"</MESSAGE>";
|
|
|
String str = StringEscapeUtils.escapeXml(condition);
|
|
@ -2884,7 +2900,6 @@ public class DsyyEntranceService {
|
|
|
hashType = data.getString("hashType");
|
|
|
}
|
|
|
String baseSign="";
|
|
|
BasePatientDO patientDO = patientDao.findById(outpatientDO.getPatient()).get();
|
|
|
if (patientDO!=null&&doctorDO!=null){
|
|
|
String patientName = patientDO.getName();
|
|
|
Integer patientAge = IdCardUtil.getAgeForIdcard(patientDO.getIdcard());
|
|
@ -3032,7 +3047,7 @@ public class DsyyEntranceService {
|
|
|
}
|
|
|
String condition = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" +
|
|
|
" <MESSAGE>\n" +
|
|
|
" <PATIENT_ID>"+patientMappingDO.getMappingCode()+"1</PATIENT_ID>\n" +
|
|
|
" <PATIENT_ID>"+patientMappingDO.getMappingCode()+"</PATIENT_ID>\n" +
|
|
|
" <VISIT_ID>"+visitId+"</VISIT_ID>\n" +
|
|
|
" <NAME>"+outpatientDO.getPatientName()+"</NAME>\n" +
|
|
|
" <NAME_PHONETIC></NAME_PHONETIC>\n" +
|
|
@ -3111,6 +3126,14 @@ public class DsyyEntranceService {
|
|
|
infoDO.getUsageName()+"|"+infoDO.getDays()+"|"+infoDO.getQuantity()+"|"+infoDO.getPackUnit()+"|";
|
|
|
info = info.substring(0,info.length()-1);
|
|
|
}
|
|
|
BasePatientDO patientDO = patientDao.findById(prescriptionDO.getPatientCode()).get();
|
|
|
String sexName="未知";
|
|
|
if (patientDO.getSex()==1){
|
|
|
sexName="男";
|
|
|
}else if (patientDO.getSex()==2){
|
|
|
sexName="女";
|
|
|
}
|
|
|
Integer age = DateUtil.getAgeForIdcard(patientDO.getIdcard());
|
|
|
String condition = "<MESSAGE>\n" +
|
|
|
" <PATIENT_ID>"+patientMappingDO.getMappingCode()+"</PATIENT_ID>\n" +
|
|
|
" <HIS_REGISTER_PK>"+outpatientDO.getRegisterNo()+"</HIS_REGISTER_PK>\n" +
|
|
@ -3141,6 +3164,14 @@ public class DsyyEntranceService {
|
|
|
" <门诊处置>"+info+"</门诊处置>\n" +
|
|
|
" <检验></检验>\n" +
|
|
|
" <检查></检查>\n" +
|
|
|
" <姓名>"+outpatientDO.getPatientName()+"</姓名>\n" +
|
|
|
" <性别>"+sexName+"</性别>\n" +
|
|
|
" <年龄>"+age+"岁</年龄>\n" +
|
|
|
" <科室>"+outpatientDO.getDeptName()+"</科室>\n" +
|
|
|
" <ID号>"+outpatientDO.getRegisterNo()+"</ID号>\n" +
|
|
|
" <就诊状态>复诊</就诊状态>\n" +
|
|
|
" <就诊时间>"+DateUtil.dateToStrShort(outpatientDO.getRegisterDate())+"</就诊时间>\n" +
|
|
|
" <起草医师>"+outpatientDO.getDoctorName()+"</起草医师>"+
|
|
|
" </Structured_medical>\n" +
|
|
|
" </MESSAGE>";
|
|
|
String pInput=condition;
|