Files
ipad/src/api/his.ts
2025-12-10 15:28:45 +08:00

65 lines
1.6 KiB
TypeScript

import request from './request';
import type {
InputTodayExamStatisticsInfo,
TodayExamStatisticsResponse,
InputRevenueStatisticsInfo,
RevenueStatisticsResponse,
InputTodayExamProgress,
TodayExamProgressResponse,
} from './types';
/**
* 自助机HIS接口
* 基础路径: /api/his-web/self-service-machine/
*/
const HIS_BASE_PATH = '/api/his-web/self-service-machine';
/**
* 体检中心HIS接口
* 基础路径: /api/his-web/medical-exam-center-app/
*/
const MEDICAL_EXAM_BASE_PATH = '/api/his-web/medical-exam-center-app';
/**
* 今日体检统计信息
* @param data 请求参数(空对象)
* @returns 今日体检统计信息
*/
export const getTodayExamStatistics = (
data: InputTodayExamStatisticsInfo = {}
): Promise<TodayExamStatisticsResponse> => {
return request.post<TodayExamStatisticsResponse>(
`${MEDICAL_EXAM_BASE_PATH}/today-exam-statistics`,
data
).then(res => res.data);
};
/**
* 营收数据统计
* @param data 请求参数(空对象)
* @returns 营收数据统计信息
*/
export const getRevenueStatistics = (
data: InputRevenueStatisticsInfo = {}
): Promise<RevenueStatisticsResponse> => {
return request.post<RevenueStatisticsResponse>(
`${MEDICAL_EXAM_BASE_PATH}/revenue-statistics`,
data
).then(res => res.data);
};
/**
* 今日体检进度信息
* @param data 请求参数(空对象)
* @returns 今日体检进度信息
*/
export const getTodayExamProgress = (
data: InputTodayExamProgress = {}
): Promise<TodayExamProgressResponse> => {
return request.post<TodayExamProgressResponse>(
`${MEDICAL_EXAM_BASE_PATH}/today-exam-progress`,
data
).then(res => res.data);
};