Package Controllers.AOManagers
Class DoctorAOM
java.lang.Object
Common.AppointmentOutcomeManager
Controllers.AOManagers.DoctorAOM
The
DoctorAOM
class manages appointment outcomes specific to doctors.
It extends AppointmentOutcomeManager
to provide functionalities for
writing and managing appointment outcomes for a specific doctor.-
Field Summary
Fields inherited from class Common.AppointmentOutcomeManager
database
-
Constructor Summary
ConstructorsConstructorDescriptionDoctorAOM
(AppointmentOutcomeDatabase database, String doctorId, DoctorSchedule schedule) Constructs aDoctorAOM
with the specified appointment outcome database, doctor ID, and doctor's schedule. -
Method Summary
Methods inherited from class Common.AppointmentOutcomeManager
addOutcome, getAllOutcomes, getOutcome, removeOutcome
-
Constructor Details
-
DoctorAOM
Constructs aDoctorAOM
with the specified appointment outcome database, doctor ID, and doctor's schedule.- Parameters:
database
- theAppointmentOutcomeDatabase
used to manage appointment outcomesdoctorId
- the unique identifier of the doctorschedule
- theDoctorSchedule
associated with the doctor
-
-
Method Details
-
getDoctorId
Returns the unique identifier of the doctor.- Returns:
- the doctor's ID
-
writeOutcome
public boolean writeOutcome(String appointmentId, String patientId, String newDate, String newTypeOfService, String newMedication, String newConsultationNotes) Writes a new outcome for an appointment.- Parameters:
appointmentId
- the unique identifier of the appointmentpatientId
- the unique identifier of the patientnewDate
- the new date for the appointment outcomenewTypeOfService
- the type of service provided during the appointmentnewMedication
- any medication prescribed during the appointmentnewConsultationNotes
- notes from the consultation- Returns:
- true if the outcome was successfully added; false otherwise
-