KAUHospitalSystem is simulation software designed to simulate hospital functionality. It allows the registration of rooms, doctors, nurses, and patients in the system. The system allocates rooms, doctors, and medicines to patients, and generates billing reports for each patient. The original version of the system reads all data from a given input file (input.txt
) and generates results and reports in an output file (Output.txt
).
For the purpose of testing, the system has been modified to include menu features. This allows for interactive testing and debugging of various functionalities through a console menu interface. The testing version provides the following menu:
- Add a new room with room number and charges
- Add a new doctor with doctor ID and gender
- Add a new nurse with nurse ID and gender
- Add a new patient with patient ID and illness
- Add a new medicine with medicine code and price
- Display all rooms, doctors, nurses, patients, and medicines
The project contains the following main class:
KAUHospitalSystem
: The main class containing the program's entry point, main menu, and all the methods for managing rooms, doctors, nurses, patients, and medicines.
-
Clone the repository:
git clone https://github.com/shahrul-amin/KAU-Hospital-System-Testing.git
-
Navigate to the project directory:
cd KAU-Hospital-System-Testing
-
Compile the project:
javac kauhospitalsystem/*.java
-
Run the project:
java kauhospitalsystem.KAUHospitalSystem
When you run the program, you will see the following menu:
- Add Room
- Add Doctor
- Add Nurse
- Add Patient
- Add Medicine
- Display All
- Exit
You can select an option by entering the corresponding number. Follow the prompts to add new rooms, doctors, nurses, patients, or medicines. You can also display all the records by selecting option 6.
To add a new room:
- Select option
1
from the menu. - Enter the room number (e.g.,
101
). - Enter the charges (e.g.,
1500.00
).
To display all records, select option 6
.
main(String[] args)
: The entry point of the application.addRoom(int roomNo, double charges)
: Adds a new room.addDoctor(int doctorId, char gender)
: Adds a new doctor.addNurse(int nurseId, char gender)
: Adds a new nurse.addPatient(int patientId, String illness)
: Adds a new patient.addMedicine(int medicineCode, double price)
: Adds a new medicine.displayAll()
: Displays all rooms, doctors, nurses, patients, and medicines.
The project includes test classes for each of the add methods to ensure proper functionality. The test classes include:
DoctorTest
NurseTest
PatientTest
MedicineTest
RoomTest
Make sure to compile and run these tests to verify the correctness of the system.
The project includes detailed documentation for the system. You can find the following documents in the Documentation
directory:
- KAU Hospital System Requirement Documentation
- Test Plan Documentation
- Test Design Specification
- Test Case Specification
- Test Procedure Specification
- Test Log
- Test Summary Report
rahmaAlghalib. (2022, Aug 8). GitHub - rahmaAlghalib/KAU-Hospital-System: Java Hospital management system. GitHub. https://github.com/rahmaAlghalib/KAU-Hospital-System