QUANTVEDA

Wave 2 · Priority 1 · Phase A

AKHANDA working name

Patient State / Clinical Graph

akhaṇḍa — unbroken, indivisible, whole. One patient, one continuous clinical state.

AKHANDA is the one place the patient exists, and every other product is a lens onto it.
Blocks
Every other Wave-2 product
Knowledge bases
84
Target TRL
8

01 · Rationale

Why this exists

The brief says One Cascade. Every Specialty. Today that is a statement of intent, not a shared object. Thirty-eight products each hold a partial, private view of the patient. OMNIOME's picture of a diabetic with CKD is not the same object as HRIDAYA's, which is not the same object as the Cardiometabolic Twin's. They agree by convention and re-derivation, not by construction.

That is integration debt, and it compounds with every product added. AKHANDA is the payment.

What changes when it exists

BeforeAfter
Each product re-derives the patient's medication listOne list, one truth, versioned
"Cascade" = re-invoking N products on one inputCascade = N subscribers reacting to one state change
Contradictory risk scores with no arbiterScores carry provenance and supersession
No way to ask "what did we know at 14:20?"Full temporal reconstruction

02 · Position

Position in the architecture

AKHANDA is not a database wrapper and not an EMR. AAROGYA holds the EMR. AKHANDA holds the clinical interpretation of the patient — the reasoned state, not the record of encounters.

03 · Core model

Core model

The five node families

Patient
Problema clinical issue, with lifecycle
Observationa measured fact, with time and method
Interventionsomething done: drug, procedure, advice
Beliefa model's assertion: risk, trajectory, DDx
Goala target state, owned by JEEVANA

Edge semantics

Edges carry semantics, not just linkage:

caused_by treats contradicts supersedes evidences refutes monitors

The Belief node — the hard part

Beliefs are what make AKHANDA a clinical graph rather than a data lake. A Belief is a defeasible assertion by a named agent at a named time with a named basis.

belief:
  asserted_by: hridaya@v10.2      # product + version, never "the system"
  asserted_at: 2026-08-09T11:04:22Z
  statement_type: risk_score | differential | trajectory | contraindication
  basis:
    observations: [obs_..., obs_...]
    kb_refs: [HRIDAYA_KB14@1.2]
  confidence: 0.0–1.0
  claim_grade: established
  supersedes: <prior belief or null>

Temporal semantics

Bitemporal. Every node carries valid time (when it was true of the patient) and transaction time (when the system learned it). This is what makes "what did we know at 14:20 when the decision was made?" answerable — which PRAMANA requires for fair outcome attribution, and which medico-legal defence requires absolutely.

04 · Knowledge

The KB library — 84 KBs

Six layers, authored and clinically reviewed before the engine that consumes them. Every KB carries a claim grade that governs downstream hedging language.

Full KB manifest — grades, dependencies & scope →

L0

Ontology

22 KBs
KBTitle
KB01Patient Identity & Linkage Rules (ABHA, MRN, national ID, duplicate resolution)
KB02Problem Ontology & SNOMED CT Value Sets
KB03Observation Ontology & LOINC Mapping
KB04Medication Ontology (RxNorm, Indian brand register, AYUSH formulations)
KB05Procedure Ontology (SNOMED, CPT, ICD-10-PCS crosswalk)
KB06Unit Normalisation & Conversion Canon
KB07Reference Range Library by Age, Sex, Pregnancy, Ethnicity
KB08Edge Semantics Dictionary
KB09Belief Statement Type Schemas
KB10Provenance & Attribution Model
KB11Bitemporal Semantics & Query Canon
KB12Confidence Calibration Scales
KB13Claim Grade Definitions & Downstream Hedging Rules
KB14Problem Lifecycle States (suspected→active→controlled→resolved→recurrent)
KB15Severity & Acuity Scales Canon
KB16Anatomical & Laterality Model
KB17Allergy & Intolerance Ontology
KB18Social & Environmental Determinant Vocabulary
KB19Genomic Variant Representation (HGVS, star alleles)
KB20Device & Implant Registry Model
KB21Encounter Context Taxonomy (OPD, IPD, ICU, ED, home, tele)
KB22Identity Merge & Unmerge Safety Rules
L1

Domain Knowledge

14 KBs
KBTitle
KB23Physiological Plausibility Bounds (reject impossible values)
KB24Observation Volatility Profiles (how fast each measure legitimately changes)
KB25Problem Co-occurrence Priors
KB26Causal Adjacency Canon (which problems can cause which)
KB27Medication–Problem Indication Map
KB28Lab Result Interpretation Context Rules
KB29Life-Stage Physiological Variance (neonate→geriatric)
KB30Pregnancy State Model & Trimester Adjustments
KB31Renal & Hepatic Function Staging Canon
KB32Frailty & Functional Status Models
KB33Symptom–Sign Semantic Equivalence
KB34Indian Epidemiological Priors
KB35Oman & GCC Epidemiological Priors
KB36Traditional Medicine Concept Bridging (Ayurveda/Siddha/Unani → biomedical)
L2

Reasoning Templates

16 KBs
KBTitle
KB37Belief Conflict Detection Rules
KB38Belief Supersession Precedence (recency, specificity, agent authority)
KB39Observation Deduplication & Reconciliation
KB40Problem List Curation Heuristics
KB41Active vs Historical Problem Discrimination
KB42Medication Reconciliation Source Precedence
KB43Trajectory Interpolation Rules
KB44Missing Data Semantics (absent ≠ normal)
KB45Stale Data Decay Functions
KB46Cross-Product Score Comparability Rules
KB47Contradiction Surfacing Thresholds
KB48Graph Query Patterns Library
KB49State Snapshot Composition Rules
KB50Derived Attribute Computation Canon
KB51Confidence Propagation Through Inference Chains
KB52Anomaly & Implausible-State Detection
L3

Workflow

10 KBs
KBTitle
KB53Write Path State Machine
KB54Clinician Arbitration Workflow (contradiction resolution)
KB55Problem List Review & Attestation Cycle
KB56Identity Merge Review Workflow
KB57Retraction & Correction Workflow
KB58Bulk Import Reconciliation Workflow
KB59Cross-Facility Transfer of State
KB60Subscription & Notification Rules
KB61Snapshot Request & Delivery Workflow
KB62Degraded Mode Operating Procedure
L4

Integration

12 KBs
KBTitle
KB63FHIR R4 Resource Mapping (bidirectional)
KB64ABDM / ABHA Health Record Contract
KB65AAROGYA EMR Sync Contract
KB66OMNIOME Read/Write Contract
KB67Cardiometabolic Twin (INDRA H-OS) State Exchange
KB68Specialty Clinician Write Contracts (ARJUN, HRIDAYA, NEEL, DRISHTI family)
KB69GUARDIAN+ Medication State Contract
KB70PRAMANA Evidence Emission Contract
KB71JEEVANA Goal & Plan Contract
KB72Wearable Stream Ingestion (Aegis Bio-ID, ARES Sentinel)
KB73SANGAMA Federated Export Schema
KB74Event Catalogue & Versioning Policy
L5

Safety & Governance

10 KBs
KBTitle
KB75Write Authorisation Matrix (which agent may assert what)
KB76Consent Model & Purpose Binding
KB77Consent Revocation Cascade
KB78Audit Log Specification & Immutability Guarantees
KB79PHI Minimisation & Field-Level Access Control
KB80Break-Glass Emergency Access Protocol
KB81Data Residency & Cross-Border Rules (India DPDP, Oman)
KB82Retention & Deletion Policy
KB83Belief Poisoning & Adversarial Write Defence
KB84Medico-Legal Reconstruction Requirements

05 · Data

Data architecture

Graph store

For traversal, contradiction detection, and causal chains. The graph is a derived projection and must be rebuildable from the ledger alone.

Relational append-only ledger

The system of record — bitemporal fact tables and audit. Append-only: no UPDATE, no DELETE, enforced at the database level.

Every assertion records: node family, payload, asserting product + version, valid time, transaction time, basis (observations + KB references — must be non-empty), confidence, claim grade, supersession chain, and trace id.

The snapshot API — the primary read surface

Consumers rarely traverse the graph directly; they request a composed state snapshot at a point in time:

GET /v1/patient/{id}/snapshot?as_of=<ISO8601>&lens=<product>

lens shapes the projection — HRIDAYA gets a cardiac-weighted view, SAATHI gets a patient-safe view with claim grades translated to plain language.

06 · Engine

Engine components

01

Write Gateway

Validates authorisation (KB75), basis non-empty, plausibility (KB23), life-stage coherence. Rejects rather than coerces.

02

Reconciler

Dedupes observations (KB39), curates problem list (KB40), applies medication source precedence (KB42).

03

Contradiction Detector

Runs on write, creates contradicts edges above threshold (KB47), never auto-resolves.

04

Snapshot Composer

Bitemporal query + lens projection + staleness decay (KB45).

05

Subscription Dispatcher

Emits state-change events per KB60.

06

Audit Sealer

Hash-chains the assertion log; daily anchor.

07 · Proof

Acceptance criteria

08 · Failure

Degraded mode

Degraded mode is defined, not emergent. Default is fail-safe: reduce function, never guess.

FailureBehaviour
Graph store downServe snapshots from the ledger; disable traversal queries; banner to consumers
Ledger downHard stop. No writes accepted. Consumers fall back to their own last-known state with staleness banner. Never guess.
Consent service downDeny all non-emergency reads; break-glass remains available
Event bus downBuffer and replay on recovery; consumers must be idempotent

AKHANDA is the first of ten Wave-2 applications. See the full cascade, the build sequence, and the universal safety rails.

← Back to Wave 2