Package Controllers.AOManagers
Class PatientAOM
java.lang.Object
Common.AppointmentOutcomeManager
Controllers.AOManagers.PatientAOM
The
PatientAOM
class manages appointment outcomes specific to patients.
It extends AppointmentOutcomeManager
to provide functionalities for
viewing appointment outcomes related to a specific patient.-
Field Summary
Fields inherited from class Common.AppointmentOutcomeManager
database
-
Constructor Summary
ConstructorsConstructorDescriptionPatientAOM
(AppointmentOutcomeDatabase database, String id) Constructs aPatientAOM
with the specified appointment outcome database and patient ID. -
Method Summary
Modifier and TypeMethodDescriptionboolean
displayOutcome
(String appointmentId) Displays the outcome of a specific appointment for the patient.boolean
Displays all past appointment outcomes for the specific patient.Methods inherited from class Common.AppointmentOutcomeManager
addOutcome, getAllOutcomes, getOutcome, removeOutcome
-
Constructor Details
-
PatientAOM
Constructs aPatientAOM
with the specified appointment outcome database and patient ID.- Parameters:
database
- theAppointmentOutcomeDatabase
used to manage appointment outcomesid
- the unique identifier of the patient
-
-
Method Details
-
displayOutcome
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
-