Class CancelAppointmentPage

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

public class CancelAppointmentPage extends UserInterface
The CancelAppointmentPage class provides functionality for canceling scheduled appointments for a patient. It extends UserInterface and interacts with the PatientAM manager to manage appointment cancellations.
  • Constructor Details

    • CancelAppointmentPage

      public CancelAppointmentPage(PatientAM patientAM)
      Constructs a CancelAppointmentPage 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 patient's scheduled appointments. If there are no scheduled appointments, an error message is displayed. It then calls the method to cancel a selected appointment.