Smart Hospital Appointment & Queue Management System
Smart Hospital Appointment & Queue Management System
Smart Hospital Appointment & Queue Management is a full-stack MERN web application built to eliminate overcrowded hospital waiting rooms, reduce patient wait times, and replace manual paper tokens with a streamlined digital queue.
💡 Why This Project?
Traditional outpatient departments (OPD) face constant waiting room bottlenecks and patient disputes over queue turns. This application provides a modern, transparent solution: patients can book specific consultation slots, receive sequential daily token numbers, and track their position in the queue remotely from their smartphones.
🌟 Key Role Features
👤 Patient Module:
- Browse doctors by specialization (Cardiology, Pediatrics, General Medicine, etc.), experience, and consultation fees.
- Book available 30-minute consultation slots with past-date and slot-conflict prevention.
- Automatically receive structured daily tokens (e.g. A-014).
- Live queue tracker displaying: Current Token: A-010 | Your Token: A-014 | Patients Before You: 4.
- View appointment history and cancel upcoming bookings with one click.
👨⚕️ Doctor Module:
- View today's consultation schedule and active queue counters (Waiting, Completed, Total).
- One-click queue advancement: Click [ 📢 Call Next Patient ] to complete the previous consultation and call the next waiting token.
- Mark patients as Completed, No-Show, or Cancelled.
🛠️ Administrator Module:
- Overview metrics: Active Doctors, Registered Patients, Today's Bookings, Waiting Queue, and Completed Consultations.
- Add new specialists with consulting hours and room numbers, edit details, or deactivate profiles.
- Audit all registered patients and hospital bookings.
🧰 Technology Architecture
- Frontend: React 18, React Router v6, Redux Toolkit for authentication session state, Native Fetch API.
- Styling: 100% Pure Vanilla CSS with responsive media queries for desktop, tablet, and mobile.
- Backend: Node.js & Express.js REST API with CORS and JSON body parsing.
- Database: MongoDB Atlas with Mongoose 8 schema validation and compound indexing.
- Security: Stateless JSON Web Tokens (JWT) & bcrypt password encryption.
📦 Quick Setup & Installation
- Extract the project ZIP package.
- Configure your MONGO_URI and JWT_SECRET in server/.env.
- Run npm run seed in server to populate demo doctors, admin, and live queue.
- Run npm start in server (Port 5005).
- Run npm start in client (Port 3000).
Key Features
- ✓Three strictly enforced user roles: Patient, Doctor, and Hospital Administrator
- ✓Automated daily token generation with doctor-specific prefixes (e.g. A-001, A-014)
- ✓Live queue tracking calculating serving token and exact patients ahead
- ✓One-click doctor queue advancement with [ Call Next Patient ] action
- ✓Duplicate appointment slot and past-date booking prevention
- ✓Doctor specialization filtering, search, and clinic hours directory
- ✓Appointment status lifecycle: Booked, Waiting, In-Progress, Completed, Cancelled, No-Show
- ✓Hospital analytics dashboard with real-time counters and patient registry
- ✓Stateless JWT authentication with bcrypt password encryption and Redux session state
- ✓100% Pure Vanilla CSS healthcare design with mobile and tablet responsiveness
Screenshots
What's Included
Standard Purchase Price
₹599.00
Unlock this project for ₹0 Free with an Annual Pass!
Get Free with Annual Pass👑Included with Lite (3) & Max (5) Annual Plans • View Annual Plans →
✅ Instant access after payment
✅ Secure UPI payment
✅ Download link valid 24 hours
✅ Full source code & DB included