YizhuLuRuController.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package thyyxxk.webserver.controller.zhuyuanyizheng;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import org.springframework.validation.annotation.Validated;
  4. import org.springframework.web.bind.annotation.*;
  5. import thyyxxk.webserver.entity.ResultVo;
  6. import thyyxxk.webserver.entity.datamodify.GetDropdownBox;
  7. import thyyxxk.webserver.entity.datamodify.YzActOrder;
  8. import thyyxxk.webserver.entity.yibao.ZyActpatient;
  9. import thyyxxk.webserver.entity.zhuyuanyisheng.PatientTemp;
  10. import thyyxxk.webserver.entity.zhuyuanyisheng.YiZhuFeiYongChaXunTiaoJian;
  11. import thyyxxk.webserver.entity.zhuyuanyisheng.YiZhuMingChen;
  12. import thyyxxk.webserver.service.zhuyuanyisheng.YiZhuLuRuServer;
  13. import java.util.List;
  14. import java.util.Map;
  15. /**
  16. * <p>
  17. * 描述: 医嘱录入
  18. * </p>
  19. *
  20. * @author xc
  21. * @date 2022-01-04 17:02
  22. */
  23. @RestController
  24. @RequestMapping("/yiZhuLuRu")
  25. public class YizhuLuRuController {
  26. private final YiZhuLuRuServer server;
  27. public YizhuLuRuController(YiZhuLuRuServer server) {
  28. this.server = server;
  29. }
  30. @GetMapping("/huoQuHuanZheLieBiao")
  31. public ResultVo<List<ZyActpatient>> huoQuHuanZheLieBiao(@RequestParam("wardCode") String wardCode) {
  32. return server.huoQuHuanZheLieBiao(wardCode);
  33. }
  34. @GetMapping("/huoQuHuanZheXinXi")
  35. public ResultVo<PatientTemp> huoQuHuanZheXinXi(@RequestParam("inpatientNo") String inpatientNo) {
  36. return server.huoQuHuanZheXinXi(inpatientNo);
  37. }
  38. @GetMapping("/huoQuYiZhuMingCheng")
  39. public ResultVo<List<GetDropdownBox>> huoQuYiZhuMingCheng(@RequestParam("inpatientNo") String inpatientNo,
  40. @RequestParam("admissTimes") Integer admissTimes,
  41. @RequestParam("orderName") String orderName) {
  42. return server.huoQuYiZhuMingCheng(inpatientNo, admissTimes, orderName);
  43. }
  44. @GetMapping("/huoQuGeRenPinLv")
  45. public ResultVo<List<GetDropdownBox>> huoQuGeRenPinLv(@RequestParam("patNo") String patNo,
  46. @RequestParam("times") Integer times) {
  47. return server.huoQuGeRenPinLv(patNo, times);
  48. }
  49. @PostMapping("/huoQuYiZhuShuJu")
  50. public ResultVo<IPage<YzActOrder>> huoQuYiZhuShuJu(@RequestBody @Validated YiZhuFeiYongChaXunTiaoJian param) {
  51. return server.huoQuYiZhuShuJu(param);
  52. }
  53. @GetMapping("/huoQuXiangMu")
  54. public ResultVo<List<YiZhuMingChen>> huoQuXiangMu(String code) {
  55. return server.huoQuXiangMu(code);
  56. }
  57. @GetMapping("/huoQuFeiYongXinXi")
  58. public ResultVo<Map<String, Object>> huoQuFeiYongXinXi(@RequestParam("code") String code,
  59. @RequestParam("serial") String serial) {
  60. return server.huoQuFeiYongXinXi(code, serial);
  61. }
  62. @GetMapping("/huoQuZhuYuanPinLv")
  63. public ResultVo<List<GetDropdownBox>> huoQuZhuYuanPinLv(String code) {
  64. return server.huoQuZhuYuanPinLv(code);
  65. }
  66. @GetMapping("/huoQuGeiYaoFangShi")
  67. public ResultVo<List<GetDropdownBox>> huoQuGeiYaoFangShi(String code) {
  68. return server.huoQuGeiYaoFangShi(code);
  69. }
  70. @GetMapping("/huoQuFuYiZhu")
  71. public ResultVo<List<GetDropdownBox>> huoQuFuYiZhu(@RequestParam("patNo") String patNo,
  72. @RequestParam("times") Integer times) {
  73. return server.huoQuFuYiZhu(patNo, times);
  74. }
  75. @GetMapping("/huoQuZhiXinKeShi")
  76. public ResultVo<List<GetDropdownBox>> huoQuZhiXinKeShi(String code) {
  77. return server.huoQuZhiXinKeShi(code);
  78. }
  79. }