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.
Sources
- Hospital exports: FHIR R4, C-CDA today
- Apple Health readings, wearables in v1 v2 planned
- Google Health Connect, medical imaging (DICOM) planned
- files
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
- records
The person's pod
One person's records as plain files, each citing its source; nothing is overwritten.
builds on RDF, PROV-O, SHACL, Solid's pod layout
The person adds entries and judgments. today
- read by
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
- asked by
Apps
A reference runtime, an app template, demo hospitals. today
builds on SMART on FHIR
AI models
An MCP server; a write a model proposes waits for the person's yes. today
builds on MCP
- sent out as
Share it out
- FHIR R4 files, reports (PDF) in v1
- International Patient Summary being built
- every part writes and reads
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
§ 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.
| Part | Repository | What its tests cover | Newest run |
|---|---|---|---|
| 2 The Bridge | cascade-bridge-spec | The specification, the adapter profile and the compatibility tool | Results · file |
| cascade-bridge-rs | The engine that runs the adapters today | Results · file | |
| cascade-bridge-adapter-fhir-r4 | Every FHIR R4 case, on every engine it must pass with | Results · file | |
| cascade-bridge-adapter-ccda | Every C-CDA case, the same way | Results · file | |
| 4 Vocabulary | cascade-vocabulary | The shapes, the named questions and the conformance kits | Results · file |
| 6 The runtime | cascade-runtime-js | Every package of the runtime | Results · file |
| cascade-reference-tables | The tables that pair codes across systems | Results · file | |
| Start building | cascade-starter-kit, cascade-sandbox | The app template and the in-browser version | Results · file |
| 7 AI models | cascade-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 10 | Every run |
| Cascade Protocol v1 | cascade-cli, conformance | The command-line tool, and the fixtures any v1 tool must pass | To 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.
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.
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.
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.
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-101 | Larkspur Valley Healthal-8237461 | Meridian Health Systemalg-pcn-1 | |
|---|---|---|---|
| allergen | Penicillin | Penicillin | Penicillin G |
| code | SNOMED CT 373270004 | SNOMED CT 373270004 | RxNorm 7980 |
| reaction | Hives | Hives | Hives |
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" .
- 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. - 2What Meridian said: the allergen is "Penicillin G", with the reaction Hives.
- 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.
§ 4
Where to start
Start from what you're building.
- A health app →Make an app on four example people and a demo hospital, then shape it to your use. Start building
- A hospital connection →Bring records in from a portal sign-in or a saved download, each kept with its source. Guide: Bring in a record from a hospital
- An AI assistant →Let an assistant answer from a person’s whole record, joined up and cited. Anything it wants to change waits for the person’s yes. Guide: Let an AI model read a pod
- With a coding agent →Make the app with one command, then paste the prompt it prints into your coding agent. The app’s AGENTS.md tells the agent how to read and write a pod. Start building
- With the v1 tools, today →Import an Apple Health export, check records, encrypt a pod or export FHIR with the cascade command-line tool. Cascade Protocol v1
§ 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 v1 | Cascade Protocol v2 | |
|---|---|---|
| Stage | In use; its tools are being upgraded to v2 | Alpha: it can change before its first stable release |
| Runs in | POTS Check (App Store) | Full Picture's family app (in development), the starter kit |
| Reads | FHIR R4, C-CDA, portal download bundles, Apple Health exports, genomic reports | FHIR R4 and C-CDA, through the Bridge's adapters |
| Tools | The cascade command-line tool, TypeScript and Python SDKs, an MCP server, cascade validate | The reference runtime, the starter kit, an MCP server |
| Shares out | FHIR R4 files (cascade convert --to fhir) and app reports such as POTS Check’s; an International Patient Summary export is being built | Not yet |
| Reach for it when | You need Apple Health import, record checks, encryption or FHIR export today | You 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 →