public-api.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. import request from '@/utils/request'
  2. export function getRoleCode() {
  3. return request({
  4. url: '/publicApi/getRoleCode',
  5. method: 'get',
  6. })
  7. }
  8. export function getRenYuan(code) {
  9. return request({
  10. url: '/publicApi/getRenYuan',
  11. method: 'get',
  12. params: {code},
  13. })
  14. }
  15. export function getChargeCode(pyCode) {
  16. return request({
  17. url: '/publicApi/getChargeCode',
  18. method: 'get',
  19. params: {pyCode},
  20. })
  21. }
  22. export function getDept() {
  23. return request({
  24. url: '/publicApi/getDept',
  25. method: 'get',
  26. })
  27. }
  28. export function maZuiFangShi() {
  29. return request({
  30. url: '/publicApi/maZuiFangShi',
  31. method: 'get',
  32. })
  33. }
  34. export function getServerDateApi() {
  35. return request({
  36. url: '/publicApi/getDate',
  37. method: 'get',
  38. });
  39. }
  40. export function yaoPinXiangMuPiPeiYiBao(data) {
  41. return request({
  42. url: '/publicApi/yaoPinXiangMuPiPeiYiBao',
  43. method: 'post',
  44. data
  45. })
  46. }
  47. export function huoQuYuanGongXinXi(code) {
  48. return request({
  49. url: '/publicApi/huoQuYuanGongXinXi',
  50. method: 'get',
  51. params: {code}
  52. });
  53. }
  54. export function getAllergens(name) {
  55. return request({
  56. url: '/publicApi/getAllergens',
  57. method: 'get',
  58. params: {name}
  59. });
  60. }
  61. export function getPatientAllergens(patNo) {
  62. return request({
  63. url: '/publicApi/getPatientAllergens',
  64. method: 'get',
  65. params: {patNo}
  66. });
  67. }
  68. export function whetherThePatientHasAllergens(patNo) {
  69. return request({
  70. url: '/publicApi/whetherThePatientHasAllergens',
  71. method: 'get',
  72. params: {patNo}
  73. });
  74. }
  75. export function newPatientAllergens(patNo, allergenCode, allergenType) {
  76. return request({
  77. url: '/publicApi/newPatientAllergens',
  78. method: 'get',
  79. params: {patNo, allergenCode, allergenType}
  80. });
  81. }
  82. export function removePatientAllergens(id) {
  83. return request({
  84. url: '/publicApi/removePatientAllergens',
  85. method: 'get',
  86. params: {id}
  87. });
  88. }
  89. export function getDrugInfo(name) {
  90. return request({
  91. url: '/publicApi/getDrugInfo',
  92. method: 'get',
  93. params: {name}
  94. });
  95. }
  96. export function getBldCat(name) {
  97. return request({
  98. url: '/publicApi/getBldCat',
  99. method: 'get',
  100. params: {name}
  101. });
  102. }
  103. /**
  104. * 获取 获取转科列表
  105. * @returns {*}
  106. */
  107. export function getTheTransferList() {
  108. return request({
  109. url: '/publicApi/getTheTransferList',
  110. method: 'get'
  111. });
  112. }
  113. export function getPeopleToFillInInformation() {
  114. return request({
  115. url: '/publicApi/getPeopleToFillInInformation',
  116. method: 'get'
  117. });
  118. }
  119. export function idVerificationApi(idCard) {
  120. return request({
  121. url: '/publicApi/idVerification',
  122. method: 'get',
  123. params: {idCard}
  124. });
  125. }