Package UI.AOMUI

Class PatientOutcomeInterface

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

public class PatientOutcomeInterface extends UserInterface
The PatientOutcomeInterface class provides functionality for managing appointment outcomes for patients. It extends UserInterface and interacts with the PatientAOM manager to handle patient-related outcomes.
  • Constructor Details

    • PatientOutcomeInterface

      public PatientOutcomeInterface(PatientAOM patientManager)
      Constructs a PatientOutcomeInterface with the specified PatientAOM instance.
      Parameters:
      patientManager - the manager used to access and manage patient appointment outcomes
  • Method Details

    • displayOptions

      public void displayOptions(String accountId)
      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.
      Parameters:
      accountId - the unique identifier of the patient's account
    • viewSpecificOutcome

      public void viewSpecificOutcome()
      Prompts the user to enter an appointment ID and displays its outcome. If the ID is empty or does not exist, an error message is displayed.
    • viewPastOutcomes

      public void viewPastOutcomes()
      Displays all past outcomes for appointments associated with the patient. If no past outcomes are found, an error message is displayed.