Package UI.AppointmentPages
Class ViewAvailableAppointmentsPage
java.lang.Object
Common.UserInterface
UI.AppointmentPages.ViewAvailableAppointmentsPage
The
ViewAvailableAppointmentsPage
class provides functionality for
viewing available appointments for doctors. It extends UserInterface
and interacts with the PatientAM
manager to retrieve doctor and appointment details.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionViewAvailableAppointmentsPage
(PatientAM patientAM) Constructs aViewAvailableAppointmentsPage
with the specifiedPatientAM
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays a list of available appointments for doctors.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
ViewAvailableAppointmentsPage
Constructs aViewAvailableAppointmentsPage
with the specifiedPatientAM
instance.- Parameters:
patientAM
- the manager used to access and manage patient's appointments
-
-
Method Details
-
viewAvailableAppointments
public void viewAvailableAppointments()Displays a list of available appointments for doctors. It shows a list of doctors, allows the user to select a doctor, and displays available time slots for that doctor. The user can choose to view another doctor's slots or return to the menu.
-