|
@ -252,7 +252,8 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}else if ("4".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
consult.setType(28);//康复咨询
|
|
|
}else if ("2".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
}
|
|
|
else if ("2".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
consult.setType(12);//协同门诊
|
|
|
}
|
|
|
}
|
|
@ -280,17 +281,6 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
rsCode="0";
|
|
|
mes="已挂号";
|
|
|
}
|
|
|
/*if ("1".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
if ("2".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
prescriptionService.sendWxTemplateMsg(wxId,outpatientCode,null,"16","outpatientMsgRemind","");
|
|
|
}
|
|
|
}
|
|
|
if ("3".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
if ("2".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
prescriptionService.sendWxTemplateMsg(wxId,outpatientCode,null,"17","outpatientMsgRemind","");
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
}else if("xm_hcyy_wx".equals(wxId)){ //海沧医院挂号
|
|
|
if (!outpatientDO.getOutpatientType().equalsIgnoreCase("2")&&!outpatientDO.getOutpatientType().equalsIgnoreCase("3")){
|
|
|
JSONObject res = hcyyPrescriptionService.registerOutPatient(outpatientCode,doctorCode);
|
|
@ -300,19 +290,9 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
rsCode="0";
|
|
|
mes="已挂号";
|
|
|
}
|
|
|
/*if ("1".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
if ("2".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
prescriptionService.sendWxTemplateMsg(wxId,outpatientCode,null,"16","outpatientMsgRemind","");
|
|
|
}
|
|
|
}
|
|
|
if ("3".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
if ("2".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
prescriptionService.sendWxTemplateMsg(wxId,outpatientCode,null,"17","outpatientMsgRemind","");
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
}else if("xm_dsyy_wx".equals(wxId)){ //dsyy医院挂号
|
|
|
if (!outpatientDO.getOutpatientType().equalsIgnoreCase("2")&&!outpatientDO.getOutpatientType().equalsIgnoreCase("3")){
|
|
|
if (!outpatientDO.getOutpatientType().equalsIgnoreCase("2")&&!outpatientDO.getOutpatientType().equalsIgnoreCase("3")
|
|
|
&&!outpatientDO.getOutpatientType().equalsIgnoreCase("4")){
|
|
|
JSONObject res = dsyyPrescriptionService.registerOutPatient(outpatientCode,doctorCode);
|
|
|
rsCode = res.getString("@RESULT");
|
|
|
mes = res.getString("@MSG");
|
|
@ -320,17 +300,6 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
rsCode="0";
|
|
|
mes="已挂号";
|
|
|
}
|
|
|
/*if ("1".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
if ("2".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
prescriptionService.sendWxTemplateMsg(wxId,outpatientCode,null,"16","outpatientMsgRemind","");
|
|
|
}
|
|
|
}
|
|
|
if ("3".equalsIgnoreCase(outpatientDO.getOutpatientType())){
|
|
|
if ("2".equalsIgnoreCase(outpatientDO.getType())){
|
|
|
prescriptionService.sendWxTemplateMsg(wxId,outpatientCode,null,"17","outpatientMsgRemind","");
|
|
|
}
|
|
|
}*/
|
|
|
|
|
|
}else {
|
|
|
if (demoFlag.equalsIgnoreCase("true")){
|
|
|
rsCode="0";
|