A modern Java-based Smart Hospital system designed to enhance hospital management through automation, real-time communication, and AI-powered assistance.
- 🧑⚕️ Doctor & Patient Management – Add, update, and manage doctors and patients using an intuitive GUI built with Java Swing and AWT.
- 💬 Real-time Chat System – Uses
Socket.IOto enable real-time communication between doctors and patients. - 🤖 AI Chatbot Integration – Integrated with Gemini API to provide a chatbot that assists patients by answering health-related queries and guiding them through symptoms and diseases.
- 🗃️ Database Integration – All data (patients, doctors, appointments) is securely stored and managed in MySQL.
- 📋 Appointment Scheduling – Patients can schedule appointments with doctors through a user-friendly interface.
- 📈 Modern & Clean UI – Designed with a practical and clean UI for better user experience, inspired by real-world hospital systems.
| Layer | Technology Used |
|---|---|
| Language | Java |
| UI Framework | Java Swing & AWT |
| Database | MySQL |
| Real-time Comm. | Socket.IO |
| AI Integration | Gemini API (Google) |
The chatbot leverages Gemini API to:
- Interact with patients through natural language.
- Guide them based on symptoms.
- Recommend actions or consultations.
- Reduce load on front desk and support staff.
git clone https://github.com/asheesh109/Smart-Hospital.git cd Smart-Hospital
Create a database: HMsystem
Import the SQL schema/tables from the provided .sql file (if available).
Update DB credentials in the Java code (if not using environment variables).
Ensure Java JDK is installed.
Install MySQL and configure the database.
Run npm install (if using Node.js for your Socket.IO server).
Launch the Java main class.
Start the Node.js server (if applicable for Socket.IO).
Chatbot requires a valid Gemini API key – add your key in the designated config file or environment variable.
Billing and payment system.
Ashish Parab Feel free to connect or raise an issue if you find any bugs or want to contribute!
📄 License This project is open-source and free to use for educational purposes.