eight
2024-08-21 a2346b299c8537318fbc245e3325b7a499ecce4e
src/api/ecg/doctor/index.ts
@@ -5,12 +5,34 @@
  bedNo: string // 诊疗床编号
}
export interface PatientStatisticVO {
  finishedNum: number
  readyNum: number
  passedNum: number
  queuingNum: number
}
// 医生 API
export const DoctorApi = {
  // 下一位患者
  nextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/nextpatient`, params })
  // 看完,取下一位患者
  finishNextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/finish-next-patient`, params })
  },
  // 过号,取下一位患者
  passNextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/pass-next-patient`, params })
  },
  // 取初始患者列表
  getPatientList: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/get-patient-list`, params })
  },
  // 取患者统计
  getPatientStatistic: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/get-patient-statistic`, params })
  }
}