Index

A B C D F G L M N P R S T U V W X 
All Classes and Interfaces|All Packages

A

acceptDeclineAppointment(String, int, String, boolean) - Static method in class sc2002.repositories.DoctorAppointmentDB
Updates the status of an appointment to "Confirmed" or "Declined".
acceptDeclineAppointment(Scanner) - Method in class sc2002.controllers.Doctor
Manages the acceptance or decline of patient appointments.
acceptDeclineAppointment(Scanner) - Method in class sc2002.models.DoctorAppointment
Allows the doctor to accept or decline pending appointments.
addDiagnosis(String, String, String, String, String) - Static method in class sc2002.repositories.DiagnosisDB
Adds a new diagnosis for a patient to the CSV file.
addHospitalStaff() - Method in class sc2002.controllers.Administrator
Allows the administrator to add a new hospital staff member by collecting necessary information from the user and adding the staff to the database.
addMedication() - Method in class sc2002.controllers.Administrator
Allows the administrator to add new medication to the inventory by collecting information about the medication and adding it to the database.
addMedication(MedicationInventory) - Static method in class sc2002.repositories.MedicationInventoryDB
Adds a new medication to the inventory.
addStaff(Staff) - Static method in class sc2002.repositories.StaffDB
Adds a new staff member to the Staff and User databases.
Administrator - Class in sc2002.controllers
The Administrator class represents an administrator user with abilities to manage hospital staff, medication inventory, and replenishment requests.
Administrator(String) - Constructor for class sc2002.controllers.Administrator
Constructs an Administrator object with the specified hospital ID.
ADMINISTRATOR - Enum constant in enum class sc2002.enums.Role
 
Appointment - Interface in sc2002.models
Interface for managing appointment functionalities such as viewing appointment status.
AppointmentDetails - Class in sc2002.models
The AppointmentDetails class represents details of an appointment, including the patient, doctor, appointment ID, date, time, and status.
AppointmentDetails(String, String, int, LocalDate, LocalTime, LocalTime, AppointmentStatus) - Constructor for class sc2002.models.AppointmentDetails
Constructs an AppointmentDetails object with specified attributes.
AppointmentDetailsDB - Class in sc2002.repositories
Provides access to appointment details and appointment outcome data stored in CSV files.
AppointmentDetailsDB() - Constructor for class sc2002.repositories.AppointmentDetailsDB
 
AppointmentOutcomeRecord - Class in sc2002.services
Represents the record of an appointment outcome, including details of the patient, doctor, services provided, and medications.
AppointmentOutcomeRecord(String, String, int, LocalDate, Service, String, PrescriptionStatus, String) - Constructor for class sc2002.services.AppointmentOutcomeRecord
Constructs an AppointmentOutcomeRecord with the specified details.
AppointmentStatus - Enum Class in sc2002.enums
Enum representing the possible statuses of an appointment.
APPROVED - Enum constant in enum class sc2002.enums.RequestStatus
 
approveReplenishmentRequests() - Method in class sc2002.controllers.Administrator
Displays and manages replenishment requests, allowing the administrator to view and approve or reject requests.
AVAILABLE - Enum constant in enum class sc2002.enums.AppointmentStatus
The appointment slot is available for booking.
AvailableDatesToChoose - Class in sc2002.services
Represents the available dates and times for appointments with a specific doctor.
AvailableDatesToChoose(String, int, LocalDate, LocalTime, LocalTime) - Constructor for class sc2002.services.AvailableDatesToChoose
Constructs an AvailableDatesToChoose instance with the specified doctor and appointment details.

B

BLOODTEST - Enum constant in enum class sc2002.enums.Service
 

C

cancelAppointment(Scanner) - Method in class sc2002.controllers.Patient
Cancels an existing appointment for the patient.
cancelAppointment(Scanner) - Method in class sc2002.models.PatientAppointment
Cancels an existing appointment by selecting the appointment ID.
checkForExit(String) - Static method in class sc2002.models.User
Checks if the user input is "EXIT" to terminate a process.
completeAppointment(String, int, String) - Static method in class sc2002.repositories.DoctorAppointmentDB
Updates the status of an appointment to "Completed".
COMPLETED - Enum constant in enum class sc2002.enums.AppointmentStatus
The appointment has been successfully completed.
CONFIRMED - Enum constant in enum class sc2002.enums.AppointmentStatus
The appointment has been confirmed by both parties.
CONSULTATION - Enum constant in enum class sc2002.enums.Service
 
ContactInformation - Class in sc2002.models
The ContactInformation class represents a contact's phone number and email address.
ContactInformation(int, String) - Constructor for class sc2002.models.ContactInformation
Constructs a ContactInformation object with the specified phone number and email address.
createAppointmentRecord(Scanner) - Method in class sc2002.controllers.Doctor
Creates an appointment record for a patient after a consultation.
createNewPatient(String) - Static method in class sc2002.repositories.UserDB
Creates a new patient entry in User.csv with a default password.
createNewPatient(String, String, String, String, int, String) - Static method in class sc2002.repositories.PatientDB
Creates a new patient entry in the database.

D

DECLINED - Enum constant in enum class sc2002.enums.AppointmentStatus
The appointment has been declined or canceled.
Diagnosis - Class in sc2002.models
The Diagnosis class represents a patient's diagnosis, including details on the doctor, treatment, and additional notes.
Diagnosis(String, int, String, String, String, String) - Constructor for class sc2002.models.Diagnosis
Constructs a Diagnosis object with specified details.
DiagnosisDB - Class in sc2002.repositories
Provides access to diagnosis data stored in a CSV file.
DiagnosisDB() - Constructor for class sc2002.repositories.DiagnosisDB
 
digitChecker(Scanner, int, int) - Static method in class sc2002.main.Main
Validates a numeric input string for digit length and range.
digitChecker(Scanner, int, int) - Static method in class sc2002.models.User
Validates numeric input based on length and range requirements.
DISPENSED - Enum constant in enum class sc2002.enums.PrescriptionStatus
 
Doctor - Class in sc2002.controllers
Represents a doctor in the system who can manage appointments, view medical records, update diagnoses, and prescribe medications for patients.
Doctor(String) - Constructor for class sc2002.controllers.Doctor
Constructs a Doctor instance with the specified doctor ID and loads the patient's information.
DOCTOR - Enum constant in enum class sc2002.enums.Role
 
DoctorAppointment - Class in sc2002.models
Manages a doctor's appointment schedules, including booking, viewing, and updating slots.
DoctorAppointment(String) - Constructor for class sc2002.models.DoctorAppointment
 
DoctorAppointmentDB - Class in sc2002.repositories
Provides methods for managing doctor appointments and schedules stored in a CSV file.
DoctorAppointmentDB() - Constructor for class sc2002.repositories.DoctorAppointmentDB
 
doctorListOfAllAppointments(String) - Static method in class sc2002.repositories.DoctorAppointmentDB
Retrieves a list of all scheduled appointments for a doctor.
DoctorScheduledDates - Class in sc2002.models
The DoctorScheduledDates class represents scheduled dates for a doctor, including date, time, and status.
DoctorScheduledDates(String, LocalDate, LocalTime, LocalTime, AppointmentStatus) - Constructor for class sc2002.models.DoctorScheduledDates
Constructs a DoctorScheduledDates object with specified details.

F

filter(Staff) - Method in class sc2002.services.StaffFiltering.StaffAgeFilter
Filters the staff member based on the age range.
filter(Staff) - Method in interface sc2002.services.StaffFiltering.StaffFilter
Filters the provided staff member based on a defined criterion.
filter(Staff) - Method in class sc2002.services.StaffFiltering.StaffGenderFilter
Filters the staff member based on gender.
filter(Staff) - Method in class sc2002.services.StaffFiltering.StaffIDFilter
Filters the staff member based on staff ID.
filter(Staff) - Method in class sc2002.services.StaffFiltering.StaffNoFilter
Accepts all staff members by default.
filter(Staff) - Method in class sc2002.services.StaffFiltering.StaffRoleFilter
Filters the staff member based on role.
findMedicine(String) - Static method in class sc2002.repositories.MedicationInventoryDB
Finds if a specific medication exists in the inventory.
findPendingRequest(int) - Static method in class sc2002.repositories.ReplenishmentRequestDB
Finds a pending replenishment request by ID.
findStaff(String) - Static method in class sc2002.repositories.StaffDB
Finds if a staff member exists in the database.

G

getAge() - Method in class sc2002.models.Staff
Gets the age of the staff member.
getAllAppointmentOutcomes() - Static method in class sc2002.repositories.PatientAppointmentOutcomeDB
Retrieves all appointment outcomes from the database.
getAllPersonalSchedule(String) - Static method in class sc2002.repositories.DoctorAppointmentDB
Retrieves the full personal schedule for a doctor.
getAmount() - Method in class sc2002.models.ReplenishmentRequest
Gets the amount of the medicine requested for replenishment.
getAppointmentDetails() - Static method in class sc2002.repositories.AppointmentDetailsDB
Retrieves all appointment details from the CSV file.
getAppointmentID() - Method in class sc2002.models.AppointmentDetails
Gets the appointment ID.
getAppointmentID() - Method in class sc2002.models.PatientScheduledAppointment
Gets the appointment ID.
getAppointmentID() - Method in class sc2002.services.AppointmentOutcomeRecord
Retrieves the appointment ID.
getAppointmentID() - Method in class sc2002.services.AvailableDatesToChoose
Gets the appointment ID.
getAppointmentOutcome(String) - Static method in class sc2002.repositories.PatientAppointmentOutcomeDB
Retrieves the appointment outcome for a specific patient.
getAvailableSlots() - Static method in class sc2002.repositories.PatientAppointmentDB
Retrieves the list of available appointment slots.
getConsultationNotes() - Method in class sc2002.services.AppointmentOutcomeRecord
Retrieves the consultation notes.
getDate() - Method in class sc2002.models.DoctorScheduledDates
Gets the scheduled date.
getDate() - Method in class sc2002.models.PatientScheduledAppointment
Gets the date of the appointment.
getDate() - Method in class sc2002.services.AvailableDatesToChoose
Gets the date of the appointment.
getDateOfAppointment() - Method in class sc2002.services.AppointmentOutcomeRecord
Retrieves the date of the appointment.
getDateOfRequest() - Method in class sc2002.models.ReplenishmentRequest
Gets the date when the replenishment request was made.
getDiagnosis() - Method in class sc2002.models.MedicalRecord
Gets the patient's list of diagnoses.
getDiagnosis(String) - Static method in class sc2002.repositories.DiagnosisDB
Retrieves the diagnosis records for a specific patient from the CSV file.
getDiagnosisCode() - Method in class sc2002.models.Diagnosis
Gets the diagnosis ID.
getDoctorID() - Method in class sc2002.models.AppointmentDetails
Gets the doctor ID.
getDoctorID() - Method in class sc2002.models.DoctorScheduledDates
Gets the doctor's ID.
getDoctorID() - Method in class sc2002.services.AppointmentOutcomeRecord
Retrieves the doctor ID.
getEmail() - Method in class sc2002.models.Staff
Gets the email address of the staff member.
getEmailAddress() - Method in class sc2002.models.ContactInformation
Gets the email address.
getEmailAddress() - Method in class sc2002.models.MedicalRecord
Gets the patient's email address.
getEndTime() - Method in class sc2002.models.TimeSlot
Retrieves the end time of the time slot.
getGender() - Method in class sc2002.models.Staff
Gets the gender of the staff member.
getHospitalID() - Method in class sc2002.models.User
Gets the hospital ID of the user.
getHospitalID() - Method in class sc2002.models.UserAccount
Retrieves the hospital ID associated with the user account.
getLastRequestID() - Static method in class sc2002.repositories.ReplenishmentRequestDB
Gets the last request ID from the file to determine the next available ID.
getLowStockLevelAlert() - Method in class sc2002.models.MedicationInventory
Gets the low stock level alert threshold.
getMedicationInventory() - Static method in class sc2002.repositories.MedicationInventoryDB
Retrieves the list of all medications in the inventory.
getMedications() - Method in class sc2002.services.AppointmentOutcomeRecord
Retrieves the medications prescribed during the appointment.
getMedicine() - Method in class sc2002.models.MedicationInventory
Gets the name of the medication.
getMedicine() - Method in class sc2002.models.ReplenishmentRequest
Gets the name of the medicine requested for replenishment.
getName() - Method in class sc2002.models.Staff
Gets the name of the staff member.
getNameByHospitalID(String, Role) - Static method in class sc2002.repositories.UserDB
Retrieves the name associated with a hospital ID from the appropriate file.
getPassword() - Method in class sc2002.models.UserAccount
Retrieves the password associated with the user account.
getPatientContactDetails(String) - Static method in class sc2002.repositories.PatientDB
Retrieves the contact information of a patient based on their hospital ID.
getPatientDetails(String) - Static method in class sc2002.repositories.PatientDB
Retrieves the basic details of a patient based on their hospital ID.
getPatientID() - Method in class sc2002.models.AppointmentDetails
Gets the patient ID.
getPatientID() - Method in class sc2002.models.PatientScheduledAppointment
Gets the patient ID associated with the appointment.
getPatientID() - Method in class sc2002.services.AppointmentOutcomeRecord
Retrieves the patient ID.
getPatients(String) - Static method in class sc2002.repositories.DoctorAppointmentDB
Retrieves a list of patients associated with a doctor.
getPharmacistID() - Method in class sc2002.models.ReplenishmentRequest
Gets the ID of the pharmacist who made the request.
getPhoneNumber() - Method in class sc2002.models.ContactInformation
Gets the phone number.
getPhoneNumber() - Method in class sc2002.models.MedicalRecord
Gets the patient's phone number.
getPhoneNumber() - Method in class sc2002.models.Staff
Gets the phone number of the staff member.
getPrescriptionStatus() - Method in class sc2002.services.AppointmentOutcomeRecord
Retrieves the status of the prescription.
getReplenishmentRequest(RequestStatus) - Static method in class sc2002.repositories.ReplenishmentRequestDB
Retrieves all replenishment requests with the specified status.
getRequestID() - Method in class sc2002.models.ReplenishmentRequest
Gets the unique ID of the replenishment request.
getRole() - Method in class sc2002.models.Staff
Gets the role of the staff member.
getRole() - Method in class sc2002.models.User
Gets the role of the user.
getScheduledDates(String, LocalDate) - Static method in class sc2002.repositories.DoctorAppointmentDB
Retrieves scheduled dates for a specific doctor filtered by a given date.
getService() - Method in class sc2002.services.AppointmentOutcomeRecord
Retrieves the service provided during the appointment.
getStaff(StaffFilter) - Static method in class sc2002.repositories.StaffDB
Retrieves a list of staff members filtered by the specified criteria.
getStaffID() - Method in class sc2002.models.Staff
Gets the staff ID.
getStartTime() - Method in class sc2002.models.TimeSlot
Retrieves the start time of the time slot.
getStatus() - Method in class sc2002.models.AppointmentDetails
Gets the status of the appointment.
getStatus() - Method in class sc2002.models.DoctorScheduledDates
Gets the appointment status.
getStatus() - Method in class sc2002.models.PatientScheduledAppointment
Gets the status of the appointment.
getStatus() - Method in class sc2002.models.ReplenishmentRequest
Gets the status of the replenishment request.
getStockLevel() - Method in class sc2002.models.MedicationInventory
Gets the current stock level of the medication.
getTimeEnd() - Method in class sc2002.models.DoctorScheduledDates
Gets the end time of the schedule.
getTimeEnd() - Method in class sc2002.models.PatientScheduledAppointment
Gets the end time of the appointment.
getTimeEnd() - Method in class sc2002.services.AvailableDatesToChoose
Gets the end time of the appointment.
getTimeSlotString() - Method in class sc2002.models.TimeSlot
Retrieves a formatted string representation of the time slot.
getTimeStart() - Method in class sc2002.models.DoctorScheduledDates
Gets the start time of the schedule.
getTimeStart() - Method in class sc2002.models.PatientScheduledAppointment
Gets the start time of the appointment.
getTimeStart() - Method in class sc2002.services.AvailableDatesToChoose
Gets the start time of the appointment.
getValidChoice(Scanner, int) - Static method in class sc2002.main.Main
 

L

login(Scanner) - Method in class sc2002.models.User
Logs a user into the system by validating their credentials.
logOut() - Method in class sc2002.models.User
Logs the user out of the system.
lowStockLevelAlert() - Static method in class sc2002.repositories.MedicationInventoryDB
Returns a list of medicines that have low stock levels.

M

main(String[]) - Static method in class sc2002.main.Main
Main method to initialize and manage the application's workflow.
Main - Class in sc2002.main
The main entry point for the hospital management system.
Main() - Constructor for class sc2002.main.Main
 
MedicalRecord - Class in sc2002.models
The MedicalRecord class represents a patient's medical record, including personal details, contact information, and diagnoses.
MedicalRecord(String, String, String, String, String) - Constructor for class sc2002.models.MedicalRecord
Constructs a MedicalRecord object with specified details.
MedicationInventory - Class in sc2002.models
The MedicationInventory class represents information about a specific medication's stock level and low stock alert level.
MedicationInventory(String, int, int) - Constructor for class sc2002.models.MedicationInventory
Constructs a MedicationInventory object with specified details.
MedicationInventoryDB - Class in sc2002.repositories
The MedicationInventoryDB class provides methods for managing medication inventory, including retrieving, adding, removing, updating stock levels, and setting low stock alerts.
MedicationInventoryDB() - Constructor for class sc2002.repositories.MedicationInventoryDB
 

N

numberOfPending(String) - Static method in class sc2002.repositories.DoctorAppointmentDB
Counts the number of pending appointments for a doctor.
numPending() - Static method in class sc2002.repositories.ReplenishmentRequestDB
Counts the number of pending replenishment requests.

P

Patient - Class in sc2002.controllers
The Patient class represents a patient user with methods to manage personal information, view medical records, and schedule or manage appointments.
Patient(String) - Constructor for class sc2002.controllers.Patient
Constructs a Patient object with the specified patient ID.
PATIENT - Enum constant in enum class sc2002.enums.Role
 
PatientAppointment - Class in sc2002.models
Manages appointments for a patient, including scheduling, rescheduling, cancelling, and viewing available slots and past outcomes.
PatientAppointment(String) - Constructor for class sc2002.models.PatientAppointment
Constructs a PatientAppointment object with a specified patient ID.
PatientAppointmentDB - Class in sc2002.repositories
The PatientAppointmentDB class handles appointment scheduling and rescheduling for patients, including fetching available slots and updating the database.
PatientAppointmentDB() - Constructor for class sc2002.repositories.PatientAppointmentDB
 
PatientAppointmentOutcomeDB - Class in sc2002.repositories
The PatientAppointmentOutcomeDB class handles retrieving, setting, and updating patient appointment outcomes in the database.
PatientAppointmentOutcomeDB() - Constructor for class sc2002.repositories.PatientAppointmentOutcomeDB
 
PatientDB - Class in sc2002.repositories
Provides database operations related to patient information, including retrieval, updates, and creation of new patients.
PatientDB() - Constructor for class sc2002.repositories.PatientDB
 
PatientScheduledAppointment - Class in sc2002.models
Represents a scheduled appointment between a patient and a doctor, including date, time, and status.
PatientScheduledAppointment(String, int, String, LocalDate, LocalTime, LocalTime, AppointmentStatus) - Constructor for class sc2002.models.PatientScheduledAppointment
Constructs a PatientScheduledAppointment object with the specified details.
patientScheduledAppointments(String) - Static method in class sc2002.repositories.PatientAppointmentDB
Fetches the list of scheduled appointments for a specific patient.
PENDING - Enum constant in enum class sc2002.enums.AppointmentStatus
The appointment has been requested and is awaiting confirmation.
PENDING - Enum constant in enum class sc2002.enums.PrescriptionStatus
 
PENDING - Enum constant in enum class sc2002.enums.RequestStatus
 
Pharmacist - Class in sc2002.controllers
Represents a Pharmacist in the hospital system, responsible for managing medication inventory, handling prescription statuses, and submitting replenishment requests.
Pharmacist(String) - Constructor for class sc2002.controllers.Pharmacist
Constructs a Pharmacist object with the specified pharmacist ID.
PHARMACIST - Enum constant in enum class sc2002.enums.Role
 
PrescriptionStatus - Enum Class in sc2002.enums
Enum representing the possible statuses of a prescription.
printAppointmentDetails() - Method in class sc2002.models.AppointmentDetails
Prints the details of the appointment in a formatted string.
printAppointmentOutcome() - Method in class sc2002.services.AppointmentOutcomeRecord
Prints the outcome of the appointment, including details about the doctor, services, medications, and notes.
printAppointmentOutcomeRecord(String, int) - Static method in class sc2002.repositories.AppointmentDetailsDB
Prints the appointment outcome record for a specific hospital ID and appointment ID.
printDiagnoses() - Method in class sc2002.models.MedicalRecord
Prints all diagnoses associated with the patient.
printDiagnosis() - Method in class sc2002.models.Diagnosis
Prints the details of the diagnosis.
printDoctorScheduledAppointment() - Method in class sc2002.models.PatientScheduledAppointment
Prints the scheduled appointment details for the doctor, including patient information.
printMedicationInventory() - Method in class sc2002.models.MedicationInventory
Prints the medication inventory details in a formatted string.
printReplenishmentRequest() - Method in class sc2002.models.ReplenishmentRequest
Prints the details of the replenishment request in a formatted string.
printSchedule() - Method in class sc2002.models.DoctorScheduledDates
Prints the details of the scheduled date.
printScheduledAppointment() - Method in class sc2002.models.PatientScheduledAppointment
Prints the scheduled appointment details for the patient, including doctor information.
printStaffList() - Method in class sc2002.models.Staff
Returns a formatted string representation of the staff member's details.
printString() - Method in class sc2002.services.AvailableDatesToChoose
Prints the appointment details, including date, time, and doctor information.

R

register(Scanner) - Static method in class sc2002.models.User
Registers a new patient in the hospital system.
REJECTED - Enum constant in enum class sc2002.enums.RequestStatus
 
removeHospitalStaff() - Method in class sc2002.controllers.Administrator
Allows the administrator to remove a hospital staff member from the system.
removeMedication() - Method in class sc2002.controllers.Administrator
Allows the administrator to remove a medication from the inventory.
removeMedication(String) - Static method in class sc2002.repositories.MedicationInventoryDB
Removes a medication from the inventory based on the medicine name.
removeStaff(String) - Static method in class sc2002.repositories.StaffDB
Removes a staff member from both the Staff and User databases.
ReplenishmentRequest - Class in sc2002.models
Represents a request for replenishing medication inventory.
ReplenishmentRequest(int, String, LocalDate, String, int, RequestStatus) - Constructor for class sc2002.models.ReplenishmentRequest
Constructs a ReplenishmentRequest with specified details.
ReplenishmentRequestDB - Class in sc2002.repositories
This class handles operations related to replenishment requests, including retrieving, updating, and saving request details in a CSV file.
ReplenishmentRequestDB() - Constructor for class sc2002.repositories.ReplenishmentRequestDB
 
RequestStatus - Enum Class in sc2002.enums
Enum representing the possible statuses of a replenishment request.
rescheduleAppointment(Scanner) - Method in class sc2002.controllers.Patient
Reschedules an existing appointment for the patient.
rescheduleAppointment(Scanner) - Method in class sc2002.models.PatientAppointment
Reschedules an existing appointment by selecting a new time slot.
reschedulePatientAppointment(int, String) - Static method in class sc2002.repositories.PatientAppointmentDB
Reschedules a patient's appointment by updating the status to "Available".
Role - Enum Class in sc2002.enums
Enum representing the roles within the hospital system.

S

saveReplenishmentRequest(ReplenishmentRequest) - Static method in class sc2002.repositories.ReplenishmentRequestDB
Saves a new replenishment request to the file.
sc2002.controllers - package sc2002.controllers
 
sc2002.enums - package sc2002.enums
 
sc2002.main - package sc2002.main
 
sc2002.models - package sc2002.models
 
sc2002.repositories - package sc2002.repositories
 
sc2002.services - package sc2002.services
 
sc2002.services.StaffFiltering - package sc2002.services.StaffFiltering
 
scheduleAppointment(Scanner) - Method in class sc2002.controllers.Patient
Schedules a new appointment for the patient.
scheduleAppointment(Scanner) - Method in class sc2002.models.PatientAppointment
Schedules an appointment by allowing the user to select a slot.
Service - Enum Class in sc2002.enums
Enum representing services provided within the hospital.
setAge(int) - Method in class sc2002.models.Staff
Sets the age of the staff member.
setAppointmentOutcome(String, String, int, LocalDate, Service, String, String) - Static method in class sc2002.repositories.PatientAppointmentOutcomeDB
Sets a new appointment outcome in the database.
setAvailabilityDate(Scanner) - Method in class sc2002.controllers.Doctor
Allows the doctor to set their availability dates for appointments.
setAvailable(boolean) - Method in class sc2002.models.TimeSlot
Sets the availability status of the time slot.
setDoctorSchedule(String, LocalDate, LocalTime, LocalTime) - Static method in class sc2002.repositories.DoctorAppointmentDB
Adds a new schedule for a doctor.
setEmail(String) - Method in class sc2002.models.Staff
Sets the email address of the staff member.
setEmailAddress(String) - Method in class sc2002.models.ContactInformation
Sets the email address.
setGender(String) - Method in class sc2002.models.Staff
Sets the gender of the staff member.
setLowStockLevelAlert(int) - Method in class sc2002.models.MedicationInventory
Sets the low stock level alert.
setName(String) - Method in class sc2002.models.Staff
Sets the name of the staff member.
setPhoneNumber(int) - Method in class sc2002.models.ContactInformation
Sets the phone number.
setPhoneNumber(int) - Method in class sc2002.models.Staff
Sets the phone number of the staff member.
setPrescriptionStatus(PrescriptionStatus) - Method in class sc2002.services.AppointmentOutcomeRecord
Updates the prescription status with a new status.
setRole(Role) - Method in class sc2002.models.Staff
Sets the role of the staff member.
setStaffID(String) - Method in class sc2002.models.Staff
Sets the staff ID.
setStatus(AppointmentStatus) - Method in class sc2002.models.PatientScheduledAppointment
Sets the status of the appointment.
setStockLevel(int) - Method in class sc2002.models.MedicationInventory
Sets the stock level.
showAvailableSlotsForDate(LocalDate, Scanner) - Method in class sc2002.models.DoctorAppointment
Displays available slots for a specific date and allows booking of slots.
showPersonalSchedule() - Method in class sc2002.models.DoctorAppointment
Displays the doctor's personal schedule of appointments, excluding completed appointments.
showSelectableDates(Scanner) - Method in class sc2002.models.DoctorAppointment
Displays a list of the next 7 days and allows selection of a date to view available slots.
Staff - Class in sc2002.models
Represents a staff member with various personal and role-based details.
Staff(String, String, Role, String, int, int, String) - Constructor for class sc2002.models.Staff
Constructs a new staff member.
StaffAgeFilter - Class in sc2002.services.StaffFiltering
Filters staff members based on a specified age range.
StaffAgeFilter(int, int) - Constructor for class sc2002.services.StaffFiltering.StaffAgeFilter
Constructs a StaffAgeFilter with specified minimum and maximum age.
StaffDB - Class in sc2002.repositories
Represents the database for managing staff records, including adding, updating, retrieving, and removing staff members.
StaffDB() - Constructor for class sc2002.repositories.StaffDB
 
StaffFilter - Interface in sc2002.services.StaffFiltering
Interface for filtering staff based on specific criteria.
StaffGenderFilter - Class in sc2002.services.StaffFiltering
Filters staff members based on gender.
StaffGenderFilter(String) - Constructor for class sc2002.services.StaffFiltering.StaffGenderFilter
Constructs a StaffGenderFilter with the specified gender.
StaffIDFilter - Class in sc2002.services.StaffFiltering
Filters staff members based on staff ID.
StaffIDFilter(String) - Constructor for class sc2002.services.StaffFiltering.StaffIDFilter
Constructs a StaffIDFilter with the specified staff ID.
StaffNoFilter - Class in sc2002.services.StaffFiltering
A filter that accepts all staff members, used as a default or "no filter" option.
StaffNoFilter() - Constructor for class sc2002.services.StaffFiltering.StaffNoFilter
Constructs a StaffNoFilter with no specific filtering criteria.
StaffRoleFilter - Class in sc2002.services.StaffFiltering
Filters staff members based on their role.
StaffRoleFilter(Role) - Constructor for class sc2002.services.StaffFiltering.StaffRoleFilter
Constructs a StaffRoleFilter with the specified role.
submitReplenishmentRequest(Scanner) - Method in class sc2002.controllers.Pharmacist
Submits a replenishment request for a specific medication to update stock levels.

T

TimeSlot - Class in sc2002.models
Represents a time slot with start and end times, and availability status.
TimeSlot(LocalTime, LocalTime) - Constructor for class sc2002.models.TimeSlot
Constructs a TimeSlot object with specified start and end times.

U

updateAppointmentOutcome(List<AppointmentOutcomeRecord>) - Static method in class sc2002.repositories.PatientAppointmentOutcomeDB
Updates appointment outcomes in the database.
updateContactInformation(String, String, int) - Static method in class sc2002.repositories.PatientDB
Updates the contact information of a patient.
updateDiagnosis(int, String, String, String) - Static method in class sc2002.repositories.DiagnosisDB
Updates an existing diagnosis in the CSV file based on diagnosis ID.
updateHospitalStaff() - Method in class sc2002.controllers.Administrator
Allows the administrator to update an existing hospital staff member's details.
updateLowAlert(String, int) - Static method in class sc2002.repositories.MedicationInventoryDB
Updates the low stock alert level of a specified medication.
updateLowStockLevelAlert() - Method in class sc2002.controllers.Administrator
Allows the administrator to update the low stock level alert for an existing medication.
updatePatientMedicalRecord(Scanner) - Method in class sc2002.controllers.Doctor
Updates a patient's medical record with new or modified diagnoses.
updatePersonalInfo(String, int) - Method in class sc2002.models.MedicalRecord
Updates the patient's personal contact information.
updatePersonalInfo(Scanner) - Method in class sc2002.controllers.Patient
Updates the patient's personal information, including phone number and email address.
updatePrescriptionStatus(Scanner) - Method in class sc2002.controllers.Pharmacist
Updates the prescription status for a specific patient's appointment.
updateScheduleForPatients(int, String) - Static method in class sc2002.repositories.PatientAppointmentDB
Updates an appointment status for a patient to "Pending".
updateStaff(String, Staff) - Static method in class sc2002.repositories.StaffDB
Updates an existing staff member's information in the database.
updateStatus(int, RequestStatus) - Static method in class sc2002.repositories.ReplenishmentRequestDB
Updates the status of a specific replenishment request.
updateStockLevel() - Method in class sc2002.controllers.Administrator
Allows the administrator to update the stock level of an existing medication.
updateStockLevel(String, int) - Static method in class sc2002.repositories.MedicationInventoryDB
Updates the stock level of a specified medication.
User - Class in sc2002.models
Represents a user in the hospital system, with functionality for login, logout, and patient registration.
User(String) - Constructor for class sc2002.models.User
Constructs a User object with the specified hospital ID.
UserAccount - Class in sc2002.models
Represents a user account in the hospital system, containing the hospital ID and associated password.
UserAccount(String, String) - Constructor for class sc2002.models.UserAccount
Constructs a UserAccount with the specified hospital ID and password.
UserDB - Class in sc2002.repositories
Represents the user database for handling user login and password management.
UserDB() - Constructor for class sc2002.repositories.UserDB
 

V

validateLogin(String, String) - Static method in class sc2002.repositories.UserDB
Validates the login when the user enters ID and password.
valueOf(String) - Static method in enum class sc2002.enums.AppointmentStatus
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class sc2002.enums.PrescriptionStatus
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class sc2002.enums.RequestStatus
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class sc2002.enums.Role
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class sc2002.enums.Service
Returns the enum constant of this class with the specified name.
values() - Static method in enum class sc2002.enums.AppointmentStatus
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class sc2002.enums.PrescriptionStatus
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class sc2002.enums.RequestStatus
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class sc2002.enums.Role
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class sc2002.enums.Service
Returns an array containing the constants of this enum class, in the order they are declared.
viewAndManangeMedicationInventory() - Method in class sc2002.controllers.Administrator
Displays the medication inventory and allows the administrator to manage the inventory (e.g., adding, removing, updating stock levels and alerts).
viewAppointmentDetails() - Method in class sc2002.controllers.Administrator
Displays details of all hospital appointments, including completed appointments with outcome records.
viewAppointmentStatus() - Method in class sc2002.controllers.Doctor
Views the status of all appointments for the doctor.
viewAppointmentStatus() - Method in interface sc2002.models.Appointment
Views the status of an appointment.
viewAppointmentStatus() - Method in class sc2002.models.DoctorAppointment
Views the status of all confirmed appointments for the doctor.
viewAppointmentStatus() - Method in class sc2002.models.PatientAppointment
Views the status of all scheduled appointments for the patient.
viewAvailable() - Method in class sc2002.models.TimeSlot
Checks if the time slot is available.
viewAvailableAppointmentSlots() - Method in class sc2002.controllers.Patient
Displays available appointment slots for scheduling.
viewAvailableAppointmentSlots() - Method in class sc2002.models.PatientAppointment
Displays available appointment slots for the patient.
viewHospitalStaff() - Method in class sc2002.controllers.Administrator
Displays and filters the hospital staff list based on user-selected criteria.
viewMedicalRecord() - Method in class sc2002.controllers.Patient
Fetches and displays the patient's medical record.
viewMedicalRecord() - Method in class sc2002.models.MedicalRecord
Displays the complete medical record, including personal details and diagnoses.
viewMedicationInventory() - Method in class sc2002.controllers.Pharmacist
Displays the current medication inventory managed by the pharmacist.
viewPastAppointmentOutcome() - Method in class sc2002.models.PatientAppointment
Views the outcomes of past appointments for the patient.
viewPastAppointmentOutcome(Scanner) - Method in class sc2002.controllers.Pharmacist
Fetches and displays the past appointment outcomes for a specific patient.
viewPastAppointmentOutcomeRecords() - Method in class sc2002.controllers.Patient
Displays the outcome records of past appointments for the patient.
viewPatientMedicalRecord(Scanner) - Method in class sc2002.controllers.Doctor
Displays and allows selection of a patient's medical record to view.
viewPersonalSchedule() - Method in class sc2002.controllers.Doctor
Views the doctor's personal appointment schedule.
viewScheduledAppointments() - Method in class sc2002.controllers.Patient
Displays the list of scheduled appointments for the patient.

W

waitForEnter(Scanner) - Static method in class sc2002.main.Main
Waits for the user to press Enter to continue.

X

XRAY - Enum constant in enum class sc2002.enums.Service
 
A B C D F G L M N P R S T U V W X 
All Classes and Interfaces|All Packages