Skip to content
Alpha · We're looking for development partners. Build with us →
Menu

Developers
Cascade Protocol v2 · Alpha

Build on a record the patient owns.

The Cascade Protocol is an open standard for a person's health record, kept as plain files they own and control. Here is how it's built, part by part. In fifteen minutes you can have an app running on it.

§ 1

The architecture

Every part, and where it stands today.

Every box is a link: select a part to open its page.

The architecture of the Cascade ProtocolA source's file goes through an adapter, run by the Bridge, into the person's pod at the centre. The person adds entries and judgments. Questions and rules read the pod, and apps and AI models ask them. One vocabulary runs under the adapters, the pod and the questions. Hospital exports in FHIR R4 and C-CDA exist today; Apple Health readings, Google Health Connect, wearables and medical imaging are planned, as are their adapters. Apps share the record out as FHIR R4 files and PDF reports in Cascade Protocol v1, and an International Patient Summary export is being built.The personadds entries and judgmentsTODAYSources→TODAYHospital exportsFHIR R4 · C-CDAIN v1 · v2 PLANNEDApple Health readingsWearablesPLANNEDGoogle Health ConnectMedical imaging (DICOM)filesAdapters andthe Bridge→TODAYFHIR R4 adapterC-CDA adapterPLANNEDadapters forApple Health readings,Health Connect,wearables, DICOMbuilds onSPARQL, SHACL, RO-CraterecordsThe person's pod→one person's records as plainfiles, each citing its source;nothing is overwrittenTODAYENCRYPTION: BEING BUILTSHARING: PLANNEDrecords/ · judgments/builds on RDF, PROV-O, SHACL,Solid's pod layoutread byQuestionsand rules→TODAYViewsjoin records into entriesNamed questionsrows cite their sourcesbuilds onSPARQL, Gherkin, EARLRules and kitsexamples to reproduceasked byasked byApps→TODAYa reference runtime,an app template,demo hospitalsbuilds onSMART on FHIRAI models→TODAYan MCP server; a writea model proposes waitsfor the person's yesbuilds on MCPsentShare itout→IN v1FHIR R4 filesReports (PDF)BEING BUILTInternationalPatient Summarybuilds onFHIR R4, HL7 IPSThe vocabulary↗says what a record, its source, a judgment and an entry are;adapters write its terms, the pod keeps them, questions read themTODAY · builds on RDF, SHACL, PROV-O, PAV The architecture of the Cascade ProtocolFrom top to bottom: sources, adapters and the Bridge, the person's pod, questions and rules, then apps and AI models. The person adds entries and judgments to the pod. The vocabulary runs beside the adapters, the pod and the questions. Sources and adapters for Apple Health readings, Google Health Connect, wearables and medical imaging are planned. Last, the record is shared out: FHIR R4 files and PDF reports in Cascade Protocol v1, and an International Patient Summary export being built.Sources→TODAYHospital exportsFHIR R4 · C-CDAIN v1 · v2 PLANNEDApple Health readingsWearablesPLANNEDGoogle Health ConnectMedical imaging (DICOM)filesAdapters and the Bridge→TODAYFHIR R4 adapterC-CDA adapterPLANNEDadapters for Apple Health readings, Health Connect,wearables and DICOMbuilds on SPARQL, SHACL, RO-CraterecordsThe personadds entries and judgmentsTODAYThe person's pod→one person's records as plain files, each citing its source;nothing is overwrittenTODAYENCRYPTION: BEING BUILTSHARING: PLANNEDbuilds on RDF, PROV-O, SHACL, Solid's pod layoutread byQuestions and rules→TODAYViewsjoin records into entriesNamed questionsrows cite their sourcesbuilds on SPARQL, Gherkin, EARLRules and kitsexamples to reproduceasked byApps→TODAYa reference runtime,an app template,demo hospitalsbuilds on SMART on FHIRAI models→TODAYan MCP server; a writea model proposes waitsfor the person's yesbuilds on MCPsent out asShare it out→IN v1FHIR R4 filesReports (PDF)BEING BUILTInternational Patient SummaryThe vocabulary ↗the terms every part here writes and reads
  1. Sources

    • Hospital exports: FHIR R4, C-CDA today
    • Apple Health readings, wearables in v1 v2 planned
    • Google Health Connect, medical imaging (DICOM) planned
  2. files
  3. Adapters and the Bridge

    • FHIR R4 and C-CDA adapters today
    • Apple Health readings, Health Connect, wearables, DICOM planned

    builds on SPARQL, SHACL, RO-Crate

  4. records
  5. The person's pod

    One person's records as plain files, each citing its source; nothing is overwritten.

    today encryption: being built sharing: planned

    builds on RDF, PROV-O, SHACL, Solid's pod layout

  6. The person adds entries and judgments. today

  7. read by
  8. Questions and rules

    • Views: join records into entries today
    • Named questions: rows cite their sources
    • Rules and kits: examples to reproduce

    builds on SPARQL, Gherkin, EARL

  9. asked by
  10. Apps

    A reference runtime, an app template, demo hospitals. today

    builds on SMART on FHIR

  11. AI models

    An MCP server; a write a model proposes waits for the person's yes. today

    builds on MCP

  12. sent out as
  13. Share it out

    • FHIR R4 files, reports (PDF) in v1
    • International Patient Summary being built
  14. every part writes and reads
  15. The vocabulary

    The terms every part here writes and reads.

Each part's stage: in the protocol today being built planned in Cascade Protocol v1

Read left to right: a source’s file goes through an adapter into the pod, questions read it, and apps and AI models ask them and share the record out. Dotted parts are built in Cascade Protocol v1, which imports Apple Health exports, including readings from an Apple Watch and other wearables that sync to it. What each stage means, part by part: Status →

§ 2

How we know it works

Test results, part by part.

Every repository runs its tests on each change, and the newest results are published here. Each Architecture page links its own part's row.

PartRepositoryWhat its tests coverNewest run
2 The Bridgecascade-bridge-specThe specification, the adapter profile and the compatibility toolResults · file
cascade-bridge-rsThe engine that runs the adapters todayResults · file
cascade-bridge-adapter-fhir-r4Every FHIR R4 case, on every engine it must pass withResults · file
cascade-bridge-adapter-ccdaEvery C-CDA case, the same wayResults · file
4 Vocabularycascade-vocabularyThe shapes, the named questions and the conformance kitsResults · file
6 The runtimecascade-runtime-jsEvery package of the runtimeResults · file
cascade-reference-tablesThe tables that pair codes across systemsResults · file
Start buildingcascade-starter-kit, cascade-sandboxThe app template and the in-browser versionResults · file
7 AI modelscascade-runtime-js (evals)Answers through the pod, against the raw hospital files: 8 to 9 in 10 cited facts held up, against 4 to 7 in 10Every run
Cascade Protocol v1cascade-cli, conformanceThe command-line tool, and the fixtures any v1 tool must passTo publish

"File" is the same results as JSON, for tools.

§ 3

One example, along the same path

One allergy, two hospitals.

Alex’s penicillin allergy is on file at two hospitals, and each codes it differently. Here is what happens when both records reach her pod. Alex and her hospitals are made up.

One penicillin allergy travelling through the architectureThree records of Alex's penicillin allergy, one from Meridian coded RxNorm 7980 and two from Larkspur coded SNOMED CT 373270004, come from Sources through the Bridge into her pod. The matcher joins Larkspur's two, which share a code. Alex joins Meridian's. One entry, penicillin with three records from two hospitals, goes to the apps. Sourceshospital portals The BridgeFHIR R4 adapter file in, records out Alex’s podrecords kept as sent; nothing edited Apps and AI modelsask a named question MeridianRxNorm 7980 Larkspur, old systemSNOMED CT 373270004 Larkspur, new systemSNOMED CT 373270004 matcher:same code Alex:sameallergy Penicillin · highone entry, 3 recordsMeridian, Larkspur
The penicillin allergy, outlined, moving through the same parts as the diagram above.
1

Sources · The Bridge

Pulled in

Her app signs in to each hospital’s patient portal with SMART on FHIR and brings back her record. An adapter turns each file into records.

2

The pod

Kept as sent

Each hospital’s allergy is saved exactly as it came, with where it came from. Meridian says RxNorm 7980; Larkspur says SNOMED CT 373270004.

3

Vocabulary: judgments

Joined by Alex

Larkspur sent it twice, from its old and new systems, with the same code, so the matcher joined those two itself. Meridian’s code is different, so only Alex could. Her answer is saved as a record of its own, and nothing is edited.

4

Views and questions · Apps and AI models

Answered once

Ask “What is Alex allergic to?” and any app or AI model gets penicillin once, citing both hospitals.

What an app sees after step 4

Allergy entry · Penicillin 3 records

Larkspur Valley Healthlv-alg-101Larkspur Valley Healthal-8237461Meridian Health Systemalg-pcn-1
allergenPenicillinPenicillinPenicillin G
codeSNOMED CT 373270004SNOMED CT 373270004RxNorm 7980
reactionHivesHivesHives
See the file in the pod: Meridian’s version, line by line
 @prefix cascade: <https://ns.cascadeprotocol.org/cascade#> .
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix rxnorm: <https://ns.cascadeprotocol.org/codes/rxnorm/> .

1 <ni:///sha-256;l9hj…>
   prov:specializationOf
     <urn:uuid:6996…> ;
2   cascade:allergen "Penicillin G" ;
3   cascade:allergenCode rxnorm:7980 ;
   cascade:reactionManifestationText
     "Hives" .
  1. 1A version of a record. A term from PROV-O says this is the content of the record urn:uuid:6996…. The version is named by a hash of its content.
  2. 2What Meridian said: the allergen is "Penicillin G", with the reaction Hives.
  3. 3The code Meridian sent, RxNorm 7980, kept as it came.

The files are the hub’s: Meridian’s version, Larkspur’s version and Alex’s judgment.

Open Alex Rivera’s pod, with every question it answers ↗

§ 5

Four words

Glossary

Record
What one source said, kept as it arrived, with where and when it came from.
Judgment
A decision about records: these are the same, these are different, this one is wrong. It names who made it, the person or the matcher, and changes no record.
Entry
One line an app shows for the records judged to be the same thing.
View
The records and judgments drawn as entries, ready for an app or a model to read.

Two versions

Cascade Protocol v1 shipped. v2 builds on it.

Cascade Protocol v1Cascade Protocol v2
StageIn use; its tools are being upgraded to v2Alpha: it can change before its first stable release
Runs inPOTS Check (App Store)Full Picture's family app (in development), the starter kit
ReadsFHIR R4, C-CDA, portal download bundles, Apple Health exports, genomic reportsFHIR R4 and C-CDA, through the Bridge's adapters
ToolsThe cascade command-line tool, TypeScript and Python SDKs, an MCP server, cascade validateThe reference runtime, the starter kit, an MCP server
Shares outFHIR R4 files (cascade convert --to fhir) and app reports such as POTS Check’s; an International Patient Summary export is being builtNot yet
Reach for it whenYou need Apple Health import, record checks, encryption or FHIR export todayYou are starting a new app, or giving an AI model a person’s record

What v2 changes: an adapter is data any engine can run; a person's decisions about their records are kept as records of their own; apps and AI models ask the pod named questions; and each kind of act an AI model may take has a consent tier. Cascade Protocol v1 →