Guided tour

From Cohort to Bedside: Walking Through the Avinash Principle, Powered by SNOMED CT

A stop-by-stop tour that pairs the Avinash Principle's cohort-level framework with a live, working pipeline — type a bedside question and watch it become a SNOMED CT query, a cohort match, a Clinical Intelligence Brief, and an aggregate trajectory graph, in that order.
1The idea

Two posts, one missing piece

Avinash Kumar's recent posts describe the same insight from two directions. "Cohort-Level Clinical Intelligence" argues that once you apply the Avinash Principle across a whole patient cohort rather than one chart, the combinatorial noise of population health records collapses into a small set of scale-free macro-patterns: presentation clusters, a "key decision node" where the population branches into survival vs. failure trajectories, an intervention "hub," and longitudinal tracking signatures that correlate intermediate physiology with final outcome.

"Accelerating the Evidence Pyramid" takes that structure and asks what happens when a clinician needs it right now, at the bedside. Its answer is a template-driven query engine: a clinician's question is matched against pre-computed cohort analytics and dropped into a standardized brief — query match %, active hub node, presentation metrics, required intervention, predicted outcome — instead of triggering a free-text LLM essay.

Both posts describe the same missing piece without naming it: for a "query" to match a "cohort," and a "hub node" to mean the same thing every time, the underlying clinical concepts have to be coded, not just written. That's the job SNOMED CT does — and it's what the rest of this tour builds, live, one stop at a time.

2Why SNOMED CT

The enabling layer

SNOMED CT (Systematized Nomenclature of Medicine — Clinical Terms) is what turns the Avinash Principle from a compelling metaphor into something a machine can execute accurately:

In short: the Avinash Principle needs a way to say the same clinical thing the same way, every time, with enough internal structure to support time windows and hierarchy roll-ups. That's a description of SNOMED CT's design goals — and it's the layer every stop below is built on.

3Try it — stage 1

Ask a bedside question in plain language

This is where the pipeline actually starts: a clinician types what they're seeing, in their own words. No coding knowledge required at this stage — that's the point. Type your own question below, or pick one of the examples, then press Run query. The rest of this tour fills in live as you scroll, using whatever you typed here.

Live demo
4Stage 2

Natural language becomes SNOMED CT concepts

A lightweight, deterministic clinical-NER layer — not a freeform generative one — maps each clinical phrase in your query to a canonical SNOMED CT concept. This is the accuracy checkpoint of the whole pipeline: if a phrase can't be resolved to a concept with confidence, the system should say so rather than guess, the same discipline the accelerating-evidence-pyramid post asks of the downstream brief.

Live output
Run a query above to see the extracted concepts here.
5Stage 3

Concepts compose into an ECL cohort query

The extracted concepts are composed into a SNOMED CT Expression Constraint Language (ECL) query — SNOMED CT's own formal query language, purpose-built for exactly this. The << operator pulls in descendant concepts automatically, so a query for "renal dysfunction" includes AKI, CKD-on-conservative-management, and oliguria subtypes without anyone enumerating every leaf term by hand.

Live output
Run a query above to see the generated ECL expression here.
6Stage 4

The ECL query retrieves a matching cohort

The ECL result set is joined against a pre-computed cohort analytics layer — presentation timelines, decision nodes, intervention timelines, tracking correlations — all already indexed by SNOMED CT concept ID. Graph centrality metrics (the "super-connected hub" language from the cohort post) are computed once, offline, over the whole cohort. The query at runtime is a lookup, not a live computation — which is what makes sub-second template population possible.

Live output
Run a query above to see the cohort match here.
7Stage 5

Meet a few real patients inside this cohort

Before the aggregate — this is what the cohort is actually built from. Each tab below is one real patient's coded trajectory, laid out exactly like a single-case chart review: lanes for comorbidity → symptom → diagnosis → intervention → escalation → outcome, timed by day-offset from admission. The cohort graph two stops from now is nothing more than many charts like these, overlaid and counted.

Case:

Pivot around:
100%
Click a node to pivot around it. Click a lane pivot chip to pivot a whole diagnosis/intervention. Hover for the coded concept. Drag background to pan, drag a node to reposition, scroll/pinch or +/− to zoom. Switch patients with the tabs above — the case list updates to match whichever cohort your query above routed to.
8Stage 6

The match populates a Clinical Intelligence Brief

The matched hub node and its linked intervention and tracking concepts drop into the fixed brief structure from the accelerating-evidence-pyramid post — no free-text generation in the clinical-fact fields, only in optional surrounding narrative. This is the artifact a clinician actually reads at the bedside.

Live output
Run a query above to see the generated brief here.
9Stage 7

The same match, written out as a templatized insight report

A graph is for pivoting; a report is for reading and citing. This stop takes the identical matched cohort and pours it through a second, fixed template — the three-dimension structure from "Cohort-Level Clinical Intelligence": Presentation Insights, Intervention Insights, and Tracking & Correlation Insights, each broken into the post's own named sub-fields. No sentence here is generated free-form — every value is a direct read from the same cohort object that drew the graph below; only the surrounding template prose is fixed English.

Live output
Run a query above to see the generated insight report here.

Two worked examples

These two are pre-run so you can read a complete report without typing anything — the same template, filled from the two demo cohorts on this page.

Example query

"60 year old with fever, ascites and low urine output"

Example query

"farmer with snake bite, swelling and bleeding that won't clot"

10Stage 8

The cohort renders as a trajectory graph

This is where a single-case chart-review tool becomes a cohort tool. Each node below represents every patient in the matched cohort who shares that SNOMED CT concept at that day-offset window — sized by patient count, colored toward red as its adverse-outcome rate rises, and ringed in gold if it's the active hub node. Click a node to pivot the graph around it: connected nodes stay lit, everything else dims, exactly like tracing one patient's chart, except every edge weight is now a real cohort transition frequency.

Click the hub node's pivot chip below to see the pre-computed hub route — the exact chain the brief and insight report above describe — highlighted in gold across the graph.

Pivot around:
100%
Scroll/pinch or +/− to zoom, drag background to pan, drag a node to reposition, hover for its SNOMED CT code and cohort stats.

Where this leaves the evidence pyramid

None of this replaces retrospective cohort studies, RCTs, or systematic reviews — the accelerating-evidence-pyramid post is explicit about that, and it's the correct framing. What the SNOMED CT-mediated pipeline you just walked through does is give the existing evidence pyramid a real-time front door: a plain-language question resolves into a formally defined, auditable clinical query; that query retrieves pre-computed cohort structure instead of asking a language model to reconstruct it from scratch; and the result renders as a graph a clinician can pivot, trust, and check against their own patient's coded chart — with the coding layer, not the language model, doing the work of making sure "hub node" means the same thing every single time.