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 dispatch | Generic LLM triage bot | Vaazhvu | |
|---|---|---|---|
| Caller language | An operator listens and types | English-first chat | AI 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 output | One label, entered by hand | Free-text opinion | Probability distribution over 29 fixed concepts. Every finding must quote the caller's own words |
| AI safety | – | The model decides | 16 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 choice | Nearest available unit | – | Each ambulance + hospital pair is scored by expected adverse outcome, including the cost to callers who haven't phoned yet |
| Hospital choice | Nearest 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 calls | The operator notices | – | 8-signal scored detector. It never holds back a possible second emergency |
| Crew on a bad network | Status 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 transit | Radio updates | – | Vitals (BLE monitors) → NEWS2 → re-triage → ALS backup, new hospital or divert → ER re-alerted |
| Receiving ER | A 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 agencies | Separate phone calls | – | Police and fire paged from the SOS. Green corridors and junction alerts for traffic police |
| Running the AI | – | Black box | LLMOps traces every model call without storing a word the caller said. A read-only Dispatcher Copilot over MCP that cannot dispatch |
| Evaluation | – | Demo prompts | Independent clinical truth model with published survival curves. We publish where we don't win |
2.2 Our unique value propositions
| # | USP | Why it matters | Status |
|---|---|---|---|
| USP 1 | Tamil-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 findings | Reaches 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 2 | Triage 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 priority | Uncertainty reaches the dispatcher and the optimiser instead of being hidden behind one label | Yes |
| USP 3 | AI 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 indefinitely | The LLM proposes and code decides. A prank-flagged caller is still never refused | Yes |
| USP 4 | Condition-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.yaml | Sends the right unit to the right hospital, not just the closest one | Yes (condition-specific windows in Partial shadow mode) |
| USP 5 | Explainable 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 diagnosis | Dispatchers, clinicians and auditors can check the reasoning | Yes |
| USP 6 | Hospital-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 transfer | Cuts referrals from hospitals that can't treat or won't admit the patient | Yes |
| USP 7 | Joint 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 demand | Plans for the next hour, not only for the current call | Yes |
| USP 8 | Duplicate 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 flagged | Stops five ambulances going to one crash without risking a missed second emergency | Yes |
| USP 9 | A 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 finish | Real crews say no or don't answer, and the system recovers on its own | Yes |
| USP 10 | Built 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 prompts | Rural Tamil Nadu doesn't have reliable 4G | Yes (navigation) |
| USP 11 | Location 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 help | Yes (outbound SMS Adapter) |
| USP 12 | Closed 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 onward | The plan keeps changing with the patient all the way to handover | Yes (simulated vitals when no monitor) |
| USP 13 | One 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 unanswered | Ambulance, police, fire, traffic and hospitals on one timeline | Yes (mSiren / Mappls / outbound voice Adapter) |
| USP 14 | Responsible 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 list | Recovers capacity without ever refusing a caller | Yes |
| USP 15 | AI 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 policy | The AI layer is observable like any production service, and the assistant structurally cannot take a decision | Yes |
| USP 16 | Real 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 import | Built on real geography, not a demo map | Yes |
| USP 17 | Honest 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 see | Yes |
2.3 By the numbers
| Backend | 142 Python modules, ~38k lines (FastAPI); 216 live API endpoints across 9 routers, plus the MCP endpoint |
| Frontend | 84 React files, ~15.5k lines; 15 web screens; a 20-panel dispatcher terminal with 100 visible commands |
| Mobile | 2 native iOS apps (citizen and crew), 40 Swift files, ~8.6k lines, shared design system |
| Go | Cross-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 |
| Safety | 16 policy rules + R1a, every one with tests |
| Roles | 13 roles, 32 permissions (dispatcher, call-taker, crew, hospital, ERC physician, police, fire, traffic, admin, citizen …) |
| Observability | 33 Prometheus metric families (19 for LLMs), 2 Grafana dashboards, 5 LLM alert rules, stack monitor |
| Data | 7,153 hospital profiles, 7,102 statewide facilities, 656 localities, 1,857 landmarks, 37-unit MEXCLP fleet |
| Quality | 3,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
- 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.
- "Why not the nearest?" The BLS unit 4 min away loses to an ALS unit 9 min away, and the terminal shows the numbers.
- 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.
- The ER says no. The cardiac centre declares its cath lab down, and the inbound patient is re-routed live.
- 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
| Feature | Status | USP |
|---|---|---|
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 replies | Yes | USP 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 repeat | Yes (Apple Silicon path) | USP 1 |
| Whisper repetition-loop trimming, Tamil-safe: it avoids the compression-ratio test | Yes (Apple Silicon path) | USP 1 |
| Mid-call language switch: the agent answers in whatever language the caller is speaking now | Yes | USP 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 calls | Yes | USP 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 again | Yes | USP 1, 2 |
| Voice and text are separate conversations on one incident; each sees the other as context | Yes | |
Voice output: macOS say (Vani Tamil, Tara English), espeak-ng on Linux and Docker | Yes | |
| Live call waveform on the dispatcher console | Yes | |
| Minimal caller page: one big call button. Typing, keypad, number and account are one tap away | Yes | |
| 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", chat | Yes | USP 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 screen | Yes | |
| 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 answer | Yes | USP 11, 13 |
| Emergency type picker: medical / police / fire. Police and fire are paged at intake | Yes | USP 13 |
| "Can't talk" keypad: 1 ambulance, 2 police, 3 fire, 0 can't talk | Yes | USP 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 SMS | Yes (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-backs | Yes | USP 14 |
| SMS-style text intake and app chat. Repeat messages from the same number or device are threaded into the open incident | Yes | |
| Idempotent intake: gateway retries return the same incident. The replay cache survives a restart | Yes | |
| Optional citizen accounts with a medical profile (blood group, conditions, allergies, medicines, emergency contact), shown to the crew and on the dispatcher's caller card | Yes | |
| Telephone line, IVR, USSD, carrier SMS gateway, cell-tower location | No (needs a carrier account) |
4. Language understanding and triage
| Feature | Status | USP |
|---|---|---|
| Language ID: Tamil, mixed, Tanglish, English (fastText + wordfreq) | Yes | USP 1 |
| Tanglish → Tamil transliteration (IndicXlit service) | Yes | USP 1 |
| Tamil → English view (IndicTrans2), chunked so long calls are never truncated | Yes | USP 1 |
| LLM extraction of 29 clinical concepts, each present / absent / uncertain, plus age, sex, patient count, location text, hazards (closed list), conscious state | Yes | USP 2 |
| Self-consistency: 5 schema-constrained samples, early stop when 3 agree, voted into a distribution | Yes | USP 2 |
| Evidence grounding: each finding must quote the caller's words or a translation. Findings whose quotes fail are kept as rejected | Yes | USP 2 |
| Severity distribution (critical / urgent / non-urgent / unknown) plus confidence. Triage deadline with late re-triage | Yes | USP 2 |
| Condition-group belief (arrest, ACS, stroke, major trauma, respiratory, obstetric, toxicology, burns, other), which feeds dispatch | Yes | USP 4 |
| P1–P4 dispatch priority (UK ARP categories) in TAEI red / yellow / green | Yes label | |
| Agencies rule table: scene hazards → fire / police unit; medico-legal cases → police notification, never an extra unit | Yes | USP 13 |
| Incident type: the six TAEI pillars (trauma, cardiac, stroke, burns, poisoning, paediatric) plus snakebite, scorpion sting and obstetric | Yes display | |
| LLM providers: any OpenAI-compatible API (DeepSeek) with local Ollama Gemma 3 4B as fallback | Yes | |
| Tanglish v2: per-word language labels, aligned transliteration, raw-span citations | Partial flag | USP 1 |
| Escalation phrase net: negation-aware phrases that can only raise urgency; runs in both pipelines | Yes (phrase list is a draft) | USP 3 |
| Re-triage on every new caller message; translation shown to the dispatcher | Yes | |
| Training export: each handled call becomes a labelled row (NEWS2-proxy label from crew readings) for calibrating triage on live data | Yes | |
| Calibration tooling: temperature and isotonic maps, ECE / Brier on a held-out split | Yes (no map fitted yet) |
5. Safety policy and human control
| Feature | Status | USP |
|---|---|---|
| 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 now | Yes | USP 3 |
| R2–R7: doubtful red flag, abstain / silent, near-threshold or high-entropy belief, split vote, contradiction, hallucinated evidence → ALS and/or human | Yes | USP 3 |
| R8 unverified location → human | Yes | USP 3 |
| R9 mandatory ALS / cardiac / trauma / OB capability | Yes | USP 3 |
| R10 escalation phrase · R12 critical floor when the LLM is down · R13 conscious-state cross-check | Yes | USP 3 |
| R11 language review (uncertain transliteration, ASR disagreement) | Partial v2 | USP 3 |
| R14 flagged caller → a human authorises, unless the call is likely critical. Never refused | Yes | USP 3, 14 |
| R15 caller pressed SOS and can't speak → ALS goes now, police paged, human verifies after | Yes | USP 3, 11 |
| R16 risk factors (age ≥ 65, ≤ 5, several patients) → high review priority. Never a gate by itself | Yes | USP 3 |
| Provisional dispatch: when P(critical) + P(unknown) ≥ 0.15, or a dispatch-now rule fires, units go at once and a human verifies after | Yes | USP 3 |
Time-boxed holds: a held call is auto-committed after 240 s (dispatch.hold_timeout, audited) | Yes | USP 3 |
| Human-review metrics panel: auto / provisional / held rates, timeouts, override rate, time to dispatch by language and channel | Yes | |
| Ambulance tiers: 1 critical care / 2 ALS / 3 BLS. Each severity sets a minimum tier (editable). Tiers only ever add requirements | Yes | |
| ALS reserve: no-signal calls can't drain the ALS fleet | Yes | |
| Pending-approval queue with approve, override (units + hospital + reason) and set location | Yes | |
Every decision audited (actor, input, output); thresholds in config/policy.yaml | Yes | USP 17 |
6. Dispatch, fleet and resilience
| Feature | Status | USP |
|---|---|---|
| Risk engine: J = R[harm over the severity distribution] + coverage cost. Each bundle is scored jointly with its top 3 admissible hospitals | Yes | USP 4 |
| Early-care credit: a first responder who can give CPR / AED slows the arrest clock (κ 0.42 / 0.62); BLS crews earn it too | Yes | USP 4 |
Cited parameters: hazards built from a case mix (arrest per Larsen 1993, trauma per TITCO), each value labelled literature / assumption / governance in parameter_sources | Yes | USP 4, 17 |
| Risk measure: mean + ρ·std (default) or CVaR(0.9); the same in Python and Go | Yes | USP 4 |
| Harm interval across parameter ranges, shown in the console | Yes | USP 5 |
| Bundles: single units, police/fire first responder + ALS, dual ambulance. Hazards force-add the right agency | Yes | USP 4, 13 |
| "Why not the nearest" explanation, ranked alternatives and factor breakdown | Yes | USP 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-venom | Partial shadow (logged as "would send…") | USP 4 |
| Joint dispatch of simultaneous calls (CP-SAT, greedy fallback). A lone call isn't delayed | Yes | USP 7 |
| Zone forecast (Dirichlet posterior over OSM priors + recent calls) and automatic repositioning | Yes | USP 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) | Yes | USP 7, 16 |
| Scored duplicate detection with Merge / Keep-separate (both audited as training data) | Yes | USP 8 |
| Unit offers: accept / decline with reason / 45 s timeout → re-dispatch excluding the units that refused. Late-accept switch-back | Yes | USP 9 |
| ALS backup through the same offer flow. ALS backfill when an ALS unit frees | Yes | USP 9 |
| Stale → revalidated decision trail (escalation, ETA change, unit failure, refusal …) | Yes | USP 9 |
| Crew hand-back: a crew can give up its own job with a reason; the call is re-dispatched | Yes | USP 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 ones | Yes | USP 10 |
| Manual fallback: if the engine fails (or a supervisor switches over), each call gets a run card of the nearest units and EDs | Yes | |
| Road closures with detours and automatic reassignment; unit failure with failover; restart recovery of incidents, routes and timers | Yes | |
| Stress gauge and call-pressure heat map | Yes | |
| Go microservice cross-checks the objective's risk aggregation | Adapter monitoring only | |
| Unit-type catalogue: BLS, ALS, cardiac, trauma, neonatal (NLS), first-responder bike, adult retrieval, 4WD, auto-ambulance | Partial catalogue (bikes not dispatched yet) | |
| Fleet sources: demo plan, onboarded private fleets, CAD/AVL slot | Yes / Adapter AVL | |
| Unit motion along OSRM road geometry | Partial simulated (live GPS takes over when a crew phone reports) |
7. Hospital destination and the ER command interface
| Feature | Status | USP |
|---|---|---|
| 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) | Yes | USP 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 hospital | Yes | USP 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 crew | Yes | USP 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 handover | Yes | USP 6, 12 |
ER command interface (/hospital), six tabs: Dashboard, Incoming, Resources, Referrals, History, Hospital details, with a status bar on every tab | Yes | USP 12 |
| Priority queue: arrived awaiting acceptance → critical → deteriorating → arriving within 5 min → special prep → rerouted here → ack pending | Yes | USP 12 |
| Patient view: handoff summary, live track map, vitals with NEWS2 trend, timeline. Fields nobody recorded show "not recorded" with a reason; nothing is invented | Yes | USP 12, 17 |
| Explainability for clinicians: why this assessment, ambulance and hospital, and why it changed; safety flags in plain words | Yes | USP 5 |
| Acknowledge / Cannot receive: refusing removes the hospital from this patient's ranking and re-routes the ambulance | Yes | USP 6, 12 |
| Prep checklist per capability and concept (not started / in progress / ready / not available / not required), saved | Yes | |
| Accept into a department with handover notes. IFT from the ER: 8 structured reasons, ranked candidates, redirect after a decline, full trail | Yes | USP 13 |
| Resources: capacity, capabilities and specialists (on site / on call / unavailable). Each figure shows its source, freshness and history, and "what Vaazhvu reads" | Yes | USP 6 |
| Status changes are previewed: diverting shows which inbound patients would be re-routed before it is applied | Yes | USP 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 answer | Adapter voice / Yes tracking | USP 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 theme | Yes |
8. Caller location
| Feature | Status | USP |
|---|---|---|
| Seven location sources with precedence (dispatcher > caller pin / link / SMS > phone fix / geocoder) and a full history, including fixes not applied | Yes | USP 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 review | Yes | USP 11 |
| Fix classification: a "GPS" fix coarser than 150 m counts as network; coarser than 1 km is unverified (R8) | Yes | USP 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 patient | Yes | USP 11 |
Location-request link /l/<incident>.<token>: no login; share GPS or drag a pin; add a landmark | Yes | USP 11 |
SMS coordinate parsing: LOC:, geo:, Google / OSM / Apple map links, N/E notation, bare pairs | Yes | USP 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 area | Yes | USP 1, 11 |
| Location uncertainty circle on the dispatcher, agency, ER and share maps | Yes | |
| Outbound SMS in Tamil and English: dispatch with tracking link + crew number, location request, silent call, silent SOS | Adapter 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 location | No (no TN feed exists) |
9. Patient monitoring and hospital handoff
| Feature | Status | USP |
|---|---|---|
| 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 confirms | Yes (needs a monitor) | USP 12 |
| Crew vitals entry (web and iOS), validated, offline outbox | Yes | USP 12 |
| NEWS2 on measured parameters only; incomplete readings are flagged | Yes | USP 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-error | Yes | |
| Escalation: severity raised, ALS backup added or hospital re-picked, ER re-alerted | Yes | USP 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 check | Yes | USP 12, 17 |
| Physiology simulator (NeuroKit2 ECG/PPG/respiration) when no device is connected | Partial simulated |
10. Clinical workflow
| Feature | Status | USP |
|---|---|---|
ERC physician consult (/ercp): crew asks, physician answers with vitals, NEWS2 and RTS beside the thread; advice recorded | Yes | USP 12 |
| Trip log: stage times, route km and odometer km, hospital changes, police/fire remarks, benchmarks against time norms, CSV export | Yes (norms are DRAFT) | |
| Non-emergency referral to 102 / 104 when triage is confident there's no emergency; the caller is told the number | Yes | USP 14 |
| Inter-facility transfers: requested by a hospital, accepted or declined by the receiving ER; planned transfers wait while the emergency reserve is short | Yes | USP 13 |
11. Multi-agency coordination
| Feature | Status | USP |
|---|---|---|
Agency portal (/agency?a=police|fire|traffic): scene information only (no caller identity or clinical record), accept or decline naming a unit, shared timeline | Yes | USP 13 |
| Police / fire paged from the caller's SOS choice, a silent SOS, a scene hazard, or by the dispatcher | Yes | USP 13 |
| Green corridors: raised automatically for critical transports, with route, ETA and junctions; traffic police accept or decline; updated on reroute | Yes | USP 13 |
| Junction alerts within 200 m of each junction, once per trip, from simulated or live GPS | Yes | USP 13 |
| mSiren junction-hardware adapter | Adapter 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 mirror | Adapter one-way |
12. Hospital network
| Feature | Status | USP |
|---|---|---|
| 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 them | Yes | USP 6 |
| Freshness checks: "Is this still correct?" after 30 days; admin due list; per-field history | Yes | |
| Capacity checks: queue of hospitals with stale bed data, for an outbound AI voice agent or staff to call | Yes 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 capabilities | Yes (profiles are inferred) | USP 16 |
13. Demand planning
| Feature | Status | USP |
|---|---|---|
| Hotspot database: 1 km grid over incidents and imported crashes; peaks by hour, weekday, month and TN season (incl. monsoons) | Yes | USP 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 forecast | Yes advice | USP 7 |
| Hotspot and heat-map layers in the terminal | Yes |
14. AI operations: LLMOps, MCP and the Dispatcher Copilot
| Feature | Status | USP |
|---|---|---|
| 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 output | Yes | USP 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 traces | Yes | USP 15 |
19 vaazhvu_llm_* metrics, Grafana LLMOps dashboard, 5 alert rules (local fallback serving, operations failing, triage missing deadline, triage slow, call-taker offline) | Yes | USP 15 |
MCP server at POST /api/mcp (Streamable HTTP) and over stdio; .mcp.json lets Claude Code and other MCP clients connect | Yes | USP 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 storyline | Yes | USP 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 transcript | Yes | USP 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" | Yes | USP 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, overrideo, replyr, merge duplicate⇧M, keep separate⇧N, closurec, layers⇧Land 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
| Route | Who | What |
|---|---|---|
/caller | Public | Minimal 108 line: voice, typing, keypad, tracking, optional account |
/l/<token> | Caller | Share location / drop a pin (no login) |
/ambulance | Crew | PWA: offers with countdown, status, vitals, GCS, void, odometer, ERC consult, caller's medical info, offline outbox |
/hospital | ER staff | ER command interface (§7) |
/ercp | ERC physician | Consult board |
/agency | Police / fire / traffic | Requests, timeline, green corridors |
/home | Admins, viewers | The live picture in plain words: busy level, open emergencies, ambulances, full hospitals, last 24 h, map, launcher for every screen |
/admin | Admin | 9 tabs: overview, accounts, hospitals, callers, tiers, applications, fleet, data checks, hotspots |
/onboard | Hospitals, fleets | Applications with a status link |
/login | Staff | Sign-in that routes each role to its own app |
/welcome, /help | Everyone | Landing page with live stats; in-app docs |
/s/<token> | Family / handover | Time-limited share view |
/classic | Dispatcher | Earlier fixed console |
iOS
| App | Features |
|---|---|
| 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 |
| VaazhvuCrew | Sign-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 system | Tokens, components and haptics, with a lint script and WCAG contrast test |
16. Platform, security and operations
| Feature | Status |
|---|---|
| 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 tokens | Yes (opt-in: VAAZHVU_AUTH=required) |
| 13 roles, 32 permissions; every mutating endpoint declares its permission; anonymous users are read-only viewers by default | Yes |
| Threaded comments with @mentions, attachments (content-sniffed), share links (TTL, revoke), presence, drafts, activity feed | Yes |
| Webhooks (HMAC-SHA256, retries, SSRF protection) and scoped API keys | Yes |
| 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 mirror | Yes |
Edge: request ids, rate limits (emergency intake exempt), body limits, CSP / HSTS headers, problem+json errors, Prometheus /metrics | Yes |
| 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 assets | Yes |
| 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 service | Yes |
| 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
| Feature | Status | USP |
|---|---|---|
| Chennai GIS from OSM: 828 hospitals, 96 police, 9 fire stations, 656 localities, 1,857 landmarks | Yes | USP 16 |
| Statewide TN hospital collector (OSM + Wikidata): 7,102 facilities, deduplicated, QA report | Yes | USP 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 patients | Yes | USP 17 |
| Dispatch evaluation: 10 seeds × 150 calls on the TN case mix; nearest / nearest-capable / VROOM vs four engine variants, calibrated and miscalibrated | Yes | USP 17 |
| Sensitivity sweep: which parameters flip decisions, and whether the flips matter. This is our calibration priority list | Yes | USP 17 |
| Tanglish evaluation: 370 synthetic utterances; span, transliteration and end-to-end triage metrics | Yes synthetic | USP 17 |
| ASR / TTS evaluation | Yes synthetic | |
| Model fetch, voice-call simulator, LLMOps traffic demo, monitoring dashboard, Lighthouse script, fleet-plan drift check | Yes |
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.