| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- import { type ReportModel, transformIndicator } from '@/model';
- import request from '@/request/alova';
- export function reportsMethod(patientId: string) {
- return request.Get<ReportModel[], any[]>(`/fdhb-pc/analysisManage/getHarsTid`, {
- params: { patientId },
- transform(data, headers) {
- return data?.map(item => {
- return {
- ...item,
- id: item.healthAnalysisReportId,
- time: item.time2,
- }
- }) ?? [];
- },
- });
- }
- export function reportMethod(id: string) {
- return request.Get<ReportModel, any>(`/fdhb-pc/analysisManage/getHealRepDetailById`, {
- params: { healthAnalysisReportId: id },
- transform(data, headers) {
- return {
- ...data,
- id: data.healthAnalysisReportId,
- time: data.reportTime,
- };
- },
- });
- }
- export function schemeMethod(reportId: string) {
- return request.Get<ReportModel>(`/fdhb-pc/analysisManage/getCondProgDetailById`, {
- params: { healthAnalysisReportId: reportId },
- });
- }
- export function indicatorMethod(reportId: string) {
- return request.Get<Record<string, any>[], any[]>(`fdhb-pc/analysisManage/getLast7Day`, {
- params: { healthAnalysisReportId: reportId },
- transform(data, headers) {
- return transformIndicator(data);
- },
- });
- }
- // 患者指标
- export function patientIndicatorMethod(patientId: string) {
- return request.Get<Record<string, any>[], any[]>(`/fdhb-pc/patientQuota/getCurQuovalByPatId`, {
- params: { patientId },
- transform(data, headers) {
- return transformIndicator(data);
- },
- });
- }
- // 患者指标更新记录
- export function patientIndicatorUpdateReportMethod(patientId: string) {
- return request.Get(`/fdhb-pc/patientQuota/getQuovalRecord`, {
- params: { patientId },
- });
- }
- // 患者数据更新记录
- export function patientInfoUpdateReportMethod(id: string) {
- return request.Get(`/fdhb-pc/patientInfoManage/pageChangeRecordById`, {
- params: { patientId: id },
- });
- }
|