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.
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.
| Action | What it does | Step parameters | Keys a message may supply |
|---|---|---|---|
parse-cda | Parse raw CDA/C-CDA XML and return a structured ParsedCda JSON object. | content | content |
cda-to-fhir | Parse CDA XML and convert to a FHIR R4 Bundle (type: document). | content | content |
extract-patient | Parse CDA XML and return only the patient demographics object. | content | content |
extract-sections | Parse CDA XML and return the array of CdaSection objects. | content | content |
extract-medications | Parse CDA XML and return a flat array of medication entries across all sections. | content | content |
extract-problems | Parse CDA XML and return a flat array of problem/condition entries across all sections. | content | content |
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.
{
"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.