|
@ -48,13 +48,15 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
|
|
|
|
@GetMapping (value = BaseHospitalRequestMapping.DodtorIM.findWaitingRoomOutpatientByDoctor)
|
|
@GetMapping (value = BaseHospitalRequestMapping.DodtorIM.findWaitingRoomOutpatientByDoctor)
|
|
@ApiOperation(value = "医生可接单列表(图文)", notes = "医生可接单列表(图文)")
|
|
|
|
|
|
@ApiOperation(value = "医生可接单列表(图文复诊、视频复诊、协同门诊)", notes = "医生可接单列表(图文复诊、视频复诊、协同门诊)")
|
|
public ListEnvelop findPrescriptionConsultByDoctor(
|
|
public ListEnvelop findPrescriptionConsultByDoctor(
|
|
@ApiParam(name = "doctor", value = "医生CODE",defaultValue = "1cd15ffe6b3a11e69f7c005056850d66")
|
|
@ApiParam(name = "doctor", value = "医生CODE",defaultValue = "1cd15ffe6b3a11e69f7c005056850d66")
|
|
@RequestParam(value = "doctor",required = true) String doctor,
|
|
@RequestParam(value = "doctor",required = true) String doctor,
|
|
@ApiParam(name = "type", value = "图文复诊:1视频复诊:2")
|
|
|
|
@RequestParam(value = "type",required = true) Integer type){
|
|
|
|
return success("请求成功",prescriptionService.findWaitingRoomOutpatientByDoctor(doctor,type));
|
|
|
|
|
|
@ApiParam(name = "type", value = "图文诊室:1、视频:2")
|
|
|
|
@RequestParam(value = "type",required = true) Integer type,
|
|
|
|
@ApiParam(name = "query_status", value = "0:图文复诊候诊 1:图文复诊抢单列表")
|
|
|
|
@RequestParam(value = "",required = false) Integer query_status){
|
|
|
|
return success("请求成功",prescriptionService.findWaitingRoomOutpatientByDoctor(doctor,type,query_status));
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.DodtorIM.findWaitingRoomPatient)
|
|
@GetMapping(value = BaseHospitalRequestMapping.DodtorIM.findWaitingRoomPatient)
|
|
@ -249,7 +251,7 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.DodtorIM.doctorIndexConsultCount)
|
|
@GetMapping(value = BaseHospitalRequestMapping.DodtorIM.doctorIndexConsultCount)
|
|
@ApiOperation(value = "复诊图文咨询人数,视频咨询人数", notes = "复诊图文咨询人数,视频咨询人数")
|
|
|
|
|
|
@ApiOperation(value = "复诊图文咨询人数,视频咨询人数、协同门诊人数,可抢单人数", notes = "复诊图文咨询人数,视频咨询人数、协同门诊人数,可抢单人数")
|
|
public Envelop doctorIndexConsultCount(@ApiParam(name = "doctor", value = "医生CODE")
|
|
public Envelop doctorIndexConsultCount(@ApiParam(name = "doctor", value = "医生CODE")
|
|
@RequestParam(value = "doctor",required = true) String doctor){
|
|
@RequestParam(value = "doctor",required = true) String doctor){
|
|
|
|
|
|
@ -280,6 +282,11 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
result.put("videoCount",waitVideoCount+_videoOnlineCount);//视频复诊数量
|
|
result.put("videoCount",waitVideoCount+_videoOnlineCount);//视频复诊数量
|
|
result.put("xtCount",0);//协同门诊候诊数量
|
|
result.put("xtCount",0);//协同门诊候诊数量
|
|
|
|
|
|
|
|
JSONObject resultPick = prescriptionService.findWaitingRoomOutpatientNumberByDoctor(doctor);
|
|
|
|
result.put("imgPickCount",resultPick.getIntValue("twCount"));
|
|
|
|
result.put("videoPickCount",resultPick.getIntValue("spCount"));
|
|
|
|
result.put("xtPickCount",resultPick.getIntValue("xtCount"));
|
|
|
|
|
|
|
|
|
|
return success("请求成功",result);
|
|
return success("请求成功",result);
|
|
}
|
|
}
|
|
@ -297,13 +304,17 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
@RequestParam(value = "type",required = true) Integer type,
|
|
@RequestParam(value = "type",required = true) Integer type,
|
|
@ApiParam(name = "status", value = "咨询状态:0全部,1候诊中,2就诊中,3结束")
|
|
@ApiParam(name = "status", value = "咨询状态:0全部,1候诊中,2就诊中,3结束")
|
|
@RequestParam(value = "status",required = true) Integer status,
|
|
@RequestParam(value = "status",required = true) Integer status,
|
|
|
|
@ApiParam(name = "start_time", value = "开始时间 YYYY-MM-DD HH:MM:SS")
|
|
|
|
@RequestParam(value = "start_time",required = false) String start_time,
|
|
|
|
@ApiParam(name = "end_time", value = "结束时间 YYYY-MM-DD HH:MM:SS")
|
|
|
|
@RequestParam(value = "end_time",required = false) String end_time,
|
|
@ApiParam(name = "page", value = "第几页")
|
|
@ApiParam(name = "page", value = "第几页")
|
|
@RequestParam(value = "page",required = false) int page,
|
|
@RequestParam(value = "page",required = false) int page,
|
|
@ApiParam(name = "pagesize", value = "分页大小")
|
|
@ApiParam(name = "pagesize", value = "分页大小")
|
|
@RequestParam(value = "pagesize",required = false) int pagesize
|
|
@RequestParam(value = "pagesize",required = false) int pagesize
|
|
)throws Exception{
|
|
)throws Exception{
|
|
JSONArray array = new JSONArray();
|
|
JSONArray array = new JSONArray();
|
|
List<ConsultVO> data = imService.findConsultRecordByDoctor(doctor, id,type,status, page,pagesize, title);
|
|
|
|
|
|
List<ConsultVO> data = imService.findConsultRecordByDoctor(doctor, id,type,status, page,pagesize, title,start_time,end_time);
|
|
|
|
|
|
if (data != null) {
|
|
if (data != null) {
|
|
for (ConsultVO consult : data) {
|
|
for (ConsultVO consult : data) {
|
|
@ -351,7 +362,7 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
Long total = imService.countConsultRecordByDoctor(doctor, id,type,status,title);
|
|
|
|
|
|
Long total = imService.countConsultRecordByDoctor(doctor, id,type,status,title,start_time,end_time);
|
|
|
|
|
|
JSONObject result = new JSONObject();
|
|
JSONObject result = new JSONObject();
|
|
result.put("total",total);
|
|
result.put("total",total);
|
|
@ -363,10 +374,27 @@ public class DoctorConsultEndpoint extends EnvelopRestEndpoint {
|
|
@GetMapping(value = BaseHospitalRequestMapping.DodtorIM.testSendPrescriptionIM)
|
|
@GetMapping(value = BaseHospitalRequestMapping.DodtorIM.testSendPrescriptionIM)
|
|
@ApiOperation(value = "测试发送处方消息", notes = "测试发送处方消息")
|
|
@ApiOperation(value = "测试发送处方消息", notes = "测试发送处方消息")
|
|
public Envelop testSendPrescriptionIM()throws Exception{
|
|
public Envelop testSendPrescriptionIM()throws Exception{
|
|
|
|
|
|
imService.pushPrescriptionImMessage(null);
|
|
imService.pushPrescriptionImMessage(null);
|
|
return success("请求成功");
|
|
return success("请求成功");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.DodtorIM.generalDoctorWaitingNumber)
|
|
|
|
@ApiOperation(value = "全科医生等候协同门诊,排队数量", notes = "全科医生等候协同门诊,排队数量")
|
|
|
|
public Envelop generalDoctorWaitingNumber(
|
|
|
|
@ApiParam(name = "outpatientid", value = "就诊记录CODE")
|
|
|
|
@RequestParam(value = "outpatientid",required = true) String outpatientid){
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
result.put("waitingNumber",1);
|
|
|
|
return success("请求成功",result);
|
|
|
|
}
|
|
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.DodtorIM.findWaitingRoomOutpatientNumberByDoctor)
|
|
|
|
@ApiOperation(value = "查询医生所有可抢单的数量", notes = "查询医生所有可抢单的数量")
|
|
|
|
public Envelop findWaitingRoomOutpatientNumberByDoctor(
|
|
|
|
@ApiParam(name = "doctor", value = "医生CODE",defaultValue = "1cd15ffe6b3a11e69f7c005056850d66")
|
|
|
|
@RequestParam(value = "doctor",required = true) String doctor){
|
|
|
|
return success("请求成功",prescriptionService.findWaitingRoomOutpatientNumberByDoctor(doctor));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|