diff --git a/src/api/his.ts b/src/api/his.ts index 6aba385..5eb79f0 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -14,6 +14,8 @@ import type { CustomerDetailResponse, InputMedicalExamCenterSignIn, PhysicalExamSignInResponse, + InputTongyishuInfo, + TongyishuGetResponse, } from './types'; /** @@ -112,3 +114,15 @@ export const signInMedicalExamCenter = ( ).then(res => res.data); }; +/** + * 获取体检知情同意书PDF + */ +export const getTongyishuPdf = ( + data: InputTongyishuInfo +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/tongyishu-get`, + data + ).then(res => res.data); +}; + diff --git a/src/api/types.ts b/src/api/types.ts index fc5dea5..2b30bc4 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -272,3 +272,38 @@ export interface OutputPhysicalExamSignIn { */ export type PhysicalExamSignInResponse = CommonActionResult; +/** + * 获取体检知情同意书入参 + */ +export interface InputTongyishuInfo { + /** 体检ID */ + exam_id: number; +} + +/** + * 知情同意书文件信息 + */ +export interface OutputTongyishuFileInfo { + /** 组合代码 */ + combination_code?: number | null; + /** 知情同意书文件名称 */ + pdf_name: string; + /** 知情同意书PDF文件地址 */ + pdf_url: string; +} + +/** + * 获取体检知情同意书出参 + */ +export interface OutputTongyishuInfo { + /** 知情同意书PDF文件url */ + list_pdf_url?: OutputTongyishuFileInfo[] | null; + /** 消息内容 */ + message?: string | null; +} + +/** + * 获取体检知情同意书响应 + */ +export type TongyishuGetResponse = CommonActionResult; +