The Hospital Management System is a Java-based application designed to streamline hospital operations such as managing departments, doctors, patients, appointments, and medical records. The system integrates a PostgreSQL database to ensure data consistency and accessibility, while the application provides a user-friendly interface for efficient operation.
- Database Integration: Centralized relational database using PostgreSQL.
- Role-based Access: Separate functionalities for doctors and patients.
- Appointment Management: Scheduling, updating, and viewing appointments.
- Medical Records: Storage and retrieval of patient history and treatment details.
- Department Management: Association of doctors with departments for better organization.
- Programming Language: Java
- Database: PostgreSQL
- GUI Framework: Swing Library (optional for GUI development)
- Database Connectivity: JDBC
- Install Java (version 8 or above).
- Install PostgreSQL (version 12 or above).
- IDE of choice (e.g., IntelliJ IDEA, Eclipse).
- Create a PostgreSQL database named
hospital. - Connect to the database using:
Update these details as per your local configuration.
private static final String url = "jdbc:postgresql://localhost:5432/hospital"; private static final String username = "postgres"; private static final String password = "1234";
- Execute the
DDL.sqlfile located insrc/main/resourcesto create the required tables and relationships.
- Clone this repository:
git clone https://github.com/ysebo/database_final_project.git
- Import the project into your IDE.
- Add the PostgreSQL JDBC Driver to your project dependencies.
- Run the application.
-
Database Initialization:
- Use
DDL.sqlto set up the database structure.
- Use
-
Application Execution:
- For GUI: Launch the Swing based application to interact with the system via a graphical interface(using Main.java .
-
Key Operations:
- Add, update, or delete doctors, patients, appointments, and medical records.
- View department-wise doctor allocation.
- Retrieve and update patient treatment histories.
Hospital Management System
├── src
│ ├── main
│ │ │ └──├──controller
│ │ │ ├── model
│ │ │ ├── service
| | | ├── viewer
| | | ├── db
│ │ │ └── Main.java
│ │ ├── resources
│ │ │ ├── DDL.sql
│
├── README.md
This project is licensed under the MIT License.