|
|
@ -41,14 +41,14 @@ public class PatientReportController { |
|
|
|
@ApiImplicitParam(name = "json", value = "报告单信息", required = true) |
|
|
|
}) |
|
|
|
@RequestMapping(value="/generatePatientReport", method = RequestMethod.POST) |
|
|
|
public JsonResponse generate(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.Generate> dto){ |
|
|
|
public JsonResponse<PatientReportVo.Generate> generate(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.Generate> dto){ |
|
|
|
log.info("生成报告单请求参数:{}", dto); |
|
|
|
PatientReportDto.Generate patientReport = dto.getParam(); |
|
|
|
if (patientReport == null || patientReport.getPatientId() == null || patientReport.getPatientId() == 0) { |
|
|
|
return JsonResponse.newInstance().ok(CodeEnum.PARAM_NULL); |
|
|
|
} |
|
|
|
//TODO 判断病友是否和当前医院绑定,未绑定,进行绑定
|
|
|
|
JsonResponse response = patientReportService.generatePatientReport(patientReport, dto.getUserId()); |
|
|
|
JsonResponse<PatientReportVo.Generate> response = patientReportService.generatePatientReport(patientReport, dto.getUserId()); |
|
|
|
log.info("生成病友报告单返回:{}", response); |
|
|
|
return JsonResponse.newInstance().ok(response); |
|
|
|
} |
|
|
@ -74,7 +74,7 @@ public class PatientReportController { |
|
|
|
@ApiImplicitParam(name = "json", value = "编辑报告单信息", required = true) |
|
|
|
}) |
|
|
|
@RequestMapping(value="/queryReports", method = RequestMethod.POST) |
|
|
|
public JsonResponse queryReports(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryReports> param){ |
|
|
|
public JsonResponse<PageInfo<PatientReportVo.ReportName>> queryReports(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryReports> param){ |
|
|
|
|
|
|
|
//编辑报告单信息
|
|
|
|
log.info("查询报告单列表:{}", param); |
|
|
@ -88,7 +88,7 @@ public class PatientReportController { |
|
|
|
@ApiImplicitParam(name = "json", value = "查询报告单详情", required = true) |
|
|
|
}) |
|
|
|
@RequestMapping(value="/queryReportDetail", method = RequestMethod.POST) |
|
|
|
public JsonResponse queryReportDetail(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param){ |
|
|
|
public JsonResponse<PatientReportVo.ReprotDetail> queryReportDetail(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param){ |
|
|
|
//查询报告单信息
|
|
|
|
log.info("查询报告单详情:{}", param); |
|
|
|
PatientReportVo.ReprotDetail detail = patientReportService.queryReportDetail(param.getParam(), param.getUserId()); |
|
|
@ -102,7 +102,7 @@ public class PatientReportController { |
|
|
|
@ApiImplicitParam(name = "json", value = "报告单ID", required = true) |
|
|
|
}) |
|
|
|
@RequestMapping(value="/queryAuthority", method = RequestMethod.POST) |
|
|
|
public JsonResponse queryAuthority(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.Authority> param){ |
|
|
|
public JsonResponse<PatientReportVo.Authority> queryAuthority(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.Authority> param){ |
|
|
|
//查询报告单信息
|
|
|
|
log.info("查询医生对报告单的权限:{}", param); |
|
|
|
PatientReportVo.Authority authority = patientReportService.queryReportAuthority(param.getParam(), param.getUserId()); |
|
|
|