|
@ -718,31 +718,21 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
return success("操作成功");
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = BaseHospitalRequestMapping.DodtorIM.sendOutPatientSuggestMsg)
|
|
|
@PostMapping(value = BaseHospitalRequestMapping.DodtorIM.sendOutPatientSuggest)
|
|
|
@ApiOperation(value = "医生端:发送咨询建议消息", notes = "医生端:发送咨询建议消息")
|
|
|
public Envelop sendOutPatientSuggestMsg(@ApiParam(name = "outPatientId", value = "门诊编号")
|
|
|
@RequestParam(value = "outPatientId", required = true)String outPatientId,
|
|
|
@ApiParam(name = "diagnosticAdvice", value = "诊断建议")
|
|
|
@RequestParam(value = "diagnosticAdvice", required = true)String diagnosticAdvice,
|
|
|
@ApiParam(name = "treatmentAdvice", value = "治疗建议")
|
|
|
@RequestParam(value = "treatmentAdvice", required = true)String treatmentAdvice,
|
|
|
@ApiParam(name = "adjust", value = "0调整 1已调整,非必填,默认为0")
|
|
|
@RequestParam(value = "treatmentAdvice", required = false)String adjust
|
|
|
public Envelop sendOutPatientSuggest(@ApiParam(name = "adviceJson", value = "咨询建议JSON")
|
|
|
@RequestParam(value = "adviceJson", required = true)String adviceJson,
|
|
|
@ApiParam(name = "session_id", value = "咨询sessionid")
|
|
|
@RequestParam(value = "session_id", required = true)String session_id,
|
|
|
@ApiParam(name = "doctor", value = "医生CODE")
|
|
|
@RequestParam(value = "doctor", required = true)String doctor,
|
|
|
@ApiParam(name = "doctorName", value = "")
|
|
|
@RequestParam(value = "doctorName", required = true)String doctorName
|
|
|
|
|
|
)throws Exception {
|
|
|
try {
|
|
|
com.alibaba.fastjson.JSONObject msgObj = new com.alibaba.fastjson.JSONObject();
|
|
|
WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findOne(outPatientId);
|
|
|
|
|
|
if(StringUtils.isBlank(adjust)){
|
|
|
adjust = "0";
|
|
|
}
|
|
|
|
|
|
msgObj.put("adjust",adjust);//0调整 1已调整,非必填,默认为0
|
|
|
msgObj.put("diagnosticAdvice",diagnosticAdvice);//诊断建议
|
|
|
msgObj.put("treatmentAdvice",treatmentAdvice);//治疗建议
|
|
|
msgObj.put("outPatientId",outPatientId);
|
|
|
|
|
|
String immsg = imService.sendOutPatientSuggestMsg(msgObj,wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getDoctorName(),outPatientId,wlyyOutpatientDO.getPatient(),wlyyOutpatientDO.getOutpatientType());
|
|
|
prescriptionService.sendOutPatientSuggest(adviceJson);
|
|
|
String immsg = imService.sendOutPatientSuggestMsg(adviceJson,doctor,doctorName,session_id);
|
|
|
System.out.println("发送咨询建议消息成功:"+immsg);
|
|
|
}catch (Exception e){
|
|
|
System.out.println("发送咨询建议消息失败:"+e.getMessage());
|
|
@ -750,5 +740,14 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
return success("操作成功");
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = BaseHospitalRequestMapping.DodtorIM.getConsultSuggest)
|
|
|
@ApiOperation(value = "医生端:发送咨询建议消息", notes = "医生端:发送咨询建议消息")
|
|
|
public Envelop getConsultSuggest(@ApiParam(name = "consultcode", value = "咨询CODE")
|
|
|
@RequestParam(value = "consultcode", required = true)String consultcode
|
|
|
|
|
|
)throws Exception {
|
|
|
return success("操作成功",prescriptionService.getConsultSuggest(consultcode));
|
|
|
}
|
|
|
|
|
|
}
|