Why This Matters

Patients accumulate health data across multiple systems: EHR exports, wearable devices, and self-reported supplements. Before a doctor visit, this data is scattered and unstructured. An agent that can read a Cascade Pod and produce a concise, provenance-annotated summary saves time for both patient and physician.

Key challenges this example addresses:

  • Provenance differentiation — Clinical data from an EHR has different reliability characteristics than device-generated or self-reported data. The summary must reflect this distinction.
  • Data completeness assessment — Identifying what is missing is as important as summarizing what is present. Are immunizations up to date? Are lab results recent?
  • Trend extraction — Transforming 30 days of raw vitals into actionable insights that a physician can act on in a 15-minute visit.

Prerequisites

cascade CLI
On your PATH
Reference patient pod
../reference-patient-pod/
Claude Desktop or Claude Code
One of the two

The reference pod contains a complete clinical and wellness dataset for Alex Rivera, 52M, Portland, OR, including medications, conditions, allergies, lab results, vitals, wellness data, and immunizations.

Quick Start (Under 10 Minutes)

Option A — MCP via Claude Desktop

Claude Desktop reads the full Pod via the Cascade MCP server using a single --all query.

Option B — CLI-as-Skill via Claude Code

Claude Code queries each data category individually using Cascade CLI commands.

Option A: MCP via Claude Desktop

Step 1. Add the Cascade MCP server to your Claude Desktop configuration:

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "cascade": {
      "command": "cascade",
      "args": ["serve", "--mcp"],
      "env": {
        "CASCADE_POD_PATH": "/path/to/cascadeprotocol.org/reference-patient-pod"
      }
    }
  }
}

Step 2. Restart Claude Desktop, open a new conversation, and paste the contents of agent-prompt.md.

Step 3. The agent will use cascade_pod_query with --all to read the full Pod in a single call.

Option B: CLI-as-Skill via Claude Code

Step 1. Open a terminal in this directory and run Claude Code:

Terminal
export CASCADE_POD_PATH="../reference-patient-pod"
claude

Step 2. Paste the contents of agent-prompt.md as your prompt. The agent will invoke the Cascade CLI across all data categories:

Commands the agent will run
# Read everything at once
cascade pod query ./reference-patient-pod --all --json

# Or read category by category
cascade pod query ./reference-patient-pod --medications --json
cascade pod query ./reference-patient-pod --conditions --json
cascade pod query ./reference-patient-pod --allergies --json
cascade pod query ./reference-patient-pod --labs --json
cascade pod query ./reference-patient-pod --vitals --json
cascade pod query ./reference-patient-pod --wellness --json
cascade pod query ./reference-patient-pod --immunizations --json
cascade pod info ./reference-patient-pod --json

What the Agent Should Do

  1. Read the complete Pod (all clinical and wellness data)
  2. Generate a structured visit summary containing: medication list with provenance annotations, recent lab results with interpretation, vital sign trends from both clinical and device sources, and open questions based on data gaps
  3. Distinguish clinical-source data from device-source data throughout the summary
  4. Identify action items for the upcoming visit

See expected-output.md for the reference answer. The output should be formatted as a concise document a physician could read in under two minutes.

Files in This Example

README.md Setup and walkthrough (this page)
agent-prompt.md The prompt to give the agent. Paste this verbatim into Claude Desktop or Claude Code.
expected-output.md Reference visit summary showing structure and provenance annotations.
security-model.md Data flow documentation and consent model. Covers read-only access pattern and PHI handling.

Key Cascade Protocol Concepts Demonstrated

Full Pod traversal

Reading across all resource categories in a single session — clinical, wellness, profile, and audit data.

Provenance annotation

Every data point is attributed to its source: ClinicalGenerated, DeviceGenerated, or SelfReported.

Clinical vs device data

The same vital sign type (e.g., blood pressure) shown side-by-side from an EHR and a home monitor, with different confidence levels.

Data gap identification

Recognizing when information is missing or outdated — a critical input for visit preparation.

← All Agent Examples Documentation