LinkController.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?php
  2. namespace app\api\controller\link;
  3. use app\api\controller\ZskkDefaultController;
  4. use app\api\servies\dict\DictService;
  5. use app\api\servies\link\LinkService;
  6. use think\Exception;
  7. use think\facade\Request;
  8. class LinkController extends ZskkDefaultController
  9. {
  10. protected $needToken = false;
  11. protected $logName = "LinkController";
  12. public function getPacsInstitutionExam(LinkService $linkService)
  13. {
  14. $data = $linkService->getPacsInstitutionExam();
  15. return $this->success($data);
  16. }
  17. public function getPacsDateExam(LinkService $linkService)
  18. {
  19. $list = $linkService->getPacsDateExam();
  20. return $this->success($list);
  21. }
  22. public function getPacsAgeExam(LinkService $linkService)
  23. {
  24. $list = $linkService->getPacsAgeExam();
  25. return $this->success($list);
  26. }
  27. public function getPacsCount(LinkService $linkService)
  28. {
  29. $list = $linkService->getPacsCount();
  30. return $this->success($list);
  31. }
  32. public function getPacsResult(LinkService $linkService)
  33. {
  34. $list = $linkService->getPacsResult();
  35. return $this->success($list);
  36. }
  37. public function getPacsSex(LinkService $linkService)
  38. {
  39. $list = $linkService->getPacsSex();
  40. return $this->success($list);
  41. }
  42. public function getMiddleProjectList(LinkService $linkService)
  43. {
  44. $list = $linkService->getMiddleProjectList();
  45. return $this->success($list);
  46. }
  47. public function getPacsMapExam(LinkService $linkService)
  48. {
  49. $list = $linkService->getPacsMapExam();
  50. return $this->success($list);
  51. }
  52. public function getViewDetail(LinkService $linkService)
  53. {
  54. $param = Request::param();
  55. $info = $this->getCache($param['token']);
  56. if(empty($info)){
  57. $this->throwError('token过期或已失效','-1');
  58. }
  59. $arr = $linkService->getViewDetail($info);
  60. return json_encode(['data'=>$arr,'code'=>0,'msg'=>'success'],JSON_UNESCAPED_UNICODE);
  61. }
  62. public function getPatientList(LinkService $linkService)
  63. {
  64. $param = Request::param();
  65. $list = $linkService->getPatientList($param);
  66. return $this->success($list);
  67. }
  68. public function getAnotherPatientList(LinkService $linkService)
  69. {
  70. $param = Request::param();
  71. $list = $linkService->getAnotherPatientList($param);
  72. return $this->success($list);
  73. }
  74. public function getPatientInfo(LinkService $linkService)
  75. {
  76. $param = Request::param();
  77. $list = $linkService->getPatientInfo($param);
  78. return $this->success($list);
  79. }
  80. public function getJm(LinkService $linkService)
  81. {
  82. $param = Request::param();
  83. $list = $linkService->getJm($param);
  84. return $this->success($list);
  85. }
  86. }