A complete Hospital ERP System built using Java and MongoDB, designed to manage hospital operations such as patients, doctors, appointments, billing, pharmacy, laboratory, and operation theatre scheduling.
- Add, view, update, delete patients
- Search by ID, name, or disease
- Add and manage doctors
- Search by name and specialization
- Book appointments
- View and delete appointments
- Assign rooms to patients
- Check availability
- Admit and discharge patients
- Store patient diagnosis and treatment history
- Update and search records
- Generate bills
- Track insurance status
- Update and search bills
- Add medicines
- Track stock
- Sell medicines (auto stock reduction)
- Store test records
- Track date and time of tests
- Update and search results
- Schedule surgeries
- Assign doctor and room
- Auto-manage room occupancy
The system follows a layered architecture: Presentation Layer → Business Logic → DAO Layer → Database
- Presentation Layer: Console-based UI
- Business Logic: Core application logic
- DAO Layer: Database interaction
- Database: MongoDB collections
- Encapsulation: Private fields with getters/setters
- Abstraction: DAO layer hides database logic
- Polymorphism: Reusable method structures
- Classes & Objects: Each entity modeled as a class
Collections used:
- patients
- doctors
- appointments
- rooms
- records
- billing
- medicines
- tests
- operations
- Java
- MongoDB
- VS Code
- Start MongoDB server
- Clone the repository:
git clone https://github.com/seh4835/Hospital-Management-Java
- Open project in VS Code
- Run:
ApiServer.java
- open new terminal
- Run: cd frontend npm install npm run dev
- Login & Authentication
- Role-based access control
- REST API integration
- Advanced reporting system
This project demonstrates a complete hospital ERP system using Java and MongoDB with modular architecture, CRUD operations, and real-world workflow simulation.
Seher Sanghani Sara Deshmukh Raghav Kaushik