Guide
Cascade Protocol v1
Import an Apple Health export.
An iPhone keeps years of readings, from steps and heart rate to sleep, and the clinical records it pulled from hospitals. The cascade command-line tool reads a whole export into a pod on your machine.
Step 1
A minute
Install the tool
npm install -g @the-cascade-protocol/cli cascade --version
Step 2
A few minutes, on the iPhone
Export from the Health app
In the Health app, tap your picture, then Export All Health Data. Save the file and unzip it on your computer: you get a folder, apple_health_export, holding export.xml (the readings) and clinical-records/ (the hospital records, as FHIR).
Step 3
Seconds
Make a pod
cascade pod init ./my-pod
Step 4
A few minutes for a big export
Import it
cascade pod import ./my-pod ~/Downloads/apple_health_export --source-system apple-health
The clinical records go in as records from each hospital. The readings are read in one pass and kept as daily summaries, each day computed from the samples stored beside it. Each day is cut in one time zone for the whole pod, the zone most of the export’s readings carry, and each daily summary records its zone. Importing the same export twice changes nothing.
Step 5
A minute
See what arrived
cascade pod info ./my-pod cascade pod query ./my-pod --wellness-series
Then check every file against the published rules:
cascade validate ./my-pod
Step 6
Optional
Encrypt it
cascade pod encrypt ./my-pod
It asks for a passphrase. Keep it somewhere safe: without it the pod cannot be opened.