Package UI.AOMUI
Class PatientOutcomeInterface
java.lang.Object
Common.UserInterface
UI.AOMUI.PatientOutcomeInterface
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.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionPatientOutcomeInterface
(PatientAOM patientManager) Constructs aPatientOutcomeInterface
with the specifiedPatientAOM
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayOptions
(String accountId) Prompts the user to select an option for managing appointment outcomes.void
Displays all past outcomes for appointments associated with the patient.void
Prompts the user to enter an appointment ID and displays its outcome.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
PatientOutcomeInterface
Constructs aPatientOutcomeInterface
with the specifiedPatientAOM
instance.- Parameters:
patientManager
- the manager used to access and manage patient appointment outcomes
-
-
Method Details
-
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.- 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.
-