emr-control-rule.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. import request from "@/utils/request";
  2. let url = '/emrControlRule'
  3. export function addRule(data) {
  4. return request({
  5. url: url + '/addRule',
  6. method: 'post',
  7. data
  8. })
  9. }
  10. export function getAvailableObjects() {
  11. return request({
  12. url: url + '/getAvailableObjects',
  13. method: 'get',
  14. })
  15. }
  16. export function hospitalWidePatients() {
  17. return request({
  18. url: url + '/hospitalWidePatients',
  19. method: 'post',
  20. })
  21. }
  22. export function accessToYourOwnPatientMedicalRecords() {
  23. return request({
  24. url: url + '/accessToYourOwnPatientMedicalRecords',
  25. method: 'get',
  26. })
  27. }
  28. export function getRuleList() {
  29. return request({
  30. url: url + '/getRuleList',
  31. method: 'get',
  32. })
  33. }
  34. export function switchQualityControl(id, offOn) {
  35. return request({
  36. url: url + '/switchQualityControl',
  37. method: 'get',
  38. params: {id, offOn}
  39. })
  40. }
  41. export function deleteRuleById(id) {
  42. return request({
  43. url: url + '/deleteRuleById',
  44. method: 'get',
  45. params: {id}
  46. })
  47. }
  48. export function modifyQualityControl(data) {
  49. return request({
  50. url: url + '/modifyQualityControl',
  51. method: 'post',
  52. data
  53. })
  54. }
  55. export function modifyTheAdmissionQualityControlTime(date) {
  56. return request({
  57. url: url + '/modifyTheAdmissionQualityControlTime',
  58. method: 'get',
  59. params: {date}
  60. })
  61. }
  62. export function getAdmissDate() {
  63. return request({
  64. url: url + '/getAdmissDate',
  65. method: 'get',
  66. })
  67. }
  68. export function createRestrictions(code, id, patNo) {
  69. return request({
  70. url: url + '/createRestrictions',
  71. method: 'get',
  72. params: {code, id, patNo}
  73. })
  74. }
  75. /// 下面是新的
  76. export function requestToUnlockMedicalRecords(data) {
  77. return request({
  78. url: url + '/requestToUnlockMedicalRecords',
  79. method: 'post',
  80. data
  81. })
  82. }
  83. export function getApplicationData(data) {
  84. return request({
  85. url: url + '/getApplicationData',
  86. method: 'post',
  87. data
  88. })
  89. }
  90. export function reviewMedicalRecordsToUnlock(data) {
  91. return request({
  92. url: url + '/reviewMedicalRecordsToUnlock',
  93. method: 'post',
  94. data
  95. })
  96. }
  97. export function getMyUnlockByPatNo(patNo, times) {
  98. return request({
  99. url: url + '/getMyUnlockByPatNo',
  100. method: 'get',
  101. params: {patNo, times}
  102. })
  103. }
  104. export function specifyAdmissionQualityControl(start,end) {
  105. return request({
  106. url: url + '/specifyAdmissionQualityControl',
  107. method: 'get',
  108. params: {start, end}
  109. })
  110. }