# ChartVoyant Developer Documentation — Complete Reference Source: https://docs.chartvoyant.com/ --- # Build on the chart Canonical URL: https://docs.chartvoyant.com/ Connect clinical apps, AI agents, lab and hospital feeds, population-health pipelines, and practice tools to ChartVoyant. Every capability below documents its real endpoints, authentication, limits, and production status. ## Choose how to integrate ChartVoyant exposes two main integration models — tenant-scoped **API keys** for practice and AI-agent workflows, and standards-based **SMART on FHIR R4** with zero fees — alongside dedicated interfaces for HL7 v2 feeds, patient-controlled MCP keys, and complete record exports. Live ### ChartVoyant REST API Tenant-scoped JSON API authenticated with a practice bearer key (`cvk_…`) for patients, practitioners, encounters, documents, and context. https://chartvoyant.com/api/v1 LiveMCP ### Practice MCP Server Connect Claude Code or any MCP client to a practice chart with 28 read tools and 8 scheduling and inbox tools. POST https://chartvoyant.com/api/v1/mcp LivePatient ### Patient MCP Server Patients generate a read-only `cvpk_…` key in the portal to connect Claude, ChatGPT, Cursor, or VS Code to their own record. POST https://chartvoyant.com/api/v1/portal/mcp LiveONC certification in progress ### SMART on FHIR-4 & US Core 6.1 Patient, clinician, EHR launch, Backend Services, and Bulk Data 2.0 across 27 US Core 6.1 resources. No fee and no revenue share. https://fhir.chartvoyant.com/r4/{practice} NewPer interface ### HL7 v2 Interfaces Labs, imaging centers, and hospitals deliver `ORU^R01` results and `ADT` events over HTTPS with synchronous ER7 ACKs. POST /api/v1/interop/hl7/{interfaceId} LiveONC certification in progress ### Complete EHI Export Published Archive Format 2.0 (ZIP64 of native JSON tables, US Core NDJSON, original documents, and frozen schema v1) with synthetic sample. Archive format 2.0 · schema-v1.json ## Make your first request Request a self-serve sandbox key in about a minute — it provisions your own isolated synthetic office for 14 days with read and write access and zero real patient data — then query the REST API or attach an MCP client: **cURL** ```bash # Sandbox: synthetic patients only curl "https://chartvoyant.com/api/v1/patients?limit=5" \ -H "Authorization: Bearer $CHARTVOYANT_API_KEY" \ -H "X-Purpose: operations" ``` **TypeScript** ```typescript const res = await fetch("https://chartvoyant.com/api/v1/patients?limit=5", { headers: { Authorization: `Bearer ${process.env.CHARTVOYANT_API_KEY}`, "X-Purpose": "operations", Accept: "application/json" } }); if (!res.ok) throw new Error(`ChartVoyant API error: ${res.status}`); const { data, page } = await res.json(); ``` **Python** ```python import os, urllib.request, json req = urllib.request.Request( "https://chartvoyant.com/api/v1/patients?limit=5", headers={ "Authorization": f"Bearer {os.environ['CHARTVOYANT_API_KEY']}", "X-Purpose": "operations", "Accept": "application/json", }, ) with urllib.request.urlopen(req) as resp: payload = json.loads(resp.read().decode("utf-8")) ``` ## Rate limits at a glance Over-budget calls return HTTP `429` with a `Retry-After` header. Higher limits carry no fee — see [Rate Limits & Error Codes](https://docs.chartvoyant.com/rate-limits-and-errors/) for full details and error envelopes. | Scope | Burst | Sustained | | --- | --- | --- | | API key, per key | 150 requests / second | 3,600 requests / minute | | API key, per practice (all keys and staff sessions) | 400 requests / second | 12,000 requests / minute | | FHIR, per token | 300 requests / second | 9,000 requests / minute | | FHIR, per practice | 600 requests / second | 18,000 requests / minute | | Self-serve sandbox key, per key (also 5,000 / day) | 38 requests / second | 900 requests / minute | ## Usage policy & sandbox terms Sandbox keys are governed by the [ChartVoyant Sandbox Terms](https://chartvoyant.com/sandbox-terms/) (version 1.0). Production API keys are governed by the 14-point [API key usage policy](https://docs.chartvoyant.com/usage-policy/) and the [ChartVoyant API Use Agreement](https://docs.chartvoyant.com/api-use-agreement/) (version 1.2), including server-side secret storage, minimum-necessary data access, no model training or shadow charts, 35% profit share on commercialized products built on the proprietary API, and strict Model Provider BAA requirements for AI agents. ## Not available yet Not available yetOutbound webhooks There are no developer webhooks or event subscriptions yet. Poll the REST API or run incremental [Bulk Data](https://docs.chartvoyant.com/bulk-data/) exports with `_since`. Not available yetMCP OAuth sign-in Practice MCP takes a `cvk_…` bearer key; Patient MCP takes a `cvpk_…` key or URL path token. Interactive OAuth for MCP clients is not yet built. Not available yetHL7 over MLLP or SFTP HL7 v2 arrives over HTTPS only. MLLP over VPN/TLS and SFTP file pickup are not offered. ## Frequently asked questions ### Should I use a ChartVoyant API key or SMART on FHIR? Use an API key if you need practice scheduling, inbox workflows, billing context, or Practice MCP tools. Use SMART on FHIR if you are building a patient-facing app, a clinician launch app, or a population Bulk Data integration — it is free, standards-based, and carries no revenue share. ### Can I get a production key without a sponsoring practice? No. Every production key is bound to one practice that confirms the integration. Build and demo against a self-serve synthetic sandbox key first. ### Can I connect Claude Code or another AI agent? Yes — via the [Practice MCP server](https://docs.chartvoyant.com/mcp/) for practice workflows (sandbox today; production requires version 1.2 of the [API Use Agreement](https://docs.chartvoyant.com/api-use-agreement/) and a Model Provider BAA covering MCP/tool traffic), or via the [Patient MCP server](https://docs.chartvoyant.com/patient-mcp/) for patients connecting their own record. ### Where do I report a security vulnerability? Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=Security%20report) with reproduction details. Never test against a live practice. --- # Quickstart & self-serve sandbox Canonical URL: https://docs.chartvoyant.com/getting-started/ Every developer starts in an isolated synthetic sandbox office. Issuing a key takes about a minute, requires no BAA or contract signature, and gives you full read and write access to synthetic test patients for 14 days. ## 1. Request a sandbox key - **Open the sandbox request modal** Click Request a sandbox key, enter your email, full name, phone number, and optional company name, and accept the [ChartVoyant Sandbox Terms](https://chartvoyant.com/sandbox-terms/). - **Verify your email with the 6-digit code** ChartVoyant sends a one-time 6-digit code to your email (valid for 15 minutes). Enter it in the same modal. - **Copy and store your key immediately** Verification provisions a dedicated synthetic office and displays your `cvk_…` bearer token **exactly once**. Store it in an environment variable or secrets manager; ChartVoyant stores only a hash and emails only the last four characters. ``` export CHARTVOYANT_API_KEY="cvk_0123456789ab_YOUR_SYNTHETIC_SANDBOX_SECRET" ``` ## 2. Verify your practice context Call `GET /context` on `https://chartvoyant.com/api/v1` (the single base URL for both sandbox and production keys) to confirm the synthetic tenant your key resolves to: cURLTypeScriptPython Copy ``` curl "https://chartvoyant.com/api/v1/context" \ -H "Authorization: Bearer $CHARTVOYANT_API_KEY" ``` ``` const ctx = await fetch("https://chartvoyant.com/api/v1/context", { headers: { Authorization: `Bearer ${process.env.CHARTVOYANT_API_KEY}` } }).then((r) => r.json()); console.log(ctx); ``` ``` import os, json, urllib.request req = urllib.request.Request( "https://chartvoyant.com/api/v1/context", headers={"Authorization": f"Bearer {os.environ['CHARTVOYANT_API_KEY']}"}, ) print(json.loads(urllib.request.urlopen(req).read())) ``` ### One base URL for sandbox and production: chartvoyant.com/api/v1 Self-serve sandbox keys are issued by and authenticated on `https://chartvoyant.com/api/v1`. Never point a sandbox key at `demo.chartvoyant.com` — the public clinician demo is a separate deployment with its own database and rejects sandbox keys with `401`. ## 3. Search and create synthetic patients Your sandbox office comes pre-seeded with synthetic patients, encounters, and chart data, and your sandbox key carries `full` (read + write) access within that synthetic office: ``` # List synthetic patients curl "https://chartvoyant.com/api/v1/patients?limit=5" \ -H "Authorization: Bearer $CHARTVOYANT_API_KEY" # Create a synthetic test patient curl -X POST "https://chartvoyant.com/api/v1/patients" \ -H "Authorization: Bearer $CHARTVOYANT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"mrn":"MRN-SYN-901","name":{"family":"Synthetic","given":[" Jordan"]},"birthDate":"1982-06-14"}' ``` ## 4. Connect an MCP client to your sandbox The exact same `cvk_…` sandbox key authenticates against the [Practice MCP server](https://docs.chartvoyant.com/mcp/): ``` claude mcp add --transport http chartvoyant https://chartvoyant.com/api/v1/mcp \ --header "Authorization: Bearer $CHARTVOYANT_API_KEY" ``` ## Sandbox boundaries - **Synthetic data only.** Never submit real patient names, dates of birth, SSNs, or clinical records into a sandbox office. - **14-day lifetime, one active key per email.** When a sandbox key expires after 14 days, its synthetic office closes automatically; request a fresh key anytime. - **Completely air-gapped from outbound channels.** Sandbox offices never send real faxes, SMS messages, emails, phone calls, prescriptions, or clearinghouse claims. - **Dedicated rate budget.** Self-serve sandbox keys allow 38 requests/second, 900 requests/minute, and 5,000 requests/day. --- # Authentication & credentials Canonical URL: https://docs.chartvoyant.com/authentication/ ChartVoyant never shares one catch-all credential across unrelated trust boundaries. Each surface uses a purpose-built token bound to a single practice (and, where applicable, a single patient or HL7 interface). ## Credential comparison matrix | Credential | Prefix / Type | Accepted On | Lifetime | How Issued | | --- | --- | --- | --- | --- | | **Practice API key** | `Bearer cvk_…` | [REST API](https://docs.chartvoyant.com/rest-api/), [Practice MCP](https://docs.chartvoyant.com/mcp/), REST C-CDA | 14d (sandbox) · 90d default / 365d max (prod) | Self-serve sandbox modal, or ChartVoyant onboarding | | **Patient MCP key** | `Bearer cvpk_…` or URL segment | [Patient MCP](https://docs.chartvoyant.com/patient-mcp/) only | 30, 90, 180, or 365 days | Created by the patient in Portal → Account → AI assistants or `/mcp-self-register/` | | **HL7 sender key** | `Bearer cvk_…` (ingest-only) | One bound [HL7 v2 interface](https://docs.chartvoyant.com/hl7/) | Per interface term | Issued during HL7 interface setup | | **SMART user/patient token** | Opaque OAuth 2 Bearer | [FHIR R4](https://docs.chartvoyant.com/fhir-r4/), [SMART Write](https://docs.chartvoyant.com/smart-write/) | 3,600s read (300s with write scope); 95d offline refresh | `auth.chartvoyant.com` Authorization Code + PKCE `S256` | | **SMART backend token** | Opaque OAuth 2 Bearer | [FHIR R4](https://docs.chartvoyant.com/fhir-r4/), [Bulk Data](https://docs.chartvoyant.com/bulk-data/), [HL7](https://docs.chartvoyant.com/hl7/) (with `system/hl7v2-ingest`) | 3,600s read (300s write); no refresh token | `client_credentials` + `private_key_jwt` (`RS384` or `ES384`) | ## Practice API keys (`cvk_`) cvkMarker _a1b2c3d4e5f612-hex prefix _Xk9…QzSecret Send the key on every request as `Authorization: Bearer cvk_…` over HTTPS. Every key resolves to a single tenant — there is no header or query parameter that switches practices. Keys carry either `read_only` (safe HTTP methods + read-only MCP tools) or `full` (reads + permitted writes). ## Patient MCP keys (`cvpk_`) cvpkMarker _3e91c0a7d2b412-hex prefix _Xk9…Qz43-char secret Created exclusively by the patient after re-entering their portal password. Accepted only on `POST https://chartvoyant.com/api/v1/portal/mcp` (via `Authorization: Bearer`) or `POST https://chartvoyant.com/api/v1/portal/mcp/{key}` for URL-only connectors. Always read-only and scoped to that single patient's portal-visible chart. ## SMART App Launch OAuth 2 & PKCE Interactive patient, clinician, and EHR launches discover endpoints from `https://fhir.chartvoyant.com/r4/{practice}/.well-known/smart-configuration`. Every authorization code flow requires: - `code_challenge_method=S256` (plain or missing PKCE is rejected) - `aud` matching the exact FHIR base URL from the [Practice Endpoint Directory](https://docs.chartvoyant.com/endpoint-directory/) - Exact registered `redirect_uri` (HTTPS, or `localhost` / `127.0.0.1` loopback for native apps) See [SMART App Launch 2](https://docs.chartvoyant.com/smart-app-launch/) and the [SMART on FHIR-4 developer guide](https://docs.chartvoyant.com/fhir/#launch) for complete browser PKCE code. ## SMART Backend Services (`private_key_jwt`) Headless system integrations authenticate to `POST https://auth.chartvoyant.com/oauth/token` using `grant_type=client_credentials` and `client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer` signed with `RS384` or `ES384` against your registered public JWKS. Assertions expire within 5 minutes and require a unique `jti`. See [SMART Backend Services](https://docs.chartvoyant.com/smart-backend-services/). ## HL7 v2 interface credentials Each [HL7 v2 interface](https://docs.chartvoyant.com/hl7/) accepts only the single credential bound to its `interfaceId`: either a dedicated HL7 sender key (`Bearer cvk_…` with ingest-only permission) or a SMART Backend Services token carrying `scope=system/hl7v2-ingest`. Ordinary REST API keys and sandbox keys are rejected with `401`. ## Credential security rules - **TLS 1.2+ everywhere.** Plain HTTP is never served on any ChartVoyant host. - **Quote prefixes, never secrets.** When contacting support, share only the 12-character key prefix (for example `a1b2c3d4e5f6`) and `correlationId`. - **Keep keys out of client bundles and chat transcripts.** Never ship a `cvk_` key in browser JS, mobile binaries, git repositories, CI logs, or AI chat prompts. - **Immediate rotation & revocation.** Report any suspected leak to [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=URGENT%3A%20possible%20API%20key%20exposure) within 24 hours; revocation takes effect on the next request. --- # From sandbox to production: our onboarding process Canonical URL: https://docs.chartvoyant.com/onboarding/ Production integrations touch real medical records. Every go-live follows a clear sequence with explicit ownership between your engineering team, the sponsoring medical practice, and ChartVoyant. ## Track 1: Production ChartVoyant API key & Practice MCP For practice systems, custom integrations, and AI agents using `https://chartvoyant.com/api/v1` or `/api/v1/mcp`. Production requests are reviewed by a person, usually within **two business days**. | Step | What you do | What the practice / ChartVoyant does | | --- | --- | --- | | **1. Prototype in sandbox** | Request a 14-day synthetic sandbox key and validate every route or MCP tool against synthetic records. | Automated provisioning in ~1 minute under the [Sandbox Terms](https://chartvoyant.com/sandbox-terms/). | | **2. Execute practice BAA** | Sign a Business Associate Agreement directly with the sponsoring practice (and, if using an AI agent, ensure your Model Provider BAA covers MCP/tool traffic with zero training). | The practice (covered entity) executes its BAA with you and approves the integration scope. | | **3. Submit request** | Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=Production%20API%20key%20request) naming the practice, integration purpose, required endpoints, access level (`read_only` or `full`), and technical contact. | ChartVoyant confirms directly with the practice administrator that they requested the connection. | | **4. Sign API Use Agreement** | Complete and sign the [API Use Agreement (v1.2)](https://docs.chartvoyant.com/api-use-agreement/) online at [e-sign.chartvoyant.com/apiuseagreement](https://e-sign.chartvoyant.com/apiuseagreement). | ChartVoyant countersigns, emails you the executed PDF, and attaches it to the key record. | | **5. Credential delivery & go-live** | Store the `cvk_…` key in your secrets manager, send a test `GET /context` call, and verify error handling. | ChartVoyant delivers the key out-of-band to the named technical contact and monitors initial traffic. | ## Track 2: SMART on FHIR apps & Backend Services (no fee) For patient standalone apps, clinician launch apps, and system-to-system Bulk Data / FHIR integrations. **Zero fees and zero revenue share apply.** Complete eligible requests are registered within **five business days**. | Step | What you do | What ChartVoyant / the practice does | | --- | --- | --- | | **1. Read discovery & build** | Inspect [SMART on FHIR-4 guide](https://docs.chartvoyant.com/fhir/), [service-base-urls.json](https://docs.chartvoyant.com/endpoint-directory/), and `.well-known/smart-configuration`. Implement PKCE `S256` or `private_key_jwt` (`RS384`/`ES384`). | Public documentation and discovery require no account, fee, or agreement. | | **2. Request app registration** | Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=SMART%20app%20registration%20request) or use [ChartVoyant Support](https://chartvoyant.com/support/) with app name, contact, client type (`none`, `client_secret_basic`, or `private_key_jwt`), exact redirect URIs, optional EHR launch URL, requested scopes, practice, and public JWKS / HTTPS `jwks_uri`. Send no secrets or PHI. | ChartVoyant applies objective identity and configuration checks equally to every developer and enables complete eligible apps within **5 business days**. (Apps created via dynamic registration at `/oauth/register` start disabled until enabled here.) | | **3. Authorize & connect** | Launch against the practice's discovered authorization/token endpoints and honor the returned scopes and revocation. | For patient apps, the patient consents in the portal. For clinician or Backend Services apps, the clinician or practice administrator authorizes access. | ## Track 3: HL7 v2 interfaces (labs, radiology & hospitals) - **Scope the feed** Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=HL7%20v2%20interface%20request) with the practice, sender, message types (`ORU^R01`, supported `ADT`), HL7 version, `MSH-3`/`MSH-4`, `PID-3` assigning authority, expected volume, and any intermediary HIE or engine. Send no patient data. - **Execute the HL7 Interface Agreement & BAAs** Sign the 12-month [HL7 v2 Interface Agreement](https://e-sign.chartvoyant.com/hl7interfaceagreement) at `e-sign.chartvoyant.com` plus BAAs covering the practice and any intermediary. - **Validate against a sandbox interface (`MSH-11 = T`)** Send synthetic ER7 messages to a dedicated sandbox `interfaceId` until every message type returns `MSA|AA`. - **Turn on the practice interface** Once agreements, independent security testing, and the practice's go-ahead are on file, ChartVoyant activates the production `interfaceId`. See [HL7 v2 Interfaces](https://docs.chartvoyant.com/hl7/). ## Track 4: Outbound FHIR destinations Outbound FHIR write ([ChartVoyant as a FHIR R4 client](https://docs.chartvoyant.com/fhir-outbound/)) runs in **synthetic mode** in production today against ChartVoyant test servers. Real-data sending per destination will open in a later release after an executed destination agreement, public JWKS registration, and independent security testing. ## PHI, BAAs & practice audit visibility ### Every production read and write is visible to the practice The medical practice is the HIPAA covered entity; ChartVoyant and your production integration act as business associates (except where a patient directs their own access via SMART standalone or Patient MCP). Every API key call, MCP tool call, SMART read/write, and HL7 delivery is recorded in the practice's append-only, hash-chained audit trail with correlation IDs. --- # Rate limits & error codes Canonical URL: https://docs.chartvoyant.com/rate-limits-and-errors/ Every ChartVoyant surface enforces two simultaneous token-bucket windows — a per-second burst and a sustained window — and returns structured, PHI-free error payloads with a correlation ID. ## Rate limit budgets across all surfaces | Surface & Scope | Burst | Sustained / Cap | When Exceeded | | --- | --- | --- | --- | | **REST API & Practice MCP** — per `cvk_` key | 150 req / sec | 3,600 req / min | HTTP `429` + `Retry-After` | | **REST API & Practice MCP** — per practice total | 400 req / sec | 12,000 req / min | HTTP `429` + `Retry-After` | | **Self-serve sandbox key** — per key | 38 req / sec | 900 req / min · 5,000 req / day | HTTP `429` + `Retry-After` | | **FHIR R4** — per SMART token | 300 req / sec | 9,000 req / min | HTTP `429` + `Retry-After` | | **FHIR R4** — per practice total | 600 req / sec | 18,000 req / min | HTTP `429` + `Retry-After` | | **SMART Write** — per app per practice | — | 30 writes / min (500 / day full-access) | HTTP `429` + `Retry-After: 60` | | **Patient MCP** — per `cvpk_` key | 20 req / sec | 300 req / min · 5,000 req / hr | HTTP `429` + `Retry-After` | | **HL7 v2 Interface** — per `interfaceId` | 20 msg / sec | 600 msg / min (max 2 MiB/msg) | HTTP `200` with generic `MSA\|AE` (ERR `207`) | | **Public Practice Status** — per caller IP | 5 req / sec | 20 req / min | HTTP `429` | **Need a higher limit or a migration window?** Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=Rate%20limit%20increase%20request) with your key prefix or app ID, traffic pattern, and peak rate. Higher limits carry no fee. ## Handling 429 & exponential backoff Always inspect `Retry-After` (integer seconds) on `429` responses and add small random jitter before retrying. For `5xx` transient errors, retry idempotent reads with exponential backoff and log the `correlationId`. ## Error payload formats ### ChartVoyant REST API (`application/json`) ``` { "error": { "code": "forbidden", "message": "This API key is read-only; POST is not permitted", "correlationId": "01J8ZCSYNTHETIC0001" } } ``` ### FHIR R4 & SMART Write (`application/fhir+json`) ``` { "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "forbidden", "diagnostics": "Requested resource is outside the granted SMART scope." } ] } ``` ## Searchable API error codes ChartVoyant uses stable string identifiers in `error.code` rather than opaque numeric codes. When escalating to support, share the `code` and `correlationId` — never patient data. | Code | HTTP | Meaning | Recommended Client Action | | --- | --- | --- | --- | | `bad_request` | 400 | Malformed JSON, invalid UUID/date format (use `YYYY-MM-DD`), missing required field, or out-of-order workflow step. | Inspect `error.message`, fix request payload, and do not retry unchanged. | | `validation_failed` | 400 | Domain validation failed (field-level constraints, incomplete attestation, invalid NPI/code). | Inspect `error.fields` or `error.details` and fix the invalid fields. | | `unauthorized` | 401 | Missing, unknown, expired, or revoked credential, or wrong secret. Details are intentionally uniform. | Verify `Authorization: Bearer` header, check key expiry, or re-run OAuth authorization. | | `forbidden` | 403 | Valid credential, but action is not permitted (`read_only` key attempting write, out-of-scope route, or suspended office). | Request appropriate scope/access level or use an allowed route; do not retry blindly. | | `ai_addon_disabled` | 403 | The optional AI assistant add-on is not enabled for the office. | Practice administrator must enable the add-on first. | | `module_disabled` | 403 | An optional office module (such as GLP-1) is not enabled for this tenant. | Practice administrator can enable the module under Admin → Modules. | | `not_found` | 404 | Record does not exist in the key's bound practice (records at another practice also return `404`, never `403`). | Verify the UUID belongs to the authenticated tenant. | | `method_not_allowed` | 405 | HTTP method not supported on this route (for example `GET` or `DELETE` on `/api/v1/mcp`). | Use the documented HTTP verb. | | `conflict` | 409 | Concurrent version modification, duplicate unique identifier, or an asynchronous export/job already running. | Re-read current resource state before retrying; never blindly re-POST non-idempotent writes. | | `rate_limited` | 429 | Per-second burst, per-minute sustained, or daily cap exceeded. | Sleep for `Retry-After` seconds plus jitter, and reduce concurrency. | | `internal` | 500 | Unexpected server error (generic message to prevent PHI leakage). | Retry idempotent requests with backoff; report persistent failures with `correlationId`. | | `service_unavailable` | 503 | Upstream dependency or kill-switch (such as paused sandbox issuance) is unavailable. | Honor `Retry-After` if present or check [status.chartvoyant.com](https://status.chartvoyant.com/). | --- # REST API Canonical URL: https://docs.chartvoyant.com/rest-api/ Endpoint: `Base URL https://chartvoyant.com/api/v1` A tenant-scoped JSON API over the same contract layer the ChartVoyant application runs on. Your system authenticates with an API key, and every key is bound to exactly one practice. ## At a glance | Status | Live in the sandbox and in production. | | --- | --- | | Base URL | `https://chartvoyant.com/api/v1` for sandbox and production keys alike. A sandbox key reaches only its synthetic sandbox office; a production key reaches only its bound practice. | | Authentication | `Authorization: Bearer cvk_…`, an API key issued by ChartVoyant. No OAuth flow and no browser session. | | Scope | One practice per key, at one of two access levels: `read_only` or `full` (read and write). | | Format | JSON over HTTPS. Request bodies up to 1 MB. | | OpenAPI | OpenAPI 3.1 served at [https://chartvoyant.com/api/openapi.json](https://chartvoyant.com/api/openapi.json) and documented interactively on [OpenAPI 3.1 Contract](https://docs.chartvoyant.com/openapi/). | | Terms | Sandbox: [Sandbox Terms](https://chartvoyant.com/sandbox-terms/). Production: signed [API Use Agreement](https://docs.chartvoyant.com/api-use-agreement/) and [usage policy](https://docs.chartvoyant.com/usage-policy/). | ## How an API key works cvkMarker _a1b2c3d4e5f6Public prefix _Xk9…QzSecret A synthetic example of the key format. The prefix identifies which key you hold; the secret proves you hold it. - **One key, one practice.** The key is the tenant. There is no cross-office key and no header that reaches a different practice's data. - **The prefix is public; the secret is not.** Quote the prefix in a support email so we can locate your key. Never send the full token to anyone, including us. - **Two access levels.** `read_only` permits safe methods only; a `POST`, `PUT`, `PATCH` or `DELETE` is refused with a `403` that says so. `full` permits reads and writes. The one place a read-only key may `POST` is the [Practice MCP endpoint](https://docs.chartvoyant.com/mcp/), where it can call read tools only. - **Keys expire.** Every production key is issued with an expiry — 90 days by default and never more than 365 days (14 days for self-serve sandbox keys). Plan to rotate before it lapses. - **Scoped routes only.** Each key carries scopes, and every endpoint requires a matching scope. Unlisted routes are refused regardless of access level. - **Immediate revocation.** A revoked key stops authenticating on the very next request. - **Every request is logged to the key.** Method, route, status, source IP, correlation ID, and duration — including refusals. Query strings, request bodies, and response payloads stay out of that trail; PHI access is recorded in the practice's own tamper-evident audit log. ## Quickstart & headers Request (sandbox synthetic patients) ``` # Sandbox: synthetic patients only curl "https://chartvoyant.com/api/v1/patients?limit=5" \ -H "Authorization: Bearer $CHARTVOYANT_API_KEY" \ -H "X-Purpose: operations" ``` Response (synthetic) ``` { "data": [ { "id": "0f2c…", "mrn": "MRN-100482", "name": { "family": "Example", "given": ["Sample"] }, "birthDate": "1974-03-11" } ], "page": { "limit": 5, "offset": 0, "hasMore": true } } ``` | Header | Required | Purpose | | --- | --- | --- | | `Authorization` | Yes | `Bearer cvk_…`, your full key, on every request. | | `X-Purpose` | No | Purpose of use recorded on the practice's audit event for the request. Defaults to `operations`. | | `Content-Type` | On writes | `application/json`. | ## Common routes Paths below are relative to `https://chartvoyant.com/api/v1`. See [OpenAPI 3.1 Contract](https://docs.chartvoyant.com/openapi/) for request bodies and schemas. | Route | Description | | --- | --- | | `GET /context` | The practice and principal the key resolves to. | | `GET /practitioners` | The practice's providers. `GET /practitioners/{id}` reads one. | | `GET /locations/{id}/providers` | Providers who work at one clinic site. | | `GET /patients` | Patient search by `mrn`, `q`, or `dob` (ISO date prefix), paged with `limit` (up to 100) and `offset`. | | `GET /patients/{id}` | Read one patient record. | | `POST /patients` | Create a patient (requires `full` access key). | | `POST /encounters` | Start an encounter and publish `visit.encounter.started` (requires `full` access key). | | `POST /documents` | Register document upload metadata (requires `full` access key). | | `GET /patients/{id}/ccda` | Generate the patient's current CCD as XML (beta). See [C-CDA documents](https://docs.chartvoyant.com/c-cda/). | | `POST /mcp` | The [Practice MCP server](https://docs.chartvoyant.com/mcp/). | ### Server-side only A ChartVoyant key belongs on infrastructure you control. Never ship one in browser JavaScript, a mobile app, a desktop client, or any artifact an end user can inspect. ## Limits and errors | Scope | Burst | Sustained | | --- | --- | --- | | Per production key | 150 requests / second | 3,600 requests / minute | | Per practice (all keys and staff sessions combined) | 400 requests / second | 12,000 requests / minute | | Per self-serve sandbox key | 38 requests / second | 900 requests / minute (5,000 / day) | Over budget returns `429` with `Retry-After`. Every error uses the standard envelope: ``` { "error": { "code": "forbidden", "message": "This API key is read-only; POST is not permitted", "correlationId": "01J8ZC…" } } ``` See [Rate Limits & Error Codes](https://docs.chartvoyant.com/rate-limits-and-errors/) for every status code and error string. ## What a key can never reach These refusals are structural — no access level unlocks them: Sign-in and password routes Creating or changing staff logins The role and permission map The patient portal Demo session control Tenant migration tooling ChartVoyant's own operations tools Issuing or revoking API keys Minting other credentials (portal invites, upload or kiosk tokens, SMART clients) ## How to get access - **Start in the sandbox** Request a sandbox key from the self-serve form. It is issued on the spot, shown once, lasts 14 days, and reaches synthetic patients only under the [ChartVoyant Sandbox Terms](https://chartvoyant.com/sandbox-terms/). - **Move to production with a sponsoring practice** Follow the [production onboarding guide](https://docs.chartvoyant.com/onboarding/): sponsoring practice confirmation, BAA with the practice, and online signing of the [API Use Agreement](https://docs.chartvoyant.com/api-use-agreement/). --- # OpenAPI 3.1 contract reference Canonical URL: https://docs.chartvoyant.com/openapi/ Endpoint: `GET https://chartvoyant.com/api/openapi.json` ChartVoyant serves a live, machine-readable OpenAPI 3.1 document from the API container with no authentication required. Import it into Postman, Bruno, Insomnia, or typed client generators. ## Fetch the live specification ``` curl -sS "https://chartvoyant.com/api/openapi.json" | jq '.info, (.paths | keys)' ``` Note on routing: at the public apex, nginx strips the `/api` prefix before forwarding to the API container, so a path listed in `openapi.json` as `/v1/patients` is called externally at `https://chartvoyant.com/api/v1/patients` (and `/openapi.json` is served at `https://chartvoyant.com/api/openapi.json`). ## Security schemes in `components.securitySchemes` | Scheme Name | Type | Description | | --- | --- | --- | | `platformApiKey` | `http` (`bearer`, format `cvk`) | ChartVoyant practice API key (`cvk_ _ `), bound to one office, `read_only` or `full`. | | `patientMcpKey` | `http` (`bearer`, format `cvpk`) | Patient MCP key (`cvpk_ _ `), read-only, bound to one patient at one practice. | | `bearerAuth` | `http` (`bearer`, format `AIMR-HMAC`) | Signed session token from `/v1/auth/login` (staff and portal web sessions; not for third-party server integrations). | | `devHeaderTenant` / `devHeaderPrincipal` | `apiKey` (header) | Local synthetic development identity headers only (disabled in secure/production mode). | ## Operations in the OpenAPI 3.1 contract | OpenAPI Path | External Production URL | Methods | Summary | | --- | --- | --- | --- | | `/healthz` | `/api/healthz` | `GET` | Liveness probe (unauthenticated). | | `/readyz` | `/api/readyz` | `GET` | Readiness probe verifying database connectivity (unauthenticated). | | `/openapi.json` | `/api/openapi.json` | `GET` | Returns the OpenAPI 3.1 JSON document itself (unauthenticated). | | `/v1/system/status` | `/api/v1/system/status` | `GET` | Public platform component status snapshot (unauthenticated). See [Public Status API](https://docs.chartvoyant.com/status-api/). | | `/v1/system/practice-status` | `/api/v1/system/practice-status` | `GET` | Public PHI-free per-practice health lookup by Practice ID query param `id`. | | `/v1/context` | `/api/v1/context` | `GET` | Resolved tenant and principal context for the caller's credential. | | `/v1/practitioners` | `/api/v1/practitioners` | `GET` | List practitioners in the practice (optional `limit`, `locationId`). | | `/v1/practitioners/{id}` | `/api/v1/practitioners/{id}` | `GET` | Read one practitioner by UUID. | | `/v1/locations/{id}/providers` | `/api/v1/locations/{id}/providers` | `PUT` | Set which providers work at a clinic site (administrator only). | | `/v1/patients` | `/api/v1/patients` | `GET`, `POST` | Search patients (`mrn`, `q`, `limit`) or create a patient (`PatientCreate`). | | `/v1/patients/{id}` | `/api/v1/patients/{id}` | `GET` | Read one patient by UUID. | | `/v1/encounters` | `/api/v1/encounters` | `POST` | Create an encounter (`EncounterCreate`; publishes `visit.encounter.started`). | | `/v1/documents` | `/api/v1/documents` | `POST` | Register document upload metadata (`DocumentRegister`). | | `/v1/inbound-documents/awaiting-confirmation` | `/api/v1/inbound-documents/awaiting-confirmation` | `GET` | List inbound faxes/referrals awaiting patient confirmation. | | `/v1/inbound-documents/{id}/confirm` | `/api/v1/inbound-documents/{id}/confirm` | `POST` | Record patient confirmation or field corrections on an extracted document. | | `/v1/mcp` | `/api/v1/mcp` | `POST` | Stateless Streamable HTTP JSON-RPC 2.0 Practice MCP server. See [Practice MCP](https://docs.chartvoyant.com/mcp/). | | `/v1/portal/mcp` | `/api/v1/portal/mcp` | `POST` | Stateless Streamable HTTP JSON-RPC 2.0 Patient MCP server. See [Patient MCP](https://docs.chartvoyant.com/patient-mcp/). | | `/v1/portal/mcp/{key}` | `/api/v1/portal/mcp/{key}` | `POST` | Patient MCP server with `cvpk_…` key in the final URL path segment. | | `/v1/portal/mcp-keys` | `/api/v1/portal/mcp-keys` | `GET`, `POST` | List or create a signed-in patient's MCP keys (portal session + password). | | `/v1/portal/mcp-keys/{id}/revoke` | `/api/v1/portal/mcp-keys/{id}/revoke` | `POST` | Immediately revoke one of the signed-in patient's MCP keys. | ## Core component schemas | Schema | Required Fields | Properties | | --- | --- | --- | | `ErrorEnvelope` | `error.code`, `error.message`, `error.correlationId` | `details` (optional structured validation or context details) | | `HumanName` | — | `family` (string), `given` (string[]) | | `Patient` | — | `id` (uuid), `mrn`, `name` (`HumanName`), `birth_date` (date), `language`, `version` (integer) | | `PatientCreate` | `mrn`, `name` | `mrn`, `name` (`HumanName`), `birthDate` (date), `language` | | `EncounterCreate` | `patientId`, `encounterType` | `patientId` (uuid), `practitionerId` (uuid), `encounterType`, `status`, `startsAt` (date-time) | | `DocumentRegister` | `docType` | `patientId` (uuid), `encounterId` (uuid), `docType`, `description` | The OpenAPI document covers the core contract routes and does not yet enumerate every route in the application; email [info@chartvoyant.com](mailto:info@chartvoyant.com) if your integration needs additional endpoints. --- # Practice MCP server Canonical URL: https://docs.chartvoyant.com/mcp/ Endpoint: `POST https://chartvoyant.com/api/v1/mcp` A stateless Streamable HTTP Model Context Protocol server, live since October 7, 2026. Point Claude Code or any MCP client that sends an Authorization header at it with your API key to look up patients, read charts, and work the schedule and inbox on the practice's audit trail. ## At a glance | Status | Live in the sandbox and in production since October 7, 2026. | | --- | --- | | Endpoint | `https://chartvoyant.com/api/v1/mcp` for sandbox and production keys alike. A sandbox key reaches only its synthetic sandbox office. | | Authentication | ChartVoyant API key: `Authorization: Bearer cvk_…`. A staff session or SMART token is not an MCP credential. OAuth sign-in for MCP is not available yet. | | For patients | Patients connecting their own AI assistant to their own record use the [Patient MCP server](https://docs.chartvoyant.com/patient-mcp/) with a read-only `cvpk_…` key. | | Transport | Streamable HTTP, stateless. One JSON-RPC 2.0 message per `POST`, answered with one JSON response. `GET` and `DELETE` return `405` (no standalone SSE stream and no sessions). | | Protocol versions | MCP `2026-07-28`, plus `2025-11-25`, `2025-06-18`, and `2025-03-26` for clients opening with `initialize`. | | Limits | Request bodies up to 256 KB. Standard [REST API rate limits](https://docs.chartvoyant.com/rate-limits-and-errors/) apply. | | Audit | Each tool call writes an event to the practice's audit log under your key, and the key's activity trail names the method and tool. Arguments and results stay out of both logs. | ## Connect a client Claude Code CLI ``` claude mcp add --transport http chartvoyant https://chartvoyant.com/api/v1/mcp \ --header "Authorization: Bearer $CHARTVOYANT_API_KEY" ``` Project or user config (`.mcp.json`) ``` { "mcpServers": { "chartvoyant": { "type": "http", "url": "https://chartvoyant.com/api/v1/mcp", "headers": { "Authorization": "Bearer ${CHARTVOYANT_API_KEY}" } } } } ``` Direct HTTP JSON-RPC ``` # List the tools this key can call curl https://chartvoyant.com/api/v1/mcp \ -H "Authorization: Bearer $CHARTVOYANT_API_KEY" \ -H "Content-Type: application/json" \ -H "MCP-Protocol-Version: 2025-11-25" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' ``` ## Tools by key access level The key's access level decides which tools are exposed. A `read_only` key attempting a write tool receives an explicit refusal. | Access Level | Tools | | --- | --- | | **Every key (28 read tools)** | `get_practice_context``search_patients``get_patient_overview``get_patient_chart``get_observations``list_patient_notes``read_note``get_procedure_plan``get_patient_action_note``get_schedule``find_free_slots``list_waitlist``list_cases``get_case``get_fax_inbox``list_patient_orders``list_outbound_faxes``search_facilities``get_patient_billing``get_patient_billing_detail``list_claims``get_claim``get_claim_ledger``get_billing_worklist``list_prior_auths``get_prior_auth``list_directory``search_terminology` Practice context and today's date, patients and chart summaries, notes, vitals and labs, procedure plans, schedule and open slots, waitlist, inbox tasks and fax inbox, orders and outbound faxes, billing, claims, claim ledgers and prior authorizations, staff directory, and ICD-10-CM / HCPCS / RxNorm terminology lookups. | | **Full-access keys add (8 write tools)** | `book_appointment``reschedule_appointment``cancel_appointment``add_to_waitlist``create_patient_case``update_case``link_case_to_patient``log_action_note` Scheduling and operational inbox work. Booking checks double-booking, closures, and practice booking rules first, returning a conflict instead of booking over an existing slot. | | **Never exposed over MCP** | Chart entries, clinical notes, signatures, prescriptions and orders; outbound faxes and patient messages; eligibility and claim-status checks; claims, payments, and statements. A human performs clinical and financial actions inside ChartVoyant — keeping clinical decisions with a clinician (Non-Device CDS). | **Times are practice-local.** Always instruct your agent to call `get_practice_context` first. A timestamp such as `2026-10-08T09:00:00.000Z` means 9:00 AM wall-clock time at the practice; the trailing `Z` does not mean UTC. Monetary values are returned in integer cents. ## Before you connect a production key ### Mandatory HIPAA & contract gates for production AI agents **The model sees PHI.** MCP hands chart data directly to the AI model behind your client. Before using a production key, you must hold an executed Business Associate Agreement with the model provider that expressly covers the exact product, plan, and MCP/connector/tool-use traffic you run, with zero training on the data, plus the practice's written approval. Consumer chat accounts never qualify. **Version 1.2 of the API Use Agreement is required.** Sign it at [e-sign.chartvoyant.com/apiuseagreement](https://e-sign.chartvoyant.com/apiuseagreement) (full text at [API Use Agreement](https://docs.chartvoyant.com/api-use-agreement/)), naming the agent and model provider. One key per person or unattended agent, stored in an OS credential store or env var on a managed, encrypted workstation — never committed or pasted into chat. ## How to get access - **Prototype on synthetic data** Request a self-serve sandbox key and test your agent safely against your isolated synthetic office. - **Complete production onboarding** Follow [Track 1 in Production Onboarding](https://docs.chartvoyant.com/onboarding/#api-key-process) with your sponsoring practice, BAA, and signed API Use Agreement. --- # Patient MCP server Canonical URL: https://docs.chartvoyant.com/patient-mcp/ Endpoint: `POST https://chartvoyant.com/api/v1/portal/mcp` A Model Context Protocol server for patients, live since November 5, 2026. A patient creates a read-only key from their portal account and connects Claude, ChatGPT, Cursor, VS Code, or any MCP client to their own record at one practice. ## At a glance | Status | Live in production since November 5, 2026. | | --- | --- | | Endpoint | `https://chartvoyant.com/api/v1/portal/mcp` with `Authorization: Bearer cvpk_…`, or `https://chartvoyant.com/api/v1/portal/mcp/ ` for connectors that accept only a URL (such as custom connectors in Claude and ChatGPT). | | Who it's for | A patient's own AI assistant. A key reads one patient's record at one practice, and no tool accepts a patient ID argument: **the key is the patient**. Practice staff agents use the [Practice MCP server](https://docs.chartvoyant.com/mcp/) instead. | | Authentication | A patient MCP key (`cvpk_…`) created by the patient. Portal sessions, practice API keys (`cvk_…`), and SMART tokens are refused with `401`. | | Access | Strictly read-only. Ten tools, each annotated `readOnlyHint: true`. None books, messages, pays, or modifies anything. | | Transport & protocol | Stateless Streamable HTTP JSON-RPC 2.0 (`POST` only; `GET`/`DELETE` return `405`). Supports MCP `2026-07-28`, `2025-11-25`, `2025-06-18`, and `2025-03-26`. | | Limits | Request bodies up to 256 KB. Per key: 20 req/sec, 300 req/min, and 5,000 req/hr, then `429` with `Retry-After`. Tool outputs cap at 60,000 characters. | | Audit | Every tool call writes a `portal.mcp.tool.read` event to the practice's audit log naming the patient, key prefix, tool, argument names, and client name. Argument values, results, and the secret key are never logged. | ## How patient keys work cvpkMarker _3e91c0a7d2b4Public prefix _Xk9…QzSecret, 43 chars - **Created only by the patient.** In the portal under Account → AI assistants, or at [chartvoyant.com/mcp-self-register](https://chartvoyant.com/mcp-self-register/). The patient re-enters their portal password and acknowledges the HIPAA warning before the key is minted. - **One patient, one practice.** A patient seen at two ChartVoyant practices creates a separate key at each practice. - **Shown once, hashed at rest.** Only a SHA-256 hash is stored; later views show only the prefix, label, last-used timestamp/app, and last four characters. - **Expiring & immediately revocable.** Lifetimes of 30, 90 (default), 180, or 365 days; up to 10 active keys per patient. Revoking in the portal or disabling the portal account invalidates the key on the next request. - **Treat connector URLs like passwords.** Quiet nginx logging strips the URL key segment from access logs, but anyone holding the URL can read the patient's portal record. ## Connect a client Patients receive pre-filled instructions when they create a key at [chartvoyant.com/mcp-self-register](https://chartvoyant.com/mcp-self-register/). Replace ` ` below with a `cvpk_…` token: Claude (web, desktop, mobile) — Custom Connector ``` # Customize → Connectors → Add custom connector Name: ChartVoyant URL: https://chartvoyant.com/api/v1/portal/mcp/ Sign-in: none (the key is in the URL) ``` ChatGPT (Developer mode connector) ``` URL: https://chartvoyant.com/api/v1/portal/mcp/ ``` Claude Code / Cursor / VS Code / Gemini CLI / HTTP Claude CodeCursor / MCP JSONcURL Copy ``` claude mcp add --transport http chartvoyant-health https://chartvoyant.com/api/v1/portal/mcp \ --header "Authorization: Bearer $CHARTVOYANT_PATIENT_KEY" ``` ``` { "mcpServers": { "chartvoyant-health": { "url": "https://chartvoyant.com/api/v1/portal/mcp", "headers": { "Authorization": "Bearer " } } } } ``` ``` curl https://chartvoyant.com/api/v1/portal/mcp \ -H "Authorization: Bearer $CHARTVOYANT_PATIENT_KEY" \ -H "Content-Type: application/json" \ -H "MCP-Protocol-Version: 2025-11-25" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_overview","arguments":{}}}' ``` VS Code's user `mcp.json` nests servers under `"servers"` with `"type": "http"`; Gemini CLI's `~/.gemini/settings.json` uses `"httpUrl"`; stdio-only clients can bridge via `npx -y mcp-remote https://chartvoyant.com/api/v1/portal/mcp --header "Authorization: Bearer "`. ## Ten read-only tools | Tool | Arguments | Returns | | --- | --- | --- | | `get_overview` | None | Start here: patient identity, practice locations/phones and today's practice-local date, next appointment, counts of results and visit summaries, open messages, and current balance. | | `list_appointments` | `when` (`upcoming`, `past`, `all`), `limit` (1–50, default 10) | Date/time, visit type, provider, location, status, reason, and whether the visit summary is signed. | | `list_test_results` | `search` (≤80 chars), `since` (`YYYY-MM-DD`), `limit` (1–50, default 20) | Portal-released final results, newest first, with abnormal flags, conclusion, care-team note, and `result_id`. | | `get_test_result` | `result_id` | Every component value, unit, reference range, abnormal flag, lab comment, conclusion, and care-team message. | | `list_visit_summaries` | `limit` (1–20, default 10) | Signed visit notes, newest first, with plan preview, after-visit summary flag, and `visit_summary_id`. | | `get_visit_summary` | `visit_summary_id` | Signed note text (first 24,000 chars), patient after-visit summary, and any addenda. | | `get_health_summary` | None | Active problem list, active medications with instructions, and active allergies with reactions. | | `get_billing_summary` | None | Amount owed (formatted USD + `amount_you_owe_cents`), pending insurance amounts, visit charges, open balances, and recent payments. | | `list_messages` | `limit` (1–50, default 20) | Portal messages, appointment requests, and refill requests sent by the patient, with status and `message_id`. | | `get_message` | `message_id` | Full chronological thread of patient messages and practice replies. | ## What a tool returns - **Strictly portal-equivalent visibility.** Unreleased results, unsigned draft notes, and inactive chart items never appear. - **Dual-format output.** `content[0]` is a one-line summary, `content[1]` is JSON text, and `structuredContent` carries the parsed object (omitted if truncated at 60,000 characters). - **Practice-local wall-clock times.** Appointment `starts` values use wall-clock strings like `2026-11-12T09:30` alongside human-readable labels. - **Prompt-injection defense instructions.** Server instructions tell the model to treat chart text strictly as data, explain in plain language without diagnosing, and direct urgent concerns to the practice or 911 / 988. ## Privacy and audit **Patient-directed sharing.** Nothing leaves ChartVoyant until the patient creates a key and hands it to their chosen AI app. Once shared with a consumer AI app, HIPAA's privacy rules generally do not govern that third-party vendor — the patient sees and confirms this disclosure before minting a key. ## Errors | Status | Meaning | | --- | --- | | `401` | Missing, non-patient, unknown, expired, or revoked key. Includes `WWW-Authenticate: Bearer realm="ChartVoyant patient MCP", error="invalid_token"`. | | `400` | Malformed JSON-RPC message, header mismatch (`-32020`), or unsupported protocol version (`-32022`). | | `403` | Disallowed browser `Origin` header. | | `404` | Unknown JSON-RPC method on a `2026-07-28` request (`-32601`). | | `405` | `GET` or `DELETE` (stateless POST-only server). | | `429` | Per-key rate limit exceeded; honor `Retry-After`. | | Tool error | Invalid tool arguments or unknown record IDs return a normal JSON-RPC result with `isError: true`. | ## Building multi-patient apps Never ask patients to email or paste `cvpk_…` keys into a hosted web service you operate. If you are building an application serving multiple patients, register a [SMART on FHIR](https://docs.chartvoyant.com/smart-app-launch/) app instead so patients authorize via OAuth 2 + PKCE without handling raw secrets. To request a synthetic patient portal account for MCP client testing, email [info@chartvoyant.com](mailto:info@chartvoyant.com). --- # Public status API Canonical URL: https://docs.chartvoyant.com/status-api/ Endpoint: `GET https://chartvoyant.com/api/v1/system/status` The same unauthenticated, PHI-free JSON endpoints that power status.chartvoyant.com. Check platform-wide component health or look up a single practice by its Practice ID. ## At a glance | Status | Live. | | --- | --- | | Endpoints | `GET https://chartvoyant.com/api/v1/system/status` `GET https://chartvoyant.com/api/v1/system/practice-status?id={practice-id}` | | Authentication | None. | | Data | PHI-free. Practice lookup returns only login slug, practice name, and availability state. | | Caching & polling | Responses carry `Cache-Control: no-store`. Poll no more often than once every 30 seconds. | | CORS | Cross-origin browser fetches on the apex are restricted to ChartVoyant's status and docs hosts; call from your backend server. | | Commitment | Informational availability check only — neither an uptime SLA nor an ONC certification claim. | ## Platform status ``` curl "https://chartvoyant.com/api/v1/system/status" { "checkedAt": "2026-10-18T12:00:00.000Z", "overall": "operational", "overallSummary": "All checked systems operational.", "services": [ { "id": "mcp", "name": "MCP server", "href": "https://docs.chartvoyant.com/mcp/", "status": "operational", "summary": "The MCP endpoint (chartvoyant.com/api/v1/mcp) answers and asks for an API key." } ] } ``` | Field | Meaning | | --- | --- | | `overall` | `operational`, `degraded`, or `major_outage`. | | `services[].id` | `academy`, `demo`, `chartvoyant`, `api`, `mcp`, `fhir`, `smart`, `ai`. | | `services[].status` | One of the component states below. | | `services[].overridden` | `true` when ChartVoyant set a manual maintenance/incident override, with `automaticStatus` preserving the live probe verdict. | ## Practice status lookup ``` curl "https://chartvoyant.com/api/v1/system/practice-status?id=example-practice" { "checkedAt": "2026-10-18T12:00:00.000Z", "queried": "example-practice", "found": true, "practiceId": "example-practice", "name": "Example Family Practice", "status": "operational", "summary": "Example Family Practice is operational." } ``` Rate-limited per IP to 5 requests/second and 20 requests/minute. Possible practice statuses: `operational`, `degraded`, `down`, `suspended`, and `unknown` (`found: false`). ## Component states | State | Meaning | | --- | --- | | `operational` | Live probe succeeded. | | `degraded` | Partially working; `summary` explains what failed. | | `down` | Probe failed. | | `disabled` | Intentionally switched off (for example public demo access); not an outage. | | `not_available` | Not checked by this snapshot; never shown as operational and excluded from `overall`. | | `partial_outage`, `major_outage`, `under_maintenance` | Manual incident or maintenance banner set by ChartVoyant. | --- # SMART on FHIR-4 developer guide Canonical URL: https://docs.chartvoyant.com/fhir/ Endpoint: `Base URL https://fhir.chartvoyant.com/r4/{tenantSlug}` Connect a patient's chosen app or a practice's authorized system to ChartVoyant. Documentation v1.2 · Geach Technologies, LLC · Cleveland, Tennessee. ### FHIR and SMART are live; ONC certification is in progress The public FHIR and authorization hosts are available. Access requires an enabled practice, a registered app, and the appropriate patient or practice authorization. An internal security assessment has been completed, with follow-up remediation ongoing; an independent external security review has not been completed. ChartVoyant is not yet CHPL-listed. Use the published practice directory, discovery, and a successful authorized request to confirm access for a practice. **Public ONC Inferno results — November 10, 2026.** We tested our synthetic demo practice on [the public ONC Inferno service](https://inferno.healthit.gov/suites) using the (g)(10) test kit **8.1.0**, with US Core 6.1.0, SMART App Launch 2.0, and Bulk Data 2.0 selected: - [(g)(10) main run](https://inferno.healthit.gov/suites/test_sessions/5kCgaPavohm): **623/641 passed**, 18 not run, zero failures or errors. - [Supplemental patient-portal API revocation checks](https://inferno.healthit.gov/suites/test_sessions/cNbNEWwCGLb): **3/3 passed**. Combined observed (g)(10) coverage is **626/641**, with **15 Visual Inspection and Attestation checks unexecuted**. - [Standalone SMART](https://inferno.healthit.gov/suites/test_sessions/38c19Bk9DpG): **67/67 passed**. - [Standalone US Core](https://inferno.healthit.gov/suites/test_sessions/bgkdbOz0sQN): **611/611 passed**. The deployment stayed unchanged throughout this run. The revocation supplement records API observations; a portal GUI demonstration remains separate. These are pre-certification test results, not ONC certification or a Drummond certification decision. This guide, the [practice directory](https://chartvoyant.com/fhir/service-base-urls.json), and the [complete EHI export format](https://docs.chartvoyant.com/ehi-export/) are public. No account, payment, or agreement is required to read them. How an app sends new information is documented on [SMART write](https://docs.chartvoyant.com/smart-write/): a clinician reviews each submission before it is added to a chart, and writing is turned on per practice and app. Two related interfaces are documented separately: [HL7 v2 interfaces](https://docs.chartvoyant.com/hl7/) for labs, imaging centers, and hospitals, and [FHIR write to other systems](https://docs.chartvoyant.com/fhir-outbound/), where ChartVoyant is the client. None of these is part of the certified read API. ## 1. Find a practice and discover endpoints Fetch the directory and choose the patient's practice by its Organization name. Its Endpoint address is the exact FHIR base and authorization audience. The directory is generated from active customer organizations on every request and may be cached for five minutes. Internal synthetic test offices are excluded from the customer directory. Customer onboarding and name/slug changes appear automatically. HTTP / cURLTypeScript Copy ``` # 1. Fetch the public practice endpoint directory curl -H "Accept: application/fhir+json" \ "https://chartvoyant.com/fhir/service-base-urls.json" # 2. Fetch CapabilityStatement & SMART discovery for the chosen practice curl -H "Accept: application/fhir+json" \ "https://fhir.chartvoyant.com/r4/{tenantSlug}/metadata" curl "https://fhir.chartvoyant.com/r4/{tenantSlug}/.well-known/smart-configuration" curl "https://auth.chartvoyant.com/.well-known/openid-configuration" ``` ``` const dir = await fetch("https://chartvoyant.com/fhir/service-base-urls.json", { headers: { Accept: "application/fhir+json" } }).then((r) => r.json()); // Resolve Organization.endpoint[0].reference against Endpoint entries const endpoints = new Map( dir.entry .filter((e) => e.resource?.resourceType === "Endpoint") .map((e) => [`Endpoint/${e.resource.id}`, e.resource.address]) ); const orgs = dir.entry .filter((e) => e.resource?.resourceType === "Organization") .map((e) => ({ name: e.resource.name, fhirBase: endpoints.get(e.resource.endpoint?.[0]?.reference) })); ``` The directory is a FHIR R4 `collection` Bundle containing `Organization` and `Endpoint` resources. Resolve each `Organization.endpoint` reference against its corresponding `Endpoint` entry. Use the published address unchanged as `aud`. The synthetic demonstration base is separately configured; never infer a customer's practice from a patient identifier. | Operation | Public endpoint | | --- | --- | | Authorize | `https://auth.chartvoyant.com/oauth/authorize` | | Token | `https://auth.chartvoyant.com/oauth/token` | | Introspect | `https://auth.chartvoyant.com/oauth/introspect` | | Revoke | `https://auth.chartvoyant.com/oauth/revoke` | | Public signing keys | `https://auth.chartvoyant.com/oauth/jwks.json` | Read endpoint URLs, capabilities, scopes, and client authentication methods from discovery. Do not treat an ID token as an API access token. Authenticated FHIR responses are not cacheable. Public discovery supports CORS; resources use bearer authorization, not a ChartVoyant login cookie. ## 2. Register an app Use [ChartVoyant Support](https://chartvoyant.com/support/) or [info@chartvoyant.com](mailto:info@chartvoyant.com) with your app name, developer contact, public/native/confidential type, exact redirect URI list, optional EHR launch URL, requested scopes, practice, and public JWKS or HTTPS `jwks_uri` when using asymmetric authentication. Send no patient records, private keys, or client secrets. We record the request, apply the same objective identity and configuration checks to every developer, and register and enable a complete eligible request within **five business days**. We identify missing configuration promptly and provide a dated explanation and support contact for any delay. ChartVoyant administrators manage app registrations, practice access, allowed permissions, and activation. Public/native apps use `none`; confidential apps use `client_secret_basic` or `private_key_jwt`. Backend services require a practice's explicit authorization and public RS384 or ES384 keys. Registration does not grant patient consent. Patient resource checkboxes determine the actual grant. Discovery also lists a dynamic client registration endpoint, `https://auth.chartvoyant.com/oauth/register`. An app registered there is created disabled at every practice and cannot be used at a practice until ChartVoyant enables it there with an explicit list of scopes, so send the registration request above as well. Reserved and lookalike app names are refused, and registrations are rate limited. Redirect URIs must match registration exactly. Native apps may use exact registered HTTP loopback callbacks (`localhost` or `127.0.0.1`) or HTTPS callbacks; custom URI schemes are currently unsupported; use the system browser, PKCE, and secure operating-system token storage. Keep confidential secrets on a server. Public apps must not embed a secret. HTTPS JWKS endpoints must be publicly reachable without redirects and return public keys only. Publish new keys before using their `kid`, retain old keys while assertions can remain valid, and respect key-cache headers. ## 3. Authorization code flows Every code flow requires a cryptographically random `state`, a new verifier of 43–128 permitted characters, and `S256`. Plain or missing PKCE is rejected. When requesting OpenID identity, include a fresh `nonce`. This browser example creates the shared parameters; replace the placeholders with your registered values and discovered endpoints: ``` const base = "https://fhir.chartvoyant.com/r4/your-practice"; const discovery = await fetch(base + "/.well-known/smart-configuration").then(r => r.json()); const b64url = bytes => btoa(String.fromCharCode(...bytes)) .replaceAll("+", "-").replaceAll("/", "_").replace(/=+$/, ""); const random = () => b64url(crypto.getRandomValues(new Uint8Array(32))); const verifier = random(), state = random(), nonce = random(); const challenge = b64url(new Uint8Array(await crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)))); const params = new URLSearchParams({ response_type: "code", client_id: "YOUR_REGISTERED_CLIENT_ID", redirect_uri: "https://your-app.example/callback", aud: base, scope: "launch/patient openid fhirUser offline_access patient/Patient.rs patient/Observation.rs", code_challenge: challenge, code_challenge_method: "S256", state, nonce }); // Keep state, nonce and verifier in this app's protected authorization transaction. location.assign(discovery.authorization_endpoint + "?" + params); ``` ### Patient standalone Use the parameters above. The patient uses the existing portal account sign-in, chooses the office when applicable, and reviews consent. Portal enrollment verifies a code sent to a contact already held by the practice. They can uncheck a resource class or narrow a supported category. The callback receives a short-lived code and state. Verify state before redeeming the code. Use the returned patient context; the app cannot supply a different patient to expand access. ### Clinician standalone Use the same PKCE transaction with the following scope value. The clinician completes staff sign-in and MFA, selects a patient, and consents. The ID token's `fhirUser` identifies the clinician's Practitioner resource. Standalone chart choice remains part of the authorization context. ``` params.set("scope", "launch/patient openid fhirUser offline_access user/Patient.rs user/Observation.rs"); ``` ### EHR launch The clinician opens a chart and selects the registered SMART app tile. ChartVoyant invokes the app's launch URL with `iss` and an opaque `launch`. Treat the launch value as a credential: do not log it. Validate `iss` against a chosen/published practice, fetch that base's discovery, and use a new PKCE transaction with these changes: ``` const incoming = new URL(location.href).searchParams; params.set("aud", incoming.get("iss")); params.set("launch", incoming.get("launch")); params.set("scope", "launch openid fhirUser offline_access user/Patient.rs user/Observation.rs"); // Redirect to this practice's discovered authorization_endpoint. Code exchange is unchanged. ``` The launch is bound to the originating clinician, app, patient, and optional encounter. Its token response includes `patient`, `encounter` when present, `need_patient_banner`, and `smart_style_url`. Honor those values when displaying the chart context. ### Exchange the code and read a resource Codes expire after 120 seconds and can be used once. POST form-encoded data to the discovered token endpoint. For a confidential symmetric client, authenticate with HTTP Basic using its client ID and secret. For a public client, send `client_id` with no secret. Asymmetric clients add a signed client assertion as described below. ``` POST /oauth/token Content-Type: application/x-www-form-urlencoded grant_type=authorization_code&client_id=YOUR_CLIENT_ID&code=RETURNED_CODE&redirect_uri=https%3A%2F%2Fyour-app.example%2Fcallback&code_verifier=YOUR_VERIFIER HTTP/1.1 200 OK Cache-Control: no-store { "access_token": "OPAQUE_ACCESS_TOKEN", "token_type": "Bearer", "expires_in": 3600, "scope": "launch/patient openid fhirUser offline_access patient/Patient.rs", "patient": "RETURNED_PATIENT_ID", "id_token": "SIGNED_ID_TOKEN", "refresh_token": "OPAQUE_REFRESH_TOKEN" } GET /r4/your-practice/Patient/RETURNED_PATIENT_ID Authorization: Bearer OPAQUE_ACCESS_TOKEN Accept: application/fhir+json ``` This example shows the patient declining Observation sharing. Always use the returned scope, not the requested scope. Validate ID-token signature with the discovered JWKS, RS256 algorithm, issuer, client audience, expiry, and nonce. Its `fhirUser` is a Patient or Practitioner URL. Re-fetch public keys on an unfamiliar `kid` and respect `Cache-Control`. Access tokens are opaque, last one hour (five minutes when they carry a write scope), and must only be sent to the intended resource server. ## 4. Backend services After practice-authorized registration, sign a fresh JWT assertion using RS384 or ES384. Its `iss` and `sub` are your client ID, `aud` is the exact token endpoint, `exp` is no more than five minutes ahead, and `jti` is unique per request. Publish the matching `kid` in your registered public JWKS. Replayed assertions and unregistered algorithms/keys are rejected. ``` // JWT header (sign with your private key; never upload the private key) {"alg":"RS384","typ":"JWT","kid":"YOUR_PUBLIC_KEY_ID"} // JWT claims {"iss":"YOUR_CLIENT_ID","sub":"YOUR_CLIENT_ID", "aud":"https://auth.chartvoyant.com/oauth/token", "iat":CURRENT_UNIX_SECONDS,"exp":CURRENT_UNIX_SECONDS_PLUS_300, "jti":"NEW_RANDOM_IDENTIFIER"} POST /oauth/token Content-Type: application/x-www-form-urlencoded grant_type=client_credentials&scope=system%2FPatient.rs%20system%2FObservation.rs&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer&client_assertion=YOUR_SIGNED_JWT ``` The response contains `access_token`, `token_type`, `expires_in`, and the granted `scope`. Backend tokens have no refresh token or user ID token. Obtain a new access token with a fresh assertion. Every backend client is restricted to its enabled practice and allowed scopes. A patient or clinician token cannot start a population export. A backend client can also hold `system/{Type}.c` or `.u` scopes for [SMART write](https://docs.chartvoyant.com/smart-write/), granted per practice, or `system/hl7v2-ingest` to deliver messages to an [HL7 v2 interface](https://docs.chartvoyant.com/hl7/). That scope is not a FHIR permission, is not listed in discovery, and is granted only when the client is registered for it. ## 5. Scope and token lifecycle | Scope | Meaning | | --- | --- | | `patient/Observation.rs` | Read and search Observations within the patient context. | | `user/Observation.rs` | Read and search within the authenticated clinician's permitted context. | | `system/Observation.rs` | Practice-authorized backend access. | | `patient/*.read`, `user/*.read` | SMART v1 read/search forms; consent expands supported resource classes. | | `.r` / `.s` / `.rs` | Instance read / search / both. | | `.c` / `.u` / `.cu` | Create and update for seven types, through [SMART write](https://docs.chartvoyant.com/smart-write/). Granted only when ChartVoyant, the practice, and the app all allow it; discovery lists them when ChartVoyant's submission service is on. | | `.write`, `.*`, `d` | SMART v1 write forms and delete are refused. | | `system/hl7v2-ingest` | Delivers HL7 v2 messages to one interface. Not a FHIR permission. | | `?category=system\|code` | Supported Condition/Observation category constraints restrict returned records. | | `openid fhirUser` | Signed identity claims; these are not resource permissions. | | `offline_access` | Patient-approved access when the app user is away; refresh still ends on revocation or expiry. | | `online_access` | Refresh access bounded by the authorizing login session. | Wildcards cover supported types and remain subject to consent and office policy. Included and reverse-included resources require their own granted scopes. A patient token cannot change patient or practice by altering a URL. Unsupported scopes are rejected or excluded from the grant; inspect the token response. Each offline refresh token is valid for 95 days from issuance, including every replacement issued during rotation. Refreshing does not require a new sign-in or consent; the previous refresh token becomes invalid. Revocation, account changes, and app disablement still end access immediately. Online refresh expires with the authorizing session, even if a refreshed access token requests narrower scopes. Do not use `offline_access` unless ongoing access has been explained to the patient. ``` POST /oauth/token Content-Type: application/x-www-form-urlencoded grant_type=refresh_token&client_id=YOUR_CLIENT_ID&refresh_token=CURRENT_REFRESH_TOKEN POST /oauth/introspect Authorization: Basic BASE64_CLIENT_ID_AND_SECRET Content-Type: application/x-www-form-urlencoded token=ACCESS_TOKEN POST /oauth/revoke Content-Type: application/x-www-form-urlencoded client_id=YOUR_CLIENT_ID&token=CURRENT_REFRESH_TOKEN&token_type_hint=refresh_token ``` Use the registered client authentication method on refresh, introspection, and revocation. Keep only the returned replacement refresh token. An optional refresh scope can narrow access. Patients can revoke a grant in **Portal → Connected apps**. App disablement, user logout/account revocation, and grant revocation invalidate the associated refresh and derived access tokens on subsequent use. A successful revocation response is intentionally not proof that an unknown token existed. ## 6. FHIR R4 and US Core 6.1 Reads and searches are a facade over the practice's current records. Information an app submits is not part of them until a clinician accepts it; see [SMART write](https://docs.chartvoyant.com/smart-write/). Resource `meta.profile` lists the applicable profile; missing data uses profile-permitted absent-data representations. The CapabilityStatement is authoritative for supported interactions, profiles, and combinations. GET searches and POST `/{type}/_search` return `searchset` Bundles. Follow the supplied `link[next]` until absent. Common parameters are `_id` and `_lastUpdated`; date comparisons use FHIR prefixes such as `ge`, `gt`, `le`, and `lt`. ``` GET /r4/your-practice/Observation?patient=PATIENT_ID&category=laboratory&date=ge2026-01-01&_count=50 GET /r4/your-practice/MedicationRequest?patient=PATIENT_ID&intent=order&_include=MedicationRequest:medication GET /r4/your-practice/Condition?patient=PATIENT_ID&_revinclude=Provenance:target GET /r4/your-practice/DocumentReference/$docref?patient=PATIENT_ID GET /r4/your-practice/Patient/PATIENT_ID/$everything ``` | Resource | Additional search parameters | | --- | --- | | `MedicationDispense` | `patient`, `status`, `type`, `whenhandedover` | | `RelatedPerson` | `patient` | | `Specimen` | `patient` | | `QuestionnaireResponse` | `patient`, `status`, `authored`, `questionnaire` | | `Patient` | `identifier`, `name`, `family`, `gender`, `birthdate`, `death-date` | | `PractitionerRole` | `practitioner`, `specialty` | | `Endpoint` | `name`, `status` | | `Practitioner` | `identifier`, `name` | | `Organization` | `name`, `address` | | `Location` | `name`, `address`, `address-city`, `address-state`, `address-postalcode` | | `AllergyIntolerance` | `patient`, `clinical-status`, `code` | | `CarePlan` | `patient`, `category`, `status`, `date` | | `CareTeam` | `patient`, `status`, `role` | | `Condition` | `patient`, `category`, `clinical-status`, `code`, `onset-date`, `recorded-date`, `asserted-date`, `abatement-date`, `encounter` | | `Coverage` | `patient` | | `Device` | `patient`, `type` | | `DiagnosticReport` | `patient`, `category`, `code`, `date`, `status` | | `DocumentReference` | `patient`, `category`, `type`, `date`, `period`, `status` | | `Encounter` | `patient`, `date`, `class`, `type`, `status`, `identifier` | | `Goal` | `description`, `patient`, `lifecycle-status`, `target-date` | | `Immunization` | `patient`, `date`, `status` | | `MedicationRequest` | `patient`, `intent`, `status`, `authoredon`, `encounter` | | `Observation` | `patient`, `category`, `code`, `date`, `status` | | `Procedure` | `patient`, `date`, `code`, `status` | | `Provenance` | `patient` | | `ServiceRequest` | `patient`, `category`, `code`, `status`, `authored` | | `Medication` | `_id` and `_lastUpdated`; included from `MedicationRequest`. | | `Group` | Tenant group discovery and `$export` require backend Group permissions. | Observation profiles cover laboratory, vital signs (including BP components and pediatric measures), smoking, SDOH, clinical tests, surveys, pregnancy, occupation, and screening/assessment. Condition includes problems/health concerns and encounter diagnoses; DiagnosticReport includes laboratory and note profiles. The remaining classes cover medications, allergies, immunizations, procedures, care plans/teams/goals, coverage, devices, documents, encounters, service requests, specimens, questionnaires, related people, directories, and provenance. ## 7. Bulk Data 2.0 Discover the practice's Group using a backend token with `system/Group.rs`. Request only authorized resource types. Kickoff requires these headers; optional `_since` is a FHIR instant and includes resources changed strictly after it. `_outputFormat` supports `application/fhir+ndjson`. A token with `system/*.rs` may request all supported export classes. ``` GET /r4/your-practice/Group/GROUP_ID/$export?_type=Patient,Observation&_since=2026-01-01T00%3A00%3A00Z Authorization: Bearer BACKEND_ACCESS_TOKEN Accept: application/fhir+json Prefer: respond-async HTTP/1.1 202 Accepted Content-Location: STATUS_URL GET STATUS_URL Authorization: Bearer BACKEND_ACCESS_TOKEN HTTP/1.1 202 Accepted X-Progress: Preparing export // When ready: 200 with an example manifest {"transactionTime":"2026-09-13T12:00:00Z","request":"ORIGINAL_REQUEST_URL", "requiresAccessToken":true, "output":[{"type":"Patient","url":"SIGNED_FILE_URL","count":3}],"error":[]} GET SIGNED_FILE_URL Authorization: Bearer BACKEND_ACCESS_TOKEN DELETE STATUS_URL Authorization: Bearer BACKEND_ACCESS_TOKEN ``` Poll according to `Retry-After` when supplied, otherwise back off between polls. Ready files contain one FHIR resource per line. File links expire after 24 hours and still require a current authorized backend token for the original client/practice and sufficient scopes. Keep signatures intact. `DELETE` cancels the job and invalidates subsequent downloads. Check `error` entries and do not treat partial output as a complete export. Complete EHI export additionally includes non-FHIR records and original files; see [its public format](https://docs.chartvoyant.com/ehi-export/). ## 8. Limits and errors Default FHIR budgets are 300 requests/second and 9,000/minute per principal, and 600/second and 18,000/minute per practice; an IP budget also applies. Operators can lower or raise configured limits consistently. A 429 response supplies `Retry-After`. Use pagination and Bulk Data for large authorized reads. Need a higher limit? Request one at [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=FHIR%20rate%20limit%20increase%20request) with your app, the traffic it sends, and the peak rate you need. There is no fee, and a budget we raise is raised for every app alike. Limits are not a fee or a condition of registration. | Status | Client action | | --- | --- | | `400` | Correct unsupported/malformed parameters or an OAuth `invalid_request`/`invalid_grant`. | | `401` | Supply a valid current bearer token; reauthorize if revoked. | | `403` | Access is outside granted scope, patient, practice, or enabled policy. | | `404` | Resource or interaction is unavailable; do not infer another patient's existence. | | `410` | A known deleted resource is no longer available. | | `429` | Wait for `Retry-After` and reduce concurrency. | | `5xx` | Retry transient failures with backoff; contact support with a correlation ID. | FHIR errors use `application/fhir+json` `OperationOutcome`; OAuth endpoints use OAuth JSON error fields. Do not place patient data, codes, tokens, or signed download links in support messages or analytics. Transport requires HTTPS; prepared edge policy requires TLS 1.2 or later. Source code and local tests are not proof of deployed TLS configuration. ## 9. Fees, terms and non-discrimination **No fees** apply to patients, practices, or app developers for this standardized API, registration, testing, production access, calls, Bulk Data, or its documentation. There is no revenue share for this interface. The separate proprietary API's commercial agreement does not apply to SMART/FHIR access. Use an authorized patient or practice grant and keep access within its actual scope. Protect credentials, use HTTPS, describe your app's data handling to the user, honor revocation, and meet laws applicable to your app. These requirements apply equally to all developers. We do not require an app to buy another product, disclose source code, share revenue, or compete on preferred terms to obtain access. We do not withhold access because an app competes with ChartVoyant. Nothing in these terms prohibits communications about usability, interoperability, security, user experiences, or business practices protected under the certification program. Good-faith security reports and interoperability complaints can be sent through [Support](https://chartvoyant.com/support/). We record and investigate access failures, provide an explanation and correction path, and support developers through registration and use. Reading this documentation requires no assent. Any change to access policy will be published here; existing integrations receive reasonable compatibility support. **Standards & contact:** [FHIR R4](https://hl7.org/fhir/R4/) · [US Core 6.1](https://hl7.org/fhir/us/core/STU6.1/) · [SMART App Launch 2.0](https://hl7.org/fhir/smart-app-launch/STU2/) · [Bulk Data 2.0](https://hl7.org/fhir/uv/bulkdata/STU2/export.html) · [ONC API Conditions](https://healthit.gov/certification-health-it/conditions-ccg/application-programming-interfaces/) · [info@chartvoyant.com](mailto:info@chartvoyant.com). --- # FHIR R4 API Canonical URL: https://docs.chartvoyant.com/fhir-r4/ Endpoint: `Base URL https://fhir.chartvoyant.com/r4/{practice}` A standards-based FHIR R4 server for each practice, conforming to US Core 6.1. Apps authorized with SMART on FHIR read and search a patient's record, or a practice's records with a backend token. ## At a glance | Status | Read and search are live in production. Create and update for seven types are deployed and turned on per practice and app; see [SMART write](https://docs.chartvoyant.com/smart-write/). Patch, delete, history, batch, and transaction are not supported. | | --- | --- | | Base URL | `https://fhir.chartvoyant.com/r4/{practice}`, one base per practice. Find each practice's exact base in the [practice endpoint directory](https://docs.chartvoyant.com/endpoint-directory/). | | Standards | FHIR R4 (4.0.1), US Core 6.1.0, SMART App Launch 2, Bulk Data 2.0. | | Authentication | A SMART access token: [patient or clinician apps](https://docs.chartvoyant.com/smart-app-launch/), or [backend services](https://docs.chartvoyant.com/smart-backend-services/). Discovery documents are public. | | Format | `application/fhir+json`. Errors are FHIR `OperationOutcome` resources. | | Cost | No fee to patients, practices, or developers, and no revenue share. | ### Live, with certification in progress The FHIR and authorization hosts are live in production. ONC certification is in progress and ChartVoyant is not yet CHPL-listed. An internal security assessment has been completed with follow-up remediation ongoing; an independent external security review has not been completed. Access requires an enabled practice, a registered app, and the right patient or practice authorization. See the [November 10, 2026 ONC Inferno results](https://docs.chartvoyant.com/fhir/#inferno-results) (626/641 observed coverage, 0 failures) — pre-certification results, not certification. ## Endpoints Relative to a practice's FHIR base: | Path | What it does | Auth | | --- | --- | --- | | `GET /metadata` | The CapabilityStatement: supported resources, interactions, search parameters, and profiles. Authoritative. | None | | `GET /.well-known/smart-configuration` | SMART discovery: authorization endpoints, scopes, and capabilities. | None | | `GET /{Type}?…` | Search a supported type. Returns a `searchset` Bundle; follow `link[next]` until absent. | Token | | `POST /{Type}/_search` | The same search with parameters form-encoded in the body. | Token | | `GET /{Type}/{id}` | Read one resource. | Token | | `GET /Patient/{id}/$everything` | A Bundle of the patient's core resources. Requires a complete-chart grant. | Token | | `GET /DocumentReference/$docref` | US Core document operation: existing documents, or the current on-demand CCD (LOINC 34133-9, [beta](https://docs.chartvoyant.com/c-cda/)). | Token | | `GET /DocumentReference/{id}/$attachment` | The original bytes of a stored document, under that document's grant. | Token | | `GET /Group`, `/Group/{id}/$export` | Bulk export of the practice's population. See [Bulk Data](https://docs.chartvoyant.com/bulk-data/). | Backend token | | `POST /{Type}`, `PUT /{Type}/{id}` | Submit or update information for a clinician to review, for seven types, where the practice and app allow it. See [SMART write](https://docs.chartvoyant.com/smart-write/). | Write token | ## Supported resources and operations Every type below supports **read** and **search-type**, each with its US Core 6.1 profile declared in the CapabilityStatement. Searches require a patient context: a patient token supplies it, and a clinician or backend token names the patient with `patient` (or `_id` for Patient). `AllergyIntolerance``CarePlan``CareTeam``Condition``Coverage``Device``DiagnosticReport``DocumentReference``Encounter``Endpoint``Goal``Immunization``Location``Medication``MedicationDispense``MedicationRequest``Observation``Organization``Patient``Practitioner``PractitionerRole``Procedure``Provenance``QuestionnaireResponse``RelatedPerson``ServiceRequest``Specimen` - **Common search parameters.** `_id` and `_lastUpdated`, plus type-specific parameters such as `category`, `code`, `date`, and `status`. Dates take FHIR prefixes such as `ge`, `gt`, `le`, and `lt`. The [SMART on FHIR-4 developer guide](https://docs.chartvoyant.com/fhir/#resources) lists every parameter. - **Includes.** `_include=MedicationRequest:medication`, and `_revinclude=Provenance:target` on every type except Provenance. Included resources need their own granted scope. - **Finer-grained scopes are enforced.** A grant such as `patient/Observation.rs?category=…|laboratory` returns the labs and not the vitals, on search and on read. - **Group** is available to backend tokens only, for [Bulk Data](https://docs.chartvoyant.com/bulk-data/). - **Not supported:** patch, delete, batch and transaction, `_history`, subscriptions, and document profile filters on `$docref`. Create and update are on [SMART write](https://docs.chartvoyant.com/smart-write/). ## Example cURLTypeScript Copy ``` # 1. Discovery (no token) curl -H "Accept: application/fhir+json" \ "https://fhir.chartvoyant.com/r4/your-practice/metadata" # 2. Search laboratory Observations curl -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Accept: application/fhir+json" \ "https://fhir.chartvoyant.com/r4/your-practice/Observation?patient=PATIENT_ID&category=laboratory&date=ge2026-01-01&_count=50" ``` ``` const res = await fetch( "https://fhir.chartvoyant.com/r4/your-practice/Observation?patient=PATIENT_ID&category=laboratory&date=ge2026-01-01&_count=50", { headers: { Authorization: `Bearer ${accessToken}`, Accept: "application/fhir+json" } } ); const bundle = await res.json(); ``` Response (abridged, synthetic) ``` { "resourceType": "Bundle", "type": "searchset", "total": 1, "entry": [{ "resource": { "resourceType": "Observation", "id": "EXAMPLE_ID", "meta": { "profile": ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab"] }, "status": "final", "category": [{ "coding": [{ "system": "http://terminology.hl7.org/CodeSystem/observation-category", "code": "laboratory" }] }], "code": { "coding": [{ "system": "http://loinc.org", "code": "2345-7", "display": "Glucose" }] }, "subject": { "reference": "Patient/PATIENT_ID" }, "valueQuantity": { "value": 95, "unit": "mg/dL" } }, "search": { "mode": "match" } }] } ``` ## Limits and errors | Scope | Burst | Sustained | | --- | --- | --- | | Per principal (token) | 300 requests / second | 9,000 requests / minute | | Per practice | 600 requests / second | 18,000 requests / minute | An IP budget also applies. When writing is turned on, each app may make 30 writes a minute at each practice. A `429` carries `Retry-After`. Use paging and [Bulk Data](https://docs.chartvoyant.com/bulk-data/) for large authorized reads. Higher limits are free on request at [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=FHIR%20rate%20limit%20request). ## How to get access - **Read the guide** The [SMART on FHIR-4 developer guide](https://docs.chartvoyant.com/fhir/) and the public [practice directory](https://chartvoyant.com/fhir/service-base-urls.json) need no account, payment, or agreement. - **Request registration** Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=SMART%20app%20registration%20request) or use [Support](https://chartvoyant.com/support/) with your app details. Send no patient records, private keys, or client secrets. - **We register and enable it** We apply the same identity and configuration checks to every developer, and register and enable a complete eligible request within five business days. - **Authorize and connect** A patient or clinician authorizes your app at sign-in. Call the practice's FHIR base with the returned access token. --- # SMART App Launch Canonical URL: https://docs.chartvoyant.com/smart-app-launch/ Endpoint: `Authorize https://auth.chartvoyant.com/oauth/authorize` Connect a patient's chosen app, or a clinician's app, to a ChartVoyant practice with SMART App Launch 2. The person signs in and consents, and your app receives a token scoped to what they approved. ## At a glance | Status | Live in production for read access. Write scopes for [SMART write](https://docs.chartvoyant.com/smart-write/) are deployed and granted per practice and app. | | --- | --- | | Version | SMART App Launch 2 (STU2). SMART v2 scopes and SMART v1 read scopes are both accepted. SMART v1 write scopes are refused. | | Launches | Standalone patient, standalone clinician, and EHR launch from inside the chart. | | Client types | Public and native (`none`), confidential symmetric (`client_secret_basic`), confidential asymmetric (`private_key_jwt`, RS384 or ES384). | | Security | Authorization code with PKCE `S256` on every flow; plain or missing PKCE is rejected. `aud` must equal the practice's FHIR base. Redirect URIs must match registration exactly. | | Identity | OpenID Connect with `openid fhirUser`. ID tokens are signed RS256. | | Cost | No fee and no revenue share. | ## Endpoints Read them from discovery rather than hard-coding them: | Endpoint | URL | | --- | --- | | Discovery | `https://fhir.chartvoyant.com/r4/{practice}/.well-known/smart-configuration` | | OpenID configuration | `https://auth.chartvoyant.com/.well-known/openid-configuration` | | Authorize | `https://auth.chartvoyant.com/oauth/authorize` (GET or POST) | | Token | `https://auth.chartvoyant.com/oauth/token` | | Introspect | `https://auth.chartvoyant.com/oauth/introspect` | | Revoke | `https://auth.chartvoyant.com/oauth/revoke` | | Public signing keys | `https://auth.chartvoyant.com/oauth/jwks.json` | | Dynamic registration | `https://auth.chartvoyant.com/oauth/register` — creates an app disabled at every practice until ChartVoyant enables it there; see How to register an app. | | Style | `https://fhir.chartvoyant.com/r4/{practice}/.well-known/smart-style.json`, so an embedded app can match the chart. | ## Launch flows | Flow | How it works | | --- | --- | | **Patient standalone** | The patient signs in with their existing portal account, chooses the practice where applicable, and reviews consent. They can uncheck a resource class or narrow a supported category. The token carries the patient context; the app cannot name a different patient. | | **Clinician standalone** | The clinician completes staff sign-in and MFA, selects a patient, and consents. The ID token's `fhirUser` names their Practitioner resource. | | **EHR launch** | The clinician opens a chart and selects your app's tile. ChartVoyant calls your launch URL with `iss` and an opaque `launch`. The token response includes `patient`, `encounter` when present, `need_patient_banner`, and `smart_style_url`. | Authorize request (synthetic placeholders) ``` GET https://auth.chartvoyant.com/oauth/authorize ?response_type=code &client_id=YOUR_CLIENT_ID &redirect_uri=https://your-app.example/callback &aud=https://fhir.chartvoyant.com/r4/your-practice &scope=launch/patient openid fhirUser offline_access patient/Patient.rs patient/Observation.rs &code_challenge=BASE64URL_SHA256_OF_VERIFIER&code_challenge_method=S256 &state=RANDOM_STATE&nonce=RANDOM_NONCE ``` Native apps may use exact registered loopback (`localhost` or `127.0.0.1`) or HTTPS callbacks. Custom URI schemes are not supported. The [SMART on FHIR-4 developer guide](https://docs.chartvoyant.com/fhir/#launch) includes complete PKCE code for each flow. ## Scopes | Scope | Meaning | | --- | --- | | `patient/{Type}.rs` | Read and search within the patient's context. `.r` and `.s` alone are accepted. | | `user/{Type}.rs` | Read and search what the authorizing clinician may access. | | `patient/*.read`, `user/*.read` | SMART v1 read forms. | | `?category=…` | Finer-grained constraints on supported Condition and Observation categories, enforced on search and read. | | `launch`, `launch/patient` | EHR launch context, or a patient picker in a standalone launch. | | `openid fhirUser` | Signed identity claims. These are not resource permissions. | | `offline_access` | A refresh token for access while the user is away. | | `online_access` | A refresh token bounded by the authorizing sign-in session. | | `patient/{Type}.cu`, `user/{Type}.cu` | Create and update (`.c`, `.u`, or both) for seven types, through [SMART write](https://docs.chartvoyant.com/smart-write/). Consent boxes start unchecked and are granted only where the practice and app allow them. | | `.write`, `.*`, `d` | SMART v1 write forms, wildcard writes, and delete are refused. | ## Tokens and revocation - **Authorization codes** expire after 120 seconds and work once. - **Access tokens** are opaque bearer tokens that last 3,600 seconds, or 300 seconds when they carry a write scope. - **Offline refresh tokens** are valid for 95 days from first issue, across rotation; each refresh invalidates the previous token. - **Online refresh** ends with the authorizing session. - **Patients can revoke** an app at any time in the patient portal under Connected apps. App disablement, sign-out, and account changes end access too. ## How to register an app - **Read the guide** The [SMART on FHIR-4 developer guide](https://docs.chartvoyant.com/fhir/) and the public [practice directory](https://chartvoyant.com/fhir/service-base-urls.json) need no account, payment, or agreement. - **Request registration** Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=SMART%20app%20registration%20request) or use [Support](https://chartvoyant.com/support/) with your app name, developer contact, client type, exact redirect URIs, optional EHR launch URL, requested scopes, practice, and public JWKS/`jwks_uri` (if asymmetric). Send no patient records, private keys, or client secrets. - **We register and enable it** We register and enable a complete eligible request within five business days under identical objective checks for every developer. - **Authorize and connect** A patient or clinician authorizes your app at sign-in. Call the practice's FHIR base with the returned access token. **Registered through `/oauth/register` instead?** An app created via dynamic client registration is disabled at every practice until ChartVoyant enables it there with an explicit list of scopes. Send the registration request above with the client ID you received. --- # SMART Backend Services Canonical URL: https://docs.chartvoyant.com/smart-backend-services/ Endpoint: `POST https://auth.chartvoyant.com/oauth/token` System-to-system FHIR access with no user at the keyboard, for a population-health platform, a network, or a practice's own systems. The practice authorizes your system, and your server proves who it is with a signed assertion. ## At a glance | Status | Live in production for read and Bulk Data. System write scopes and the HL7 sender scope are deployed and granted per practice and client. | | --- | --- | | Grant | `client_credentials` with a `private_key_jwt` client assertion. | | Signing | RS384 or ES384. You keep the private key; we hold only your public JWKS or HTTPS `jwks_uri`. | | Token endpoint | `https://auth.chartvoyant.com/oauth/token` | | Scope of access | One practice per client, limited to the scopes that practice allows. A system token reads any patient in that practice, and searches must name the patient. Writes, when turned on, are submissions a clinician reviews. | | Registration | Granted, not self-service: the practice explicitly authorizes your system before your keys are registered for it. | | Cost | No fee and no revenue share. | ## Request a token Sign a fresh JWT for every token request (synthetic placeholders throughout): JWT Assertion ``` // Header (sign with your private key; never send the private key anywhere) {"alg":"RS384","typ":"JWT","kid":"YOUR_PUBLIC_KEY_ID"} // Claims {"iss":"YOUR_CLIENT_ID","sub":"YOUR_CLIENT_ID", "aud":"https://auth.chartvoyant.com/oauth/token", "exp":NOW_PLUS_300,"jti":"NEW_RANDOM_ID"} ``` cURLTypeScript Copy ``` curl -X POST "https://auth.chartvoyant.com/oauth/token" \ -H "Content-Type: application/x-www-form-urlencoded" \ --data-urlencode "grant_type=client_credentials" \ --data-urlencode "scope=system/Patient.rs system/Observation.rs" \ --data-urlencode "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer" \ --data-urlencode "client_assertion=$SIGNED_JWT" ``` ``` const body = new URLSearchParams({ grant_type: "client_credentials", scope: "system/Patient.rs system/Observation.rs", client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", client_assertion: signedJwt }); const res = await fetch("https://auth.chartvoyant.com/oauth/token", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body }); const { access_token, expires_in, scope } = await res.json(); ``` - `iss` and `sub` are your client ID, `aud` is the exact token endpoint, `exp` is no more than five minutes ahead, and `jti` is unique per request. - Replayed assertions, unregistered keys, and unregistered algorithms are rejected. - The response carries an access token that lasts 3,600 seconds (300 seconds when it carries a write scope) and the granted scope. There is no refresh token and no ID token; sign a new assertion for a new token. ## Scopes | Scope | Meaning | | --- | --- | | `system/{Type}.rs` | Read and search one supported [resource type](https://docs.chartvoyant.com/fhir-r4/#resources) across the practice. | | `system/*.rs` | Every supported type, including all Bulk Data export classes. | | `system/Group.rs` | Discover and read the practice's Group, which [Bulk Data](https://docs.chartvoyant.com/bulk-data/) needs. | | `system/{Type}.cu` | Create and update (`.c`, `.u`, or both) for the types a practice approves for your client, through [SMART write](https://docs.chartvoyant.com/smart-write/). Every submission waits for a clinician. | | `system/hl7v2-ingest` | Deliver HL7 v2 messages to one [HL7 interface](https://docs.chartvoyant.com/hl7/). Not a FHIR permission: `system/*.rs` does not include it, discovery does not list it, and a token with only this scope reads nothing. Granted only to a client registered for it, using `private_key_jwt`. | A patient or clinician token cannot start a population export. ## How to get access - **Read the guide** The [SMART on FHIR-4 developer guide](https://docs.chartvoyant.com/fhir/) and the public [practice directory](https://chartvoyant.com/fhir/service-base-urls.json) need no account, payment, or agreement. - **Request registration** Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=SMART%20Backend%20Services%20registration%20request) or use [Support](https://chartvoyant.com/support/) with your system name, developer contact, authorizing practice, requested system scopes, and public JWKS or HTTPS `jwks_uri` (RS384 or ES384). Send no patient records or private keys. - **We register and enable it** We apply the same identity and configuration checks to every developer and enable a complete eligible request within five business days. - **Authorize and connect** The practice authorizes your system for its data. Request a token with a signed assertion and call its FHIR base. --- # Bulk Data export Canonical URL: https://docs.chartvoyant.com/bulk-data/ Endpoint: `GET https://fhir.chartvoyant.com/r4/{practice}/Group/{id}/$export` Export a practice's whole patient population as FHIR NDJSON files, asynchronously, with a SMART Backend Services token. Ask only for what changed since your last run with _since. ## At a glance | Status | Live in production. | | --- | --- | | Level | Group-level only: `GET /Group/{id}/$export`. Each practice has one dynamic Group containing every patient not deleted at processing time. System-level `/$export` and patient-level `/Patient/$export` are not available. | | Standard | FHIR Bulk Data Access 2.0. | | Authentication | A [SMART Backend Services](https://docs.chartvoyant.com/smart-backend-services/) token with a system read scope, plus `system/Group.rs` to discover the Group. | | Output | `application/fhir+ndjson`, one resource per line, one file set per resource type. | | Files | Signed links that expire after 24 hours and still require a current token from the same client and practice. | | Cost | No fee and no revenue share. | ## The flow Relative to the practice's FHIR base (synthetic placeholders throughout): 1. Find the Group ``` GET /r4/your-practice/Group Authorization: Bearer BACKEND_ACCESS_TOKEN ``` 2. Kick off ``` GET /r4/your-practice/Group/GROUP_ID/$export?_type=Patient,Observation&_since=2026-01-01T00%3A00%3A00Z Authorization: Bearer BACKEND_ACCESS_TOKEN Accept: application/fhir+json Prefer: respond-async HTTP/1.1 202 Accepted Content-Location: STATUS_URL ``` 3. Poll, then download ``` GET STATUS_URL # 202 with X-Progress and Retry-After while running HTTP/1.1 200 OK {"transactionTime":"2026-09-13T12:00:00Z","request":"ORIGINAL_REQUEST_URL", "requiresAccessToken":true, "output":[{"type":"Patient","url":"SIGNED_FILE_URL","count":3}],"error":[]} GET SIGNED_FILE_URL # same token; one FHIR resource per line DELETE STATUS_URL # cancel, and invalidate the files ``` Honor `Retry-After` between polls. Check the `error` array, and do not treat partial output as a complete export. If an export is already running for the practice, kickoff returns `429` with `Retry-After`. ## Parameters | Parameter | Support | | --- | --- | | `_type` | Comma-separated resource types. Request only types your scopes allow; `system/*.rs` may request every supported class. | | `_since` | A FHIR instant, for example `2026-01-01T00:00:00Z`. Returns resources changed strictly after it. A future instant is rejected. | | `_outputFormat` | NDJSON only: `application/fhir+ndjson` (the default), `application/ndjson`, or `ndjson`. | | Anything else | Rejected with `400`, including `_typeFilter` and `_elements`. | | Headers | `Accept: application/fhir+json` and `Prefer: respond-async` are required. | ## How to get access Register a [SMART Backend Services client](https://docs.chartvoyant.com/smart-backend-services/#access) with `system/Group.rs` and the resource scopes your export needs. For full record archives that also include non-FHIR practice tables and original attachments, see [Complete EHI export](https://docs.chartvoyant.com/ehi-export/). --- # SMART write Canonical URL: https://docs.chartvoyant.com/smart-write/ Endpoint: `POST https://fhir.chartvoyant.com/r4/{practice}/{Type}` An approved SMART app sends new information to a patient's chart through the FHIR API: a reading, a survey score, an allergy, a health concern, a medicine the patient takes, a vaccine, a document, or answers to the practice's questionnaire. Nothing an app sends becomes part of the chart until a clinician accepts it. Write interactions are not part of the certified read API. ## Status & three switches | Status | Deployed in production on October 29, 2026, and turned on per practice and per app. A practice's `/metadata` lists create and update only for the types that practice and an app allow, and discovery lists write scopes once ChartVoyant's submission service is on. The general CapabilityStatement at `https://chartvoyant.com/api/v1/fhir/metadata` shows every type an office may opt in to. | | --- | --- | | Three switches | All three must be on: ChartVoyant's service switch for submissions; the practice's own setting, "Allow connected apps to send information to charts", which a practice administrator controls; and writing turned on for your app at that practice, for the types the practice approves. Turning any of them off stops new writes at once, checked on every request. | | Consent | The person approving your app sees "Add information to your health record", with one box per type. Write boxes start unchecked. | | Tokens | An access token that carries a write scope lasts 300 seconds. Read-only tokens keep their 3,600 seconds. | | Rate | 30 writes per minute for each app at each practice. Past that, `429` with `Retry-After: 60`. | | Endpoint | The practice's FHIR base, `https://fhir.chartvoyant.com/r4/{practice}`, with `POST /{Type}` and `PUT /{Type}/{id}`. | ## Scopes Create and update use SMART App Launch v2 scopes. The context is `patient`, `user`, or `system`. The permission is `.c` to create, `.u` to update, or `.cu` for both. | Request | Result | | --- | --- | | `patient/Observation.cu` | The patient app may send or update an Observation, after the person checks that box. | | `patient/Observation.c?category=…\|vital-signs` | The same, fenced to one category. A body outside the fence is `403`. Category fences work on Observation and Condition. | | `user/Condition.c` | A clinician app may send a new health concern for a chart in the practice. | | `system/Immunization.cu` | A backend client may send or update an immunization the practice has allowed. | | SMART v1 `.write` or `.*` | Refused. | | Delete, including the letter `d` | Refused. The app cannot delete information. | | A wildcard type, such as `patient/*.c` | Refused. Name each type. | | `Appointment` | Refused. Appointment is not a writable type. | The office and the app both have to allow the type, and the service has to allow submissions. A scope a token does not carry is `403`, even when the app is registered for it. ## Writable types | Type | Accepted | When a clinician accepts it | | --- | --- | --- | | `Observation` | Category `vital-signs` or `survey`, with a LOINC code. Vital signs carry UCUM units; blood pressure is one observation with systolic and diastolic components in `mm[Hg]`. Laboratory, imaging, and social-history are refused; labs arrive through [HL7](https://docs.chartvoyant.com/hl7/). | A chart observation. | | `AllergyIntolerance` | A coded allergy. Verification status is set to unconfirmed on intake. | An unconfirmed allergy until a clinician confirms it. | | `Condition` | Category `problem-list-item` or `health-concern`, coded in SNOMED CT or ICD-10-CM. `encounter-diagnosis` is refused. | An unconfirmed problem or health concern. | | `MedicationStatement` | An RxNorm-coded medicine the patient says they take. Write only: it is not a read type. | A patient-reported medicine, never a prescription. | | `Immunization` | A CVX-coded vaccine. | Immunization history. It is not sent to a state registry. | | `DocumentReference` | An inline attachment (`content.attachment.data`) of PDF, PNG, JPEG, or plain text, up to 5 MiB. A URL is refused and never fetched. A PDF that carries script is refused and not stored. | A file with the chart's documents. | | `QuestionnaireResponse` | Answers to a questionnaire the practice publishes. | Answers on the intake record, marked as from an app. They are not scored and do not change demographics. | Every other type is refused for writing, including Patient, Encounter, MedicationRequest, DiagnosticReport, Procedure, CarePlan, Goal, Provenance, and Appointment. ## Review before the chart A successful create stores a submission. It does not change the chart. A clinician accepts it (correcting a reading's value first if needed) or rejects it with a reason, or the sender withdraws it. Nothing reads a pending submission to make a decision: no alert, rule, AI summary, or order. Until it is accepted, other apps do not see it in search, `$everything`, Bulk Data, C-CDA, or a complete EHI export. Once accepted, it appears in all of them, and the FHIR id your app received keeps working. A rejected submission reads as `entered-in-error` to the app that sent it and to the patient. The patient, and a person who is a proxy for that patient, can see every status in the portal: waiting, accepted, not added, and withdrawn. A proxy for a different patient sees none. A patient's records request lists their submissions with the same status words. Pending submissions are labelled "Sent by the app name. Waiting for your care team to review." ## If-Match and If-None-Exist Create is `POST {base}/{Type}` with `Content-Type: application/fhir+json`. Conditional create uses `If-None-Exist` and only the `identifier` parameter. One existing match returns that resource. More than one match is `412`. Update is `PUT {base}/{Type}/{id}` and requires `If-Match: W/"n"`. A missing header is `428`. A stale version is `412`. Conditional update is not supported. Only the app that sent a pending submission can update it. Updating an accepted resource proposes a new submission. The chart row stays as it is until a clinician reviews the proposal. Delete, PATCH, history, batch, and transaction are not supported. ## Errors Errors are an `OperationOutcome`. The diagnostics text does not include the submitted record. | HTTP | When | | --- | --- | | `400` | Malformed JSON, wrong `resourceType`, or an id mismatch on PUT. | | `401` | No token, or the token is invalid. | | `403` | Scope, compartment, office switch, app switch, or a category outside the scope's fence. | | `404` | Unknown id, or not visible to this client. | | `405` | Unsupported interaction, including delete. | | `409` | Business conflict, such as updating a withdrawn submission. | | `412` | Stale `If-Match`, or an ambiguous conditional create. | | `413` | Body or attachment too large. | | `415` | Not `application/fhir+json`. | | `422` | Profile or terminology validation failed. | | `428` | Missing `If-Match` on update. | | `429` | Rate limited. The response includes `Retry-After`. | ## Unverified tag A submission carries `meta.tag` with system `https://chartvoyant.com/fhir/CodeSystem/data-status` and code `app-submitted-unverified`. That tag means a clinician has not accepted it yet. Do not treat a tagged resource as chart fact. Every write is recorded with a Provenance that names your app as the transmitter, and an accepted item adds the reviewing clinician as the verifier. Each write is also recorded in the practice's audit trail in the same transaction; if that record cannot be written, the write fails and nothing is stored. ## Full access, and what is not offered **Full access.** A practice administrator can give one app every write scope this server implements in a single step, after an authenticator code and typing the app's name. It adds no read scopes and grants nothing to a SMART v1 registration. A user or system app needs an executed agreement with an expiry on file, and a patient app needs a recorded security review. Turning it off revokes the app's tokens at that practice. It must be confirmed again every 12 months, and it is capped at 500 writes a day. It has its own service switch, separate from the one for submissions. **Filing without review.** Not offered. Every submission waits for a clinician, including from a practice's own apps. ## Example Synthetic only — not a real patient and not a real reading: ``` POST https://fhir.chartvoyant.com/r4/example-practice/Observation Authorization: Bearer {access_token} Content-Type: application/fhir+json If-None-Exist: identifier=https://synthetic.example/hr|hr-1 { "resourceType": "Observation", "status": "final", "category": [{ "coding": [{ "system": "http://terminology.hl7.org/CodeSystem/observation-category", "code": "vital-signs" }] }], "code": { "coding": [{ "system": "http://loinc.org", "code": "8867-4", "display": "Heart rate" }] }, "subject": { "reference": "Patient/00000000-0000-4000-8000-0000000000b1" }, "effectiveDateTime": "2026-10-28T15:00:00Z", "valueQuantity": { "value": 72, "unit": "beats/minute", "system": "http://unitsofmeasure.org", "code": "/min" }, "identifier": [{ "system": "https://synthetic.example/hr", "value": "hr-1" }] } ``` A create that is stored returns `201`, a `Location`, and `ETag: W/"1"`. The chart does not yet contain that heart rate. A later update sends `If-Match: W/"1"`. This is not part of the certified read API. --- # Practice endpoint directory Canonical URL: https://docs.chartvoyant.com/endpoint-directory/ Endpoint: `GET https://chartvoyant.com/fhir/service-base-urls.json` A public FHIR Bundle listing every active ChartVoyant practice and the exact FHIR base URL for each. It is how an app finds a patient's practice before it authorizes. ## At a glance | Status | Live. | | --- | --- | | URL | `https://chartvoyant.com/fhir/service-base-urls.json` | | Authentication | None. Free, with no registration. | | Format | A FHIR R4 `collection` Bundle of `Organization` and `Endpoint` resources, served as `application/fhir+json`. | | Freshness | Generated from active customer practices on every request, and may be cached for five minutes. New practices and name changes appear automatically. Internal synthetic test offices are excluded. | | CORS | Readable cross-origin from any site. | ## Format Each Organization points at its Endpoint (synthetic, abridged example): ``` { "resourceType": "Bundle", "type": "collection", "entry": [ { "resource": { "resourceType": "Organization", "id": "EXAMPLE_ORG", "name": "Example Family Practice", "endpoint": [{ "reference": "Endpoint/EXAMPLE_ENDPOINT" }] } }, { "resource": { "resourceType": "Endpoint", "id": "EXAMPLE_ENDPOINT", "status": "active", "payloadMimeType": ["application/fhir+json"], "address": "https://fhir.chartvoyant.com/r4/example-practice" } } ] } ``` ## How to use it - **Choose the practice** Let the patient pick their practice by its Organization name. Never infer a practice from a patient identifier. - **Take the Endpoint address unchanged** Resolve `Organization.endpoint` against the matching Endpoint entry. Its `address` is the FHIR base and the `aud` for authorization. - **Discover** Fetch `{base}/.well-known/smart-configuration` and `{base}/metadata`, then follow [SMART App Launch](https://docs.chartvoyant.com/smart-app-launch/). --- # HL7 v2 interfaces Canonical URL: https://docs.chartvoyant.com/hl7/ Endpoint: `POST https://chartvoyant.com/api/v1/interop/hl7/{interfaceId}` Lab results, radiology reports, and hospital admit, discharge, and demographic messages, sent to one practice over HTTPS by a lab, an imaging center, a hospital, or an interface engine. ChartVoyant answers every authenticated, well-formed message with an HL7 acknowledgment, files matched results to the chart for a clinician to review, and never creates or merges a patient. ## At a glance | Status | Deployed in production on October 29, 2026. Each interface is turned on individually, for one practice, once its onboarding is complete: agreements, a synthetic test run, independent security testing, and the practice's go-ahead. | | --- | --- | | Endpoint | `POST https://chartvoyant.com/api/v1/interop/hl7/{interfaceId}`, one message per request. ChartVoyant assigns the interface ID when it sets up your feed. | | Standard | HL7 v2 in the pipe-delimited ER7 encoding. Version 2.5.1, or 2.3 through 2.5.1 on an interface set up with the tolerant profile. | | Transport | HTTPS, HL7 over HTTP style: the request body is the raw message, sent as `x-application/hl7-v2+er7` or `application/hl7-v2`, and the ACK comes back in the response body. MLLP and SFTP are not available. | | Authentication | An HL7 sender key that can deliver to one interface and do nothing else, or a SMART Backend Services token that carries `system/hl7v2-ingest`. See Authentication. | | Messages | `ORU^R01` for lab and radiology results; `ADT^A01`, `A03`, `A04`, `A08`, `A11`, `A13`, `A28`, and `A31` for hospital events and demographics. An `A40` merge becomes a notice for staff and never merges charts. | | Limits | 2 MiB per message. 20 messages per second and 600 per minute for each interface. | | Where data lands | One practice per interface. A result files only to a patient matched with certainty, and is marked not yet reviewed until a clinician reviews it. | ### How an interface goes live The receive endpoint, result filing, the review desk, and hospital event notices run in production. Each interface carries its own approvals before it takes a message: an interface agreement, a business associate agreement (and one for any intermediary in the path), the message types it may send, independent security testing that covers this endpoint, and the practice's go-ahead. Testing runs first on a separate interface in a ChartVoyant sandbox office, with processing ID `T` and synthetic messages, and it needs the same approvals on file. ## Send a message Synthetic values throughout. Use carriage returns between segments; line feeds are accepted too, and the strict profile notes them with a warning. Use the `MSH-3` to `MSH-6` values and the processing ID agreed when your interface is set up. **HTTP Request** ```er7 POST https://chartvoyant.com/api/v1/interop/hl7/INTERFACE_ID Authorization: Bearer cvk_YOUR_HL7_SENDER_KEY Content-Type: x-application/hl7-v2+er7 MSH|^~\&|SYNLAB|SYNLAB-CLEVELAND|CHARTVOYANT|EXAMPLE-PRACTICE|20261031101500-0400||ORU^R01^ORU_R01|SYN000123|T|2.5.1 PID|1||SYN-000123^^^SYNLAB^MR||ZZTEST^ALPHA||19700101|F ORC|RE|PLACER_ORDER_ID|SYN-F-7781 OBR|1|PLACER_ORDER_ID|SYN-F-7781|4548-4^Hemoglobin A1c/Hemoglobin.total in Blood^LN|||20261030083000-0400|||||||||||||||20261031101000-0400||CH|F OBX|1|NM|4548-4^Hemoglobin A1c/Hemoglobin.total in Blood^LN||6.1|%|4.0-5.6|H|||F ``` **cURL** ```bash curl -X POST "https://chartvoyant.com/api/v1/interop/hl7/$INTERFACE_ID" \ -H "Authorization: Bearer $HL7_SENDER_KEY" \ -H "Content-Type: x-application/hl7-v2+er7" \ --data-binary @synthetic-oru.hl7 ``` --- # FHIR write to other systems Canonical URL: https://docs.chartvoyant.com/fhir-outbound/ Endpoint: `JWKS https://chartvoyant.com/api/v1/interop/jwks/{key}.json` ChartVoyant as a FHIR R4 client. A clinician at a practice sends a patient's final observations, such as vital signs, to a FHIR server the practice has registered: another clinic's EHR, a hospital, a health information exchange, or a registry. This page is for the team that runs that server. ## At a glance | Status | Deployed in production on October 29, 2026, in synthetic mode: a practice can register a destination and exercise it against ChartVoyant's own test servers. Real-data sending is turned on per destination in a later ChartVoyant release, after an executed agreement for that destination and independent security testing of this path. | | --- | --- | | Direction | ChartVoyant writes to your server. It reads only your CapabilityStatement and, to find the patient, a Patient search by identifier. | | Standards | FHIR R4 and SMART Backend Services, with ChartVoyant as the client. | | Authentication | `client_credentials` with a `private_key_jwt` assertion signed RS384 that expires within five minutes. ChartVoyant makes a key pair for each destination, keeps the private key encrypted, and publishes only the public key at a JWKS address you register: `https://chartvoyant.com/api/v1/interop/jwks/{key}.json`. | | Resources | `Observation` only. Each create carries ChartVoyant's identifier, so a resend finds the same resource. Conditional create, update with `If-Match`, and batch or transaction Bundles are used only where both your CapabilityStatement and the destination's profile allow them. | | Network | HTTPS only. Redirects are refused, and so is any host that resolves to an internal or cloud metadata address. | | Patients | ChartVoyant never creates a Patient on your server. A send needs a patient link a person has confirmed. | ## How a send works - **The practice registers your server** Your FHIR base, your token endpoint, the system scopes to request, and the reason for sending: treatment by a provider with an NPI, or the patient's written authorization. The destination is created disabled, and ChartVoyant generates its signing key. - **ChartVoyant reads your CapabilityStatement** Every hour once your server can be reached: FHIR version, batch/transaction support, and conditional create. A destination moves to testing only after a check in the last day. - **A clinician links the patient** Without a confirmed link, nothing is sent. - **A clinician previews and sends** The preview lists the patient's final and amended observations. Anything that must not leave is withheld, and the preview says only "Some items were withheld", with no reason and no count. - **Each item is tracked** Temporary failures (HTTP 408, 425, 429, 5xx, or network error) retry after 30s, 2m, 10m, 1h, 6h, and 12h (at most eight tries within 48 hours). ChartVoyant keeps a hash of what it sent, not the body. ## Patient matching - **Search, then confirm by hand.** ChartVoyant searches Patient by identifier. One certain match becomes a proposal that a person confirms. Several become candidates a person chooses from. None stops. - **Saved links are checked again.** When a clinician returns to a saved link, ChartVoyant re-reads that Patient from your server and compares family name and birth date. A mismatch revokes the link, and nothing more is sent on it. - **No Patient create.** There is no path that creates a patient on your server, and no setting that adds one. ## What your server sees Token request ``` POST YOUR_TOKEN_ENDPOINT Content-Type: application/x-www-form-urlencoded grant_type=client_credentials &client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer &client_assertion=SIGNED_JWT &scope=system%2FObservation.c ``` Create an observation (where conditional create is allowed) ``` POST YOUR_FHIR_BASE/Observation Authorization: Bearer ACCESS_TOKEN Content-Type: application/fhir+json If-None-Exist: identifier=urn:chartvoyant:send:PRACTICE_ID|observations:OBSERVATION_ID { "resourceType": "Observation", "status": "final", "code": { "coding": [{ "code": "8867-4", "system": "http://loinc.org" }] }, "identifier": [{ "system": "urn:chartvoyant:send:PRACTICE_ID", "value": "observations:OBSERVATION_ID" }], "subject": { "reference": "Patient/YOUR_PATIENT_ID" }, "effectiveDateTime": "2026-10-28T15:00:00.000Z", "valueQuantity": { "value": 72, "unit": "/min" } } ``` The identifier is stable, so a resend finds the same resource instead of making a second one. A later amendment is a `PUT` to the id you returned, with `If-Match` on the version you returned. Notes and ChartVoyant's own metadata stay off the wire. ## What is sent, and what never is | Rule | Detail | | --- | --- | | **Sent** | Final and amended observations that the practice itself recorded. | | **Never sent** | Anything that came from outside the practice (HL7 results, app submissions, faxes, imported records), anything an AI produced, and records a clinician marked sensitive: substance use disorder records under 42 CFR Part 2, psychotherapy, behavioral health, and reproductive health. There is no override. | | **Stops the send** | A missing provider NPI for a treatment destination, a missing patient link, a restriction or opt-out the patient asked for, or a written authorization that is missing, expired, or revoked. | | **Refused purposes** | Payment and health care operations. | ## How to get connected - **Tell us about your server** Email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=FHIR%20destination%20request) with your organization, the practice that wants to send to you, your FHIR base and token endpoint, whether you support `Patient/$match`, and a technical contact. Send no patient data. - **Sign the agreement** An executed destination agreement, plus a business associate agreement when an intermediary such as an HIE sits in the path. - **Register our public key** Register ChartVoyant as a backend client using the JWKS address we provide, with the scopes you allow. - **Test, then go live** Synthetic sends run first against ChartVoyant's test server before real-data sending is enabled per destination. --- # C-CDA documents Canonical URL: https://docs.chartvoyant.com/c-cda/ Endpoint: `GET https://chartvoyant.com/api/v1/patients/{id}/ccda` Generate a patient's current Continuity of Care Document as XML, on demand, through SMART on FHIR or with an API key. Export is in beta: the document is human-readable today, and coded entries are still to come. Importing C-CDA files is part of moving a practice onto ChartVoyant and has no public API. ## At a glance | Status | Export: beta. The endpoints answer in production, but the document is not yet fully conformant. Import: onboarding migration only, with no public API. | | --- | --- | | Document | A Continuity of Care Document generated from the current chart at request time. Carries the C-CDA R2.1 CCD document template (`2.16.840.1.113883.10.20.22.1.2`, `2015-08-01`) and document code LOINC `34133-9`. | | Contents | Patient demographics, then Problems (LOINC `11450-4`), Medications (`10160-0`), Allergies (`48765-2`), and Results (`30954-2`), each as a human-readable narrative table. | | Not yet included | Coded section entries and section-level templates. Systems that import only structured C-CDA entries will not find data in it yet. Validate it against your own requirements before relying on it, and use the [FHIR R4 API](https://docs.chartvoyant.com/fhir-r4/) for structured data. | | Format | `application/xml`. | | Authentication | A SMART token with a complete-chart grant, or a ChartVoyant API key (read-only is enough). | | Delivery | Returned to the caller. ChartVoyant does not transmit the document to another system on your behalf through this API. | ## Endpoints | Route | Auth | What it returns | | --- | --- | --- | | `GET {FHIR base}/DocumentReference/$docref?patient={id}` | SMART token, complete-chart grant | A `searchset` Bundle with a DocumentReference for the current CCD (LOINC 34133-9). Passing `start`, `end`, or `type` returns existing documents instead. See [FHIR R4 API](https://docs.chartvoyant.com/fhir-r4/). | | `GET {FHIR base}/Patient/{id}/$ccd` | SMART token, complete-chart grant | The CCD itself, as an XML attachment. | | `GET https://chartvoyant.com/api/v1/patients/{id}/ccda` | API key | The CCD as XML. Sandbox keys use the same URL and reach only the synthetic sandbox office. | A generated CCD spans the whole chart, so a grant limited to documents or to some resource classes cannot be used to generate one. ## Example cURLResponse (abridged XML) Copy ``` curl "https://chartvoyant.com/api/v1/patients/PATIENT_ID/ccda" \ -H "Authorization: Bearer $CHARTVOYANT_API_KEY" ``` ```
Problems
Medications …
Allergies …
Results …
``` ## Importing C-CDA When a practice moves to ChartVoyant, its data migration can read C-CDA R2.1 CCD files exported by the prior system: demographics plus problems, medications, allergies, results, vital signs, immunizations, procedures, encounters, payers, and notes. The practice reviews a preview before anything is committed to a chart. This runs inside ChartVoyant during onboarding. It is not a public API, and API keys cannot reach migration routes. To plan a migration, contact [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=Data%20migration%20question). ## How to get access - **Start in the sandbox** Request a sandbox key with a short form. It is issued on the spot, shown once, lasts 14 days, and reaches synthetic patients only, under the [ChartVoyant Sandbox Terms](https://chartvoyant.com/sandbox-terms/). - **Go to production with a practice** A production key needs a sponsoring practice that confirms the request, a signed [API Use Agreement](https://docs.chartvoyant.com/api-use-agreement/), and a BAA between you and the practice. See [Onboarding Process](https://docs.chartvoyant.com/onboarding/). - **Or connect via SMART on FHIR** Register an app as described on [SMART App Launch](https://docs.chartvoyant.com/smart-app-launch/#access). There is no fee. --- # Complete EHI export Canonical URL: https://docs.chartvoyant.com/ehi-export/ Archive format 2.0 · layout schema v1 · published specification prepared September 13, 2026. Supports electronic health information export under 45 CFR §170.315(b)(10). ONC certification is in progress. Anyone can read the downloaded files without ChartVoyant software. ## Published schema & synthetic sample JSON Schema ### Frozen layout schema v1 Machine-readable container and column encoding contract (`/ehi-export/schema-v1.json`). schema-v1.json Synthetic ZIP ### Synthetic ONC test-tenant sample ZIP Complete synthetic export archive illustrating `records/`, `fhir/`, `documents/`, `manifest.json`, and `schema.json`. synthetic-sample.zip Looking for the earlier single-table NDJSON specification? Read [Legacy EHI Export Format 1.0](https://docs.chartvoyant.com/ehi-export/v1/). ## Request and download A clinician or practice administrator can use the complete-record action at visit sign-off or in the chart's `⋯` menu. Confirm the request and optionally record a reason. The completed export appears in **Inbox → EHI exports**. **Practice Settings → Data** offers **Export all EHI** to a practice administrator. Confirmation uses that person's enrolled second factor: a code from an authenticator app, or a code ChartVoyant sends to their email or mobile. The owner console's office panel uses the owner's authenticator app. Population membership includes all retained patient rows, including soft-deleted charts, at request time. The worker produces one ZIP per patient and a manifest with authenticated download links. Downloads require an active session belonging to the requester. Links expire 24 hours after completion. Cancelling an export invalidates its links. The request, native/FHIR reads, completion, and each download are recorded in the tenant's hash-chained audit log. Source files that are unavailable or fail integrity verification cause the job to fail rather than produce a completed partial archive. ## ZIP layout ``` records/patients.json records/clinical_notes.json records/record_versions.json records/…all linked native tables….json fhir/Patient.ndjson fhir/…resource type….ndjson documents/{storedObjectId}/{original filename} manifest.json schema.json README.md ``` | Files | Schema and meaning | | --- | --- | | `records/*.json` | One UTF-8 JSON array per native table. Objects retain column names, identifiers, and relationship keys. The included `schema.json` lists each column and its PostgreSQL data type. Null is JSON `null`; timestamps are ISO 8601; binary values use `{"$binary":"base64"}`; large integers are decimal strings. | | `fhir/*.ndjson` | One FHIR R4 resource per line, using the API's shared US Core 6.1 mappers. Empty supported classes produce empty files. Provenance retains recorder/agent/target evidence. Native records that cannot satisfy a profile remain in `records/` and their available originals in `documents/`. | | `documents/` | Original bytes, grouped by stored-object identifier to avoid filename collisions. `manifest.json` records the original filename and SHA-256. Path separators and control characters are replaced for safe extraction. Older uploads may retain only a sanitized storage filename; `filenameSource` identifies this. No file format conversion is performed. | | `manifest.json` | Format/schema version, tenant and patient identifiers, requesting actor, extraction start/end, per-file rows/bytes/SHA-256, and excluded tables with reasons. A population manifest instead lists patient ZIP filenames, SHA-256 summaries, and signed URLs; an authenticated session is still required to retrieve each URL. | | `schema.json` | Frozen v1 container/encoding contract plus the exact native table columns in that export. Database columns can evolve without changing these encodings; a breaking layout or encoding change requires a new schema version. | ## Native record coverage The export includes linked demographics, notes and all retained versions, transcripts and segments, intake forms/responses, procedures and safety checks/outcomes, cases/events, chart-linked chat messages and thread metadata, faxes, SMS, emails, claims/lines/remittances/adjustments, payments/statements/balances, prior authorization, consents/signature requests, appointment history, audit history, and portal-account metadata. Directory rows referenced by those records are included without following them to another patient's chart. Patient identity is authoritative when resolving relationships. Multiple valid paths are unioned. Unlinked practice conversations and tables with no relationship to the patient are identified as excluded. Password hashes, OTP secrets, tokens, and encrypted signing keys are not EHI and are replaced with a redaction marker, including inside retained snapshots; clinical signatures and audit-chain hashes remain. ## Code systems and interpretation FHIR codings carry their system URI and code, including SNOMED CT, LOINC, RxNorm, ICD-10-CM, CPT/HCPCS, CVX, UCUM, CDC race/ethnicity, and HL7 administrative code systems where recorded. Native JSON preserves the original coded objects and local status values; it does not infer missing codes. Interpret a code with its recorded system/version, not its display label alone. ## Integrity and timing Archives use [standard ZIP64](https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT) with stored entries and CRC32 descriptors, supporting files larger than 4 GiB without assembling the archive in memory. Verify each extracted file against its manifest SHA-256. Extraction occurs while the practice may continue working; start/end bound the read interval and do not promise a database-wide point-in-time snapshot. Historical versions remain available in `records/record_versions.json`. A patient's audit subset preserves original chain hashes but may have gaps where unrelated events occurred; verification of the complete tenant chain requires the tenant audit log. The clinical importer recognizes [legacy format 1.0](https://docs.chartvoyant.com/ehi-export/v1/) (`data/*.ndjson`) and complete format 2.0 (`records/*.json`). Importing clinical records still uses review and confirmation; it does not recreate users, billing ledgers, or historical audit-chain identity. --- # The EHI export format (v1.0) Canonical URL: https://docs.chartvoyant.com/ehi-export/v1/ Export format version 1.0 · Published September 9, 2026. Preserved so archives generated under Format 1.0 remain permanently readable without ChartVoyant. ### Looking for the current EHI specification? This page documents legacy format 1.0 (`data/*.ndjson`). Read the [Complete EHI export format 2.0 specification and synthetic sample](https://docs.chartvoyant.com/ehi-export/) for current exports. This specification is published by **Geach Technologies, LLC**, trading as **ChartVoyant**, of Cleveland, Tennessee, to document Format 1.0 of the electronic health information (EHI) export under **45 CFR § 170.315(b)(10)**. ## 1. What an export contains An export is everything the system holds for the requested scope — the designated record set — across two scopes: **Single patient** (§ 170.315(b)(10)(i)) and **Patient population** (§ 170.315(b)(10)(ii)), both restricted to practice administrators (§ 170.315(b)(10)(iii)) and recorded as `ehi.exported` in the practice's tamper-evident audit log. ## 2. The archive ``` manifest.json machine-readable description of this export README.txt the same, in prose data/ | Type | Encoding | | --- | --- | | Text, numbers, booleans | The corresponding JSON type. | | Dates and timestamps | ISO 8601 strings with a UTC offset, e.g. `"2026-09-09T14:05:00.000Z"`. | | JSON / JSONB columns | Inlined as JSON, not as a quoted string. | | Arrays | JSON arrays, elements encoded by these same rules. | | Binary (`bytea`) | An object `{"$binary":" "}`. | | Large integers | Decimal strings, to avoid precision loss. | | NULL | `null`. | ## 4. manifest.json ``` { "formatName": "ChartVoyant EHI Export", "formatVersion": "1.0", "specification": "https://docs.chartvoyant.com/ehi-export/v1/", "certificationCriterion": "45 CFR 170.315(b)(10)", "generatedAt": "2026-09-09T14:05:00.000Z", "scope": { "kind": "patient", "patientId": "…" }, "practice": { "tenantId": "…" }, "generatedBy": { "principalId": "…", "principalType": "user", "roles": ["admin"] }, "tables": [ { "table": "conditions", "rows": 14, "columns": [ { "name": "id", "type": "uuid" } ], "includedVia": "patient_id", "redactedColumns": [] } ], "excludedTables": [ { "table": "…", "reason": "…" } ], "redactions": [ { "table": "…", "column": "…", "reason": "…" } ], "totals": { "tables": 96, "rows": 4213, "uncompressedBytes": 8123456 } } ``` ## 5. How a table relates to the patient
    - `"patient_id"` — the table names the patient directly. - `"via: . "` — rows selected via foreign key to a parent table belonging to the patient (for example `via:claims.claim_id`). - `"tenant"` — a population export scoped to the practice.
## 6. What is deliberately not in the file **Redacted columns:** authentication material (password hashes, API keys, webhook signing secrets, one-time codes) is replaced with a marker string and listed in `manifest.redactions`. **Staff account details (single-patient exports only):** staff sign-in names, personal emails, phone numbers, and photos are replaced with markers while preserving staff ID, display name, role, and status. **Excluded tables (single-patient exports only):** practice-level configuration with no patient relationship is listed in `manifest.excludedTables`. ## 7. Limits & reading an export Synchronous v1.0 exports are bounded at **250,000 records** or **200 MB** uncompressed (exceeding either returns an explicit error, never silent truncation; Format 2.0 removes this ceiling with asynchronous ZIP64 archives). ``` unzip ehi-export-all-patients-2026-09-09.zip -d export jq . export/manifest.json | head -40 jq -r '.code_display' export/data/conditions.ndjson ``` ## 8. Re-importing & versioning ChartVoyant's migration importer accepts both Format 1.0 (`data/*.ndjson`) and Format 2.0 (`records/*.json`) archives. Note: single-patient exports produced prior to September 10, 2026 omitted the root `patients` row and should be re-exported. --- # ChartVoyant for athenaOne Chrome extension Canonical URL: https://docs.chartvoyant.com/chrome-extension/ Open a patient's chart in athenaOne and the extension finds them in ChartVoyant under your staff sign-in — starting a GLP-1 visit or pre-filling patient registration without modifying athenaOne. ## Download & install in five steps Staff can download the packaged extension bundle directly from [chartvoyant.com/chrome-extension](https://chartvoyant.com/chrome-extension/) ([chartvoyant-athena-extension-1.1.0.zip](https://chartvoyant.com/static/extension/chartvoyant-athena-extension-1.1.0.zip), 43 KB) or from **Account Settings** inside the ChartVoyant web app. - **Download and unzip** Download [chartvoyant-athena-extension-1.1.0.zip](https://chartvoyant.com/static/extension/chartvoyant-athena-extension-1.1.0.zip) and extract the `chartvoyant-athena-extension` folder to a permanent location (such as `Documents`). - **Enable Developer mode in Chrome** Navigate to `chrome://extensions` in Chrome and toggle on **Developer mode** in the top-right corner. - **Load unpacked** Click **Load unpacked** and select the extracted `chartvoyant-athena-extension` directory (the folder containing `manifest.json`). - **Pin the extension** Confirm **ChartVoyant for athenaOne** appears in your extensions list and optionally pin it from Chrome's puzzle-piece toolbar menu. - **Sign in to ChartVoyant, then open athenaOne** Sign in at [app.chartvoyant.com](https://app.chartvoyant.com/) in the same Chrome profile, then open (or reload) a patient chart in athenaOne. The ChartVoyant panel appears at the bottom left. ## Security & data boundaries - **Reads the patient banner only.** Inspects name, date of birth, sex, athenaOne patient number, phone number, and address shown in the open athenaOne banner — nothing else on the page. - **Uses your authenticated ChartVoyant session.** Queries ChartVoyant under your staff sign-in to check whether the patient has a chart and GLP-1 membership. Every lookup is written to the practice's audit trail. - **Read-only in athenaOne.** Never mutates DOM state in athenaOne, clicks controls, or transmits data back to athenaOne. - **Zero disk persistence of PHI.** Ephemeral state lives in browser memory only and is cleared when Chrome closes. ## Session keep-alive & updates ChartVoyant signs inactive sessions out after 15 minutes (or less if configured by the practice). With the extension active, user input in athenaOne counts toward activity so your ChartVoyant session remains ready when you click a panel action; leaving both idle still triggers automatic sign-out. To update to a new release, download the latest ZIP from [chartvoyant.com/chrome-extension](https://chartvoyant.com/chrome-extension/), replace the files in `chartvoyant-athena-extension`, and click the reload icon on `chrome://extensions`. ## Diagnostics & support If a chart is open and the panel displays *No patient chart on screen*, click **Copy a report** in the panel and send the copied layout skeleton to [ChartVoyant Support](https://chartvoyant.com/support/). Every letter and digit is scrubbed before copying so the diagnostic report contains zero patient names or identifiers. athenaOne is a trademark of athenahealth, Inc. ChartVoyant is not affiliated with or endorsed by athenahealth. Chrome is a trademark of Google LLC. --- # API key usage policy, PHI & BAAs Canonical URL: https://docs.chartvoyant.com/usage-policy/ Plain-language rules for every ChartVoyant API key (cvk_…). The signed API Use Agreement puts these 14 obligations into contract form. None of these rules restrict or add fees to the standardized SMART on FHIR API. ## 14 rules for holding a ChartVoyant API key - **One key per integration. Never shared.** A key identifies a system, not a company. Two integrations get two keys, so one can be revoked without breaking the other and the activity trail means something. Don't pass your key to a subcontractor, a sister product, or another practice. - **Server-side only, with one exception.** Keys live on infrastructure you control. Not in browser JavaScript, not in a mobile or desktop app you ship, not in a CLI you distribute, and nowhere else an end user could extract it. The one exception is an MCP client run by the person the key was issued to, on a computer your organization manages; item 14 sets the rules. - **Store it like a database password.** A secrets manager or an encrypted store. Not in source control, not in a container image, not in a CI log, not in a screenshot, not pasted into a support ticket or a chat window, and not into an AI assistant's transcript, which is a persisted copy of your credential in someone else's system. - **Request the least access that does the job.** Read-only unless you write. If your integration writes to two endpoints and reads twenty, say so. We'd rather scope the key correctly than issue a broad one and hope. - **Minimum necessary.** Pull the records and fields the integration actually needs. A nightly full-table sweep to support a feature that touches fifty patients is not minimum necessary, and it's the pattern that turns a small breach into a large one. - **Don't build a shadow chart.** Cache what you need to do the job, for as long as the job takes. Standing up a permanent parallel copy of a practice's clinical record needs that practice's explicit written agreement. The API is an interface to their chart, not a license to replicate it. - **No secondary use.** Data reached with a ChartVoyant key is used to deliver the service the practice asked for. Not to train models, not to build a data product, not for research, not to enrich a marketing profile, and never sold or brokered, unless the practice has authorized that specific use in writing. - **Commercial products share profits.** If the API powers something you sell, thirty-five percent of the profits from it go to Geach Technologies, LLC, on the terms set in the [API Use Agreement](https://docs.chartvoyant.com/api-use-agreement/), including that the rate and terms can change on notice. If a profit share shapes whether your product works as a business, read that section before you build on us. - **Respect the rate limits.** Honor `429` and `Retry-After` with real backoff. Schedule bulk work off-hours and tell us before a migration or a large backfill. - **Rotate on a schedule, and on turnover.** Ask for a new key before the current one expires, and whenever someone who had access to it leaves. Old key gets revoked; there's no reason to run two. - **Report exposure immediately.** A key in a public repo, a leaked log, a compromised host, a laptop gone missing: email [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=URGENT%3A%20possible%20API%20key%20exposure) with the key prefix and what happened. We revoke first and sort it out after. Telling us early is not the thing that gets a key pulled permanently; not telling us is. - **Keep your contact current.** We need a real technical contact who answers email. Expiry notices, incident notices, and breaking-change notices go there. - **Access can be revoked at any time.** ChartVoyant may suspend or revoke a key at any time, for any reason, without notice. A security incident, use outside these terms, or a request from the practice it's bound to are the common reasons, but the right isn't limited to them. The practice can likewise revoke its own keys whenever it wants and doesn't owe you an explanation. It's their data. Build with that in mind. - **AI agents are your risk, not ours.** An MCP client hands what it reads to its AI model, so with a production key the model provider needs a BAA that covers the exact product and features you use (MCP, connector, and tool traffic included, which some providers exclude even on healthcare plans) and no training on the data. Consumer accounts never qualify. One key per person or per agent, a managed computer for any client that holds a key, a person supervising the agent, and no clinical decisions made by it. The agent, its model provider, and the data once ChartVoyant returns it are your responsibility, and ChartVoyant takes no liability for them. Production use requires the current [API Use Agreement](https://docs.chartvoyant.com/api-use-agreement/). ## PHI, BAAs, and the paperwork A production key returns protected health information. That is the point of it, and it is why the production path has gates the sandbox does not. - **The practice is the covered entity.** ChartVoyant is its business associate. When you integrate against a practice's data you become a business associate too, and you need a BAA with *that practice* before we issue a key. We ask you to confirm one is in place; we do not sign it for them. - **The signed API Use Agreement comes to us.** Sign it online at [e-sign.chartvoyant.com/apiuseagreement](https://e-sign.chartvoyant.com/apiuseagreement): we email a code to confirm your address, you complete the integration schedule, and you sign. Once ChartVoyant countersigns, the executed PDF is emailed to you and kept on file with the key it authorizes. - **AI agents require explicit disclosure.** If an agent will use a production key, the agreement asks you to name the agent and its model provider and confirm the provider's BAA covers MCP/tool traffic in writing. - **Everything is audited on the practice's side.** Every key-authenticated read or write of a chart records an audit event in that practice's tamper-evident trail, tied to your key by correlation ID. - **TLS only, US-hosted.** Plain HTTP is never served; data is hosted in the United States. --- # ChartVoyant API Use Agreement Canonical URL: https://docs.chartvoyant.com/api-use-agreement/ **To execute:** sign online at [e-sign.chartvoyant.com/apiuseagreement](https://e-sign.chartvoyant.com/apiuseagreement). You complete the details as you sign, ChartVoyant countersigns, and the executed PDF is emailed to you. A printed copy signed and emailed to [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=Signed%20API%20Use%20Agreement) is still accepted. Print / save as PDF ## ChartVoyant API Use Agreement Version 1.2Effective on signaturedocs.chartvoyant.com This Agreement governs the issuance and use of a production ChartVoyant API key. It is entered into between **Geach Technologies, LLC**, doing business as ChartVoyant ("ChartVoyant", "we"), and the organization identified below (the "Integrator", "you"). A key is issued only after a signed copy is on file. Sandbox keys are covered by the separate [Sandbox Terms](https://chartvoyant.com/sandbox-terms/) and do not require this Agreement. ## Integration details Integrator (legal name) Practice / office Integration name Purpose of the integration Data required Access level requested☐ Read-only ☐ Full (read and write) Requested key term☐ 90 days ☐ 1 year ☐ Other: Commercial product☐ Yes — profit share applies (see §8) ☐ No Technical contact Technical contact email Security contact email BAA with the practice☐ Executed ☐ In progress Date: AI agent use (see §10)☐ No AI agent will use this Key☐ An AI agent will use this Key AI agent, MCP client, and model provider (product and plan) Model provider BAA covering this use☐ Executed, and covers this product and its MCP / tool traffic in writing☐ Not yet — no Data will reach the agent until it is ## Terms - ### Definitions **API** means the ChartVoyant application programming interface, including the MCP endpoint. **MCP endpoint** means the Model Context Protocol server ChartVoyant operates as part of the API, together with its tools and their descriptions. **Key** means a credential issued by ChartVoyant in the form cvk_… . **Practice** means the medical office the Key is bound to. **PHI** means protected health information as defined by HIPAA. **Data** means information reached through the API using the Key, including every result the MCP endpoint returns. **AI Agent** means any software that uses a large language model or other artificial intelligence to read, interpret, or act on Data, including any MCP client. **Model Provider** means any person that operates a model used by an AI Agent or that otherwise receives Data from one. - ### Grant of access ChartVoyant grants you a limited, non-exclusive, non-transferable, revocable right to access the API using the Key, solely to operate the integration described above, solely for the Practice named above, and solely for the term of the Key. No other right is granted. The Key is bound to one Practice and confers no access to any other office's data. - ### One key, one integration The Key identifies a single system. You will not share it with, or use it on behalf of, any other organization, product, subcontractor, or practice. A second integration requires a second Key. You will request a separate Key for each environment you operate. - ### Credential security You will: store the Key in a secrets manager or equivalent encrypted store, protected at least as well as a production database credential; - use the Key only from servers you control or, on the conditions in §10, from an MCP client on a computer you manage — never in browser JavaScript, in a mobile or desktop application you distribute, or in any other client that a person outside your authorized personnel can inspect; - keep the Key out of source control, container images, build and CI logs, screenshots, support tickets, chat messages, and AI assistant transcripts; - limit access to the Key to personnel who need it, and revoke that access on their departure; - transmit all API requests over TLS. - ### Permitted use and minimum necessary You will request and use the minimum data necessary for the integration's stated purpose, and you will request the lowest access level that accomplishes it. You will not use the Key to enumerate, bulk-extract, or systematically harvest records beyond what the integration requires. - ### Prohibited uses You will not, without the Practice's prior written authorization: create or maintain a persistent parallel copy of the Practice's clinical record; - use Data to train, fine-tune, evaluate, or ground any machine learning or artificial intelligence model; - use Data for research, benchmarking, product development, or any purpose other than delivering the described integration; - sell, license, broker, or otherwise disclose Data to any third party; - re-identify, combine, or enrich Data with outside data sets. You will not attempt to circumvent access controls, rate limits, tenant scoping, or authentication, and you will not use the Key to probe endpoints outside the integration's stated purpose. **CPT® content.** Data may include codes and descriptions from Current Procedural Terminology (CPT®), which is copyrighted by the American Medical Association; CPT is a registered trademark of the AMA. This Agreement grants you no license to CPT content. You may show the CPT codes in a specific patient's Data to the Practice, or to that patient, as part of the integration. Any other use of CPT content, including storing, reproducing or displaying CPT descriptions apart from that patient's record, using CPT content to train or improve any artificial intelligence model, or giving it to any public or open artificial intelligence system, requires your own license from the AMA. - ### Rate limits and availability You will respect published rate limits and honor 429 responses with exponential backoff. You will notify ChartVoyant in advance of any bulk migration or backfill. The API is provided on a commercially reasonable basis; no uptime commitment is made in this Agreement. - ### Commercial use and profit share If the API is used in or in connection with a product or service that you sell, license, offer by subscription, or otherwise commercialize, you will pay Geach Technologies, LLC thirty-five percent (35%) of all profits derived from that product or service. Within thirty (30) days after the end of each calendar quarter you will remit the amount due together with a statement showing how it was calculated, and you will keep records sufficient to verify it, which ChartVoyant may review on reasonable notice. ChartVoyant may change this section, including the percentage, at any time by written notice to the technical contact on file; continued use of the Key after notice constitutes acceptance of the change. The Practice's use of the API for its own operations is not commercial use under this section. - ### HIPAA and business associate obligations You acknowledge that Data includes PHI, that the Practice is a covered entity, and that your handling of PHI makes you a business associate of the Practice. You represent that a business associate agreement between you and the Practice is or will be in effect before you access PHI, and that you will comply with it and with the HIPAA Privacy, Security, and Breach Notification Rules. This Agreement does not itself constitute a business associate agreement and does not modify any BAA between ChartVoyant and the Practice. From the moment the API delivers Data to you, you are solely responsible for safeguarding it, including when you pass it to an AI Agent, a Model Provider, or any other subcontractor, each of which must first be bound by a business associate agreement as HIPAA requires. - ### AI agents and the MCP server The MCP endpoint lets an AI Agent call the API with the Key. It works by handing Data to that AI Agent and, through it, to one or more Model Providers. You may use the MCP endpoint, or give Data obtained with the Key to any AI Agent, only while all of the following are true: before any Data reaches a Model Provider, that Model Provider is bound by a business associate agreement with you or with the Practice that expressly covers the specific product, plan, deployment, and features your AI Agent uses — including MCP, connector, tool-use, logging, and telemetry traffic — and that prohibits any use of Data to train or improve a model. Some providers' business associate agreements exclude MCP servers, connectors, or tool traffic even on plans offered for healthcare use; confirming in writing that your use is covered is solely your responsibility. A consumer, personal, or free account never meets this condition; - the Practice has approved in writing the AI Agent, its Model Providers, and its purpose, and you have identified them in the Integration details above; - each Key used with an AI Agent is issued for one named individual or one unattended agent, is never shared between people, and carries the lowest access level that accomplishes the purpose; you are responsible for every request made with it, and on request you will identify the individual who directed any request; - an MCP client that holds the Key runs only on a computer your organization owns or manages, with full-disk encryption, an automatic screen lock, and current security updates, and is used only by the individual the Key was issued to; the Key is kept in an environment variable or the operating system's credential store, never in a file that is shared, synced, or committed to source control; - transcripts, logs, caches, traces, and telemetry that the AI Agent or its client keeps are protected as PHI or turned off, and any that leave your systems go only to a recipient bound as described in the first item; - a person you designate supervises each AI Agent, and you are responsible for every action it takes and every output it produces, whether or not a person reviewed it first; - no AI Agent is used to make or communicate a diagnosis, a treatment decision, or any other clinical judgment, and nothing an AI Agent produces is presented as medical advice. You understand that AI Agents can misread or misstate Data, act on the wrong patient or appointment, follow instructions planted in content they read — including faxes, messages, and documents in the chart — and disclose Data through their own outputs, logs, and providers. You assume all of these risks. ChartVoyant does not operate, select, review, or control any AI Agent or Model Provider, makes no representation about any of them or about whether any agreement covers your use of them, and is not responsible for anything they do or for Data once the MCP endpoint has returned it. This section adds to, and does not reduce, your obligations under §9. - ### Security incidents You will notify ChartVoyant at **info@chartvoyant.com** without unreasonable delay, and in any event within twenty-four (24) hours, of any actual or suspected exposure, compromise, loss, or unauthorized use of the Key, and of any security incident affecting Data, including one at an AI Agent or Model Provider. Your notice will include the Key prefix and the facts known at the time. ChartVoyant may revoke the Key immediately on such notice. Prompt reporting is expected and will not by itself disqualify you from a replacement Key. - ### Monitoring and audit ChartVoyant records each Key-authenticated request — method, route, response status, source IP, correlation identifier, and duration — and retains that record. Requests against the Practice's records are additionally written to the Practice's own audit trail, which the Practice may review. For the MCP endpoint the record also names the method and tool called and the names, but not the values, of its arguments, and each tool call is written to the Practice's audit trail. You consent to this monitoring. On reasonable request you will describe to ChartVoyant or the Practice how Data is stored, secured, and retained by your systems. - ### Suspension and revocation API access is not an entitlement. ChartVoyant may suspend or revoke the Key at any time, with or without cause and without prior notice — including, without limitation, where the Key is implicated in a security incident, is used in breach of this Agreement, or threatens the stability of the platform, or where the Practice requests it. The Practice may likewise direct revocation of any Key bound to it at any time and for any reason. Revocation takes effect on the next request, and no revocation gives rise to any liability of ChartVoyant or the Practice to you. - ### Term, expiry, and termination This Agreement begins on signature and continues while any Key issued under it is active. Each Key carries its own expiry and stops authenticating on that date; a replacement requires a request from the technical contact on file. Either party may terminate this Agreement on thirty (30) days' written notice, or immediately for material breach. On termination or revocation you will stop accessing the API, and you will delete or return Data in your possession as directed by the Practice, except where retention is required by law. You will confirm completion in writing on request. Sections 8 (as to amounts accrued), 9, 10, 11, 15, and 17 through 22 survive any termination, revocation, or expiry. - ### Confidentiality Each party will protect the other's non-public information disclosed in connection with this Agreement, using at least reasonable care, and will use it only to perform under this Agreement. Data is the Practice's confidential information. These obligations survive termination. - ### Changes to the API ChartVoyant may change, deprecate, or withdraw API endpoints, MCP tools and their descriptions, and supported protocol versions. We will give the technical contact on file reasonable advance notice of a breaking change except where a shorter timeline is required for security. You are responsible for keeping that contact current. - ### No warranty The API, including the MCP endpoint, and the sandbox are provided "as is" and "as available", without warranty of any kind, express or implied, including merchantability, fitness for a particular purpose, accuracy, completeness, non-infringement, and any warranty that they will be uninterrupted, error-free, or secure. ChartVoyant does not warrant that any AI Agent will interpret or act on Data correctly, and makes no representation about any AI Agent, Model Provider, or other third-party product, including whether its terms or business associate agreement cover your use. Nothing returned by the API is medical advice, and you will not present it as such. - ### Limitation of liability To the maximum extent permitted by law: ChartVoyant is not liable to you, or to anyone claiming through you, for any indirect, incidental, special, consequential, exemplary, or punitive damages, or for any loss of profits, revenue, business, goodwill, or data, arising out of or relating to this Agreement, the API, a Key, or Data, under any theory of liability, even if advised of their possibility; - ChartVoyant's total liability arising out of or relating to this Agreement, the API, a Key, or Data, under any theory of liability, will not exceed the amounts you paid ChartVoyant for API access in the twelve (12) months before the event giving rise to the claim, or one hundred dollars ($100) if no amounts were paid; and - ChartVoyant has no liability for any act or omission of you, your personnel or subcontractors, or any AI Agent or Model Provider, or for any access to, use, disclosure, alteration, or loss of Data after the API has delivered it at your request. These limits apply even if a limited remedy fails of its essential purpose. They do not limit ChartVoyant's liability for its own fraud, gross negligence, or willful misconduct where applicable law does not allow that liability to be limited. No limit or exclusion in this Agreement applies to your obligations under §6, §9, §10, §11, or §15, to your indemnity under §19, or to amounts you owe under §8. - ### Indemnity You will defend, indemnify, and hold harmless ChartVoyant and its members, managers, officers, employees, and contractors, and the Practice, from and against any claim, demand, investigation, proceeding, judgment, settlement, loss, damage, cost, or expense — including reasonable attorneys' fees, the costs of forensic investigation, breach notification, call centers, and credit monitoring, and, to the extent permitted by law, fines and penalties — arising out of or relating to: your breach of this Agreement or of any business associate agreement with the Practice; - your use or misuse of a Key, or use of a Key by anyone who obtained it from you or from your systems; - your integration, AI Agents, or Model Providers, including any action an AI Agent takes and any output it produces; - any transmission of Data to an AI Agent, a Model Provider, or any other third party; - any security incident or breach involving Data in the possession or control of you, your personnel or subcontractors, or any AI Agent or Model Provider; or - your violation of law. ChartVoyant may take part in the defense with counsel of its choice at its own expense. You will not settle a claim in a way that imposes any obligation on, or admits fault by, ChartVoyant or the Practice without its prior written consent. - ### Insurance While any Key issued under this Agreement is active, and for two (2) years afterwards, you will maintain at your own expense cyber liability insurance, covering network security and privacy liability and breach response costs, and technology errors and omissions insurance, each with limits of at least one million dollars ($1,000,000) per claim. You will provide a certificate of insurance on request and will notify ChartVoyant within thirty (30) days of any cancellation or reduction of that coverage. Your insurance does not limit your obligations under this Agreement. - ### Assignment You may not assign this Agreement or transfer a Key, including by merger or change of control, without ChartVoyant's prior written consent. A Key is not an asset that survives a sale of your business. - ### Governing law This Agreement is governed by the laws of the State of Tennessee, without regard to its conflict-of-laws rules. The parties consent to the exclusive jurisdiction of the state and federal courts located in Hamilton County, Tennessee. - ### Entire agreement This Agreement, together with the usage policy published at docs.chartvoyant.com, is the entire agreement between the parties on this subject and supersedes prior discussions. Where the two conflict, this Agreement controls. Amendments must be in writing and signed by both parties. If any provision is held unenforceable, the rest remains in effect. ## Signatures The person signing for the Integrator represents that they are authorized to bind it. #### For the Integrator Signature Printed name Title Organization Date #### For ChartVoyant Signature Printed name Title Key prefix issued Date **Return this signed agreement to** [info@chartvoyant.com](mailto:info@chartvoyant.com?subject=Signed%20API%20Use%20Agreement). We countersign, keep it on file with the key, and issue the credential to the technical contact named above. Questions before you sign are welcome — email the same address.