Research and demonstration platform. Never use as a substitute for professional medical judgment. Always consult qualified healthcare professionals for actual decisions.

Work / Bharat-First / RecoveryPilot

Welfare initiative · Healthcare · Multi-region

300 million surgeries · One printed sheet · A follow-up six weeks away

The post-operative co-pilot for the weeks nobody is watching.

For most patients, recovery is a printed instruction sheet and a calendar reminder. RecoveryPilot replaces that gap with active orchestration: 40+ peer-reviewed clinical scoring systems, 14 pure-TypeScript ML models, 2,700+ tests · all in one monorepo, with the physician in command of every decision.

145KLines of TypeScript
40+Peer-reviewed clinical algorithms
14Pure-TS ML models · zero ML deps
2,700+Test cases · 92 files
3Compliance regimes · one monorepo

Act I · The Gap

The recovery gap is where
most readmissions are born.

  1. Pain · 01

    Discharge is a paper handoff to nobody.

    Over 300 million surgeries every year worldwide. The patient leaves with a sheet, a script and a follow-up appointment weeks away. Sepsis, DVT and falls do not wait for the appointment.

  2. Pain · 02

    Telehealth is passive. Recovery is not.

    Most platforms wait for the patient to message. The right tool initiates: missions, check-ins, photo uploads, vital signs, all on a schedule the patient does not have to remember.

  3. Pain · 03

    "AI" without a citation is a guess.

    Cloud APIs, undocumented heuristics, opaque scores. Fine for a recommendation feed; unacceptable for sepsis screening. Every algorithm needs a published source the doctor can read.

  4. Pain · 04

    Compliance lives in three jurisdictions at once.

    India is DPDPA. The US is HIPAA. The UK is post-Brexit GDPR. A platform that wants to serve all three needs data residency, regional encryption keys and erasure APIs from line one.

Act II · The Promise

A timeline that watches the patient when nobody else can.

Day 0 to Day 90, the orchestrator initiates the right scoring system on the right day. The doctor sees the result with a confidence score and an approve/reject button. No surprise readings, no missed scores.

Day 0 · Immediate

Stabilise.

NEWS2 every two hours. Pain on the WHO Analgesic Ladder. Caprini VTE score on admission · prophylaxis recommendation generated automatically.

  • NEWS2 q2h
  • Pain · VAS + Ladder
  • Caprini VTE
  • ASA · NNIS SSI risk

Day 1-7 · Inpatient

Watch for sepsis.

qSOFA at the bedside. SOFA organ-by-organ. Morse Fall Scale before mobilisation. Wound photo daily, classified through the wound healing model.

  • qSOFA · SIRS · SOFA
  • Morse · Hendrich II
  • Wound phase classifier
  • Glucose · ADA targets

Day 8-30 · Home

Catch the readmission.

LACE Index for 30-day readmission risk. Daily missions: medication, photo, walk, sleep. Sentiment analysis on the journal screens for post-op depression early.

  • LACE · 30-day readmit
  • Recovery missions · streaks
  • Sentiment · TF-IDF + lexicon
  • Adherence · Osterberg model

Day 31-90 · Long arc

Verify the recovery.

Functional outcomes, HCAHPS satisfaction, treatment-response regression. Cohort analytics inform the next patient's care plan. The loop closes.

  • HCAHPS · CMS
  • K-means cohort segments
  • Bayesian complication network
  • Self-learning calibration

Act III · The Compliance

Three regimes. One monorepo. Data stays where the law says.

Three regional Kubernetes overlays enforce data residency from the cluster up. Encryption keys live in the regional KMS. Erasure and portability APIs are built into the platform, not bolted on at audit time.

India · ap-south-1

DPDPA

Digital Personal Data Protection Act 2023. Consent, granular, revocable. Real deletion through the cascade. PII never in URLs or logs.

overlays/india/

United States · us-east-1

HIPAA

Field-level AES-256-GCM at rest. Audit log hash-chained, tamper-evident. PHI redaction in Pino structured logs, never logged in plain.

overlays/us/

United Kingdom · eu-west-2

UK GDPR

Right-to-access and right-to-erasure APIs. Consent versioning. Data portability through the FHIR R4 export bundle.

overlays/uk/

Act IV · The Evidence

Forty-plus algorithms. Every one with a citation.

None are arbitrary heuristics. Each has a traceable provenance to published research. A doctor can open the source file and read the paper that wrote the score.

Sepsis

qSOFA · SIRS · SOFA

Bedside sepsis screen, organ-by-organ deterioration. Self-learning thresholds reduce false positives over time.

Singer 2016 · Bone 1992 · Vincent 1996

VTE

Caprini · Wells · Geneva

Forty-plus weighted risk factors. Auto-recommends mechanical, pharmacological or combined prophylaxis.

Caprini 2001 · Wells 2003 · Le Gal 2006

Falls

Morse · Hendrich II · TUG

Six-item Morse, eight-item Hendrich II, Timed Up and Go for the geriatric subset. Triggered before every mobilisation.

Morse 1989 · Hendrich 2003 · Podsiadlo 1991

Nutrition

NRS-2002 · MUST · SGA

Plus Harris-Benedict and Mifflin-St Jeor for caloric needs. ESPEN-recommended screen baked in.

Kondrup 2003 · Elia 2003 · Detsky 1987

SSI

NNIS · CDC · ASA · ASEPSIS

NNIS Risk Index 0-3. CDC superficial / deep / organ-space classification. Modifiable risk-factor list per patient.

Culver 1991 · Horan 2008 · Wilson 1986

Glucose

ADA · 1800 / 500 rules · 15/15

Inpatient targets 140-180 mg/dL. Insulin correction = 1800/TDD. Hypoglycemia 15/15 rule, levels 1-3.

ADA 2024 · Umpierrez 2012 · Walsh 2011

Vitals

NEWS2 · MEWS · Holt forecast

Seven-parameter NEWS2. Double exponential smoothing forecasts trajectories 24h ahead with confidence intervals.

RCP 2017 · Subbe 2001 · Holt 2004

Antibiotic

IDSA · CYP450 · Sanford

Thirty-plus antibiotics with spectrum profiles. Renal dose adjust by CrCl. IV-to-oral conversion when eligible.

IDSA · Flockhart 2007 · Sanford 2024

Readmission

LACE · Charlson

Thirty-day readmission risk plus comorbidity weighting. Surfaces high-risk patients before discharge.

van Walraven 2010 · Charlson 1987

Act V · Proof

Production posture. Day one.

2,700+ test cases · 92 files

npm run test

Vitest unit, integration and E2E. React Testing Library for the UI. fast-check property tests on the math. CI gates every push.

Multi-region Kubernetes

kubectl apply -k overlays/india

Three regional overlays · India, US, UK · enforce data residency at the cluster boundary. One-click autodeploy-k8s.sh ships the lot.

Five async queues

BullMQ · Redis

Image analysis, notifications, data export, compliance. The API stays interactive while heavy work runs out-of-band.

Twenty-plus alert rules

Prometheus · Grafana

API error rate, DB connection exhaustion, Redis memory pressure, queue backlog, auth failure spikes. Symptom-driven, not log-driven.

FHIR R4 export

/api/export/fhir

HL7 FHIR R4 resource generation. Patient portability built into the platform, not bolted on for audit.

Backup / DR posture

RTO 4h · RPO 1h

Automated backup policies. Recovery objectives set against the platform's clinical use case, not against generic enterprise defaults.

The Stack

Full-stack monorepo. Zero ML library dependencies.

  • React 19.2
  • TypeScript 5.9 strict
  • Zustand · 22 stores
  • Vite (Rolldown)
  • Express 5
  • Node.js 22 cluster
  • PostgreSQL 17 + read replica
  • Redis (ioredis) · 4 DBs
  • BullMQ · 5 queues
  • Passport.js + JWT
  • Argon2id
  • otplib TOTP
  • Zod · every endpoint
  • Pino · PHI-redacted
  • Helmet · 3-tier rate limit
  • AES-256-GCM · field-level
  • AWS S3 · KMS · Secrets Manager
  • Kubernetes · 3 regional overlays
  • Terraform IaC
  • Prometheus + Grafana
  • Nginx · TLS

Need a partner who can ship · or a mentor who can guide a team to ship the same way?

Healthcare, fintech, civic infrastructure: the same posture · evidence base, multi-region compliance, audit log on day one · scales to the parts of India and the world where mistakes are not retryable.