icd.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import request from '@/utils/request'
  2. // 查询icd编码库列表
  3. export function listIcd(query) {
  4. return request({
  5. url: '/his/icd/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 下载导入模板
  11. export function importTemplate() {
  12. return request({
  13. url: '/his/icd/importTemplate',
  14. method: 'get'
  15. })
  16. }
  17. // 查询icd编码库详细
  18. export function getIcd(id) {
  19. return request({
  20. url: '/his/icd/' + id,
  21. method: 'get'
  22. })
  23. }
  24. // 查询icd编码库详细
  25. export function allIcd(name) {
  26. return request({
  27. url: '/his/icd/allIcd/' + name,
  28. method: 'get'
  29. })
  30. }
  31. // 新增icd编码库
  32. export function addIcd(data) {
  33. return request({
  34. url: '/his/icd',
  35. method: 'post',
  36. data: data
  37. })
  38. }
  39. // 修改icd编码库
  40. export function updateIcd(data) {
  41. return request({
  42. url: '/his/icd',
  43. method: 'put',
  44. data: data
  45. })
  46. }
  47. // 删除icd编码库
  48. export function delIcd(id) {
  49. return request({
  50. url: '/his/icd/' + id,
  51. method: 'delete'
  52. })
  53. }
  54. // 导出icd编码库
  55. export function exportIcd(query) {
  56. return request({
  57. url: '/his/icd/export',
  58. method: 'get',
  59. params: query
  60. })
  61. }