Class PatientAOM

java.lang.Object
Common.AppointmentOutcomeManager
Controllers.AOManagers.PatientAOM

public class PatientAOM extends AppointmentOutcomeManager
The PatientAOM class manages appointment outcomes specific to patients. It extends AppointmentOutcomeManager to provide functionalities for viewing appointment outcomes related to a specific patient.
  • Constructor Details

    • PatientAOM

      public PatientAOM(AppointmentOutcomeDatabase database, String id)
      Constructs a PatientAOM with the specified appointment outcome database and patient ID.
      Parameters:
      database - the AppointmentOutcomeDatabase used to manage appointment outcomes
      id - the unique identifier of the patient
  • Method Details

    • displayOutcome

      public boolean displayOutcome(String appointmentId)
      Displays the outcome of a specific appointment for the patient.
      Parameters:
      appointmentId - the unique identifier of the appointment
      Returns:
      true if the outcome was successfully displayed; false if not found
    • displayPastOutcomes

      public boolean displayPastOutcomes()
      Displays all past appointment outcomes for the specific patient.
      Returns:
      true if any past outcomes were successfully displayed; false if none found