Skip to content

swaroop489/care-glide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš‘ Care-Glide: Smart Nurse Dispatch System

Care-Glide is a geo-location aware emergency response system designed to assist senior citizens living alone by instantly connecting them with the nearest available nurse.

Built using the MERN stack and AWS services, the system ensures fast, reliable, and intelligent nurse allocation during emergencies.


๐Ÿ“Œ Problem Statement

Patients (especially senior citizens) living alone may face emergencies such as:

  • Sudden health deterioration
  • Falls or accidents
  • Urgent medical needs

In such situations, immediate assistance is critical.

Care-Glide solves this by:

  • Identifying the nearest nurse in real-time
  • Calculating fastest route using geo-data
  • Automatically notifying nurses until one accepts

๐Ÿš€ Features

๐Ÿ‘ด Patient Side

  • One-click emergency alert trigger
  • Automatic location detection (GPS)
  • Real-time tracking of assigned nurse
  • Emergency status updates

๐Ÿ‘ฉโ€โš•๏ธ Nurse Side

  • Live location tracking
  • Receive emergency alerts
  • Accept / reject requests
  • Route navigation to patient

๐Ÿง  Smart Dispatch System

  • Finds nearest nurse using geo-coordinates
  • Calculates fastest route (not just distance)
  • Prioritizes based on:
    • Distance
    • Travel time
    • Availability
  • Auto-escalation if nurse doesn't respond

๐Ÿ—๏ธ Tech Stack

๐Ÿ’ป Frontend

  • React.js
  • Tailwind CSS / CSS
  • Axios
  • Google Maps API / Mapbox

๐Ÿ–ฅ๏ธ Backend

  • Node.js
  • Express.js
  • MongoDB (Mongoose)
  • REST APIs

โ˜๏ธ Cloud & DevOps (AWS)

  • AWS EC2 (Backend hosting)
  • AWS S3 (Media / assets storage)
  • AWS Lambda (Optional async processing)
  • AWS API Gateway
  • AWS SNS / Firebase (Push Notifications)

๐Ÿ“ก Real-time & Location

  • WebSockets / Socket.IO
  • Geolocation APIs
  • Haversine formula / routing APIs

๐Ÿ“Š System Architecture

graph LR
A[Patient App] --> B[API Server]
B --> C[Dispatch Engine]
C --> D[Nurse App]
B --> E[MongoDB Database]
E --> F[AWS Services]

Loading

โš™๏ธ How It Works

  1. Patient triggers emergency alert
  2. System fetches:
    • Patient location
    • List of available nurses
  3. Calculates nearest nurse using:
    • Geo-distance
    • Estimated travel time
  4. Sends notification to closest nurse
  5. If no response:
    • Escalates to next nearest nurse
  6. Once accepted:
    • Nurse is assigned
    • Navigation begins

๐Ÿงฎ Core Algorithm

We use a combination of:

  • Haversine Formula โ†’ for distance calculation
  • Routing APIs (Google Maps) โ†’ for travel time
  • Priority Queue โ†’ to rank nurses

๐Ÿ” Security & Privacy

  • Secure APIs with authentication (JWT)
  • Encrypted data transmission (HTTPS)
  • Role-based access (Patient / Nurse / Admin)
  • Location data used only during active requests

๐Ÿ“‚ Folder Structure

care-glide/
โ”‚
โ”œโ”€โ”€ frontend/ # React frontend
โ”œโ”€โ”€ backend/ # Node.js backend
โ”‚ โ”œโ”€โ”€ controllers/
โ”‚ โ”œโ”€โ”€ routes/
โ”‚ โ”œโ”€โ”€ models/
โ”‚ โ”œโ”€โ”€ services/
โ”‚ โ””โ”€โ”€ utils/
โ”‚
โ”œโ”€โ”€ aws/ # AWS configs (if any)
โ”œโ”€โ”€ docs/ # Documentation
โ””โ”€โ”€ README.md


๐Ÿ› ๏ธ Installation & Setup

1๏ธโƒฃ Clone Repository

git clone https://github.com/your-username/care-glide.git
cd care-glide

๐Ÿ› ๏ธ Installation & Setup

2๏ธโƒฃ Setup Backend

cd server  
npm install  
npm run dev

3๏ธโƒฃ Setup Frontend

cd client  
npm install  
npm start  

๐Ÿ”‘ Environment Variables

Create .env file in server:

PORT=5000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_secret
GOOGLE_MAPS_API_KEY=your_key
AWS_ACCESS_KEY=your_key
AWS_SECRET_KEY=your_key


๐Ÿ“ก API Endpoints (Sample)

Patient

  • POST /api/alert โ†’ Trigger emergency
  • GET /api/status/:id โ†’ Check status

Nurse

  • GET /api/nurses/available
  • POST /api/nurse/respond

๐Ÿ“ฆ Deployment

Backend

  • AWS EC2 / AWS Lambda

Frontend

  • AWS S3 / Vercel / Netlify

Database

  • MongoDB Atlas

๐ŸŽฅ Demo Deliverables

  • MVP with working emergency alert flow
  • Live nurse assignment simulation
  • 5-minute demo video
  • GitHub source code

๐ŸŒŸ Bonus Features (Optional)

  • Voice-based emergency trigger
  • Fall detection using sensors
  • AI-based priority scoring
  • Offline SMS fallback alerts
  • Wearable device integration

๐Ÿ“ˆ Future Improvements

  • Integration with hospitals
  • Multi-city scaling
  • Predictive emergency detection
  • AI route optimization

About

Care-Glide is a geo-location based emergency response system that connects senior citizens with the nearest available nurse during critical situations. It tracks real-time locations of patients and nurses to identify who can reach the fastest. The system uses smart dispatch logic with auto-escalation if a nurse does not respond.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors