improvement: appointments history component added to patients feature.

This commit is contained in:
2026-07-12 18:56:01 +03:30
parent 3b47aa9605
commit 1cdf853d32
12 changed files with 374 additions and 28 deletions

View File

@@ -3,6 +3,7 @@ import {
CreatePatientInput,
CreatePatientResponse,
Patient,
PatientAppointmentHistoryResponse,
PatientsListResponse,
} from '@/types/patient';
@@ -21,4 +22,9 @@ export const patientsApi = {
const response = await apiClient.get(`/patients/${id}`);
return response.data;
},
listAppointments: async (patientId: string): Promise<PatientAppointmentHistoryResponse> => {
const response = await apiClient.get(`/patients/${patientId}/appointments`);
return response.data;
},
};