Skip to content

Kanneboinashivakumar/nexqueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ NexQueue - Smart Healthcare Queue Management System

NexQueue Logo

Skip the Queue. Meet the Cure.

A real-time, priority-based patient queue optimization system that reduces waiting time by 60%.


πŸ“‹ Table of Contents


✨ Features

πŸ‘€ For Patients

Feature Description
πŸ“… Instant Booking Book appointments in under 30 seconds
🎫 Smart Token Get unique token with priority scoring
πŸ“ Live Tracking Watch your queue position update in real-time
⏱️ Wait Time Estimate Know exactly when you'll be seen
πŸ”” Smart Notifications Get alerts when your turn is approaching

πŸ‘©β€πŸ’Ό For Staff

Feature Description
πŸ“Š Intelligent Queue Emergency > Senior > Normal + waiting boost
🚨 Emergency Override One-click to jump critical cases to front
βœ… One-Click Actions Call, Skip, Complete with single click
πŸ” Search & Filter Find any patient instantly
πŸ“ˆ Real-time Updates Queue syncs across all devices instantly

πŸ‘¨β€βš•οΈ For Doctors

Feature Description
πŸ‘€ Auto Patient Load Patient appears automatically when called
πŸ“ Digital Notes Add consultation notes digitally
πŸ’Š Prescription Creator Create prescriptions with auto-queue to lab/pharmacy
πŸ–¨οΈ Print Prescription Professional, formatted print output
πŸ”„ Auto Next Patient Next patient loads automatically on completion

πŸ”¬ For Lab & Pharmacy

Feature Description
⚑ Auto Queue Tests/medicines appear automatically from prescriptions
🏷️ Priority Tags Emergency, Urgent, Normal visual indicators
βœ… Status Tracking Waiting β†’ Processing β†’ Ready β†’ Completed
πŸ“Š Queue Dashboard Complete visibility of all pending tasks

πŸ‘‘ For Admins

Feature Description
πŸ“Š Real-time Analytics Track appointments, users, system health
πŸ‘₯ User Management Add/edit/activate/deactivate any user
πŸ“ˆ Peak Hours Analysis Know when to schedule more staff
πŸ”§ System Health Monitor server, database, API performance
πŸ“‹ Complete Oversight One dashboard to rule them all

πŸ› οΈ Tech Stack

Frontend

Technology Purpose
React 18 UI Library
Vite Build Tool
Tailwind CSS Styling
Framer Motion Animations
Socket.io Client Real-time Updates
Recharts Data Visualization
React Router Navigation

Backend

Technology Purpose
Node.js Runtime
Express.js Web Framework
MongoDB Atlas Database
Mongoose ODM
Socket.io WebSocket Server
JWT Authentication
Bcrypt Password Hashing

Deployment

Service Purpose
Vercel Frontend Hosting
Render Backend Hosting
MongoDB Atlas Database Hosting
GitHub Version Control

πŸ“Έ Screenshots

Landing Page

πŸŽ₯ Demo Video

Watch Demo

Landing Page

Patient Dashboard

Patient Dashboard

Real-time queue position with wait time estimate

Staff Dashboard

Staff Dashboard

Priority-sorted queue with one-click controls

Doctor Dashboard

Doctor Dashboard

Current patient view with digital notes and prescription

Lab Queue Dashboard

Lab Queue

Lab tests with priority indicators and status tracking

Pharmacy Queue Dashboard

Pharmacy Queue

Prescription management with full workflow

Admin Dashboard

Admin Dashboard

System analytics, user management, and peak hours analysis


πŸš€ Live Demo

Live Deployment (In Progress)

Component Status URL
Frontend 🚧 In Progress https://nexqueue.vercel.app
Backend API 🚧 In Progress https://nexqueue-backend.onrender.com

Local Development (Working Now)

Dashboard URL Credentials
Patient http://localhost:5173/patient rajesh@test.com / patient123
Staff http://localhost:5173/staff staff@test.com / staff123
Doctor http://localhost:5173/doctor doctor@test.com / doctor123
Lab http://localhost:5173/lab lab@test.com / staff123
Pharmacy http://localhost:5173/pharmacy pharmacy@test.com / staff123
Admin http://localhost:5173/admin admin@nexqueue.com / admin123

πŸ’» Installation

Prerequisites

  • Node.js v18+
  • MongoDB (local or Atlas)
  • Git

Step 1: Clone the Repository

git clone https://github.com/yourusername/nexqueue.git
cd nexqueue

Step 2: Clone the Repository

cd backend
npm install

Step 3: Configure Backend Environment

Create backend/.env:

PORT=5000
MONGODB_URI=mongodb://localhost:27017/nexqueue
JWT_SECRET=your_super_secret_key

Step 4: Install Frontend Dependencies

cd ../frontend
npm install

Step 5: Configure Frontend Environment

Create frontend/.env:

VITE_API_URL=http://localhost:5000/api

Step 6: Run the Application

Terminal 1 - Backend:

cd backend
npm run dev

Terminal 2 - Frontend:

cd Frontend
npm run dev

Step 7: Access the Application

πŸ‘₯ User Roles

Role Access Route Permissions
Patient /patient Book appointments, view queue, get notifications
Staff /staff Manage queue, call patients, emergency override
Doctor /doctor Consult patients, add notes, create prescriptions
Lab Staff /lab View and process lab tests
Pharmacy Staff /pharmacy Process medicine prescriptions
Admin /admin Full system control, user management, analytics

πŸ“Š How It Works

🧠 Smart Priority Algorithm

const priorityScore = {
  emergency: 100,  // 🚨 Jumps to front
  senior: 50,      // πŸ‘΅ Fair priority
  normal: 10 + (waitingMinutes * 0.1)  // πŸ‘€ Waiting boost
};

This ensures:

  • 🚨 Emergency patients get immediate attention
  • πŸ‘΅ Senior citizens receive fair priority
  • πŸ‘€ Normal patients gradually move up based on waiting time

πŸ₯ Complete Patient Journey

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Patient    β”‚ -> β”‚   Staff     β”‚ -> β”‚   Doctor    β”‚ -> β”‚ Lab/Pharmacyβ”‚
β”‚  Books      β”‚    β”‚  Calls      β”‚    β”‚  Consults   β”‚    β”‚  Processes  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  1. Patient books an appointment
  2. Staff manages and calls patients
  3. Doctor consults and adds prescriptions
  4. Lab/Pharmacy processes tests and medicines

🌐 Deployment (IN PROGRESS)

πŸš€ Frontend (Vercel)

cd frontend
npm run build
vercel --prod

βš™οΈ Backend (Render)

  1. Push backend code to GitHub
  2. Connect repository to Render
  3. Add environment variables
  4. Deploy

πŸ—„οΈ Database (MongoDB Atlas)

  1. Create a free cluster
  2. Get your connection string
  3. Update MONGODB_URI in backend .env file

πŸ“„ License

This project is licensed under the MIT License – see the LICENSE file for details.


πŸ‘¨β€πŸ’» Team

Shiva Kumar Kanneboina – Full Stack Developer

Gurutej Ganapurapu – Team Leader

Nandu Kankala - Pitch Presenter


πŸ™ Acknowledgments

  • IIT Delhi Research (2022) – Fatma & Ramamohan's paper on real-time length-of-stay predictions in Indian PHCs, which showed patients spend 60 minutes in facilities for just 10 minutes of care [ICORES 2022, DOI: 10.5220/0010837400003117]

  • Human Rights Forum, Hyderabad (Jan 2026) – Their report on Osmania General Hospital, where an accident victim waited three hours with a broken leg, directly inspired our mission [Deccan Chronicle, The Hindu]

  • All the patients who shared their waiting room stories – Your experiences reminded us that healthcare is about dignity, not just data


πŸ“ž Contact

β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—   β•šβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  
β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•   β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–„β–„ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  
β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•  β•šβ•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β• β•šβ•β•β–€β–€β•β•  β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β• β•šβ•β•β•β•β•β• β•šβ•β•β•β•β•β•β•
  

NEXQUEUE

Skip the Queue. Meet the Cure.

A real-time, priority-based healthcare queue management system reducing waiting time by 60%

Features β€’ Tech Stack β€’ Quick Start β€’ Demo

About

πŸ₯ NexQueue is a smart hospital queue management system with real-time updates, priority-based queuing (Emergency > Senior > Normal + waiting boost), and integrated lab/pharmacy workflows. Built with React, Node.js, MongoDB, and Socket.io.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages