improvement: appointments history component added to patients feature.
This commit is contained in:
@@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user