eight
2024-10-14 d14506241dbec4aff4355c6488c1da56d54ef0d0
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import request from '@/config/axios'
 
export interface RoomBedVO {
  roomId: number | null // 诊室编号
  roomName: string | null
  bedNo: string | null // 诊疗床编号
}
 
export interface PatientVO {
  roomId: number // 诊室编号
  bedNo: string // 诊疗床编号
  patId: string // 患者编号
  jumpFlag: number // 插队标记
}
 
export interface PatientStatisticVO {
  finishedNum: number
  readyNum: number
  receivedNum: number
  passedNum: number
  queuingNum: number
}
 
// 医生 API
export const DoctorApi = {
 
  // 医生暂停,暂时不接收患者
  bedDoctorPause: async (params) => {
    return await request.get({ url: `/ecg/doctor/bed-doctor-pause`, params })
  },
 
  // 医生恢复,恢复接收患者
  bedDoctorResume: async (params) => {
    return await request.get({ url: `/ecg/doctor/bed-doctor-resume`, params })
  },
 
  // 医生入座,
  bedDoctorOn: async (params) => {
    return await request.get({ url: `/ecg/doctor/bed-doctor-on`, params })
  },
 
  // 医生离座,
  bedDoctorOff: async (params) => {
    return await request.get({ url: `/ecg/doctor/bed-doctor-off`, params })
  },
 
  // 获取医生的工位信息
  bedDoctorGet: async (params) => {
    return await request.get({ url: `/ecg/doctor/bed-doctor-get`, params })
  },
 
  // 常规叫号,取下一位患者
  finishNextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/finish-next-patient`, params })
  },
 
  // 领用叫号,取下一位患者
  finishReceiveNextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/finish-receive-next-patient`, params })
  },
 
  // 装机叫号,取下一位患者
  finishInstallNextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/finish-install-next-patient`, params })
  },
 
  // 过号,取下一位患者
  passNextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/pass-next-patient`, params })
  },
 
  // 装机过号,取下一位患者
  passInstallNextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/pass-install-next-patient`, params })
  },
 
  // 重叫
  callAgainPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/call-again`, params })
  },
 
  // 取 常规检查、领用 患者列表
  getPatientList: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/get-patient-list`, params })
  },
 
  // 取 [待装机] 患者列表
  getToBeInstalledPatientList: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/get-to-be-installed-list`, params })
  },
 
  // 取患者统计
  getPatientStatistic: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/get-patient-statistic`, params })
  },
 
  // 设备领用统计
  getDevReadyStatistic: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/get-dev-ready-statistic`, params })
  },
 
  // 设备装机统计
  getDevInstallStatistic: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/get-dev-install-statistic`, params })
  },
 
  // 召回过号患者
  recallPatient: async (params: PatientVO) => {
    return await request.get({ url: `/ecg/doctor/recall-patient`, params })
  },
 
  // 召回 安装过号 患者
  recallInstallPatient: async (params: PatientVO) => {
    return await request.get({ url: `/ecg/doctor/recall-install-patient`, params })
  },
 
  // 加急患者
  patientJump: async (params: PatientVO) => {
    return await request.get({ url: `/ecg/doctor/patient-jump`, params })
  }
 
}