|
@ -68,7 +68,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
/**
|
|
|
* 解析挂号后
|
|
|
*/
|
|
|
private String CreateOrderAfter(String response, String hospitalId, String hospitalName, String hosDeptId, String hosDeptName, String doctorId, String doctorName, String sectionType, String startTime, String endTime, String patient, String patientName, String cardNo, String clinicCard, String patientPhone, String dname, String dcode) throws Exception {
|
|
|
private String CreateOrderAfter(String response, String hospitalId, String hospitalName, String hosDeptId, String hosDeptName, String doctorId, String doctorName, String sectionType, String startTime, String endTime, String patient, String patientName, String cardNo, String clinicCard, String patientPhone, String dname, String dcode,String callCode) throws Exception {
|
|
|
String code = "";
|
|
|
if (response.startsWith("error") || response.startsWith("System-Error")) {
|
|
|
throw new Exception(response);
|
|
@ -100,6 +100,8 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
reservation.setDeptName(hosDeptName);
|
|
|
reservation.setDoctorCode(doctorId);
|
|
|
reservation.setDoctorName(doctorName);
|
|
|
//关联通话记录
|
|
|
reservation.setCallCode(callCode);
|
|
|
if(doctor!=null){
|
|
|
reservation.setDoctorJob(doctor.getTitle());
|
|
|
reservation.setDoctorPhoto(doctor.getPhoto());
|
|
@ -593,7 +595,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
/**
|
|
|
* 创建挂号单
|
|
|
*/
|
|
|
public String CreateOrder(String hospitalId, String hospitalName, String hosDeptId, String hosDeptName, String doctorId, String doctorName, String arrangeDate, String patient, String patientName, String cardNo, String clinicCard, String patientPhone) throws Exception {
|
|
|
public String CreateOrder(String hospitalId, String hospitalName, String hosDeptId, String hosDeptName, String doctorId, String doctorName, String arrangeDate, String patient, String patientName, String cardNo, String clinicCard, String patientPhone,String callCode) throws Exception {
|
|
|
String re = "";
|
|
|
|
|
|
Patient p = patientService.findByCode(patient);
|
|
@ -654,7 +656,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
verificationXml(response,"获取医生排班表失败!",ORDER_CREATE,content,method,msgBody,res);
|
|
|
//保存http日志
|
|
|
logService.saveHttpLog(true,ORDER_CREATE,content,method,null,msgBody,res,null,logService.archiveType);
|
|
|
re = CreateOrderAfter(response, hospitalId, hospitalName, hosDeptId, hosDeptName, doctorId, doctorName, sectionType, startTime, endTime, patient, patientName, cardNo, clinicCard, patientPhone, null, null);
|
|
|
re = CreateOrderAfter(response, hospitalId, hospitalName, hosDeptId, hosDeptName, doctorId, doctorName, sectionType, startTime, endTime, patient, patientName, cardNo, clinicCard, patientPhone, null, null,callCode);
|
|
|
} else {
|
|
|
throw new Exception("该排班信息错误或者不存在!");
|
|
|
}
|
|
@ -1162,7 +1164,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
/**
|
|
|
* 转诊预约挂号
|
|
|
*/
|
|
|
public String CreateOrderByDoctor(String hospitalId, String hospitalName, String hosDeptId, String hosDeptName, String doctorId, String doctorName, String arrangeDate, String patient, String patientName, String cardNo, String clinicCard, String patientPhone, String dname, String dcode) throws Exception {
|
|
|
public String CreateOrderByDoctor(String hospitalId, String hospitalName, String hosDeptId, String hosDeptName, String doctorId, String doctorName, String arrangeDate, String patient, String patientName, String cardNo, String clinicCard, String patientPhone, String dname, String dcode,String callCode) throws Exception {
|
|
|
String re = "";
|
|
|
|
|
|
Patient p = patientService.findByCode(patient);
|
|
@ -1178,7 +1180,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
|
|
|
String response = jwSmjkService.webRegisterByFamily(cardNo, patientName, clinicCard, sectionType, startTime, hospitalId, hosDeptId, hosDeptName, doctorId, doctorName,patientPhone);
|
|
|
|
|
|
re = CreateOrderAfter(response, hospitalId, hospitalName, hosDeptId, hosDeptName, doctorId, doctorName, sectionType, startTime, endTime, patient, patientName, cardNo, clinicCard, patientPhone, dname, dcode);
|
|
|
re = CreateOrderAfter(response, hospitalId, hospitalName, hosDeptId, hosDeptName, doctorId, doctorName, sectionType, startTime, endTime, patient, patientName, cardNo, clinicCard, patientPhone, dname, dcode,callCode);
|
|
|
} else {
|
|
|
throw new Exception("该排班信息错误或者不存在!");
|
|
|
}
|