patient.js 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import request from '@/utils/request'
  2. export function createPatientDialysisSolution(id, solution) {
  3. return request({
  4. url: '/m/api/solution/create?patient=' + id,
  5. method: 'post',
  6. data: solution
  7. })
  8. }
  9. export function EditDialysisSolution(id, solution) {
  10. return request({
  11. url: '/m/api/solution/edit?id=' + id,
  12. method: 'post',
  13. data: solution
  14. })
  15. }
  16. export function EditAssessmentBeforeDislysis(id, assessment_date, before, mode) {
  17. return request({
  18. url: '/m/api/assessmentbefore/commit?patient=' + id + '&assessment_date=' + assessment_date + '&mode=' + mode,
  19. method: 'post',
  20. data: before,
  21. headers: {
  22. 'Permission': 1
  23. }
  24. })
  25. }
  26. export function GetPatientInfoWithDiseases(id) {
  27. return request({
  28. url: '/m/api/patient/info?patient=' + id,
  29. method: 'Get'
  30. })
  31. }
  32. export function getAllEducationList(params) {
  33. return request({
  34. url: '/m/api/patient/education',
  35. method: 'get',
  36. params: params
  37. })
  38. }
  39. export function getSchedualList(params) {
  40. return request({
  41. url: '/m/api/patients/schedules',
  42. method: 'get',
  43. params: params
  44. })
  45. }
  46. export function getRecordList(params) {
  47. return request({
  48. url: '/m/api/patients/record',
  49. method: 'get',
  50. params: params
  51. })
  52. }
  53. export function GetPatientDialysisSolutionList(params) {
  54. return request({
  55. url: '/m/api/patients/solutions',
  56. method: 'get',
  57. params: params
  58. })
  59. }
  60. export function GetDoctorAdvices(params) {
  61. return request({
  62. url: '/m/api/patients/doctoradvices',
  63. method: 'get',
  64. params: params
  65. })
  66. }