Class ScheduleAppointmentPage

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

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

    • ScheduleAppointmentPage

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