Package UI.AOMUI
Class DoctorOutcomeInterface
java.lang.Object
Common.UserInterface
UI.AOMUI.DoctorOutcomeInterface
The
DoctorOutcomeInterface
class provides functionality for managing
appointment outcomes for doctors. It extends UserInterface
and interacts with the DoctorAOM
manager to handle appointment outcomes.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionDoctorOutcomeInterface
(DoctorAOM doctorManager, DoctorSchedule doctorSchedule) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Prompts the user to select an option for managing appointment outcomes.void
recordOutcome
(String appointmentId, String doctorId, String patientId, String date) Records the outcome of an appointment based on provided details.void
Prompts the user to select a confirmed appointment and record its outcome.void
Displays all confirmed appointments from the doctor's schedule.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
DoctorOutcomeInterface
- Parameters:
doctorManager
- the manager used to access and manage doctor's appointment outcomesdoctorSchedule
- 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
Records the outcome of an appointment based on provided details.- Parameters:
appointmentId
- the unique identifier of the appointment being recordeddoctorId
- the unique identifier of the doctor associated with the appointmentpatientId
- the unique identifier of the patient associated with the appointmentdate
- the date of the appointment being recorded
-