| | |
| | | import request from '@/config/axios' |
| | | import {PatDetailsVO} from "@/api/ecg/common"; |
| | | |
| | | // 装机拆机 VO |
| | | export interface DevRentVO { |
| | | id: number | null // id |
| | | devId: string // 设备编号 |
| | | patId: string // 患者编号 |
| | | patName: string // 患者名称 |
| | | rentTime: Date // 装机时间 |
| | | returnTime: Date // 拆机时间 |
| | | interference: number // 干扰数 |
| | | baseline: string // 基线粗 |
| | | detachment: string // 脱离 |
| | | remark: string // 备注 |
| | | id?: number | undefined | null // id |
| | | applyNo?: string | undefined | null // 预约申请号 |
| | | episodeId?: string | undefined | null // 就诊流水号 |
| | | devId?: string | undefined | null // 设备编号 |
| | | patId?: string | undefined | null// 患者编号 |
| | | patName?: string | undefined | null // 患者名称 |
| | | patGender?: number | undefined | null // 患者性别:1 男 2 女(后端从预约单补齐,仅展示) |
| | | patDetails?: PatDetailsVO | undefined | null |
| | | checkType?: number | undefined | null |
| | | // 多耐药:0 无 / 1 多耐 / 2 多重耐药(后端为字符串) |
| | | tolerance?: string | number | undefined | null |
| | | // 以下字段由后端从预约单补齐,仅用于医生端展示,不参与提交 |
| | | patBirthday?: number | string | undefined | null // 出生日期 |
| | | registerDate?: number | string | undefined | null // 登记时间 |
| | | doctor?: string | undefined | null // 开单医师 |
| | | doctorTime?: number | string | undefined | null // 开单日期 |
| | | // 需求1:患者信息 18 项(后端 DevRentRespVO 已扩字段,均由预约单回填) |
| | | patSrc?: number | undefined | null // 患者来源:1门诊 2急诊 3住院 4体检 |
| | | patMobile?: string | undefined | null // 手机号 |
| | | patPhone?: string | undefined | null // 电话 |
| | | patWardDesc?: string | undefined | null // 病区名称 |
| | | patBedNo?: string | undefined | null // 病床号(注意不是 bedNo,后者是诊疗床/工位号) |
| | | medicalCard?: string | undefined | null // 就诊卡号(库中多为空) |
| | | doctorAdviceNo?: string // 医嘱号(HIS root 2.16.156.10011.1.28;库中历史数据为空) |
| | | outpatientNo?: string | undefined | null // 门诊号 |
| | | patIdentityId?: string | undefined | null // 身份证号 |
| | | // 队列相关(由 setPatient 从 QueueVO 带入,仅用于叫号面板展示) |
| | | seqNum?: number | undefined | null // 排队序号 |
| | | status?: number | undefined | null // 队列状态(字典 ecg_queue_status) |
| | | rentTime?: number | undefined | null // 装机时间 |
| | | returnTime?: number | undefined | null // 拆机时间 |
| | | interference?: number | undefined | null // 干扰数 |
| | | baseline?: string | undefined | null // 基线粗 |
| | | detachment?: string | undefined | null // 脱落 |
| | | remark?: string | undefined | null // 备注 |
| | | state?: number | undefined | null // 状态 |
| | | paid?: number | undefined | null |
| | | roomId?: number | undefined | null |
| | | bedNo?: string | undefined | null |
| | | } |
| | | |
| | | // 装机拆机 API |
| | |
| | | return await request.download({ url: `/ecg/dev-rent/export-excel`, params }) |
| | | }, |
| | | |
| | | // 获取患者设备最近的租赁 |
| | | getLatestRent: async (devId: string) => { |
| | | return await request.get({ url: `/ecg/dev-rent/get-latest-rent?&dev-id=` + devId }) |
| | | } |
| | | } |
| | | // 根据患者或设备, 获取 Free的租赁 |
| | | getFreeRent: async (params: any) => { |
| | | return await request.get({ url: `/ecg/dev-rent/get-free-rent`, params }) |
| | | }, |
| | | |
| | | // 获取已领取的租赁 |
| | | getReadyRent: async (params: any) => { |
| | | return await request.get({ url: `/ecg/dev-rent/get-ready-rent`, params }) |
| | | }, |
| | | |
| | | // 获取已安装\已领用的租赁 |
| | | getExistingRent: async (params: any) => { |
| | | return await request.get({ url: `/ecg/dev-rent/get-existing-rent`, params }) |
| | | }, |
| | | |
| | | // 获取已拆卸租赁 |
| | | getDismantledRent: async (params: any) => { |
| | | return await request.get({ url: `/ecg/dev-rent/get-dismantled-rent`, params }) |
| | | }, |
| | | |
| | | // 常规检查完成 |
| | | routineFinish: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/routine-finish`, data }) |
| | | }, |
| | | |
| | | // 设备准备 |
| | | devReady: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-ready`, data }) |
| | | }, |
| | | |
| | | // 装机 |
| | | devInstall: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-install`, data }) |
| | | }, |
| | | |
| | | // 拆机 |
| | | devDismantle: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-dismantle`, data }) |
| | | }, |
| | | |
| | | // 数据录入 |
| | | devDataEntry: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-data-entry`, data }) |
| | | }, |
| | | |
| | | // 放弃..常规检查 |
| | | routineCheckCancel: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/routine-check-cancel`, data }) |
| | | }, |
| | | |
| | | // 放弃领用 |
| | | devReadyCancel: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-ready-cancel`, data }) |
| | | }, |
| | | |
| | | // 放弃装机 |
| | | devInstallCancel: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-install-cancel`, data }) |
| | | }, |
| | | |
| | | // 遗失 |
| | | devLose: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-lose`, data }) |
| | | }, |
| | | |
| | | // 损毁 |
| | | devDamage: async (data: DevRentVO) => { |
| | | return await request.post({ url: `/ecg/dev-rent/dev-damage`, data }) |
| | | }, |
| | | |
| | | // 确费 |
| | | feeConfirm: async (rentId: number) => { |
| | | return await request.get({ url: `/ecg/dev-rent/fee-confirm?rentId=` + rentId }) |
| | | }, |
| | | |
| | | // 取消确费 |
| | | feeCancel: async (rentId: number) => { |
| | | return await request.get({ url: `/ecg/dev-rent/fee-cancel?rentId=` + rentId }) |
| | | }, |
| | | |
| | | } |
| | | |