eight
2024-09-25 0b13963800eadb0a87a68809e8cbfecb6592fde7
src/api/ecg/doctor/index.ts
@@ -1,21 +1,86 @@
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
  passedNum: number
  queuingNum: number
}
// 医生 API
export const DoctorApi = {
  // 下一位患者
  nextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/nextpatient`, params })
  // 医生暂停,暂时不接收患者
  bedDoctorPause: async (params) => {
    return await request.get({ url: `/ecg/doctor/bed-doctor-pause`, params })
  },
  // 看完患者
  finishPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/finishpatient`, 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 })
  },
  // 过号,取下一位患者
  passNextPatient: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/pass-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 })
  },
  // 取患者统计
  getPatientStatistic: async (params: RoomBedVO) => {
    return await request.get({ url: `/ecg/doctor/get-patient-statistic`, params })
  },
  // 召回过号患者
  recallPatient: async (params: PatientVO) => {
    return await request.get({ url: `/ecg/doctor/recall-patient`, params })
  },
  // 召回过号患者
  patientJump: async (params: PatientVO) => {
    return await request.get({ url: `/ecg/doctor/patient-jump`, params })
  }
}