| Layer | Resource | Purpose |
|---|---|---|
| 1. Canonical | your-hpi (and other canonical sections) | Your stable, opinionated baseline. Versioned, published. |
| 2. Customer variant (inherits canonical) | your-hpi-customer-A (and others) — inheritFromId: your-hpi with customer-specific writing style or schema | Persistent per-customer variant; tracks canonical improvements |
| 3. Customer template | your-followup-customer-A — composes the customer’s variant sections | Stable, per-customer composition |
| 4. Runtime override | POST /documents Path 2 against the customer template, with per-call overrides | Last-mile clinician/UI tweaks |
POST /documents — full stack
Previous: Recipe 6 — Inherit from your own sections to scale · Back to Customization Cookbook