Class ViewScheduledAppointmentsPage

java.lang.Object
Common.UserInterface
UI.AppointmentPages.ViewScheduledAppointmentsPage

public class ViewScheduledAppointmentsPage extends UserInterface
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.
  • Constructor Details

    • ViewScheduledAppointmentsPage

      public ViewScheduledAppointmentsPage(PatientAM patientAM)
      Constructs a ViewScheduledAppointmentsPage with the specified PatientAM 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.