wlzboy
4 天以前 c098f1e3a3e052aa3d65584aae6dc003a70d75ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import request from '@/utils/request'
 
/**
 * 搜索医院
 * @param {string} keyword 搜索关键词(医院名称、地址、简称、省市区)
 * @param {number} deptId 部门ID(用于根据部门区域配置过滤医院)
 * @param {number} limit 返回结果数量限制(默认50,在前端处理)
 */
export function searchHospitals(keyword, deptId, limit = 50) {
  return request({
    url: '/system/hospital/search',
    method: 'get',
    params: {
      keyword: keyword,
      deptId: deptId,
      pageSize: limit
    }
  })
}
 
/**
 * 获取医院详情
 * @param {number} hospId 医院ID
 */
export function getHospitalDetail(hospId) {
  return request({
    url: '/system/hospital/detail',
    method: 'get',
    params: {
      hospId: hospId
    }
  })
}
 
/**
 * 获取常用转出医院列表
 * @param {string} serviceOrdClass 分公司编码(service_order_class)
 * @param {string} region 地域关键词(可选)
 * @param {number} limit 返回结果数量限制(默认50)
 */
export function getFrequentOutHospitals(serviceOrdClass, region, limit = 50) {
  return request({
    url: '/system/hospital/frequent/out',
    method: 'get',
    params: {
      serviceOrdClass: serviceOrdClass,
      region: region,
      pageSize: limit
    }
  })
}
 
/**
 * 获取常用转入医院列表
 * @param {string} serviceOrdClass 分公司编码(service_order_class)
 * @param {string} region 地域关键词(可选)
 * @param {number} limit 返回结果数量限制(默认50)
 */
export function getFrequentInHospitals(serviceOrdClass, region, limit = 50) {
  return request({
    url: '/system/hospital/frequent/in',
    method: 'get',
    params: {
      serviceOrdClass: serviceOrdClass,
      region: region,
      pageSize: limit
    }
  })
}
 
/**
 * 根据部门区域配置搜索医院(支持多级区域)
 * @param {string} keyword 搜索关键词
 * @param {number} deptId 部门ID
 * @param {number} limit 返回结果数量限制(默认50,在前端处理)
 */
export function searchHospitalsByDeptRegion(keyword, deptId, limit = 50) {
  return request({
    url: '/system/hospital/search/by-dept-region',
    method: 'get',
    params: {
      keyword: keyword,
      deptId: deptId,
      pageSize: limit
    }
  })
}