142 lines
5.4 KiB
TypeScript
142 lines
5.4 KiB
TypeScript
import request from '@/config/axios'
|
||
|
||
// 患者信息 VO
|
||
export interface PatientVO {
|
||
id: number // 主键
|
||
medicalSn: string // 体检编号
|
||
pname: string // 患者姓名
|
||
gender: string // 性别
|
||
birthday: Date // 出生日期
|
||
cardType: string // 证件类型
|
||
cardId: string // 证件ID
|
||
nationality: string // 国籍
|
||
nation: string // 民族
|
||
race: string // 人种
|
||
phoneNum: string // 电话
|
||
status: number // 0:患者登记,1:已检查,2:放弃,3:挂起,择日检,4:已汇总,5:终检审核,6:报告已取
|
||
reportType: string // 0:电子报告 1:个人自取 2:公司自取 3:邮寄
|
||
createTime: Date // 信息创建日期
|
||
medicalDateTime: Date // 体检登记日期 体检日期
|
||
chargeType: string // 收费方式:现金 微信 刷卡 支票 免费等,从字典表里取
|
||
totalPrice: number // 实际收款金额
|
||
headPicUrl: string // 头像图片路径
|
||
summaryResult: string // 汇总分析结果
|
||
auditor: string // 审核人
|
||
auditorTime: Date // 审核时间
|
||
chargetime: Date // 收费时间
|
||
headimage: string // 个人信息图片
|
||
domicileaddress: string // 住址
|
||
xcgcode: string // 血常规编号
|
||
ncgcode: string // 尿常规编号
|
||
shqx: string // 生化编号
|
||
isprint: number // 是否打印
|
||
printtime: Date // 打印时间
|
||
chiefinspectorid: string // 总检医生ID
|
||
chiefinspector: string // 总检医生
|
||
}
|
||
|
||
// 患者信息 API
|
||
export const PatientApi = {
|
||
// 查询患者信息分页
|
||
getPatientPage: async (params: any) => {
|
||
return await request.get({ url: `/inspect/patient/page`, params })
|
||
},
|
||
//根据体检获得患者信息
|
||
getPatientInfo: async (medicalSn: string) => {
|
||
return await request.get({ url: `/inspect/patient/getpatientjson?medicalSn=` + medicalSn })
|
||
},
|
||
// 查询患者信息详情
|
||
getPatient: async (id: number) => {
|
||
return await request.get({ url: `/inspect/patient/get?id=` + id })
|
||
},
|
||
|
||
// 新增患者信息
|
||
createPatient: async (data: PatientVO) => {
|
||
return await request.post({ url: `/inspect/patient/create`, data })
|
||
},
|
||
|
||
// 修改患者信息
|
||
updatePatient: async (data: PatientVO) => {
|
||
return await request.put({ url: `/inspect/patient/update`, data })
|
||
},
|
||
|
||
// 删除患者信息
|
||
deletePatient: async (id: number) => {
|
||
return await request.delete({ url: `/inspect/patient/delete?id=` + id })
|
||
},
|
||
|
||
// 导出患者信息 Excel
|
||
exportPatient: async (params) => {
|
||
return await request.download({ url: `/inspect/patient/export-excel`, params })
|
||
},
|
||
|
||
// 导入患者信息
|
||
uploadExcel: async (data: FormData) => {
|
||
return await request.upload({ url: `/inspect/patient/uploadExcel`, data })
|
||
},
|
||
|
||
//发送检验申请单
|
||
syncinspectApplyTj: async (medicalSn: string) => {
|
||
return await request.get({ url: `/inspect/patient/syncinspectApplyTj?medicalSn=` + medicalSn })
|
||
},
|
||
|
||
//获取检验报告
|
||
getReportTj: async (medicalSn: string, type: string) => {
|
||
return await request.get({ url: `/inspect/patient/getReportTj?medicalSn=` + medicalSn + `&type=` + type })
|
||
},
|
||
|
||
//获取超声报告
|
||
getUSTj: async (medicalSn: string) => {
|
||
return await request.get({ url: `/inspect/patient/getUSTj?medicalSn=` + medicalSn })
|
||
},
|
||
//获取心电报告
|
||
GetApiEcgInfo: async (medicalSn: string) => {
|
||
return await request.get({ url: `/inspect/patient/getecgTj?medicalSn=` + medicalSn })
|
||
},
|
||
//获取一般检查项目结果
|
||
GetApiYbjcInfo: async (medicalSn: string, cardId: string) => {
|
||
return await request.put({ url: `/inspect/patient/GetApiYbjcInfo?medicalSn=` + medicalSn + `&cardId=` + cardId })
|
||
},
|
||
//新增患者信息和体检项目
|
||
insertPatinetInfo: async (data: PatientVO) => {
|
||
return await request.post({ url: `/inspect/patient/insertPatinetInfo`, data })
|
||
},
|
||
createPatientInspectDataReport: async (medicalSn: any) => {
|
||
return await request.get({ url: `/inspect/patient/createPatientInspectDataReport?medicalSn=` + medicalSn, timeout: 110 * 1000 })
|
||
},
|
||
//获取体检报告
|
||
getReportAll: async (medicalSn: string) => {
|
||
return await request.get({ url: `/inspect/patient/getReportAll?medicalSn=` + medicalSn })
|
||
},
|
||
// 保存汇总结果
|
||
updatemedicalSn: async (data: PatientVO) => {
|
||
return await request.put({ url: `/inspect/patient/updatesummary`, data })
|
||
},
|
||
// 保存总检医生
|
||
updatedoctorid: async (data: PatientVO) => {
|
||
return await request.put({ url: `/inspect/patient/updatedoctorid`, data })
|
||
},
|
||
//获取中医体质辨识结果
|
||
getZytzInfo: async (medicalSn: string, cardId: string) => {
|
||
return await request.put({ url: `/inspect/patient/syncPatientZyInfo?medicalSn=` + medicalSn + `&cardId=` + cardId })
|
||
},
|
||
//根据体检编号给患者绑定体检项目
|
||
bindPatientProject: async (medicalSn: string) => {
|
||
return await request.get({ url: `/inspect/patient/createPatientitem?medicalSn=` + medicalSn })
|
||
},
|
||
//根据体检编号&姓名&身份证号获取患者信息
|
||
getPatientInfoByMedicalSn: async (searchKey: string) => {
|
||
return await request.get({ url: `/inspect/patient/PatientBySearchKey?searchKey=` + searchKey })
|
||
},
|
||
//获取公卫患者信息
|
||
getGwPatientInfo: async (idCard: string) => {
|
||
return await request.get({ url: `/inspect/patient/GetApiPatientInfo?idCard=` + idCard })
|
||
},
|
||
//更新打印状态
|
||
updatePrintStatus: async (medicalSn: string, printtime: Date) => {
|
||
return await request.put({
|
||
url: `/inspect/patient/updatePrintStatus?medicalSn=${medicalSn}&printtime=${printtime.toISOString()}`
|
||
})
|
||
}
|
||
}
|