Package UI.AppointmentPages
Class ViewScheduledAppointmentsPage
java.lang.Object
Common.UserInterface
UI.AppointmentPages.ViewScheduledAppointmentsPage
The
ViewScheduledAppointmentsPage
class provides functionality for
viewing scheduled appointments for a patient. It extends UserInterface
and interacts with the PatientAM
manager to retrieve appointment details.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionViewScheduledAppointmentsPage
(PatientAM patientAM) Constructs aViewScheduledAppointmentsPage
with the specifiedPatientAM
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays the scheduled appointments for the patient.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
ViewScheduledAppointmentsPage
Constructs aViewScheduledAppointmentsPage
with the specifiedPatientAM
instance.- Parameters:
patientAM
- the manager used to access and manage patient's appointments
-
-
Method Details
-
displaySlots
public void displaySlots()Displays the scheduled appointments for the patient. It retrieves and prints appointment details, including ID, date, time, and status. If no scheduled appointments are found, an error message is displayed.
-