Package Controllers.AppManagers
Class PatientAppMgr
java.lang.Object
Common.AppManager
Controllers.AppManagers.PatientAppMgr
The
PatientAppMgr
class manages the functionalities available to patients
within the Hospital X System. It provides methods for viewing medical records,
managing appointments, and accessing patient-specific services.-
Field Summary
Fields inherited from class Common.AppManager
account, accountDatabase, appointmentOutcomeDatabase, doctorSchedule, inventoryDatabase, inventoryRequestDatabase, medicalRecordDatabase, role, updateDetailsPage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates instances of managers used in the patient application.protected void
Creates instances of UI pages used in the patient application.void
Displays the main menu for patients and handles user selections.protected void
Loads necessary databases for the application.protected void
Saves all databases to their respective storage formats (e.g., CSV).Methods inherited from class Common.AppManager
getRole, logIn, logOut, settings
-
Constructor Details
-
PatientAppMgr
public PatientAppMgr()
-
-
Method Details
-
displayMainPage
public void displayMainPage()Displays the main menu for patients and handles user selections.- Specified by:
displayMainPage
in classAppManager
-
loadDatabases
protected void loadDatabases()Loads necessary databases for the application.- Specified by:
loadDatabases
in classAppManager
-
saveDatabases
protected void saveDatabases()Saves all databases to their respective storage formats (e.g., CSV).- Specified by:
saveDatabases
in classAppManager
-
createManagers
protected void createManagers()Creates instances of managers used in the patient application.- Specified by:
createManagers
in classAppManager
-
createPages
protected void createPages()Creates instances of UI pages used in the patient application.- Specified by:
createPages
in classAppManager
-