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

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
  • Look up a term: every class and property a pod carries, the shape that checks it, and the queries and rules that use it
  • Read a query: every named question, view, matcher rule and derivation, what it is for, its SPARQL, the terms it reads and its rows on the example pod
know why it is built this way
  • Decision notes: why each term, rule and shape is as it is, each Choice row beside the rules that apply it.
read the rules
  • The runtime's rules: every rule beside the note that ruled it, its examples and their latest result.
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

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-vocabularyThe terms, shapes, queries and rules a pod is built and read by, and the conformance kits that test a runtime.
cascade-runtime-jsThe reference runtime, in TypeScript: it opens a pod, runs its questions and builds these pages.
cascade-bridge-specThe Cascade Bridge specification: the contract every adapter and bridge follows.
cascade-bridge-rsCascade Bridge in Rust: it runs adapters under the sparql-1.1 profile.
cascade-bridge-adapter-fhir-r4The adapter that turns FHIR R4 JSON into Cascade records.
cascade-bridge-adapter-ccdaThe adapter that turns C-CDA R2.1 XML into Cascade records.
cascade-starter-kitThe app template create-cascade-app makes, and the try/ page that runs one in your browser.
cascade-reference-tablesThe reference tables the matcher joins records of the same thing by, their builders, and the feed apps read. its site
cascade-sandboxA 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.

RepositoryWhat it isStatus
specOntologies, shapes, serialization and pod specificationsIn use; the v2 model is in cascade-vocabulary and cascade-bridge-spec
conformanceConformance fixtures and a reference patient podIn use; v2 conformance is cascade-vocabulary's conformance kits
cascade-cliA command-line tool for pods, @the-cascade-protocol/cliIn use; Cascade Protocol v2 support is planned
sdk-typescriptA TypeScript SDK, @the-cascade-protocol/sdkIn use; for v2, see cascade-runtime-js
sdk-pythonA Python SDK, cascade-protocol on PyPIIn use; no v2 equivalent yet
cascade-agentA natural-language interface to the CLI, @the-cascade-protocol/agentIn use; for v2, see the chat and MCP add-ons of cascade-starter-kit
cascade-knowledgeAn open clinical knowledge crosswalk: code mappings with provenance for each rowNot part of the v2 stack