This is a simple CLI-based Hospital Management System built using the Eclipse Equinox OSGi framework. It serves as a university assignment to practice Microkernel Architecture by implementing modular and extensible services.
The system includes the following services:
- Surgery Schedule Service: Manages surgery scheduling.
- Surgery Room Allocation Service: Allocates surgery rooms based on availability.
- Surgeon Allocation Service: Assigns surgeons to scheduled surgeries.
- Report Generation Service: Generates reports related to surgeries and resource allocation.
- Java
- Eclipse Equinox - OSGi Framework
- Microkernel Architecture
HospitalManagementSystem/
├── PatientAdmissionService
├── PharmacyService
├── SurgeryScheduleService/ # Manages surgery scheduling
├── SurgeryRoomAllocationService/ # Allocates rooms
├── SurgeonAllocationService/ # Assigns surgeons
└── ReportGenerationService/ # Generates surgery reports
- Open Eclipse IDE and install the OSGi Development Tools Plugin if not already installed.
- Import the project into Eclipse:
- Click File → Import → Existing Projects into Workspace.
- Select the project folder and click Finish.
- Configure the Run Configuration:
- Go to Run → Run Configurations.
- Create a new OSGi Framework configuration.
- Select all the required bundles.
- Click Apply and then Run.
- Open the OSGi console in Eclipse to interact with the system.
- Interact with the CLI to schedule surgeries, allocate rooms and surgeons, and generate reports.
- Ensure all required bundles are installed and started before running operations.
Feel free to fork this repository and submit pull requests for improvements and new features.