Skip to content
Alpha: see what works today →
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.