Med-Intel : AI-Powered National Health Intelligence & Rural OPD Management System
Link to open source: https://github.com/abhayvermadev/smart-health-ai
Link to Live Project: https://smart-health-640070264053.asia-southeast1.run.app/
MED-INTEL is an enterprise-grade, privacy-first healthcare intelligence platform designed for district-level public health administration, rural healthcare facilities, doctors, and patients.
It provides real-time syndromic surveillance, intelligent OPD ticket booking with automated AI symptom classification, digital lab record access, AI clinical assistance for doctors, and automated pharmaceutical supply chain dispatching to prevent stockouts of life-saving medicines across primary health centers (PHCs).
Medical records and AI symptom prompts are processed within hardware-isolated Trusted Execution Environments (TEE) (AMD SEV-SNP / Intel SGX). Host operating systems and hypervisors cannot inspect unencrypted memory. Data access strictly enforces ABHA ID / Mobile Number zero-knowledge binding, ensuring ABDM & DISHA compliance.
+-------------------------------------------------+
| USER CLIENTS |
| (Mobile Web / Desktop Browsers / Kiosks) |
+------------------------+------------------------+
|
HTTPS / WSS (TLS 1.3)
|
v
+-------------------------------------------------------------------------------------------------------------------+
| MED-INTEL REVERSE PROXY |
| (Port 3000 Ingress Routing) |
+-------------------------------------------------------------------------------------------------------------------+
|
v
+-------------------------------------------------------------------------------------------------------------------+
| NODE.JS EXPRESS FULL-STACK SERVER |
| |
| +--------------------------------+ +---------------------------------+ +----------------------------------+ |
| | PATIENT & OPD ENGINE | | DOCTOR CLINICAL SUITE | | DISTRICT COMMAND CENTER | |
| | - ABHA / Phone Auth | | - Real-time OPD Queue | | - AI Supply Chain Dispatch | |
| | - Multilingual AI Triage | | - Digital RX Generator | | - Bed Capacity Monitor | |
| | - Digital Lab Report Viewer | | - Geofenced WiFi Attendance | | - D3.js Outbreak Heatmaps | |
| +--------------------------------+ +---------------------------------+ +----------------------------------+ |
| | |
+----------------------------------------------------------|--------------------------------------------------------+
|
v
+-------------------------------------------------------------------------------------------------------------------+
| TRUSTED EXECUTION ENVIRONMENT (TEE) ENCLAVE |
| (Hardware Isolated Memory - AMD SEV-SNP) |
| |
| +-------------------------------------------------------------------------------------------------------------+ |
| | 🔐 CONFIDENTIAL COMPUTING LAYER | |
| | - AES-256-GCM / RSA-4096 Data Encryption At-Rest & In-Flight | |
| | - Google Gemini 2.5 Flash Server Proxy (Zero-Knowledge AI Prompt Enclave) | |
| | - Attestation Token Verification (Hardware Cryptographic Proofs) | |
| +-------------------------------------------------------------------------------------------------------------+ |
| |
+-------------------------------------------------------------------------------------------------------------------+
|
v
+-------------------------------------------------------------------------------------------------------------------+
| DATA PERSISTENCE & ANALYTICS LAYER |
| |
| +----------------------------------+ +----------------------------------+ +---------------------------------+ |
| | IN-MEMORY / FIRESTORE | | OFFLINE LOCALSTORAGE CACHE | | NFHS-5 CENSUS INDICATORS | |
| | Dynamic Patient & Inventory DB | | Resilient Offline OPD Sync | | Epidemiological Calibration | |
| +----------------------------------+ +----------------------------------+ +---------------------------------+ |
| |
+-------------------------------------------------------------------------------------------------------------------+
- ABHA / Mobile Auth: Frictionless login bound to the patient's registered mobile number or 14-digit ABHA Health ID.
- Smart AI Triage & OPD Booking: Instant symptom analysis in English, Hindi, and regional languages automatically assigning patients to the right medical department.
- Digital Health Locker & Lab Reports: View official laboratory test reports (CBC, Dengue NS1, Electrolytes, Ultrasound) and download official ABHA-verified PDFs.
- Digital Prescriptions: View active medication routines, dosages, and doctor notes.
- Queue Management: Real-time patient OPD token system with urgency categorization (Red, Yellow, Green).
- AI Clinical Summarizer: Automated symptom analysis and diagnostic suggestion engine powered by Gemini 2.5 Flash.
- Digital Rx Generator: One-click prescription builder pre-linked with hospital medicine stock.
- Geo-fenced WiFi Attendance: Automated doctor duty verification matching facility BSSIDs/SSIDs.
- AI Medicine Supply Dispatch: Predictive inventory monitoring that automatically generates transfer requests from District Drug Warehouses to rural PHCs before medicine stocks deplete.
- Critical Bed Occupancy Tracking: Real-time departmental bed capacity alerts (ICU, Emergency, Maternity, General).
- D3.js Syndromic Outbreak Heatmap: Visual geospatial cluster mapping detecting localized infectious outbreaks (Dengue, Malaria, Gastroenteritis).
- Official Public Health Indicators: Calibrated with Census and NFHS-5 data for epidemiological accuracy.
- Frontend: React 18, Vite, TypeScript, Tailwind CSS, Lucide Icons, Motion Animation Library, D3.js.
- Backend: Node.js, Express, TypeScript (
tsxin dev,esbuildfor CJS production bundling). - AI Engine: Google
@google/genai(Gemini 2.5 Flash) server-side proxy. - Security Protocols: Trusted Execution Environment (TEE), AES-256-GCM, ABDM ABHA zero-knowledge data binding.
- Node.js: v18.0.0 or higher
- npm: v9.0.0 or higher
-
Clone the Repository
git clone https://github.com/your-username/med-intel.git cd med-intel -
Install Dependencies
npm install
-
Set Up Environment Variables Create a
.envfile or export your Gemini API key:GEMINI_API_KEY=your_gemini_api_key_here
-
Start Development Server
npm run dev
Access the app at
http://localhost:3000. -
Production Build
npm run build npm start
- ABDM (Ayushman Bharat Digital Mission): Compatible with ABHA health card standards.
- DISHA (Digital Information Security in Healthcare Act): Strict patient data ownership and privacy.
- HIPAA Compliance Guidelines: Enclave-isolated storage and encrypted data transmission.
Distributed under the MIT License.









