Class ViewAvailableAppointmentsPage

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

public class ViewAvailableAppointmentsPage extends UserInterface
The ViewAvailableAppointmentsPage class provides functionality for viewing available appointments for doctors. It extends UserInterface and interacts with the PatientAM manager to retrieve doctor and appointment details.
  • Constructor Details

    • ViewAvailableAppointmentsPage

      public ViewAvailableAppointmentsPage(PatientAM patientAM)
      Constructs a ViewAvailableAppointmentsPage with the specified PatientAM instance.
      Parameters:
      patientAM - the manager used to access and manage patient's appointments
  • Method Details

    • viewAvailableAppointments

      public void viewAvailableAppointments()
      Displays a list of available appointments for doctors. It shows a list of doctors, allows the user to select a doctor, and displays available time slots for that doctor. The user can choose to view another doctor's slots or return to the menu.