A Java-based desktop application designed to manage patient records, doctor schedules, and appointments. This system utilizes multiple design patterns, including Singleton, Factory, Builder, Adapter, Proxy, and Prototype, ensuring scalability, maintainability, and code reusability.
- Doctor Schedules: Add and view doctors' available schedules.
- Patient Appointments: Schedule, view, and manage patient appointments.
- Database Integration: Persistent storage of schedules and appointments using SQL Server.
- Clean UI: A user-friendly graphical interface built with Java Swing.
- Singleton Pattern: For database connection management.
- Factory Pattern: For creating doctor and patient objects.
- Builder Pattern: For constructing appointments with multiple optional fields.
- Prototype Pattern: For duplicating existing records.
- Adapter Pattern: For integrating different data formats with the UI.
- Programming Language: Java
- Database: SQL Server
- UI Framework: Swing
- Build Tool: Maven (optional)
- Java 11 or later
- SQL Server installed and running
- Database configuration in the application
git clone https://github.com/your-username/Medical-Clinic-Management-System.git
cd Medical-Clinic-Management-System
- Create a database in SQL Server named
ClinicDB
. - Run the following SQL script to create the necessary tables:
CREATE TABLE DoctorSchedules (
doctor_name VARCHAR(100) NOT NULL,
available_date DATE NOT NULL
);
CREATE TABLE PatientAppointments (
patient_name VARCHAR(100) NOT NULL,
doctor_name VARCHAR(100) NOT NULL,
appointment_date DATE NOT NULL
);
- Update the database connection settings in the
connectToDatabase
method:
String url = "jdbc:sqlserver://localhost:1433;databaseName=ClinicDB";
String username = "your_username";
String password = "your_password";
- Compile and run the application:
javac MainUI.java
java MainUI
Contributions are highly encouraged! If you would like to contribute to Medical Clinic Management System
, please follow these steps:
- Fork the Repository.
- Create a New Branch:
git checkout -b feature/YourFeature
- Commit Your Changes:
git commit -m "Add your message"
- Push to the Branch:
git push origin feature/YourFeature
- Open a Pull Request.
You’ve successfully integrated Medical Clinic Management System
into your Flutter app! For more advanced features and customization options.
If you found this guide helpful, don’t forget to ⭐ star this repository on GitHub to show your support!
Thank you for reading!
This project is licensed under the MIT License.
For any questions or feedback, feel free to reach out:
- Email: mohammedmego15@gmail.com
- LinkedIn: My LinkedIn