Saarathi Healthcare × Alkem Laboratories

Schema-driven patient engagement for chronic bone therapy.

WhatsApp-native AI companion. Sarvam AI exclusive. DPDP Act 2023 compliant. Zero patient data leaves India.

12
Lambda Functions
53
WhatsApp Templates
6
Schema Layers
3
Languages

What is BoneSaarathi

One architecture. Every therapy. Every patient.

BoneSaarathi is the internal codename for the osteoporosis patient engagement platform. It powers two patient-facing programmes — BoneSetu (Teriparatide) and BoneKavach (Denosumab) — through a single schema-driven architecture.

~80% of activity is clock-triggered deterministic code reading JSON schemas from AppConfig. ~20% is Sarvam AI reasoning on patient replies. No patient data ever touches a non-Indian server.

Sarvam AI Exclusive DPDP Compliant WhatsApp Native Schema-Driven EventBridge Orchestration Hindi · English · Marathi ap-south-1

Schema Architecture

Six layers. Top-down resolution.

Every template, condition, and reward resolves through this chain. No hardcoded values in Lambda code. AppConfig is the single source of truth.

01 System Global config, AI tiers, DPDP rules, reward wallet structure schema_1_system_v2.json
02 Disease Osteoporosis signals, severity matrix, doctor bypass rules schema_2_disease_v4_2.json
03 Therapy Phase definitions, component registry, gamification, identity arc therapy_*.json
04 Medicine Dosing, side effects, barriers, drug interactions, salt matching MED_*.json
05 Prescription OCR rules, activation logic, approval flow, component assignment schema_5_prescription_v1_3.json
06 Message 53 templates, variable maps, AI response strategies, SmartFlow contract message_schema_3_2_2.json

Patient-Facing Programmes

Two journeys. One engine.

🏗️

BoneSetu

Teriparatide · Gemfrac · 24 Months

Primary Medicine Gemfrac 20mcg
Cadence Daily self-injection
Core Mechanic Streak (730 days)
Identity Arc BUILDER
Critical Safety 24-month lifetime limit
Transition Mandatory → antiresorptive
💉 First Injection 🔥 7-Day Builder 🏗️ Bone Architect 🎯 Midpoint Champion 🏆 Bone Legend Elite
🛡️

BoneKavach

Denosumab · Denuril · 24 Months

Primary Medicine Denuril 60mg
Cadence 6-monthly clinic injection
Core Mechanic Shield cycle (180 days)
Identity Arc GUARDIAN
Critical Safety Rebound bone loss on miss
Complementaries Gemcal + Uprise D3 + SR
🌱 First Step 💊 Dose Keeper 🦴 Iron Bones 🛡️ Protector ⭐ Bone Legend

Lambda Inventory

12 functions. ap-south-1.

inbound-ai
Patient message ingestion. Sarvam 3-tier. Onboarding state machine.
Deployed
scheduler
Time-based medicine reminders. Cron-driven. IST dedup.
Deployed
signal-processor
Event-based routing. 16 templates. 6 handlers. 1,683 lines.
Deployed
lifecycle
One-shot date-computed messages. Phase transitions. 25 templates.
Deployed
timeout-watcher
Patient response timeout detection. Escalation triggers.
Deployed
delivery-callback
SmartFlow delivery status. Read receipts. Failure retry.
Built
image-sarvam
Prescription OCR. Medicine-first extraction. Salt matching.
Deployed
onboarding
Spring Boot. Patient registration. Admin approval flow.
Built
outcome-calculator
k-anonymity aggregation. Pharma dashboard. DPDP-safe.
Phase 2
schema-validator
AppConfig schema validation. Deploy-time checks.
Phase 2
rights-handler
DPDP data subject rights. Access, correction, erasure.
Phase 2
consent-withdrawal
Consent lifecycle management. Withdrawal cascades.
Phase 2

Design Principles

What we believe.

01

The patient's quality of life during treatment is the product.

We do not build around the fantasy of optimisation. We build around the reality of bearing something — and bearing it well.

02

Schema-driven everything.

All template resolution, condition evaluation, and lifecycle logic driven by AppConfig JSON. Zero hardcoded names in Lambda code. Add a disease by adding a schema, not by rewriting code.

03

Sarvam-only. India-only. Non-negotiable.

DPDP Act 2023 compliance is not a feature — it's the foundation. Only inbound-ai calls Sarvam. All other Lambdas are deterministic. Zero patient data crosses the border.

04

Companion, not monitor.

This is not a compliance monitoring system. It's a chronic illness companion — built to sit with the patient inside the lived experience of treatment.

05

Safety-critical paths first.

P0 before P1. Rebound bone loss warnings before badge celebrations. Discontinuation counselling before gamification. The hierarchy is non-negotiable.