Package UI.AppointmentPages
Class ScheduleAppointmentPage
java.lang.Object
Common.UserInterface
UI.AppointmentPages.ScheduleAppointmentPage
The
ScheduleAppointmentPage
class provides functionality for
scheduling appointments with 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
ConstructorsConstructorDescriptionScheduleAppointmentPage
(PatientAM patientAM) Constructs aScheduleAppointmentPage
with the specifiedPatientAM
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays a list of doctors and allows the user to select a doctor to schedule an appointment.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
ScheduleAppointmentPage
Constructs aScheduleAppointmentPage
with the specifiedPatientAM
instance.- Parameters:
patientAM
- the manager used to access and manage patient's appointments
-
-
Method Details
-
displayOptions
public void displayOptions()Displays a list of doctors and allows the user to select a doctor to schedule an appointment. It retrieves available slots for the selected doctor and prompts the user to book a slot.
-