Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages