Intelligent Clinical Decision Support Platform
A production-ready, multi-agent healthcare orchestration system powered by Microsoft Azure AI Services
Built for Microsoft Imagine Cup 2026 | Healthcare Category
π Release Notes - Version 2.0.0
Release Date: January 3, 2026
Feature
Description
π§ Azure OpenAI Integration
GPT-4o powered clinical reasoning with intelligent fallback
β‘ Early Deterioration Detection
AI-powered NEWS2/SOFA scoring with real-time patient monitoring
π Medication Safety Engine
Context-aware drug interaction detection with severity grading
π€ Agent Orchestrator
Visual multi-agent pipeline with step-by-step execution
π Microsoft Entra ID
Enterprise-grade authentication with multi-tenant isolation
π Azure SQL Database
Persistent cloud storage with hospital-level data isolation
π Production Deployment
GitHub Actions CI/CD with Azure App Service
HealthMesh is an enterprise-grade, multi-tenant clinical decision support platform designed to assist healthcare professionals in making informed decisions for complex patient cases. The platform leverages Microsoft Azure AI Services to provide real-time clinical insights, evidence-based recommendations, and transparent AI reasoning.
Azure OpenAI : GPT-4o powered clinical intelligence with rule-based fallback
Multi-Tenant Isolation : Complete data separation per hospital/organization
HIPAA-Ready : Comprehensive audit logging and encryption
FHIR R4 Compatible : Standard healthcare data interoperability
π Complete Documentation | π Security Policy | π Deployment Guide | π Project Structure
Security Features:
β¨ Complete Feature List
π€ Multi-Agent Clinical Intelligence Pipeline (6 Agents)
Agent
Role
Key Outputs
π¨ Triage Agent
NEWS2/SOFA scoring, risk classification
Urgency score, risk category, red flags
π©Ί Diagnostic Agent
Differential diagnosis generation
Ranked diagnoses with probability scores
π Guideline Agent
Medical guideline mapping (NCCN, WHO, ICMR, ADA)
Evidence-based recommendations
π Medication Safety Agent
Drug interactions, dosing, allergies
Severity-graded alerts with clinical context
π Evidence Agent
RAG-powered clinical research retrieval
PubMed/guideline citations
π§ Synthesis Orchestrator
Multi-agent output integration
Unified clinical summary
π Medication Safety Engine (NEW in v2.0)
Feature
Description
Drug-Drug Interactions
15+ interaction rules with clinical mechanisms
Context-Aware Severity
Age, renal function modify alert severity
Allergy Cross-Reactivity
Detects related drug class allergies
Renal/Hepatic Dosing
Flags medications needing adjustment
Explainability Panel
Data sources, reasoning chain, limitations
Alert Fatigue Prevention
Suppressible low-priority alerts
Detected Interactions Include:
Aspirin + ACE Inhibitors β Reduced cardioprotection
Metformin + Sulfonylureas β Hypoglycemia risk
Statins + Amlodipine β Myopathy risk
NSAIDs + Anticoagulants β Bleeding risk
And many more...
β‘ Early Deterioration Detection (NEW in v2.0)
Feature
Description
NEWS2 Scoring
National Early Warning Score 2 calculation
SOFA-lite Assessment
Organ dysfunction evaluation
AI Enhancement
Azure OpenAI-powered trend analysis
Real-Time Signals
Vital sign deterioration tracking
Clinical Recommendations
Actionable intervention suggestions
Risk Trajectory
Predictive deterioration modeling
π Agent Orchestrator (Visual Pipeline)
Step-by-Step Execution : Watch each agent process in real-time
Dependency Resolution : Automatic agent sequencing
Parallel Execution : Independent agents run simultaneously
Output Visualization : Expandable results per agent
Error Handling : Graceful fallbacks on agent failure
π± Patient QR Identity System
FHIR R4 Compliant Patient Master ID
Unique QR Codes for instant patient identification
Mobile Scanning with role-based access control
Longitudinal Dashboard on scan
π Enterprise Security & Multi-Tenancy
Feature
Implementation
Authentication
Microsoft Entra ID (Azure AD) only
Data Isolation
Hospital-level tenant separation
Access Control
Role-Based (Doctor, Nurse, Admin)
Audit Logging
Full action trail with timestamps
Zero Passwords
No local credential storage
π Clinical Scoring Algorithms
NEWS2 (National Early Warning Score 2)
SOFA-lite (Sequential Organ Failure Assessment)
Risk Classification : Low / Moderate / High / Critical
Step-by-step reasoning chains
Confidence scores per agent
Data source citations
Known limitations disclosure
Clinical disclaimers
ποΈ System Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β HEALTHMESH v2.0 PLATFORM β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββββββββββββββ βββββββββββββββββββββββ βββββββββββββββββββ β
β β FRONTEND β β BACKEND β β AZURE AI β β
β β β β β β SERVICES β β
β β β’ React 18 + TS β β β’ Express.js β β β β
β β β’ Tailwind CSS βββββΊβ β’ TypeScript βββββΊβ π΅ Azure OpenAI β β
β β β’ Radix UI β β β’ Node.js 22 β β (GPT-4o) β β
β β β’ TanStack Query β β β’ RESTful APIs β β π Rule Fallbackβ β
β β β’ Wouter Router β β β’ Multi-Agent β β β β
β βββββββββββββββββββββββ βββββββββββββββββββββββ βββββββββββββββββββ β
β β β
β ββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββ β
β β AZURE SERVICES LAYER β β
β β β β
β β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ ββββββββββββ β β
β β β Azure SQL β β Microsoft β β Azure β β Azure β β β
β β β Database β β Entra ID β β App Service β β Monitor β β β
β β β β β β β β β β β β
β β β Multi-tenant β β Enterprise β β Production β β Logging β β β
β β β Persistence β β Auth/SSO β β Hosting β β & Audit β β β
β β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ ββββββββββββ β β
β β β β
β β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ ββββββββββββ β β
β β β Azure OpenAI β β Azure Health β β Azure β β Azure β β β
β β β (GPT-4o) β β Data Servicesβ β Cognitive β β Document β β β
β β β β β (FHIR R4) β β Search β β Intel β β β
β β β AI Engine β β HL7 FHIR API β β RAG Index β β Lab OCR β β β
β β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ ββββββββββββ β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Technology
Version
Purpose
React
18.x
UI Framework
TypeScript
5.x
Type Safety
Tailwind CSS
3.x
Styling
Radix UI
Latest
Accessible Components
TanStack Query
5.x
Data Fetching & Caching
Wouter
3.x
Client-side Routing
Recharts
2.x
Data Visualization
Framer Motion
11.x
Animations
Technology
Version
Purpose
Express.js
4.x
Web Framework
TypeScript
5.x
Type Safety
Node.js
22.x LTS
Runtime
mssql
11.x
Azure SQL Client
Zod
3.x
Schema Validation
MSAL Node
2.x
Azure AD Authentication
Service
Purpose
Azure OpenAI (GPT-4o)
Clinical reasoning & analysis
Azure SQL Database
Multi-tenant data persistence
Microsoft Entra ID
Enterprise authentication
Azure App Service
Production web hosting
Azure Monitor
Logging & telemetry
Azure Health Data Services
FHIR R4 (optional)
Azure Document Intelligence
Lab report OCR
Azure Cognitive Search
Medical guidelines RAG
Azure Key Vault
Secrets management
Azure Application Insights
Performance monitoring
healthmesh/
βββ client/ # Frontend React Application
β βββ src/
β β βββ pages/ # Route Pages
β β β βββ dashboard.tsx # Main dashboard
β β β βββ patients.tsx # Patient management
β β β βββ cases.tsx # Clinical cases
β β β βββ orchestrator.tsx # Agent Orchestrator (NEW)
β β β βββ early-deterioration.tsx # NEWS2/SOFA (NEW)
β β β βββ medication-safety.tsx # Drug safety (NEW)
β β β βββ labs.tsx # Lab reports
β β β βββ qr-scan.tsx # QR scanner
β β β βββ audit.tsx # Audit logs
β β β βββ settings.tsx # User settings
β β βββ components/ # Reusable UI Components
β β βββ auth/ # MSAL Authentication
β β βββ lib/ # Utilities
β βββ index.html
β
βββ server/ # Backend Express Server
β βββ agents/ # AI Agent Engines (NEW)
β β βββ ai-medication-safety-agent.ts # AI medication safety
β β βββ medication-safety-engine.ts # Rule-based drug interactions
β β βββ early-deterioration-agent.ts # NEWS2/SOFA scoring
β β βββ ai-enhanced-deterioration-agent.ts # AI deterioration
β βββ azure/ # Azure Service Clients
β β βββ openai-client.ts # Azure OpenAI
β β βββ monitoring.ts # Azure Monitor
β β βββ config.ts # Configuration
β βββ auth/ # Authentication
β β βββ entraAuth.ts # Microsoft Entra ID
β βββ api/ # API Route Modules
β β βββ medication-safety-routes.ts # Medication safety API
β β βββ deterioration-routes.ts # Deterioration API
β βββ db/ # Database Layer
β β βββ azure-sql.ts # Azure SQL connection
β β βββ migrations/ # SQL migrations
β βββ clinical-agents.ts # Core clinical pipeline
β βββ api-routes.ts # Main API routes
β βββ index.ts # Server entry point
β
βββ shared/ # Shared TypeScript Types
β βββ schema.ts # Zod Schemas
β
βββ docs/ # Documentation
β βββ EARLY_DETERIORATION_AGENT.md
β βββ AGENT_PROMPTS.md
β βββ ...
β
βββ .github/workflows/ # CI/CD Pipelines
β βββ deploy-production.yml
β
βββ infra/ # Azure Infrastructure (Bicep)
βββ main.bicep
git clone https://github.com/balaraj74/HealthMesh.git
cd HealthMesh
cp .env.azure.example .env
Edit .env with your Azure credentials:
# ===== Azure OpenAI =====
AZURE_OPENAI_ENDPOINT = https://your-openai.openai.azure.com/
AZURE_OPENAI_API_KEY = your-api-key
AZURE_OPENAI_DEPLOYMENT = gpt-4o
# ===== Azure Authentication =====
AZURE_AD_TENANT_ID = your-tenant-id
AZURE_AD_CLIENT_ID = your-client-id
VITE_AZURE_AD_TENANT_ID = your-tenant-id
VITE_AZURE_AD_CLIENT_ID = your-client-id
# ===== Azure SQL Database =====
AZURE_SQL_CONNECTION_STRING = Server=your-server.database.windows.net;Database=healthmesh;User Id=admin;Password=password;Encrypt=true
# ===== Optional Services =====
AZURE_FHIR_ENDPOINT = https://your-fhir.fhir.azurehealthcareapis.com
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT = https://your-docint.cognitiveservices.azure.com/
AZURE_DOCUMENT_INTELLIGENCE_KEY = your-key
AZURE_SEARCH_ENDPOINT = https://your-search.search.windows.net
AZURE_SEARCH_ADMIN_KEY = your-key
4. Start Development Server
Application available at http://localhost:5000
Open http://localhost:5000
Click "Sign In with Microsoft"
Authenticate with your Azure AD credentials
All endpoints require Microsoft Entra ID Bearer token:
Authorization: Bearer <entra-access-token>
Method
Endpoint
Description
GET
/api/me
Get authenticated user profile
GET
/api/patients
List patients (hospital-scoped)
POST
/api/patients
Create new patient
GET
/api/cases
List clinical cases
POST
/api/cases/:id/clinical-analyze
Run 6-agent analysis
Medication Safety API (NEW)
Method
Endpoint
Description
POST
/api/medication-safety/analyze-real
AI-powered safety analysis
POST
/api/medication-safety/check-new
Check new medication
POST
/api/medication-safety/alert/:id/acknowledge
Acknowledge alert
GET
/api/medication-safety/patient/:id/history
Alert history
Early Deterioration API (NEW)
Method
Endpoint
Description
POST
/api/deterioration/analyze
Basic NEWS2/SOFA
POST
/api/deterioration/analyze-real
AI-enhanced analysis
GET
/api/deterioration/patient/:id/alerts
Patient alerts
Method
Endpoint
Description
GET
/api/lab-reports/patient/:id
Get patient lab reports
POST
/api/lab-reports/upload
Upload lab report (OCR)
Method
Endpoint
Description
GET
/api/qr/patient/:id
Get patient QR code
POST
/api/qr/scan
Scan QR and retrieve patient
π Security & Compliance
User β Microsoft Entra ID β JWT Token β Backend Validation β Hospital Context
Standard
Implementation
HIPAA Ready
Audit logging, encryption, access controls
FHIR R4
Azure Health Data Services integration
SOC 2 Ready
Azure security controls
GDPR Compliant
Data isolation, consent management
β
HTTPS-only with TLS 1.2+
β
Role-Based Access Control (RBAC)
β
Hospital-level data isolation
β
Full audit trail logging
β
No local password storage
β
Managed identities for Azure services
β
Azure Key Vault for secrets
π’ Production Deployment
The repository includes automated deployment:
# .github/workflows/deploy-production.yml
# Triggers on push to main branch
# Deploys to Azure App Service
# Build application
npm run build
# Deploy to Azure App Service
az webapp deployment source config-zip \
--resource-group healthmesh-rg \
--name healthmesh-app \
--src deploy.zip
Azure Infrastructure (Bicep)
# Deploy infrastructure
az deployment group create \
--resource-group healthmesh-rg \
--template-file infra/main.bicep \
--parameters environment=production
π Monitoring & Observability
Azure Monitor Integration
Application Insights : Performance metrics, distributed tracing
Log Analytics : Centralized logging
Azure Alerts : Proactive issue detection
Metric
Description
Agent Execution Time
Per-agent performance
AI Token Usage
Azure OpenAI consumption
Confidence Scores
Analysis reliability
Alert Generation
Safety alerts created
API Response Times
Endpoint latency
Error Rates
System health indicators
Command
Description
npm run dev
Start development server (port 5000)
npm run build
Build for production
npm start
Run production server
npm run check
TypeScript type checking
β οΈ Clinical Disclaimer
This system is designed as CLINICAL DECISION SUPPORT only.
All recommendations must be reviewed by a licensed clinician
The AI does NOT make diagnoses or treatment decisions
The final clinical decision rests with the treating physician
Evidence and guidelines may change; always verify current standards
Patient-specific factors may override general recommendations
π Microsoft Imagine Cup 2026
HealthMesh is built for Microsoft Imagine Cup 2026 in the Healthcare category.
Judging Criteria Alignment
Criteria
Implementation
Technical Excellence
Multi-agent AI architecture with Azure services
Innovation
6-agent explainable clinical AI pipeline
Impact
Addresses medication safety and deterioration detection
Azure Integration
Deep integration with 10+ Azure services
Production Ready
Complete with CI/CD, monitoring, and multi-tenancy
Multi-Agent Architecture : 6 specialized clinical AI agents
Explainable AI : Full transparency in reasoning
Enterprise Ready : Multi-tenant with hospital isolation
Real Clinical Value : NEWS2, SOFA, drug interaction detection
π¨βπ» Author & Contact
Balaraj R
Developer & Owner
This project is proprietary software developed for Microsoft Imagine Cup 2026.
All rights reserved Β© 2026 Balaraj R.
Microsoft Azure team for comprehensive cloud services
Microsoft Imagine Cup for the opportunity
Healthcare professionals who provided clinical insights
Open-source community for foundational technologies
Made with β€οΈ for better healthcare
Powered by Microsoft Azure AI Services