fix(health): 对接今日体征摘要新端点 /health/vital-signs/today

This commit is contained in:
iven
2026-04-24 12:18:23 +08:00
parent e7b6bdfcac
commit d26a847be2

View File

@@ -9,14 +9,14 @@ export interface VitalSignInput {
}
export interface TodaySummary {
blood_pressure?: { systolic: number; diastolic: number; status: string };
heart_rate?: { value: number; status: string };
blood_sugar?: { value: number; status: string };
weight?: { value: number; status: string };
blood_pressure?: { systolic: number; diastolic: number; status: string; reference_range?: string };
heart_rate?: { value: number; status: string; reference_range?: string };
blood_sugar?: { value: number; status: string; reference_range?: string };
weight?: { value: number; status: string; reference_range?: string };
}
export async function getTodaySummary() {
return api.get<TodaySummary>('/health/vital-signs?date=today');
return api.get<TodaySummary>('/health/vital-signs/today');
}
export async function inputVitalSign(patientId: string, data: VitalSignInput) {