Medplum C-CDA import, export and transitions of care

Medplum supports C-CDA viewing, export, FHIR to C-CDA conversion and Direct message sending for transitions of care. This page explains how to plan and configure that work in infrastructure you control.

On this page

How Medplum handles C-CDA for transitions of care

Medplum handles C-CDA natively in four ways: a C-CDA viewer for uploaded documents, C-CDA export from the app or API, an SDK for converting FHIR resources to C-CDA, and sending C-CDA by Direct message for transitions of care. Medplum states that these capabilities are supported in line with the ONC certification criteria (g)(7), (g)(9) and (b)(1). If your team must share clinical summaries with other providers, you need to know which of these pieces Medplum supplies and which ones your own build, configuration or partner agreements must still cover. This section describes that native scope. It covers planning and configuration only. It does not cover certification, and a supported criterion in a product is not the same as a certified deployment of your own system.

The export path and the Direct path solve different problems, so decide which one each workflow needs before configuring anything. C-CDA export produces a document from patient data in the Medplum app or through its API, which suits a clinician who needs to print, download or hand off a summary. The FHIR to C-CDA conversion in the SDK matters when your own application or Bot builds documents from FHIR resources and must control the template content. Direct messaging sends a document to a recipient's Direct address, which requires an agreed Direct address, a trust relationship with the receiving organization and a sending configuration that your team owns. Confirm with your Direct service provider and your security team who holds the certificates and where keys are stored, because these are not settled by the Medplum deployment alone. Verify with the current Medplum C-CDA documentation which template versions and sections each function emits before you map your data to it.

Before go-live, run the same patient through each path and compare what the receiving side sees with what your clinicians expect. Check that problems, medications, allergies and encounter data appear where the recipient's system expects them, and record any section Medplum leaves empty because the source FHIR data is missing. Plan who reviews an incoming document that arrives through Direct and how it is filed into the patient record. Ask your partner or internal team to document the Direct configuration, the access rules that control who can export, and the audit trail for each sent document, since a transitions-of-care workflow will be judged on that evidence. The Medplum C-CDA documentation is the natural next read for the exact function list.

What you need before C-CDA work starts

C-CDA work touches the Medplum version you run, the database and cache beneath it, the Direct messaging path used for transitions of care, and the sample documents your source systems produce. Confirm each item against the Medplum C-CDA docs and your own environment before scoping the build.

Self-hosted Medplum version and upgrade path

Confirm which Medplum version your deployment runs and whether the C-CDA features you need are present in that version. Self-hosted Medplum must be upgraded through each minor version in sequence, so a jump from an old release to a current one is not a shortcut. The latest release at research time was 5.2.5, published October 15, 2026, and is context only: your target version should be set by your own upgrade plan and the C-CDA docs.

Upgrade guide

PostgreSQL and Redis footprint

The Medplum server runs on Node.js and TypeScript, with PostgreSQL as its database and Redis as its cache. Document-heavy C-CDA work adds stored binaries, generated resources and export requests, so ask your team to size both services against expected document volume. Confirm backup, restore and failover coverage for each before the first document is loaded.

Direct messaging provider or HISP agreement

Sending C-CDA by Direct message for transitions of care requires a Health Information Service Provider or equivalent Direct messaging arrangement. Confirm with your provider which Direct addresses you will be issued, how they handle inbound messages, and what they require of your team for onboarding. Agree the contract terms, including how security incidents are reported, before testing begins.

Certificates and trust anchors for Direct

Direct exchange depends on certificates that identify each sender and receiver, and on trust anchors that your systems and your partners' systems accept. Ask your Direct provider for the certificate type, issuing authority, renewal process and the trust bundle they expect. Plan who owns certificate rotation and how an expired certificate will be detected before it stops transitions of care.

Sample documents from source systems

Collect representative C-CDA documents from each source system that will send or receive them, including the document types, template versions and any local extensions. Samples show how a viewer will render real content and where a FHIR to C-CDA conversion may differ from what a receiving system expects. Use de-identified or test data where possible, and confirm with your privacy office how real samples may be handled.

Verification against the Medplum docs

Before scoping, check every capability you plan to use against the Medplum C-CDA documentation and your target version, since features and supported certification criteria may change between releases. Record which items are confirmed, which need a vendor answer, and which depend on your own environment. Treat this list as the input to the build plan, not a substitute for those checks.

Medplum C-CDA docs

How C-CDA moves between Medplum and other providers

The diagram starts with a C-CDA file uploaded through the Medplum app into the viewer, where the document is stored and read alongside FHIR resources in the Medplum repository. Export runs in two ways, from the app or through the API, and the FHIR to C-CDA conversion (through the SDK) produces the outbound document. Direct message delivery to a receiving HISP crosses the boundary of the customer network, so confirm which party operates the HISP connection, the Direct certificates and the trust anchors before go-live.

Inbound C-CDA, FHIR storage, export and outbound Direct message across the trust boundary.

Configuring C-CDA viewing, export and Direct sending

This sequence takes a Medplum deployment from uploaded C-CDA documents to a verified export and a tested Direct transition-of-care message. Each step closes with a check the team can record before moving on.

  1. Inventory the C-CDA documents and document types in scope

    The compliance lead and the clinical informatics team list the C-CDA document types, source systems and receiving organizations the deployment must handle. They also confirm which ONC criteria the organization is claiming, since those criteria determine which capabilities must be verified. The output is a written scope that names each document type and each receiving partner. The step is done when the scope is signed off and the team agrees which samples will be used for testing.

  2. Enable and verify the C-CDA viewer

    The platform administrator confirms the Medplum version running in the environment and checks that the C-CDA viewer is available in the app. The administrator then uploads a set of de-identified sample documents and opens each one. The team checks that section headings, medications, problems, allergies and encounters render without loss compared with the source file. The step is done when every sample opens and the team has recorded any rendering gaps as issues.

  3. Define roles and access policies for document handling

    The security architect and platform administrator decide which roles can upload, view, export and send C-CDA documents, and which roles only read them. They then translate those decisions into Medplum project membership and access policy settings, and confirm how uploaded documents are linked to patient records. Access to documents containing ePHI should follow the minimum necessary principle that the organization's HIPAA Security Rule program defines. The step is done when a test user from each role can perform only the actions assigned to that role.

  4. Test C-CDA export for a sample patient from the app

    A clinical tester selects a sample patient with a populated record and runs the C-CDA export from the Medplum app. The tester saves the output and compares the sections against the patient's FHIR resources, checking demographics, problems, medications, allergies, results and encounters. Any missing or incorrectly coded element is logged with the resource it came from. The step is done when the export for the sample patient matches the source data for all agreed sections.

  5. Test C-CDA export for the same patient through the API

    A developer calls the Medplum API for the same sample patient to request the C-CDA export programmatically, using a client with the documented scopes and a service identity rather than a personal login. The developer compares the API output with the app output byte for byte or section by section and records any differences. Differences often come from timing, optional sections or parameters, so each one needs an explanation. The step is done when the API and app outputs agree or every difference has a documented reason.

  6. Validate FHIR to C-CDA conversion with the SDK

    A developer runs the Medplum SDK conversion from FHIR resources to C-CDA on a set of test bundles that cover the agreed document types, including edge cases such as missing optional fields and multiple active medications. The output is checked against the C-CDA schema and against the conformance validation tools the organization selects, and the team confirms the results with its certification or testing body where required. The step is done when every test bundle produces a document that passes the chosen validation and the results are archived with the scope.

  7. Configure Direct sending with the HISP

    The integration engineer works with the chosen Health Information Service Provider (HISP) to establish a Direct address for the organization, configure the sending endpoint and agree on certificates and trust anchors. The team confirms with the HISP which Direct features it supports, how it handles delivery receipts and how it exposes status to Medplum. Credentials are stored in the organization's secrets management system, not in configuration files. The step is done when the HISP confirms the Direct address is active and the sending configuration is documented.

  8. Send and confirm a test transition-of-care message end to end

    A tester sends a test transition-of-care document by Direct from a sample patient record to a second Direct address controlled by the team or a cooperating partner. The tester confirms that the receiving side gets the message, opens the attached C-CDA, and that the send and delivery events are recorded in the audit trail. The result is compared with the expected content from the earlier export tests. The step is done when the receiving address confirms the document arrived intact and the audit entries are retained.

How FHIR resources map to C-CDA sections

This table shows which FHIR resources typically feed which C-CDA document sections when exporting patient data from Medplum. Read the confirm column as the list of mappings to verify against the Medplum SDK output and the receiving system's requirements before relying on them, since the coverage of each section depends on what is recorded in your data.

FHIR resourceTypical C-CDA sectionMapping status
PatientRecord target and demographics headerConfirm required identifiers, address and language fields in the SDK output
EncounterEncounters section and encompassing encounterConfirm encounter type, dates and location mapping for your document type
ConditionProblems section (entries for active and resolved problems)Confirm clinical status and code system values the receiver expects
MedicationStatement or MedicationRequestMedications sectionConfirm which resource your data uses and how dose and status are carried
AllergyIntoleranceAllergies and intolerances sectionConfirm reaction and criticality fields are populated and exported
Observation (vital signs and results)Vital signs and results sectionsConfirm panel grouping and units; coverage depends on the observations you store
ProcedureProcedures sectionConfirm status and performed dates are mapped in the output
ImmunizationImmunizations sectionConfirm vaccine codes and administration dates in the generated entries
DocumentReferenceDocument-level references and attachmentsConfirm how existing uploaded C-CDA documents are linked, not regenerated

Handling uploaded C-CDA documents in the viewer

An uploaded C-CDA document is a record of care that another organization produced, and Medplum's C-CDA viewer lets your clinicians read it inside the application. Viewing is the easy part. The harder work is deciding what the document means for the chart before anyone relies on it. Your team owns that decision. Medplum supplies the viewer and the FHIR-based data model, but the rules that turn a received summary into structured clinical data, and the review that confirms those rules worked on real documents, belong to your clinical informatics and quality staff. Confirm with your Medplum contact exactly which document sections the viewer renders and which ones it leaves as narrative text, because that boundary determines what a clinician can act on directly.

Once a document is in the viewer, your team has to settle how it relates to the clinical data already in the record. Medplum stores FHIR resources, and a summary's problems, medications, allergies and results may overlap with Patient, Condition, MedicationStatement, AllergyIntolerance and Observation data your organization already holds. Decide in advance whether imported items are created as new resources, matched to existing ones, or held for review, and who may accept a conflicting allergy or medication. Record the source document and the author on imported data so a later reader can trace each entry back to the summary it came from. Confirm the identifiers and patient matching method with the sending organization before any merge is considered.

Outside records need a documented process before they reach clinicians as trusted information. Write down who reviews an incoming document, the time frame for review, how discrepancies are escalated, and what must be reconciled before a medication list or problem list is updated. Test the process with a sample of real documents from your main sending partners, and keep the results as evidence for your own quality and compliance reviews. Medplum's compliance documentation describes compliance as a shared responsibility between Medplum and its customers, so the review workflow, its records and its training are your organization's obligations to assess and document.

Security controls for C-CDA and Direct exchange

C-CDA documents and Direct messages carry full clinical records, so access, transport, logging and credentials need to be designed together before any document leaves the system. The cards below cover the controls a security or compliance team should review, mapped to the HIPAA Security Rule where it applies.

Access control on documents

Decide which roles can upload, view, export and send C-CDA documents, and enforce that in access policies rather than relying on the interface alone. Confirm that a user who can read a Patient record can also see its imported documents, and that an export cannot bypass the restrictions on the underlying resources. Test this with accounts from each role, including a user with no access to the patient. Map the result to unique user identification and access control under the Security Rule technical safeguards.

C-CDA docs

Unique user identification

Each person who exports or sends a document should sign in with their own identity, not a shared login. Confirm that Medplum's sign-in options, including multi-factor authentication, are set for every clinician and administrator who can trigger an export or Direct send. Shared service accounts used by Bots or integrations should be documented separately, with a named owner. This addresses the required unique user identification implementation specification under 45 CFR 164.312.

TLS and certificates for Direct

Direct messages move between a sender and a receiver through a HISP, so transport security depends on TLS settings, certificate validity and trust anchors at each hop. Confirm which certificates your HISP uses, who renews them, and how expiry is monitored. Ask the HISP to describe its encryption in transit and its handling of failed trust checks. Transmission security is one of the Security Rule technical safeguards, and the review should record how it is met for each route.

Audit logging of exports and sends

Every C-CDA export and every Direct send should leave a record that shows who acted, when, which patient and documents were involved, and where the message went. Confirm that these events reach your log platform and are retained for the period your policy requires. Test by exporting one document and sending one message, then checking that both events appear with the expected fields. This supports the audit controls standard in 45 CFR 164.312.

PHI in test data

Test C-CDA files and Direct addresses should not be built from real patient records copied into a non-production environment. Use synthetic patients or de-identified samples, and label them so no one mistakes them for live data. Check that test exports, logs and screenshots do not carry real names, identifiers or document content into tickets or shared channels. Confirm the rule in writing for everyone who runs conformance or interoperability tests.

Direct credential and key management

Direct credentials, including private keys and certificates for your Direct addresses, need an owner, a storage location, a rotation schedule and a revocation procedure. Keep private keys out of source code, configuration files and container images, and restrict who can read them. Document what happens if a key is exposed, including how the HISP is notified and how trust is re-established. Ask any HISP or vendor that handles this material to confirm it will sign a business associate agreement, which must require Security Rule compliance and flow the same terms to its subcontractors, and must require reporting of security incidents to you.

Common C-CDA and Direct failures and their fixes

This table lists the failures teams most often hit when working with C-CDA documents and Direct messages in Medplum, with the likely cause and first fix for each. Read it as a triage guide: match the symptom you see, check the cause, then confirm the fix in your own environment before changing production settings. The main takeaway is that most failures trace back to mapping gaps, trust configuration or version changes, and each one can be tested in a non-production project first.

SymptomLikely causeFix to check first
Uploaded C-CDA does not render in the viewerThe document uses a template version or section structure the viewer does not parse, or the file is truncated or not well-formed XMLValidate the file against the C-CDA schema and template rules with an external validator, then confirm the viewer supports that document type before retrying
Sections are missing from an exported C-CDAThe FHIR resources for those sections were never created, were filed under a different patient, or fall outside the export's query scopeConfirm the resources exist for the patient in the same project, then re-run the export and compare each section against the source records
Exported document has empty or partial entriesRequired fields such as codes, dates or status values are absent in the source FHIR resources, so the conversion has nothing to mapPopulate coded fields such as code systems and effective dates in the source data, and test the conversion on a single known patient
Receiving system rejects the exported documentIts own validation is stricter than the base C-CDA rules, or it expects specific identifiers, author details or vocabularyObtain the receiving system's validation report and its implementation guide, then adjust mappings or Bots to match before resending
Direct message is rejected for trust or certificate reasonsThe sender or recipient address lacks a valid certificate chain, the certificate has expired, or the trust anchor is not on the receiving sideCheck certificate validity dates and chain with your Direct trust provider, and confirm the receiving HISP accepts your certificate before sending production documents
Direct message sends but the recipient never gets itThe recipient address is wrong, the domain is not configured for Direct, or the message was accepted but not delivered downstreamVerify the address with the recipient, review delivery receipts or notifications, and send a test message to a known test address
Behavior changes after moving between minor versionsEach Medplum minor version can change conversion output or viewer behavior, and upgrades must be applied in sequenceCompare a golden set of exported documents before and after the upgrade, and follow the Medplum upgrading guide, restoring a snapshot if output drifts

Questions buyers ask about Medplum C-CDA work

What drives the effort of C-CDA and Direct setup?

The effort depends mostly on how many document types you need, which source data feeds them, and how many receiving systems you must reach. Viewing an uploaded C-CDA is a different job from exporting patient data, and both differ from sending documents over Direct. Each path needs its own mapping from FHIR resources to the C-CDA sections your receivers expect, plus test cases against real documents from your partners. Direct setup adds the work of obtaining Direct addresses and certificates through a HISP, configuring sending and receiving, and confirming that outbound and inbound messages are handled correctly. Ask any partner to break its estimate into these parts so you can see which ones your data quality and partner count actually drive.

Can our own team set up C-CDA and Direct on Medplum alone?

Often yes, if your engineers already work with FHIR, document standards and secure messaging, and you have clinical staff who can review output. Medplum documents its C-CDA support in its C-CDA docs, including the viewer, export from the app or API, the SDK conversion and Direct sending, so the building blocks are documented. The harder parts are usually mapping decisions, validation against receiving systems and getting a Direct relationship in place. Teams that lack this experience often bring in a partner for the mapping and testing phase while keeping operational ownership internally. Whichever route you choose, write down who owns each step before work starts.

What does the work need from clinical and compliance staff?

Clinical staff need to confirm that the exported content is correct and complete for each use, such as a transition of care summary, and that the sections match what clinicians expect to see. Compliance and privacy staff need to review who can send documents, what data leaves the organization, how sends are logged, and what the business associate agreements with your HISP and any other vendor say about security incident reporting. Under 45 CFR 164.314(a)(2)(i), a business associate contract must require the business associate to comply with the Security Rule, flow those terms to subcontractors that handle ePHI, and report security incidents. Confirm these terms with your counsel, since they depend on your contracts.

How does a HISP relationship affect the timeline?

A health information service provider (HISP) relationship is often the step that sets the pace, because it depends on parties outside your project. You need to choose a HISP, agree on onboarding steps, obtain Direct addresses and complete test exchanges with the partners you intend to reach. None of these depend on how quickly your engineers write code. Ask the HISP for its onboarding sequence and test requirements early, and ask your delivery partner to plan the internal build so it does not wait on external approvals. No duration figure is available for this step in our research, so request the HISP's own timeline in writing.

Does HIPAA or ONC certification get issued for this work?

HIPAA has no certification. HHS states in its FAQ that no Security Rule standard requires an entity to certify compliance, and that private certifications do not stop HHS from later finding a violation. The HHS Office for Civil Rights enforces the rule through complaints, compliance reviews and audits. ONC certification is different: it is granted by an authorized certification body against the criteria your product is tested for, such as (g)(7), (g)(9) and (b)(1). DeployOpen does not issue audit reports, attestations or certifications, and it does not decide ONC certification outcomes. It prepares systems, controls and evidence for your assessor or certification body.

What should a written scope for C-CDA work include?

A written scope should name each document type, each source data set, each export path and each receiving system, along with the acceptance criteria for each. It should list the Direct work separately: which HISP is used, which Direct addresses are created, which test exchanges are included and who runs them. Ask for the deliverables, such as mapping documentation, test cases, validation results and runbooks, plus the handover and any retest. Ask how changes to the scope are priced and approved. Fixed-scope engagements are agreed in writing before work starts, so the scope document is where these details belong.

Which Medplum version should we target for C-CDA work?

Target the Medplum release that is current when your project starts, and confirm that the C-CDA features you need are present in that version. At research time the latest release was 5.2.5, published on October 15, 2026. Medplum ships major versions annually in Q4, with minor and patch releases during the year, and each major version receives 1 year of Active support and 1 year of Maintenance. Self-hosted deployments must upgrade through each minor version in sequence, so plan the upgrade path before the C-CDA build depends on a particular release. Check the GitHub releases page for the current state.

What HIPAA and ONC rules mean for this workflow

The HIPAA Security Rule (45 CFR Part 164 Subpart C) applies to covered entities, such as health plans, health care clearinghouses and covered health care providers, and to their business associates, for all electronic protected health information they create, receive, maintain or transmit. A C-CDA document that contains patient data, whether uploaded to Medplum, exported from it or sent by Direct message, is ePHI in that scope. Medplum's C-CDA support is aligned with ONC certification criteria, but alignment with a criterion is not the same as HIPAA compliance. Your organization still has to decide who may view, export and send these documents, how transmissions are protected and how activity is logged.

There is no HIPAA certification. HHS states that no Security Rule standard requires an entity to certify compliance, and that private certifications do not prevent HHS from later finding a violation. Enforcement comes through the HHS Office for Civil Rights, which acts on complaints, compliance reviews and audits. Your evidence for a review is the record of how your own deployment was configured, operated and monitored. Ask any vendor or assessor for their scope and the specific controls they tested, and keep your own documentation for the Direct messaging path, export permissions and audit logs. A business associate contract under 45 CFR 164.314(a)(2)(i) should also cover any partner that handles these documents on your behalf.

HHS published a proposed Security Rule revision on 6 January 2025 (90 FR 898). At research time no final rule had been published, and the Unified Agenda projected final action for July 2027. Confirm the current status on the Federal Register and reginfo.gov before you finalize your design, because a final rule could change technical safeguard expectations for systems like this. Medplum's compliance documentation describes compliance as a shared responsibility between Medplum and its customers, so the controls around your C-CDA workflow, including access policy, Direct messaging configuration and retention, are your responsibility to implement and document.

How DeployOpen scopes and delivers C-CDA work on Medplum

DeployOpen approaches Medplum C-CDA import, export and transitions of care as a written, fixed-scope engagement inside your own infrastructure. We agree which document types, source systems, Direct addresses and conversion rules are in scope before work starts, then build, test and document each part so your clinical, compliance and security teams can review it.

How we scope

  • Confirm which C-CDA document types and sections must be viewed, exported or sent, and which FHIR resources feed them.
  • Record the Direct messaging provider, trust relationships and receiving sites that the transitions of care workflow depends on.
  • Agree in writing how the ONC criteria the work addresses map to features, tests and evidence, with the deliverables and timeline.

How we build

  • Configure the Medplum C-CDA viewer and export paths for your chosen document types on your self-hosted deployment.
  • Build and test the FHIR to C-CDA conversion with sample data from your own source systems, checking section and coded entry content.
  • Set up Direct message sending, including access controls, logging and error handling for documents that fail to deliver.

How we hand over

  • Provide test records, conversion mapping notes and a test log showing which scenarios passed, failed or were deferred.
  • Document configuration, access policies, audit logging and the steps your team follows to send and reconcile a document.
  • Walk your clinical informatics, compliance and engineering staff through the build and agree the open items before close.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, so conversion and Direct sending keep working across Medplum releases.
  • Plan Medplum server upgrades with C-CDA regression tests, since minor versions must be applied in sequence on self-hosted deployments.
  • Confirm with your certification body or auditor which evidence they need, since DeployOpen prepares evidence but does not certify.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.