122 lines
3.9 KiB
TypeScript
122 lines
3.9 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 申请登记记录 VO
|
|
export interface ApplyformVO {
|
|
id: string // 主键
|
|
regId: string // 登记单号
|
|
regSource: string // 登记来源
|
|
examId: string // 检查ID
|
|
pname: string // 患者姓名
|
|
gender: string // 性别
|
|
birthday: Date // 出生日期
|
|
examDate: Date // 检查日期
|
|
examItemName: string // 检查项目名称
|
|
deviceId: string // 检查设备ID
|
|
deviceName: string // 检查设备名称
|
|
contactTel: string // 患者联系电话
|
|
regDate: Date // 登记时间
|
|
sortDate: Date // 分检时间
|
|
billgDoctor: string // 开单医生
|
|
examStatus: string // 检查状态
|
|
billDoctorDepartment: string // 开单医生科室
|
|
createDate: Date // 此条记录的创建时间
|
|
examItemCode: string // 检查项目代码
|
|
orgId: string // 机构ID
|
|
sortDoctor: string // 分检医生
|
|
deviceDepartment:string // 执行科室
|
|
departmentCode:string //执行科室代码
|
|
}
|
|
|
|
//分检操作使用
|
|
export interface UPFJApplyformVO {
|
|
|
|
id: string // 主键
|
|
device: string // 设备内容
|
|
sortDoctor:string//分检医生 也就是当前登录人
|
|
worklist:DicomworklistVO[]
|
|
}
|
|
// 分检业务表 VO
|
|
export interface DicomworklistVO {
|
|
accessionN: string // 唯一的号
|
|
patientID: string // 患者ID
|
|
patientNam: string // 姓名
|
|
patientBir: string // 日期
|
|
patientSex: string // 性别
|
|
studyInsta: string // 1
|
|
modality: string // 1
|
|
scheduledA: string // 1
|
|
startDate: string // 1
|
|
startTime: string // 1
|
|
orgId: string // 1
|
|
registrant: string // 登记医生
|
|
examItemName:string
|
|
examItemCode:string
|
|
devname:string
|
|
}
|
|
|
|
// 申请登记记录 API
|
|
export const ApplyformApi = {
|
|
// 查询申请登记记录分页
|
|
getApplyformPage: async (params: any) => {
|
|
return await request.get({ url: `/applyregistration/applyform/page`, params })
|
|
},
|
|
|
|
// 查询申请登记记录详情
|
|
getApplyform: async (id: number) => {
|
|
return await request.get({ url: `/applyregistration/applyform/get?id=` + id })
|
|
},
|
|
|
|
// 新增申请登记记录
|
|
createApplyform: async (data: ApplyformVO) => {
|
|
return await request.post({ url: `/applyregistration/applyform/create`, data })
|
|
},
|
|
|
|
// 修改申请登记记录
|
|
updateApplyform: async (data: ApplyformVO) => {
|
|
return await request.put({ url: `/applyregistration/applyform/update`, data })
|
|
},
|
|
|
|
// 删除申请登记记录
|
|
deleteApplyform: async (id: number) => {
|
|
return await request.delete({ url: `/applyregistration/applyform/delete?id=` + id })
|
|
},
|
|
|
|
// 导出申请登记记录 Excel
|
|
exportApplyform: async (params) => {
|
|
return await request.download({ url: `/applyregistration/applyform/export-excel`, params })
|
|
},
|
|
|
|
// 获取设备表记录
|
|
getDevicelist: async (orgId: string) => {
|
|
return await request.get({ url: `/applyregistration/applyform/getdevice?orgId=` + orgId })
|
|
},
|
|
|
|
// 更新分检相关内容
|
|
updateFJApplyform: async (data:UPFJApplyformVO) => {
|
|
return await request.post({ url: `/applyregistration/applyform/updateapplyform`,data })
|
|
},
|
|
|
|
// 删除申请登记记录
|
|
cancelApplyform: async (id: number) => {
|
|
return await request.delete({ url: `/applyregistration/applyform/cancel?id=` + id })
|
|
},
|
|
|
|
// 获取执行科室列表
|
|
getapplfmDeptlist: async (orgId: string) => {
|
|
return await request.get({ url: `/applyregistration/applyform/applfmdeptlist?orgId=` + orgId })
|
|
},
|
|
|
|
//批量分检
|
|
batchupdateFJApplyform: async (data:UPFJApplyformVO[]) => {
|
|
return await request.post({ url: `/applyregistration/applyform/batchupdateFJ`, data})
|
|
},
|
|
// 同步
|
|
SyncDb: async (AppCode: string,type:string) => {
|
|
return await request.get({ url: `/applyregistration/applyform/SyncDb?AppCode=${AppCode}&&type=${type}` })
|
|
},
|
|
// 获取登记单统计信息
|
|
GetReglistCount: async () => {
|
|
return await request.get({ url: `/applyregistration/applyform/getreglisrcount`})
|
|
},
|
|
}
|