Skip to content
Reference

Adapter: CDA / C-CDA Document Parser

Parse HL7 Clinical Document Architecture (CDA) and Consolidated CDA (C-CDA) XML documents. Extracts patient demographics, sections, and clinical entries. Supports conversion to FHIR R4 Bundle.

On this page

Purpose

Parse CDA and C-CDA documents into JSON, convert them to a FHIR R4 document Bundle, or extract the patient, sections, medications or problems.

Auth

  • None: the step passes the document XML as content.

Settings

Auth is none. Dotted names are fields inside an object setting. Secret settings are encrypted at rest, never returned by a read, and shown masked in the console and in exports; their defaults are not shown.

This adapter has no settings.

Actions

This adapter only reads or receives: a send step through it is refused. A trailing ? marks an optional step parameter.

ActionWhat it doesStep parametersKeys a message may supply
parse-cdaParse raw CDA/C-CDA XML and return a structured ParsedCda JSON object.contentcontent
cda-to-fhirParse CDA XML and convert to a FHIR R4 Bundle (type: document).contentcontent
extract-patientParse CDA XML and return only the patient demographics object.contentcontent
extract-sectionsParse CDA XML and return the array of CdaSection objects.contentcontent
extract-medicationsParse CDA XML and return a flat array of medication entries across all sections.contentcontent
extract-problemsParse CDA XML and return a flat array of problem/condition entries across all sections.contentcontent

Minimal example

The smallest profile the engine accepts: the required settings only, with synthetic values. Create it with POST /api/adapter-profiles, then test it with POST /api/adapter-profiles/{id}/test.

json
{
  "name": "CDA / C-CDA Document Parser (example)",
  "adapterType": "cda",
  "config": {}
}

Limits

  • Parse only: the adapter has no settings and no send action.
  • Documents with a DOCTYPE or entity declarations are refused.
  • To read a document from SFTP, a URL or a bucket, fetch it with that adapter first.

Reference