Package Controllers.AOManagers
Class PharmaAOM
java.lang.Object
Common.AppointmentOutcomeManager
Controllers.AOManagers.PharmaAOM
The
PharmaAOM
class manages appointment outcomes specific to pharmacists.
It extends AppointmentOutcomeManager
to provide functionalities for viewing
and updating appointment outcomes.-
Field Summary
Fields inherited from class Common.AppointmentOutcomeManager
database
-
Constructor Summary
ConstructorsConstructorDescriptionPharmaAOM
(AppointmentOutcomeDatabase database) Constructs aPharmaAOM
with the specified appointment outcome database. -
Method Summary
Modifier and TypeMethodDescriptionboolean
updateOutcomeStatus
(String appointmentId) Updates the status of a specific appointment outcome to DISPERSED.boolean
Views all pending appointment outcomes.boolean
viewOutcome
(String appointmentId) Views the outcome of a specific appointment by its ID.Methods inherited from class Common.AppointmentOutcomeManager
addOutcome, getAllOutcomes, getOutcome, removeOutcome
-
Constructor Details
-
PharmaAOM
Constructs aPharmaAOM
with the specified appointment outcome database.- Parameters:
database
- theAppointmentOutcomeDatabase
used to manage appointment outcomes
-
-
Method Details
-
viewOutcome
Views the outcome of a specific appointment by its ID.- Parameters:
appointmentId
- the unique identifier of the appointment- Returns:
- true if the outcome was successfully viewed; false if not found or not pending
-
viewAllOutcome
public boolean viewAllOutcome()Views all pending appointment outcomes.- Returns:
- true if any pending outcomes were successfully viewed; false if none found
-
updateOutcomeStatus
Updates the status of a specific appointment outcome to DISPERSED.- Parameters:
appointmentId
- the unique identifier of the appointment- Returns:
- true if the status was successfully updated; false if not found or not pending
-