Skip to content
ankitpatil7Public

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

🏥 MERS - Medical Emergency Response System

Smart India Hackathon 2026 | Problem Statement ID: SIH26215 | Team: AlgoRift (T_04)

Next.js React Tailwind CSS ESP32

MERS is a real-time ICU monitoring platform that connects legacy bedside medical equipment to a central server and automatically escalates critical patient alerts to on-duty and backup doctors/nurses. This repository contains the Next.js Web Dashboard portion of the MERS ecosystem.


🛑 The Problem

Delays in ICU emergency response—caused by unavailable doctors or communication gaps—lead to critical patient deterioration. Existing hospital systems lack automated escalation, increasing the risk of missed interventions, especially in rural or resource-constrained hospitals with severe nursing shortages. An estimated 1.6 million Indians die annually due to delayed tracking and poor care quality.

💡 The Solution

MERS is a plug-and-play retrofit IoT bridge paired with a central Web & Mobile Dashboard:

  1. Connects to legacy ICU monitors via RS232 to extract raw physiological data (ECG, SpO2, HR) with zero equipment replacement.
  2. Analyzes data at the edge using a local Modified Early Warning Score (MEWS) logic.
  3. Automatically escalates alerts to primary doctors, and auto-forwards to backup doctors if unacknowledged within 10 minutes.

🏗️ Technical Architecture

graph TD
    subgraph Hospital Edge
        A[Legacy Bedside Monitor] -- "RS232 Protocol" --> B[MAX3232 Level Shifter]
        B -- "TTL Serial" --> C[ESP32 IoT Node]
        C -- "Local MEWS Engine" --> D{Anomaly Detected?}
    end

    subgraph Cloud Infrastructure
        E[Cloud REST API / Firebase]
        F[(Secure Database)]
    end

    subgraph Client Applications
        G[Mobile App - React Native]
        H[Web Dashboard - Next.js]
    end

    D -- "No" --> C
    D -- "Yes (SOS Alert) via TLS 1.2" --> E
    E --> F
    E -- "FCM Push Notifications" --> G
    E -- "Real-time API" --> H
Loading

⚙️ Hardware Details

The hardware edge node acts as a bridge between legacy hospital tech and the modern cloud:

  • Microcontroller: ESP32 (Wi-Fi/BLE enabled) for local data parsing and threshold anomaly detection.
  • Level Shifting: MAX3232 IC converts legacy RS232 signals (-15V to +15V) down to TTL (3.3V/5V) for the ESP32.
  • Input Architecture: Standard DB9 serial port plugs directly into bedside monitors.
  • Power: 5V standard power input.

💻 Software Details

This web repository is built on a highly modern, fast, and responsive stack:

  • Framework: Next.js 15 (App Router) + React 19
  • Styling: Tailwind CSS + Glassmorphism UI + Custom Keyframe Animations
  • Typography: Space Grotesk (Google Fonts) for a modern, futuristic medical HUD feel.
  • State Management: React Context API for global Authentication & Alerts state.
  • Icons: Lucide React / Custom SVGs.

✨ Web Dashboard Features

  1. Real-Time Monitoring: Live feed of active alerts sorted by severity (Critical / High / Medium).
  2. Alert Triage: 1-click Acknowledge, Details, and Call functions.
  3. Automated Escalation Timers: Countdown indicators for when an alert will bypass to a backup doctor.
  4. Duty Toggles: Doctors can instantly toggle "On Duty" / "Off Duty" status to control alert routing.
  5. Glassmorphic Cyber-HUD Design: Aesthetic, high-contrast, cyberpunk-inspired UI tailored for late-night ward monitoring.

🚀 Getting Started

Prerequisites

  • Node.js 18.x or newer
  • npm or yarn

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/mers-dashboard.git
    cd mers-dashboard
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm run dev
  4. Open http://localhost:3000 with your browser to see the application.


🔒 Security & Compliance

  • Encryption: Hardware-level TLS 1.2 encryption for all outbound web payload deliveries.
  • Data Privacy: Designed to align with HIPAA and India's ABDM / DPDP Act frameworks.

Built for SIH 2026 by Team AlgoRift

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages