Skip to main content

Vaazhvu: features and what sets us apart

Vaazhvu (Tamil வாழ்வு, "life") is an AI emergency-response platform for Tamil Nadu's 108 ambulance service. It covers the whole chain of an emergency:

  • the caller, speaking Tamil, Tanglish or English, or unable to speak at all;
  • triage that knows how unsure it is;
  • a dispatch decision that weighs the patient, the hospital, the fleet and the next caller;
  • the crew on a bad network;
  • the ER getting ready and answering back;
  • police and traffic clearing the road.

Every item below was checked against the source code. What is simulated rather than live is listed in What is simulated.

Legend

  • USP n: a differentiator, explained in §2.
  • Yes: works end to end in the running stack.
  • Adapter: real code that needs an outside account or service. Until one is connected it runs simulated, and is labelled as simulated.
  • Partial: simulated, behind a flag, shadow mode, or display only.
  • No: not built.

1. The problem we solve​

Tamil Nadu's 108 service handles about 110,000 emergencies a month statewide and about 5,500 a month in Chennai. Trauma and pregnancy make up more than half of the calls. Sources are in docs/dispatch-optimization-research.md §3.

  • "Nearest available" is the only published dispatch rule. The nearest ambulance may be BLS-only when the patient needs ALS. The nearest hospital may lack a cath lab, a trauma team or a stroke unit, so the patient is referred onward and loses an hour or more.
  • Callers mix Tamil and English, and often type Tamil in Latin script (Tanglish). Dispatch software expects clean English.
  • Many calls are ineffective: silent calls, hang-ups, pranks, non-emergencies. They use the same scarce fleet as real emergencies.
  • Voice calls carry no location. Crew status goes stale, networks drop, and the ER often learns about a patient only when the ambulance arrives.
  • Police, fire, traffic police and hospitals each work alone.
  • AI triage tools hallucinate. An LLM that invents a symptom or misses a "not" can send the wrong unit.

2. What makes Vaazhvu different​

2.1 How we compare​

Typical nearest-available 108 dispatchGeneric LLM triage botVaazhvu
Caller languageAn operator listens and typesEnglish-first chatAI call-taker on voice, chat, SMS and SOS in Tamil, Tanglish and English. If the caller can't speak, a silent SOS still sends help
Triage outputOne label, entered by handFree-text opinionProbability distribution over 29 fixed concepts. Every finding must quote the caller's own words
AI safety–The model decides16 deterministic rules (R1–R16 + R1a) sit between the AI and dispatch. They can never lower urgency, and no held call waits longer than 4 min
Unit choiceNearest available unit–Each ambulance + hospital pair is scored by expected adverse outcome, including the cost to callers who haven't phoned yet
Hospital choiceNearest hospital–Live ER readiness, legal admissibility (TN CE Act, NK-48, CMCHIS), and an in-extremis divert to the nearest stabilising ED
Explanation––"Why not the nearest?" on every decision. "Why this hospital / ambulance / assessment" on the ER screen
Duplicate callsThe operator notices–8-signal scored detector. It never holds back a possible second emergency
Crew on a bad networkStatus goes stale silently–Each unit shown as live / stale / offline. Offline taps are back-dated. Outboxes are encrypted. Turn-by-turn navigation on the dispatch route
Patient in transitRadio updates–Vitals (BLE monitors) → NEWS2 → re-triage → ALS backup, new hospital or divert → ER re-alerted
Receiving ERA phone call, if any–ER command interface: pre-alert, acknowledge or refuse, prep checklist, accept, transfer onward, declare resources. Dispatch reads all of it
Other agenciesSeparate phone calls–Police and fire paged from the SOS. Green corridors and junction alerts for traffic police
Running the AI–Black boxLLMOps traces every model call without storing a word the caller said. A read-only Dispatcher Copilot over MCP that cannot dispatch
Evaluation–Demo promptsIndependent clinical truth model with published survival curves. We publish where we don't win

2.2 Our unique value propositions​

#USPWhy it mattersStatus
USP 1Tamil-first, voice-first intake. Full-duplex AI voice line: barge-in, the caller can switch language mid-call, dual Tamil/English decoding, Whisper loop trimming. Also chat, SMS and one-tap SOS. Every caller-facing sentence is generated from the live incident state; there is no scripted dialogue. The call-taker works through a protocol checklist and asks yes/no questions to settle disputed findingsReaches callers in the language they actually use. The caller always hears the real status (unit, ETA, hospital)Yes (best voice on Apple Silicon; Tanglish speech is the weakest link)
USP 2Triage that can't hallucinate a symptom. A closed list of 29 clinical concepts, 5 self-consistent LLM samples, and a finding counts only if its quote is found in the caller's words. The output is a severity distribution, a condition-group belief and a P1–P4 priorityUncertainty reaches the dispatcher and the optimiser instead of being hidden behind one labelYes
USP 3AI that cannot overrule safety. 16 deterministic rules (R1–R16 + R1a): red-flag floors, hallucination guard, contradiction and split-vote checks, location check, conscious-state check, flagged-caller review, silent SOS, risk factors. Likely-critical calls are dispatched now and verified after. A call held for review is auto-committed after 240 s, so it can't sit in a queue indefinitelyThe LLM proposes and code decides. A prank-flagged caller is still never refusedYes
USP 4Condition-aware expected-harm dispatch. The objective J scores each response bundle together with its top admissible hospitals. Inputs: response wait, early care (CPR/AED from a first responder: κ 0.42 / 0.62 for arrest), capable care, transport, onward transfer and coverage cost. Bundles: ALS, BLS, police/fire first responder + ALS, two ambulances. Risk measure: mean + ρ·std, or CVaR. Every parameter is labelled with its source in config/dispatch.yamlSends the right unit to the right hospital, not just the closest oneYes (condition-specific windows in Partial shadow mode)
USP 5Explainable at every seat. Dispatchers see the rejected nearest unit, the alternatives, each factor and a harm interval across the parameter ranges. ER staff see "why this assessment / ambulance / hospital / why it changed", with AI output labelled as an assessment, not a diagnosisDispatchers, clinicians and auditors can check the reasoningYes
USP 6Hospital-aware, legally admissible destinations. Readiness = source confidence × live ER declarations (ED status, cath lab now, specialists, beds, diversion, decaying with a 45-min half-life) × acceptance odds. Admissibility follows TN rules: government hospitals, any hospital for a life-threatening medico-legal case (TN Clinical Establishments Act s.5-B), NK-48 for road accidents, CMCHIS, private with consent. In-extremis divert to the nearest stabilising ED on two bad readings, with a one-tap crew veto and an automatic onward transferCuts referrals from hospitals that can't treat or won't admit the patientYes
USP 7Joint dispatch and forecast-driven coverage. Calls that arrive together are solved jointly (CP-SAT), so one call can't take the unit a sicker call needed. A zone demand forecast drives automatic repositioning. The 37-unit fleet is placed by MEXCLP over real OSRM road times, covering 94% of demandPlans for the next hour, not only for the current callYes
USP 8Duplicate detection that never delays help. 8 signals (distance against location uncertainty, time, shared findings, text similarity, same caller, patient conflict …) in a logistic model. A call is auto-linked only at ≥ 85% and a shared clinical finding. Uncertain matches are dispatched and flaggedStops five ambulances going to one crash without risking a missed second emergencyYes
USP 9A crew-acceptance loop. Offer → accept / decline / 45 s timeout → re-dispatch without the units that refused. A late accept is taken only if it gains enough ETA. ALS backfill the moment an ALS unit frees. Every decision carries a stale → revalidated trail. Crews can hand back a job they can't finishReal crews say no or don't answer, and the system recovers on its ownYes
USP 10Built for poor networks. Each crew device is live / stale / offline. A silent unit is held at its last fix instead of drawn as moving. Offline units drop out of auto-dispatch. Offline status taps are recorded at the time they happened. Outboxes are encrypted: AES-GCM on the web, Data Protection on iOS. The crew app has turn-by-turn navigation on the dispatch's own OSRM route, with Tamil/English voice promptsRural Tamil Nadu doesn't have reliable 4GYes (navigation)
USP 11Location from every channel, plus the silent SOS. Seven ranked sources (GPS, network, map pin, typed address, SMS, link, dispatcher) with a full history. A no-login /l/ page to drop a pin. SMS parsing of LOC:, geo:, Google / OSM / Apple links and N/E notation. If an SOS caller can't speak for 30 s, the app escalates: police + ambulance are paged and the location link is texted (R15)Voice calls in TN carry no location. We close that gap without telecom access, and a caller hiding from an attacker still gets helpYes (outbound SMS Adapter)
USP 12Closed clinical loop, with the ER answering back. Crew or Bluetooth monitors (4 standard BLE GATT profiles) → NEWS2 and RTS → re-triage → ALS backup, new hospital or divert → ER re-alerted with FHIR R4 → ERC physician consult. The ER acknowledges or refuses (dispatch re-routes), prepares, accepts, and can transfer onwardThe plan keeps changing with the patient all the way to handoverYes (simulated vitals when no monitor)
USP 13One platform for every agency. Police and fire are paged straight from the caller's SOS choice, and scene hazards (fire, trapped, violence …) add the right agency through a rule table. Scene-only agency portal. Automatic green corridors with junction alerts 200 m ahead. Hospital self-service records. Inter-facility transfers the receiving ER must accept, with phone outreach when the board goes unansweredAmbulance, police, fire, traffic and hospitals on one timelineYes (mSiren / Mappls / outbound voice Adapter)
USP 14Responsible with ineffective calls. Call outcomes, caller reputation keyed by an HMAC of the number (the number itself is never stored), non-emergency referral to 102 / 104, missed-call call-back listRecovers capacity without ever refusing a callerYes
USP 15AI you can operate, and an AI you can talk to safely. LLMOps traces every model call (latency, time to first token, tokens, cost in ₹, fallbacks) without recording prompts, caller words or model output. It drives a Grafana dashboard and 5 alert rules. A Dispatcher Copilot answers questions through 14 MCP tools. None of the tools can dispatch, approve, override, reroute or change policyThe AI layer is observable like any production service, and the assistant structurally cannot take a decisionYes
USP 16Real Tamil Nadu data. Chennai GIS from OSM, a 7,102-facility statewide hospital dataset across all 38 districts, OSRM roads, TN case mix from 108 reports, and a hotspot database with iRAD crash importBuilt on real geography, not a demo mapYes
USP 17Honest by construction. Anything simulated is labelled (simulated: true SMS and alerts, FHIR data-origin#simulated, "auto (simulated)" acceptance, DRAFT norms). Decisions are audited. Apache-2.0. Evaluation: we found our first evaluation was circular, replaced it with an independent clinical truth model built on published curves, and publish the result even though it doesn't favour us (§17)Reviewers can trust what they seeYes

2.3 By the numbers​

Backend142 Python modules, ~38k lines (FastAPI); 216 live API endpoints across 9 routers, plus the MCP endpoint
Frontend84 React files, ~15.5k lines; 15 web screens; a 20-panel dispatcher terminal with 100 visible commands
Mobile2 native iOS apps (citizen and crew), 40 Swift files, ~8.6k lines, shared design system
GoCross-check scorer that applies the same risk measure to the dispatch harms
Events~118 event types, all in a Postgres event log, streamed over SSE and mirrored to NATS
Safety16 policy rules + R1a, every one with tests
Roles13 roles, 32 permissions (dispatcher, call-taker, crew, hospital, ERC physician, police, fire, traffic, admin, citizen …)
Observability33 Prometheus metric families (19 for LLMs), 2 Grafana dashboards, 5 LLM alert rules, stack monitor
Data7,153 hospital profiles, 7,102 statewide facilities, 656 localities, 1,857 landmarks, 37-unit MEXCLP fleet
Quality3,638 Python tests pass (34 skipped), 60 frontend tests, Go tests, CI on Python 3.11–3.13

2.4 Five moments that show the difference​

  1. A Tanglish caller. "Appa nenju valikkudhu, moochu vidala" ("Dad's chest hurts, he isn't breathing"). The AI call-taker answers in Tamil. Triage quotes the caller's words as evidence. R1 floors the call at critical, and an ALS unit is sent without waiting for a human.
  2. "Why not the nearest?" The BLS unit 4 min away loses to an ALS unit 9 min away, and the terminal shows the numbers.
  3. The patient crashes in the ambulance. Two bad readings divert the ambulance to the nearest stabilising ED. The new ER is pre-alerted, and an onward transfer is requested.
  4. The ER says no. The cardiac centre declares its cath lab down, and the inbound patient is re-routed live.
  5. The silent SOS. The caller presses SOS and says nothing. 30 s later police and an ALS ambulance are on the way and a location link has been texted.

3. Emergency intake​

FeatureStatusUSP
AI voice line in the browser (/caller) and the iPhone app: 16 kHz audio over WebSocket, Silero voice-activity detection, barge-in, sentence-by-sentence repliesYesUSP 1
Dual decode: language ID, then Tamil and English decodes. The other decode goes to triage as alternative evidence. A script check asks the caller to repeatYes (Apple Silicon path)USP 1
Whisper repetition-loop trimming, Tamil-safe: it avoids the compression-ratio testYes (Apple Silicon path)USP 1
Mid-call language switch: the agent answers in whatever language the caller is speaking nowYesUSP 1
AI call-taker writes every reply on voice, chat, SMS and SOS from live incident state. Guards drop invented numbers, and drop non-Tamil sentences on Tamil callsYesUSP 1
Protocol checklist: six universal questions, then key questions per likely condition, a paediatric card and scene-safety questions. Confirmation questions (yes/no) for disputed findings, unresolved red flags or ASR disagreement. Questionnaire answers are never asked againYesUSP 1, 2
Voice and text are separate conversations on one incident; each sees the other as contextYes
Voice output: macOS say (Vani Tamil, Tara English), espeak-ng on Linux and DockerYes
Live call waveform on the dispatcher consoleYes
Minimal caller page: one big call button. Typing, keypad, number and account are one tap awayYes
Caller tracking page: minutes-away hero, 6-step tracker in Tamil/English, live map with the ambulance's road route and the hospital, "Call the crew", "My location is wrong", chatYesUSP 11
One-tap SOS (iOS): hold to confirm, GPS or a dropped pin. Falls back to the phone's SMS app when offline. Live Activity on the lock screenYes
Silent SOS: after an SOS, the iOS call counts silent seconds. From 20 s it shows "I can talk / Send now"; at 30 s, or on "I can't talk", police + ambulance are paged. The agent's voice moves to the earpiece and it asks only questions that need no spoken answerYesUSP 11, 13
Emergency type picker: medical / police / fire. Police and fire are paged at intakeYesUSP 13
"Can't talk" keypad: 1 ambulance, 2 police, 3 fire, 0 can't talkYesUSP 11
Silent calls are never dropped: a call of 8 s or more with no words opens an incident, flagged for the dispatcher, with a location SMSYes (SMS Adapter)USP 11
Missed / abandoned calls: every voice connection is logged. Hang-ups before speaking go to a Missed-calls panel with wait time, previous attempts and logged call-backsYesUSP 14
SMS-style text intake and app chat. Repeat messages from the same number or device are threaded into the open incidentYes
Idempotent intake: gateway retries return the same incident. The replay cache survives a restartYes
Optional citizen accounts with a medical profile (blood group, conditions, allergies, medicines, emergency contact), shown to the crew and on the dispatcher's caller cardYes
Telephone line, IVR, USSD, carrier SMS gateway, cell-tower locationNo (needs a carrier account)

4. Language understanding and triage​

FeatureStatusUSP
Language ID: Tamil, mixed, Tanglish, English (fastText + wordfreq)YesUSP 1
Tanglish → Tamil transliteration (IndicXlit service)YesUSP 1
Tamil → English view (IndicTrans2), chunked so long calls are never truncatedYesUSP 1
LLM extraction of 29 clinical concepts, each present / absent / uncertain, plus age, sex, patient count, location text, hazards (closed list), conscious stateYesUSP 2
Self-consistency: 5 schema-constrained samples, early stop when 3 agree, voted into a distributionYesUSP 2
Evidence grounding: each finding must quote the caller's words or a translation. Findings whose quotes fail are kept as rejectedYesUSP 2
Severity distribution (critical / urgent / non-urgent / unknown) plus confidence. Triage deadline with late re-triageYesUSP 2
Condition-group belief (arrest, ACS, stroke, major trauma, respiratory, obstetric, toxicology, burns, other), which feeds dispatchYesUSP 4
P1–P4 dispatch priority (UK ARP categories) in TAEI red / yellow / greenYes label
Agencies rule table: scene hazards → fire / police unit; medico-legal cases → police notification, never an extra unitYesUSP 13
Incident type: the six TAEI pillars (trauma, cardiac, stroke, burns, poisoning, paediatric) plus snakebite, scorpion sting and obstetricYes display
LLM providers: any OpenAI-compatible API (DeepSeek) with local Ollama Gemma 3 4B as fallbackYes
Tanglish v2: per-word language labels, aligned transliteration, raw-span citationsPartial flagUSP 1
Escalation phrase net: negation-aware phrases that can only raise urgency; runs in both pipelinesYes (phrase list is a draft)USP 3
Re-triage on every new caller message; translation shown to the dispatcherYes
Training export: each handled call becomes a labelled row (NEWS2-proxy label from crew readings) for calibrating triage on live dataYes
Calibration tooling: temperature and isotonic maps, ECE / Brier on a held-out splitYes (no map fitted yet)

5. Safety policy and human control​

FeatureStatusUSP
R1 red-flag floors (not breathing, unconscious, stroke signs, severe bleeding, drowning, pregnancy bleeding). R1a: one verified red-flag sample out of 5 sends ALS nowYesUSP 3
R2–R7: doubtful red flag, abstain / silent, near-threshold or high-entropy belief, split vote, contradiction, hallucinated evidence → ALS and/or humanYesUSP 3
R8 unverified location → humanYesUSP 3
R9 mandatory ALS / cardiac / trauma / OB capabilityYesUSP 3
R10 escalation phrase · R12 critical floor when the LLM is down · R13 conscious-state cross-checkYesUSP 3
R11 language review (uncertain transliteration, ASR disagreement)Partial v2USP 3
R14 flagged caller → a human authorises, unless the call is likely critical. Never refusedYesUSP 3, 14
R15 caller pressed SOS and can't speak → ALS goes now, police paged, human verifies afterYesUSP 3, 11
R16 risk factors (age ≥ 65, ≤ 5, several patients) → high review priority. Never a gate by itselfYesUSP 3
Provisional dispatch: when P(critical) + P(unknown) ≥ 0.15, or a dispatch-now rule fires, units go at once and a human verifies afterYesUSP 3
Time-boxed holds: a held call is auto-committed after 240 s (dispatch.hold_timeout, audited)YesUSP 3
Human-review metrics panel: auto / provisional / held rates, timeouts, override rate, time to dispatch by language and channelYes
Ambulance tiers: 1 critical care / 2 ALS / 3 BLS. Each severity sets a minimum tier (editable). Tiers only ever add requirementsYes
ALS reserve: no-signal calls can't drain the ALS fleetYes
Pending-approval queue with approve, override (units + hospital + reason) and set locationYes
Every decision audited (actor, input, output); thresholds in config/policy.yamlYesUSP 17

6. Dispatch, fleet and resilience​

FeatureStatusUSP
Risk engine: J = R[harm over the severity distribution] + coverage cost. Each bundle is scored jointly with its top 3 admissible hospitalsYesUSP 4
Early-care credit: a first responder who can give CPR / AED slows the arrest clock (κ 0.42 / 0.62); BLS crews earn it tooYesUSP 4
Cited parameters: hazards built from a case mix (arrest per Larsen 1993, trauma per TITCO), each value labelled literature / assumption / governance in parameter_sourcesYesUSP 4, 17
Risk measure: mean + ρ·std (default) or CVaR(0.9); the same in Python and GoYesUSP 4
Harm interval across parameter ranges, shown in the consoleYesUSP 5
Bundles: single units, police/fire first responder + ALS, dual ambulance. Hazards force-add the right agencyYesUSP 4, 13
"Why not the nearest" explanation, ranked alternatives and factor breakdownYesUSP 5
Condition model: per-condition windows (ACS 120 min to a cath lab; stroke 4.5 h to a stroke unit, thrombectomy bypass ≤ 15 min), plan B "stabilise then transfer", snakebite → anti-venomPartial shadow (logged as "would send…")USP 4
Joint dispatch of simultaneous calls (CP-SAT, greedy fallback). A lone call isn't delayedYesUSP 7
Zone forecast (Dirichlet posterior over OSM priors + recent calls) and automatic repositioningYesUSP 7
37-unit fleet (20 ambulances: 11 ALS + 9 BLS; 8 police; 9 fire), placed by MEXCLP over OSRM road times (4,189 candidate sites, 94.05% of demand covered)YesUSP 7, 16
Scored duplicate detection with Merge / Keep-separate (both audited as training data)YesUSP 8
Unit offers: accept / decline with reason / 45 s timeout → re-dispatch excluding the units that refused. Late-accept switch-backYesUSP 9
ALS backup through the same offer flow. ALS backfill when an ALS unit freesYesUSP 9
Stale → revalidated decision trail (escalation, ETA change, unit failure, refusal …)YesUSP 9
Crew hand-back: a crew can give up its own job with a reason; the call is re-dispatchedYesUSP 9
Poor-network mode: live / stale / offline per crew device, silent units held at their last fix, offline units out of auto-dispatch, "confirm by radio" for stale onesYesUSP 10
Manual fallback: if the engine fails (or a supervisor switches over), each call gets a run card of the nearest units and EDsYes
Road closures with detours and automatic reassignment; unit failure with failover; restart recovery of incidents, routes and timersYes
Stress gauge and call-pressure heat mapYes
Go microservice cross-checks the objective's risk aggregationAdapter monitoring only
Unit-type catalogue: BLS, ALS, cardiac, trauma, neonatal (NLS), first-responder bike, adult retrieval, 4WD, auto-ambulancePartial catalogue (bikes not dispatched yet)
Fleet sources: demo plan, onboarded private fleets, CAD/AVL slotYes / Adapter AVL
Unit motion along OSRM road geometryPartial simulated (live GPS takes over when a crew phone reports)

7. Hospital destination and the ER command interface​

FeatureStatusUSP
Readiness = static (source confidence: verified record 1.0 … LLM profile at its own confidence; unprofiled = not capable) × live (diversion 0, restricted 0.5, service unavailable 0; decays with a 45-min half-life) × acceptance (1 − 0.6·load)YesUSP 6
Onward-transfer cost: a hospital that can't treat costs a door-in-door-out delay plus the drive to the nearest fully capable hospitalYesUSP 6
Admissibility: government; any hospital for a life-threatening medico-legal case (TN CE Act s.5-B); NK-48 for road accidents; CMCHIS; private with consent. The best inadmissible option is still named, with its reason. Consent endpoints for caller and crewYesUSP 6
In-extremis divert: SBP < 90, shock index > 1, SpO₂ < 90 on O₂, AVPU V/P/U, GCS ≤ 8 or arrest, on 2 consecutive readings (1 for arrest) → nearest stabilising ED if ≥ 5 min nearer. Destination locked, one-tap veto, onward transfer requested at handoverYesUSP 6, 12
ER command interface (/hospital), six tabs: Dashboard, Incoming, Resources, Referrals, History, Hospital details, with a status bar on every tabYesUSP 12
Priority queue: arrived awaiting acceptance → critical → deteriorating → arriving within 5 min → special prep → rerouted here → ack pendingYesUSP 12
Patient view: handoff summary, live track map, vitals with NEWS2 trend, timeline. Fields nobody recorded show "not recorded" with a reason; nothing is inventedYesUSP 12, 17
Explainability for clinicians: why this assessment, ambulance and hospital, and why it changed; safety flags in plain wordsYesUSP 5
Acknowledge / Cannot receive: refusing removes the hospital from this patient's ranking and re-routes the ambulanceYesUSP 6, 12
Prep checklist per capability and concept (not started / in progress / ready / not available / not required), savedYes
Accept into a department with handover notes. IFT from the ER: 8 structured reasons, ranked candidates, redirect after a decline, full trailYesUSP 13
Resources: capacity, capabilities and specialists (on site / on call / unavailable). Each figure shows its source, freshness and history, and "what Vaazhvu reads"YesUSP 6
Status changes are previewed: diverting shows which inbound patients would be re-routed before it is appliedYesUSP 6
Outreach: no answer on the board within 120 s → the ER line is phoned by an outbound voice agent (2 attempts); otherwise shown as no answerAdapter voice / Yes trackingUSP 13
Per-hospital sign-in (er.read): an account sees only its own hospital's cases; the stream sends change pings only. Light / dark / auto themeYes

8. Caller location​

FeatureStatusUSP
Seven location sources with precedence (dispatcher > caller pin / link / SMS > phone fix / geocoder) and a full history, including fixes not appliedYesUSP 11
Conflict handling: a verified landmark far from the phone's fix replaces it; a caller's pin held behind a dispatcher's pin is shown for reviewYesUSP 11
Fix classification: a "GPS" fix coarser than 150 m counts as network; coarser than 1 km is unverified (R8)YesUSP 11
A correction of more than 150 m re-routes units already on the way; caller fixes are held once the crew is with the patientYesUSP 11
Location-request link /l/<incident>.<token>: no login; share GPS or drag a pin; add a landmarkYesUSP 11
SMS coordinate parsing: LOC:, geo:, Google / OSM / Apple map links, N/E notation, bare pairsYesUSP 11
Tamil-aware geocoder: phonetic folding (ண/ந→ன, ள/ழ→ல …), case-ending stripping, core-token and prefix ranking (so "annagar" → Anna Nagar). Nominatim results are checked against the operating areaYesUSP 1, 11
Location uncertainty circle on the dispatcher, agency, ER and share mapsYes
Outbound SMS in Tamil and English: dispatch with tracking link + crew number, location request, silent call, silent SOSAdapter simulated without a gateway
Crew contact number shown to the caller ("Call the crew")Yes
iOS Mappls place search for Indian landmarks (Apple search fallback)Adapter needs licence files
Telecom / AML network locationNo (no TN feed exists)

9. Patient monitoring and hospital handoff​

FeatureStatusUSP
Bluetooth medical devices (crew iOS app): Heart Rate, Pulse Oximeter, Blood Pressure and Health Thermometer GATT profiles, parsed to spec. They pre-fill the form; the crew confirmsYes (needs a monitor)USP 12
Crew vitals entry (web and iOS), validated, offline outboxYesUSP 12
NEWS2 on measured parameters only; incomplete readings are flaggedYesUSP 12
GCS and Revised Trauma Score (RTS / T-RTS)Yes display
Vitals correction: void a wrong reading with a reason; NEWS2 is refolded and FHIR gets entered-in-errorYes
Escalation: severity raised, ALS backup added or hospital re-picked, ER re-alertedYesUSP 12
FHIR R4 transaction bundles: Patient, Encounter, provisional Conditions (SNOMED), Observations (LOINC). Merged in flight, 409 retry, simulated readings tagged. HAPI server ships in the stack with a health checkYesUSP 12, 17
Physiology simulator (NeuroKit2 ECG/PPG/respiration) when no device is connectedPartial simulated

10. Clinical workflow​

FeatureStatusUSP
ERC physician consult (/ercp): crew asks, physician answers with vitals, NEWS2 and RTS beside the thread; advice recordedYesUSP 12
Trip log: stage times, route km and odometer km, hospital changes, police/fire remarks, benchmarks against time norms, CSV exportYes (norms are DRAFT)
Non-emergency referral to 102 / 104 when triage is confident there's no emergency; the caller is told the numberYesUSP 14
Inter-facility transfers: requested by a hospital, accepted or declined by the receiving ER; planned transfers wait while the emergency reserve is shortYesUSP 13

11. Multi-agency coordination​

FeatureStatusUSP
Agency portal (/agency?a=police|fire|traffic): scene information only (no caller identity or clinical record), accept or decline naming a unit, shared timelineYesUSP 13
Police / fire paged from the caller's SOS choice, a silent SOS, a scene hazard, or by the dispatcherYesUSP 13
Green corridors: raised automatically for critical transports, with route, ETA and junctions; traffic police accept or decline; updated on rerouteYesUSP 13
Junction alerts within 200 m of each junction, once per trip, from simulated or live GPSYesUSP 13
mSiren junction-hardware adapterAdapter simulated without access
Mappls traffic-aware routing adapter (now with turn instructions)Adapter needs key
Mappls live congestion layer (display only, never used for dispatch ETAs)Adapter needs key
Resgrid CAD mirrorAdapter one-way

12. Hospital network​

FeatureStatusUSP
Hospital-maintained records: TAEI level, capabilities (incl. stroke unit, toxicology, anti-snake venom, scorpion care), ED status, resus bays, beds / ICU / ventilators, cath lab now, specialists, diversion, ownership, NK-48 / CMCHIS empanelment. They override the map at once and dispatch reads themYesUSP 6
Freshness checks: "Is this still correct?" after 30 days; admin due list; per-field historyYes
Capacity checks: queue of hospitals with stale bed data, for an outbound AI voice agent or staff to callYes manual / Adapter AI calls
Self-onboarding (/onboard) for hospitals and private ambulance fleets, approved by an admin; one sign-in per hospital (make hospital-accounts)Yes
Statewide dataset: 7,102 facilities, all 38 districts; 7,153 LLM-profiled capabilitiesYes (profiles are inferred)USP 16

13. Demand planning​

FeatureStatusUSP
Hotspot database: 1 km grid over incidents and imported crashes; peaks by hour, weekday, month and TN season (incl. monsoons)YesUSP 16
iRAD crash-data import (script and admin upload)Yes (no data bundled)USP 16
Positioning report: per hotspot, nearest base vs the 8-min target, nearest free unit, next-hour forecastYes adviceUSP 7
Hotspot and heat-map layers in the terminalYes

14. AI operations: LLMOps, MCP and the Dispatcher Copilot​

FeatureStatusUSP
LLM tracing: one trace per logical operation (triage, call-taker turn, copilot turn …), one span per provider request; records sizes, template hashes, tokens, latency, time to first token, cost in ₹ and fallback reason. Never prompts, caller words or model outputYesUSP 15
Provider fallback (DeepSeek → local Gemma) announced as llm.fallback / llm.recovered events with an audit row; GET /api/ops/llm shows health, stats and recent tracesYesUSP 15
19 vaazhvu_llm_* metrics, Grafana LLMOps dashboard, 5 alert rules (local fallback serving, operations failing, triage missing deadline, triage slow, call-taker offline)YesUSP 15
MCP server at POST /api/mcp (Streamable HTTP) and over stdio; .mcp.json lets Claude Code and other MCP clients connectYesUSP 15
14 MCP tools. Read: incidents, timeline, duplicates, explain dispatch, explain hospital, units, hospitals, facility search, scenarios. Simulation (labelled, audited): simulate incident, simulate deterioration, set sim clock, run storylineYesUSP 15
No decision tools, by design: no tool can dispatch, approve, override, reroute, change a destination or edit policy; each tool checks the caller's own permissions; results never include caller identity or transcriptYesUSP 3, 15
Dispatcher Copilot panel in the terminal: an LLM tool-calling loop through an in-process MCP session as the signed-in user; every tool used is shown as a chip, simulation results carry a SIM badge; "never guess, cite tools"YesUSP 15

15. Applications​

Dispatcher terminal (/)​

  • 20 dockable panels: queue, map, incident, dispatch, conversation, triage, vitals, units, events, intake, copilot, hospitals, coverage, missed calls, team notes, history, files, analytics, human review, integrations.
  • 5 workspaces (dispatch, intake, map wall, analysis, compact); tabs pop out; layouts saved per workspace.
  • One command registry feeds the hotkeys, the command line (Mod+K), the shortcut sheet and the menus. It has 100 visible commands plus context ones, such as approve a, override o, reply r, merge duplicate ⇧M, keep separate ⇧N, closure c, layers ⇧L and copilot brief.
  • Live map with zones, hospitals, units (badges: GPS / LAST / OFF / SIM), routes, closures, heat, hotspots and the location uncertainty circle.
  • Incident detail with a caller card (name, number, shared medical details), a live call waveform, translation views and an ECG strip.
  • Stress gauge, degraded-mode and manual-mode banners, toasts, screen-reader announcements, an onboarding tour, night and amber themes.

Web screens​

RouteWhoWhat
/callerPublicMinimal 108 line: voice, typing, keypad, tracking, optional account
/l/<token>CallerShare location / drop a pin (no login)
/ambulanceCrewPWA: offers with countdown, status, vitals, GCS, void, odometer, ERC consult, caller's medical info, offline outbox
/hospitalER staffER command interface (§7)
/ercpERC physicianConsult board
/agencyPolice / fire / trafficRequests, timeline, green corridors
/homeAdmins, viewersThe live picture in plain words: busy level, open emergencies, ambulances, full hospitals, last 24 h, map, launcher for every screen
/adminAdmin9 tabs: overview, accounts, hospitals, callers, tiers, applications, fleet, data checks, hotspots
/onboardHospitals, fleetsApplications with a status link
/loginStaffSign-in that routes each role to its own app
/welcome, /helpEveryoneLanding page with live stats; in-app docs
/s/<token>Family / handoverTime-limited share view
/classicDispatcherEarlier fixed console

iOS​

AppFeatures
Vaazhvu (citizen)Hold-to-confirm SOS with GPS or pin, emergency type picker, silent-SOS escalation, AI voice call, chat, live tracking (route, ETA, steps) and Live Activity, call the crew, fix location with Mappls / Apple search, cancel, account and medical profile, offline nearby hospitals, Tamil / English
VaazhvuCrewSign-in on a unit, shift menu (change ambulance, end shift), offers with countdown, server-driven status button, full-screen map, turn-by-turn navigation on the dispatch route with Tamil/English voice, offline outbox, Bluetooth vitals, GCS, void reading, odometer, ERC consult, receiving-hospital choice, hand back a job, caller's medical info, background GPS and alerts
Design systemTokens, components and haptics, with a lint script and WCAG contrast test

16. Platform, security and operations​

FeatureStatus
Sign-in: scrypt passwords, hashed 12 h sessions (cookie or iOS keychain bearer), lockout. Crew sessions are bound to a unit, hospital staff to one hospital; per-incident caller tokensYes (opt-in: VAAZHVU_AUTH=required)
13 roles, 32 permissions; every mutating endpoint declares its permission; anonymous users are read-only viewers by defaultYes
Threaded comments with @mentions, attachments (content-sniffed), share links (TTL, revoke), presence, drafts, activity feedYes
Webhooks (HMAC-SHA256, retries, SSRF protection) and scoped API keysYes
Analytics (time to dispatch / on scene, override rate, coverage, Web Vitals) and exports (CSV / JSON / NDJSON / Markdown / FHIR)Yes
Event log in Postgres 16 (SQLite for tests and offline runs), long-lived SSE with replay, NATS mirrorYes
Edge: request ids, rate limits (emergency intake exempt), body limits, CSP / HSTS headers, problem+json errors, Prometheus /metricsYes
Offline-first PWA (service worker, encrypted outbox), first-party telemetry honouring DNT/GPC, accessibility (live regions, focus traps, reduced motion)Yes
Routing cache, chunked OSRM tables, hashed immutable assetsYes
Docker Compose stack: api, Go scorer, NATS, OSRM, VROOM, HAPI FHIR, IndicXlit, Prometheus, Grafana, monitor, Caddy HTTPS for phones (+ optional Ollama)Yes
Grafana "Command centre" and "LLMOps" dashboards; make monitor terminal dashboard probing every serviceYes
CI (lint, tests on Python 3.11–3.13, frontend build, Go, Docker build, dataset tests, secrets check) and CD (GHCR images)Yes

17. Data, evaluation and tooling​

FeatureStatusUSP
Chennai GIS from OSM: 828 hospitals, 96 police, 9 fire stations, 656 localities, 1,857 landmarksYesUSP 16
Statewide TN hospital collector (OSM + Wikidata): 7,102 facilities, deduplicated, QA reportYesUSP 16
Independent truth model (backend/app/eval/truth.py): adverse outcomes from published curves (cardiac arrest: Larsen 1993; STEMI: De Luca 2004; stroke: Emberson 2014 / HERMES; trauma: Newgard 2010; respiratory: OPALS). It imports nothing from dispatch, a test proves a doctored dispatch config doesn't change it, and every policy is scored on the same patientsYesUSP 17
Dispatch evaluation: 10 seeds × 150 calls on the TN case mix; nearest / nearest-capable / VROOM vs four engine variants, calibrated and miscalibratedYesUSP 17
Sensitivity sweep: which parameters flip decisions, and whether the flips matter. This is our calibration priority listYesUSP 17
Tanglish evaluation: 370 synthetic utterances; span, transliteration and end-to-end triage metricsYes syntheticUSP 17
ASR / TTS evaluationYes synthetic
Model fetch, voice-call simulator, LLMOps traffic demo, monitoring dashboard, Lighthouse script, fleet-plan drift checkYes

Headline results (docs/eval/README.md, 2026-10-04, independent truth model):

  • Condition-aware dispatch beats "nearest available" by about 3 adverse outcomes per 1,000 calls. This holds for both our engine and nearest-capable. Most of the gain comes from obstetric, trauma and ACS patients reaching a hospital that has the service: 15% of specialty patients with plain nearest, 62% with the engine.
  • Our full engine is not yet better than a well-built nearest-capable rule: +0.6 ± 0.7 per 1,000 calibrated, −0.2 ± 0.5 miscalibrated, both within noise. We publish this.
  • We caught our own mistake. The earlier ablation (capability mismatch 22% → 13%) scored outcomes with the engine's own hazards, so the engine could not lose. We replaced it and kept the old page, marked superseded.
  • Using the full distribution without a coverage term is harmful (R2: +2.3 per 1,000). That is why the future-demand term exists.
  • The engine's edge today is everything around the score: safety rules, admissibility, live ER readiness, in-extremis divert, explanations and resilience. The score itself needs calibration on real data. These runs predate the latest weight calibration (30c9209, 7dd0b6d); a re-run is pending.

18. Honest limits​

  • Physical events are simulated when no real device reports: vehicle motion, scene times, vitals. Live crew GPS and Bluetooth monitors take over when present.
  • No carrier telephony yet: no phone line, IVR, USSD or carrier SMS. Outbound SMS, mSiren, Mappls, AI outreach calls and CAD/AVL are adapters. They stay simulated and labelled until an account exists.
  • Sign-in is opt-in. The default is open mode with a read-only anonymous viewer, so deployments must set VAAZHVU_AUTH=required. Several authorisation gaps are still open (PROJECT_OVERVIEW §12).
  • Triage limits: grounding checks that a quote exists, not that it supports the finding. When the LLM is down, every call is dispatched provisionally; the ALS reserve and R12 limit the drain.
  • Dispatch gains over nearest-capable are not shown yet. The engine is only as good as calibrated probabilities, and no calibration map is fitted. The condition model runs in shadow mode.
  • Tanglish speech recognition is weak (character error ~50% on synthetic speech). The v2 pipeline and the escalation phrases await clinical review.
  • Hospital capabilities are LLM guesses from OSM tags until hospitals fill in their own records.
  • Draft values: TAEI time norms, the 102/104 numbers, the P1–P4 and incident-type mappings need confirmation from TAEI and clinicians.
  • Best voice path needs a Mac with Apple Silicon (MLX Whisper, say). Linux uses CPU Whisper and espeak-ng, without dual decode or loop trimming.