Team: Lim Jing Rong | Loo Ping Wee | Ng Jing En | Ong Wee Kiat,Ryan| Ong Yao Sheng|
Docs: Report | UML Class Diagram | Java Docs
The SC2002 Hospital Management System (HMS) is a Java-based application developed as part of the SC2002 Object-Oriented Design and Programming module. The system leverages OOP principles and adheres to SOLID design principles to provide a robust and scalable solution for managing hospital operations, including:
- Patient records
- Appointment scheduling
- Staff management
This README file provides instructions on how to clone, compile, and run the project.
SC2002-HMS/
├── controller/
├── interfaces/
├── model/
├── repository/
├── utils/
├── view/
├── Main.java # Entry point of the application
-
Clone the repository:
git clone https://github.com/JingRonggg/SC2002-HMS.git cd SC2002-HMS -
Compile the source code:
javac -d bin src/**/*.java
-
Run the application:
java -cp bin Main
Congratulations, you have successfully cloned, compiled, and ran the HMS project!
If you prefer to use Eclipse as your IDE, you can also set up the project there. Here are the steps you need to follow:
-
Open Eclipse
-
Click on
File>Import>Git>Projects from Git>Clone URI -
In the
Clone URIwindow, paste the following URL:https://github.com/JingRonggg/SC2002-HMS.git
-
Click
Nextand follow the prompts to finish the cloning process -
Once the project is cloned, right-click on the project folder and select
Properties -
In the
Propertieswindow, click onJava Build Path>Source>Add Folder -
Select the
srcfolder from the project directory and clickOK -
Now you can run the project by right-clicking on
Main.javain thesrcfolder and selectingRun As>Java Application
That's it! You should now have the project up and running in Eclipse.
Follow the steps below to generate JavaDocs using the terminal:
-
Open you terminal.
-
Navigate to the root directory of the project.
-
Run the following command in the terminal:
javadoc -d docs -sourcepath src -subpackages controllers:interfaces:model:repository:utils:view -private
This command will generate the JavaDocs and save them in the docs directory in HTML format.
-
Navigate to the
docsdirectory using the following command:cd docs -
Open the
index.htmlfile in a web browser to view the generated JavaDocs.
Congratulations, you have successfully created and viewed the JavaDocs.
-
Open the Eclipse IDE and open your Java project.
-
Select the package or class for which you want to generate JavaDocs.
-
Go to the "Project" menu and select "Generate Javadoc".
-
In the "Generate Javadoc" dialog box, select the "Private" option to generate JavaDocs for private classes and members.
-
Choose the destination folder where you want to save the generated JavaDocs.
-
In the "Javadoc command line arguments" field, add any additional arguments that you want to include, such as
-classpath. -
Click the "Finish" button to start the JavaDocs generation process.
-
Once the JavaDocs have been generated, you can view them by opening the
index.htmlfile in your web browser.
Congratulations, you have successfully created and viewed the JavaDocs.
This section contains some login credentials for users with different roles. The full list is available in data/Staff_List.csv & data/Patient_List.csv files.
Patients:
#Alice Brown
USERID: P1001
PASSWORD: password
#Bob Stone
USERID: P1002
PASSWORD: password
#Charlie White
USERID: P1003
PASSWORD: passwordStaff:
#Doctor
USERID: D002
PASSWORD: password
#Pharmacist
USERID: P001
PASSWORD: password
#Administrator
USERID: A001
PASSWORD: password