Files
zyt/admin/src/api/patient.ts
T
2026-04-30 12:19:04 +08:00

42 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from '@/utils/request'
// 接诊台 - 待接诊队列(复用挂号列表接口)
// 建议调用方式:receptionQueue({ status: 1, start_date: today, end_date: today, page_size: 50 })
export function receptionQueue(params: any) {
return request.get({ url: '/doctor.appointment/lists', params })
}
// 接诊台 - 聚合详情:挂号信息 + 诊单病例 + 血糖血压记录
export function receptionDetail(params: { id: number }) {
return request.get({ url: '/doctor.appointment/reception', params })
}
// 接诊台 - 通知接诊医助(发企业微信)
export function notifyAssistant(params: { id: number }) {
return request.post({ url: '/doctor.appointment/notifyAssistant', params })
}
// 医生备注 - 添加/追加(同一天追加 content + tongue_images + report_files
export function addDoctorNote(params: {
diagnosis_id: number
content?: string
tongue_images?: string[]
report_files?: string[]
}) {
return request.post({ url: '/doctor.appointment/addDoctorNote', params })
}
// 医生备注 - 按诊单查询列表
export function getDoctorNotes(params: { diagnosis_id: number }) {
return request.get({ url: '/doctor.appointment/doctorNotes', params })
}
// 医生备注 - 删除单张图片
export function deleteDoctorNoteImage(params: {
note_id: number
image_type: 'tongue_images' | 'report_files'
image_path: string
}) {
return request.post({ url: '/doctor.appointment/deleteDoctorNoteImage', params })
}