Cascade Protocol reference
A pod holds one person's health records as files, and an app reads and writes it through
cascade-runtime.
Find your way
| I want to… | Go here |
|---|---|
| see it work | |
| build an app |
|
| understand the data model |
|
| know why it is built this way |
|
| read the rules |
|
| check conformance |
|
| map FHIR or C-CDA to the model |
|
| look inside a pod |
|
| see how well a model answers from a pod |
|
| point an agent at it |
|
| contribute |
|
What a pod holds today
- Patient profile
- Notes and documents
- Reports
- Variant interpretations
- Variants
- Lab results
- Medication dispenses
- Medications
- Procedures
- Immunizations
- Conditions
- Allergies
Records come in from two formats: FHIR R4, from the clinical records of an Apple Health export, and C-CDA, a summary of care as a patient portal hands it out. The matcher joins one record across both. Vital signs, notes and daily measurements are not yet held. The reference tables the matcher uses to join records of the same thing are alpha test data, so a real export shows fewer automatic joins than the example pods.
Every repository
| cascade-vocabulary | The terms, shapes, queries and rules a pod is built and read by, and the conformance kits that test a runtime. |
|---|---|
| cascade-runtime-js | The reference runtime, in TypeScript: it opens a pod, runs its questions and builds these pages. |
| cascade-bridge-spec | The Cascade Bridge specification: the contract every adapter and bridge follows. |
| cascade-bridge-rs | Cascade Bridge in Rust: it runs adapters under the sparql-1.1 profile. |
| cascade-bridge-adapter-fhir-r4 | The adapter that turns FHIR R4 JSON into Cascade records. |
| cascade-bridge-adapter-ccda | The adapter that turns C-CDA R2.1 XML into Cascade records. |
| cascade-starter-kit | The app template create-cascade-app makes, and the try/ page that runs one in your browser. |
| cascade-reference-tables | The reference tables the matcher joins records of the same thing by, their builders, and the feed apps read. its site |
| cascade-sandbox | A pretend health system with a past: demo FHIR hospitals that answer as of a date, for testing apps. |
Cascade Protocol v1
These repositories are Cascade Protocol v1, the protocol's first version. Apps and tools in use today run on them, and they are being upgraded to Cascade Protocol v2, the stack above. Until then they are not kept in step with v2. They stay public.
| Repository | What it is | Status |
|---|---|---|
| spec | Ontologies, shapes, serialization and pod specifications | In use; the v2 model is in cascade-vocabulary and cascade-bridge-spec |
| conformance | Conformance fixtures and a reference patient pod | In use; v2 conformance is cascade-vocabulary's conformance kits |
| cascade-cli | A command-line tool for pods, @the-cascade-protocol/cli | In use; Cascade Protocol v2 support is planned |
| sdk-typescript | A TypeScript SDK, @the-cascade-protocol/sdk | In use; for v2, see cascade-runtime-js |
| sdk-python | A Python SDK, cascade-protocol on PyPI | In use; no v2 equivalent yet |
| cascade-agent | A natural-language interface to the CLI, @the-cascade-protocol/agent | In use; for v2, see the chat and MCP add-ons of cascade-starter-kit |
| cascade-knowledge | An open clinical knowledge crosswalk: code mappings with provenance for each row | Not part of the v2 stack |