PatientInfoController.java 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package com.diagbot.web;
  2. import com.diagbot.annotation.SysLogger;
  3. import com.diagbot.dto.GetTopPatientInfoDTO;
  4. import com.diagbot.dto.PatientInfoDTO;
  5. import com.diagbot.dto.RespDTO;
  6. import com.diagbot.facade.PatientInfoFacade;
  7. import com.diagbot.vo.GetTopPatientInfoVO;
  8. import com.diagbot.vo.PatientInfoVO;
  9. import io.swagger.annotations.Api;
  10. import io.swagger.annotations.ApiOperation;
  11. import org.springframework.beans.factory.annotation.Autowired;
  12. import org.springframework.web.bind.annotation.PostMapping;
  13. import org.springframework.web.bind.annotation.RequestBody;
  14. import org.springframework.web.bind.annotation.RequestMapping;
  15. import org.springframework.web.bind.annotation.RestController;
  16. import springfox.documentation.annotations.ApiIgnore;
  17. import javax.validation.Valid;
  18. /**
  19. * <p>
  20. * 患者信息表 前端控制器
  21. * </p>
  22. *
  23. * @author wangyu
  24. * @since 2018-11-19
  25. */
  26. @RestController
  27. @RequestMapping("/patientInfo")
  28. @Api(value = "患者信息API", tags = { "知识库标准化-患者信息API" })
  29. @SuppressWarnings("unchecked")
  30. public class PatientInfoController {
  31. @Autowired
  32. private PatientInfoFacade patientInfoFacade;
  33. @ApiOperation(value = "患者信息——查询[by:wangyu]",
  34. notes = "patientCode:患者编号,必填<br>" +
  35. "hospitalCode:医院编号,必填<br>")
  36. @PostMapping("/getPatientInfo")
  37. @SysLogger("getPatientInfo")
  38. @ApiIgnore
  39. @Deprecated
  40. public RespDTO<PatientInfoDTO> getPatientInfo(@Valid @RequestBody PatientInfoVO patientInfoVO) {
  41. PatientInfoDTO data = patientInfoFacade.getPatientInfo(patientInfoVO);
  42. return RespDTO.onSuc(data);
  43. }
  44. @ApiOperation(value = "知识库标准化-页面顶部病人医生科室信息——查询[by:rengb]",
  45. notes = "hospitalCode:医院编号,必填<br>" +
  46. "hospitalDeptCode:医院科室编号,必填<br>" +
  47. "doctorCode:医院医生编号,必填<br>" +
  48. "patientCode:医院患者编号,必填<br>")
  49. @PostMapping("/getTopPatientInfo")
  50. @SysLogger("getTopPatientInfo")
  51. public RespDTO<GetTopPatientInfoDTO> getTopPatientInfo(@Valid @RequestBody GetTopPatientInfoVO getTopPatientInfoVO) {
  52. return RespDTO.onSuc(patientInfoFacade.getTopPatientInfo(getTopPatientInfoVO));
  53. }
  54. }