Package UI.AOMUI

Class DoctorOutcomeInterface

java.lang.Object
Common.UserInterface
UI.AOMUI.DoctorOutcomeInterface

public class DoctorOutcomeInterface extends UserInterface
The DoctorOutcomeInterface class provides functionality for managing appointment outcomes for doctors. It extends UserInterface and interacts with the DoctorAOM manager to handle appointment outcomes.
  • Constructor Details

    • DoctorOutcomeInterface

      public DoctorOutcomeInterface(DoctorAOM doctorManager, DoctorSchedule doctorSchedule)
      Constructs a DoctorOutcomeInterface with the specified DoctorAOM and DoctorSchedule instances.
      Parameters:
      doctorManager - the manager used to access and manage doctor's appointment outcomes
      doctorSchedule - the schedule of appointments for the doctor
  • Method Details

    • displayOptions

      public void displayOptions()
      Prompts the user to select an option for managing appointment outcomes. Displays a menu of options and executes the corresponding functionality based on user input.
    • viewConfirmedAppointments

      public void viewConfirmedAppointments()
      Displays all confirmed appointments from the doctor's schedule.
    • selectAppointment

      public void selectAppointment()
      Prompts the user to select a confirmed appointment and record its outcome.
    • recordOutcome

      public void recordOutcome(String appointmentId, String doctorId, String patientId, String date)
      Records the outcome of an appointment based on provided details.
      Parameters:
      appointmentId - the unique identifier of the appointment being recorded
      doctorId - the unique identifier of the doctor associated with the appointment
      patientId - the unique identifier of the patient associated with the appointment
      date - the date of the appointment being recorded