| | |
| | | // 预约 VO |
| | | export interface AppointmentVO { |
| | | id: number, |
| | | applyNo: string // 预约申请编号 |
| | | episodeId: string //就诊流水号 |
| | | patSrc: number |
| | | tolerance:number// 是否耐药 |
| | | patId: string // 患者编号 |
| | | patName: string // 患者姓名 |
| | | patGender: number // 患者性别 |
| | |
| | | patWardCode: string // 患者所在病区代码 |
| | | patWardDesc: string // 患者所在病区名称 |
| | | patBedNo: string // 床号 |
| | | bookId: string // 预约编号 |
| | | bookDate: Date // 预约日期 |
| | | bookTimeslot: number // 预约时间段 |
| | | bookTime: Date // 预约发生时间, 点击预约的时间 |
| | | bookCheckType: number // 预约检查类型 |
| | | bookCheckType: number // 预约检查项目 |
| | | paid: number //已付款 |
| | | bookSeqNum: number |
| | | // ========== 以下字段后端 AppointmentRespVO 一直有返回,此前 TS 未声明 ========== |
| | | // 需求1 使用:状态 / 开单医师 / 开单日期 / 距今天数(由 doctorTime 计算)/ 就诊卡号 |
| | | status?: string // 状态(字典 ecg_status) |
| | | doctor?: string // 开单医师 |
| | | doctorCode?: string // 开单医师代码 |
| | | doctorTime?: Date | number | string // 开单日期(开单时间) |
| | | registerDate?: Date | number | string // 登记时间 |
| | | hospitalNo?: string // 住院号 |
| | | medicalCard?: string // 就诊卡号(库中多为空,页面回退到 outpatientNo) |
| | | doctorAdviceNo?: string // 医嘱号(HIS root 2.16.156.10011.1.28;库中历史数据为空) |
| | | outpatientNo?: string // 门诊号(实测部分数据存的是身份证号) |
| | | bookSrc?: number // 预约来源:0人工 10平台 |
| | | roomName?: string // 诊室名称 |
| | | remark?: string // 备注 |
| | | jjbz?: string // 加急标记 |
| | | createTime?: Date | number | string // 创建时间 |
| | | } |
| | | |
| | | // 预约 API |
| | |
| | | return await request.get({ url: `/ecg/appointment/get?id=` + id }) |
| | | }, |
| | | |
| | | // 查询预约详情 |
| | | getAppointmentByPatId: async (patId: string) => { |
| | | return await request.get({ url: `/ecg/appointment/get-by-patient?patId=` + patId }) |
| | | // |
| | | getCurAppointmentByPatIdAndCheckType: async (patId: string, checkType: number) => { |
| | | return await request.get({ url: `/ecg/appointment/get-current-by-patient?patId=` + patId + '&checkType=' + checkType }) |
| | | }, |
| | | |
| | | // 从HIS或者DB查询预约详情 |
| | | queryAndCreateAppointmentByPatId: async (patId: string) => { |
| | | return await request.get({ url: `/ecg/appointment/query-and-create-by-patient?patId=` + patId }) |
| | | }, |
| | | |
| | | // 从HIS查询预约或开单信息 |
| | | queryAppointmentFromHis: async (patId: string) => { |
| | | return await request.get({ url: `/ecg/appointment/query-his-by-patient?patId=` + patId }) |
| | | }, |
| | | |
| | | // 新增预约 |
| | | createAppointment: async (data: AppointmentVO) => { |
| | | return await request.post({ url: `/ecg/appointment/create`, data }) |
| | | }, |
| | | // 状态更新 |
| | | alterAppointment: async (data: AppointmentVO) => { |
| | | return await request.post({ url: `/ecg/appointment/updateStatus`, data }) |
| | | }, |
| | | |
| | | // 修改预约 |
| | |
| | | return await request.download({ url: `/ecg/appointment/export-excel`, params }) |
| | | }, |
| | | |
| | | // 修改预约 |
| | | // 预约确认 |
| | | confirmAppointment: async (data: AppointmentVO) => { |
| | | return await request.post({ url: `/ecg/appointment/confirm`, data }) |
| | | }, |
| | | |
| | | // VIP预约确认 |
| | | confirmAppointmentVip: async (data: AppointmentVO) => { |
| | | return await request.post({ url: `/ecg/appointment/confirm-vip`, data }) |
| | | } |
| | | |
| | | } |