feat: add patient appointment interface and endpoints
- Introduced `PatientAppointment` interface to define appointment structure. - Implemented `findByUserAndDoctorIds` method in `AppointmentRepository` to retrieve appointments for a user filtered by doctor IDs. - Added `acceptedDoctorIdsByClinic` method in `ClinicDoctorInvitationRepository` to get accepted doctor IDs for a clinic. - Created new endpoint in `PatientController` to fetch appointments for a patient, ensuring only relevant doctors' appointments are displayed.
This commit is contained in:
@@ -502,6 +502,17 @@ export interface SessionServiceLine {
|
||||
created_at: number;
|
||||
}
|
||||
|
||||
export interface PatientAppointment {
|
||||
uuid: string;
|
||||
starts_at: number;
|
||||
ends_at: number | null;
|
||||
status: string;
|
||||
doctor_name: string | null;
|
||||
service_name: string | null;
|
||||
price_rials: number | null;
|
||||
created_at: number;
|
||||
}
|
||||
|
||||
export interface PatientSession {
|
||||
uuid: string;
|
||||
record_uuid: string;
|
||||
|
||||
Reference in New Issue
Block a user