A Java-based Hospital Patient Management System developed as part of the COMP2310 Object-Oriented Programming course at Birzeit University.
This system simulates hospital operations by managing patients, doctors, departments, and services using Object-Oriented Programming principles.
- Manage different types of patients:
- Emergency Patients
- Long-Term Patients
- Assign hospital services (X-ray, MRI, lab tests)
- Calculate patient bills based on type
- Calculate doctor salaries based on degree and overtime
- Sort:
- Patients by total bill amount
- Doctors by salary
- Generate formatted bill for a specific patient
- Calculate total bills for all patients
- Stores general patient information
- Base class for all patient types
- Inherits from PatientBase
- Bill = emergencyFee + serviceCosts * (1 + TAX_RATE)
- Inherits from PatientBase
- Bill = (daysAdmitted * dailyRate + serviceCosts) * (1 + TAX_RATE)
- Stores doctor details and department
- Calculates salary based on degree:
- Bachelor → +10%
- Master → +20%
- PhD → +30%
- Includes overtime pay calculation
- Manages doctors and patients
- Allows adding doctors and patients
- Represents services assigned to patients
- Includes service name and cost
- Main class
- Creates sample data (patients, doctors, departments)
- Performs sorting and calculations
- Object-Oriented Programming (OOP)
- Inheritance and polymorphism
- ArrayList usage
- Custom sorting using
Collections.sort - Encapsulation (getters/setters)
- Open the project in Eclipse IDE
- Run
Driver.java - The program will execute using predefined data
- Sorted doctors with salaries and departments
- Sorted patients by bill amount
- Individual patient bill
- Total hospital billing
- X-ray
- MRI
- Blood Test
- Course: COMP2310 — Object-Oriented Programming
- University: Birzeit University
- Semester: Fall 2024/2025