| | |
| | | return success(BeanUtils.toBean(appointmentList.get(0), AppointmentRespVO.class)); |
| | | } |
| | | |
| | | /** |
| | | * 【本需求:紧急患者不排队直接检查】按「申请单号 / 就诊号 / 患者编号」查近一个月的预约记录。 |
| | | * |
| | | * <p>工作台在三个输入框里按回车时调用;结果按**预约时间倒序**(最近的在前), |
| | | * 多条时由前端弹选择框。窗口为 [今天-30 天, 今天+30 天],并按本窗口开展的检查项目过滤。 |
| | | * |
| | | * @param code 申请单号 / 就诊流水号 / 患者编号(三者之一) |
| | | * @param checkTypes 本窗口(诊室)开展的检查项目,逗号分隔;为空表示不限制 |
| | | */ |
| | | @GetMapping("/emergency-candidates") |
| | | @Operation(summary = "紧急加做:按申请单号/就诊号/患者编号查近一个月的预约记录") |
| | | @Parameter(name = "code", description = "申请单号 / 就诊流水号 / 患者编号", required = true) |
| | | @Parameter(name = "checkTypes", description = "本窗口开展的检查项目,逗号分隔;为空不限制") |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") |
| | | public CommonResult<List<AppointmentRespVO>> getEmergencyCandidates(@RequestParam("code") String code, |
| | | @RequestParam(value = "checkTypes", required = false) String checkTypes) { |
| | | List<AppointmentDO> appointmentList = appointmentService.getEmergencyCandidates(code, checkTypes); |
| | | return success(BeanUtils.toBean(appointmentList, AppointmentRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得预约分页") |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") |
| | | public CommonResult<PageResult<AppointmentRespVO>> getAppointmentPage(AppointmentPageReqVO pageReqVO) { |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") public CommonResult<PageResult<AppointmentRespVO>> getAppointmentPage(AppointmentPageReqVO pageReqVO) { |
| | | pageReqVO.setOrderCreateTime("1"); |
| | | PageResult<AppointmentDO> pageResult = appointmentService.getAppointmentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, AppointmentRespVO.class)); |