ChartVoyant Developers
Markdown

Clinical Interfaces & Exports

C-CDA documents

BetaExport only

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.

GET https://chartvoyant.com/api/v1/patients/{id}/ccda

At a glance

StatusExport: beta. The endpoints answer in production, but the document is not yet fully conformant. Import: onboarding migration only, with no public API.
DocumentA 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.
ContentsPatient 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 includedCoded 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 for structured data.
Formatapplication/xml.
AuthenticationA SMART token with a complete-chart grant, or a ChartVoyant API key (read-only is enough).
DeliveryReturned to the caller. ChartVoyant does not transmit the document to another system on your behalf through this API.

Endpoints

RouteAuthWhat it returns
GET {FHIR base}/DocumentReference/$docref?patient={id}SMART token, complete-chart grantA 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.
GET {FHIR base}/Patient/{id}/$ccdSMART token, complete-chart grantThe CCD itself, as an XML attachment.
GET https://chartvoyant.com/api/v1/patients/{id}/ccdaAPI keyThe 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

curl "https://chartvoyant.com/api/v1/patients/PATIENT_ID/ccda" \
  -H "Authorization: Bearer $CHARTVOYANT_API_KEY"

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.

How to get access

  1. 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.

  2. Go to production with a practice

    A production key needs a sponsoring practice that confirms the request, a signed API Use Agreement, and a BAA between you and the practice. See Onboarding Process.

  3. Or connect via SMART on FHIR

    Register an app as described on SMART App Launch. There is no fee.