Clinical Document Architecture (CDA) is an XML-based markup standard that specifies the structure, semantics, and encoding of clinical documents for electronic exchange. It defines a document as a complete, legally authenticated information object that can include text, images, and other multimedia, ensuring it is both human-readable and machine-processable.
Glossary
Clinical Document Architecture (CDA)

What is Clinical Document Architecture (CDA)?
A foundational HL7 standard for the exchange of clinical documents, defining both structure and semantics using XML markup.
A CDA document is organized into a mandatory header and a body. The header provides metadata like patient identity, author, and document type, while the body contains the clinical content, which can be structured using standardized coding systems such as SNOMED CT and LOINC. This dual structure enables semantic interoperability, allowing disparate health IT systems to parse and display the document consistently.
Key Features of CDA
The Clinical Document Architecture is built on a set of core design principles that ensure clinical documents are both machine-readable and human-readable, supporting semantic interoperability across disparate health IT systems.
Human-Readable and Machine-Processable Duality
A foundational requirement of CDA is that every document must be renderable as human-readable text using a standard web browser while simultaneously being structured for machine processing. This is achieved by embedding the narrative text block within a <text> element and linking it to formal, coded entries in the <entry> block. This design ensures a clinician can always read the document natively, while a decision support system can parse the structured data for automated checks.
HL7 Version 3 Reference Information Model (RIM)
All CDA documents derive their semantic structure from the HL7 V3 Reference Information Model (RIM), an object-oriented, domain-agnostic model of healthcare data. Key RIM classes used in CDA include:
- Act: Represents clinical actions like observations, procedures, and substance administrations.
- Entity: Represents physical things and beings, such as people, organizations, and devices.
- Role: Defines the capacity in which an Entity participates in an Act (e.g., a person as a 'patient' or 'provider').
- Participation: The association between a Role and an Act, contextualizing the involvement. This formal grounding ensures consistent semantics across all CDA implementations.
Incremental Semantic Interoperability (Levels 1, 2, 3)
CDA defines a graduated hierarchy of machine-processability to accommodate varying levels of implementation maturity:
- Level 1 (Unconstrained): Only the CDA Header is fully coded. The document body is a single, unstructured narrative blob. This is the simplest to generate but offers minimal semantic interoperability.
- Level 2 (Section-Level Templates): The document body is divided into coded sections (e.g., 'Allergies', 'Medications'), each containing a narrative block. Structure is enforced, but content within sections is not formally coded.
- Level 3 (Fully Coded Entries): The narrative in each section is linked to machine-readable, coded clinical statements (entries) that can be processed by a computer. This level enables true semantic interoperability for clinical decision support and automated data aggregation.
Persistence, Stewardship, and Context
A CDA document is defined by six key characteristics that distinguish it from a simple message or dataset:
- Persistence: The document continues to exist in an unaltered state for a time period defined by regulatory and clinical needs.
- Stewardship: A designated organization is responsible for the document's maintenance and integrity.
- Context: The document establishes its own clinical, temporal, and legal context, including the author, authenticator, encounter, and patient.
- Wholeness: The document is a complete, legally authenticated whole, not a partial update.
- Human Readability: As a core principle, it must be viewable by a clinician.
- Potential for Authentication: It must be capable of receiving a legally binding digital signature.
Clinical Statement Model for Entries
For Level 3 documents, the coded entries within a section are expressed using the Clinical Statement (CS) pattern, a specialized refinement of the RIM. A Clinical Statement is a complete, contextualized clinical assertion. Its core components include:
- Act: The clinical action itself (e.g., a diagnosis, a dispensed medication).
- Subject (Patient): The person who is the subject of the clinical action.
- Author: The clinician responsible for the statement.
- Informant: The source of the information.
- Performer: The entity carrying out the act (e.g., a lab performing a test). This pattern allows for unambiguous representation of complex clinical concepts like 'a known allergy to Penicillin, first observed on a specific date.'
Standardized Header for Document Management
The CDA Header provides a consistent, coded metadata envelope that is critical for document exchange and management, independent of the body's content. It identifies:
- Document ID and Type: A unique identifier and a LOINC code specifying the kind of document (e.g.,
18842-5for a Discharge Summary). - Patient: The subject of care, identified by a demographic identifier.
- Author and Authenticator: The people and/or devices that created and legally signed the document.
- Custodian: The organization responsible for the document's stewardship.
- Encounter Data: Linking the document to a specific patient visit or episode of care. This header enables a Document Registry to index, query, and retrieve documents without parsing the clinical body.
Frequently Asked Questions
Clear, technical answers to the most common questions about the structure, purpose, and implementation of the Clinical Document Architecture (CDA) standard.
Clinical Document Architecture (CDA) is a document markup standard published by Health Level Seven International (HL7) that specifies the structure and semantics of clinical documents for exchange. It is a flexible, XML-based framework designed to make clinical documents both human-readable and machine-processable. A CDA document consists of a mandatory header and an optional body. The header provides rich metadata—such as the patient, author, custodian, and authenticator—while the body contains the clinical payload, which can be structured as narrative text, structured data, or both. The standard defines three levels of interoperability: Level 1 (unstructured narrative), Level 2 (narrative with section-level templates), and Level 3 (fully coded, machine-processable entries). This layered approach allows incremental adoption, from simple PDF-like documents to semantically rich, computable records that can be parsed by clinical decision support systems.
CDA vs. FHIR DocumentReference
A structural and functional comparison of the legacy XML-based CDA standard and the modern FHIR DocumentReference resource for indexing and exchanging clinical documents.
| Feature | CDA | FHIR DocumentReference |
|---|---|---|
Primary Purpose | Defines the full structure and semantics of a clinical document's content | Indexes and references a clinical document, including its location, type, and metadata |
Document Content Embedding | ||
Serialization Format | XML only | JSON, XML, or RDF (Turtle) |
Standardization Body | HL7 International | HL7 International |
Base Standard | HL7 Version 3 Reference Information Model (RIM) | FHIR (Fast Healthcare Interoperability Resources) |
Mandatory Human Readability | ||
Typical Use Case | Creating a legally authentic, persistent, human-readable clinical document for exchange | Providing a pointer to any clinical document stored in an external repository |
Maturity Level | Legacy standard, stable but computationally heavy | Modern standard, lightweight and RESTful |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Clinical Document Architecture (CDA) exists within a broader ecosystem of standards, technologies, and processes that enable seamless clinical data exchange. These related concepts are essential for understanding how CDA documents are created, validated, classified, and integrated into healthcare workflows.
HL7 v2 Message Mapping
The process of transforming legacy HL7 v2 pipe-delimited messages into structured CDA documents. Key challenges include:
- Mapping OBX segments (observation results) to CDA structured body entries
- Reconciling MSH header fields with CDA header metadata
- Handling custom Z-segments that lack standardized CDA equivalents
This bridging is critical for organizations migrating from legacy integration engines to document-based interoperability.
XML Schema Validation
The automated process of verifying that a CDA document conforms to its XSD (XML Schema Definition). Validation checks include:
- Required element presence (e.g.,
ClinicalDocument/id) - Correct data types (e.g.,
TStimestamps,PQphysical quantities) - Cardinality constraints (e.g., exactly one
recordTarget)
Schema validation is the first gate in document processing pipelines, catching structural errors before semantic or clinical validation occurs.
XPath Extraction
A query language used to navigate and extract data from CDA's hierarchical XML structure. Common extraction patterns include:
//ClinicalDocument/recordTarget/patientRole/id/@extensionfor patient MRN//section[code/@code='10164-2']/textfor History of Present Illness//entry/observation/code/@codefor coded clinical findings
XPath is the workhorse of CDA parsing engines, enabling precise data extraction without full document deserialization.
Vocabulary Binding
The specification of mandatory code systems for CDA elements to ensure semantic interoperability. Critical bindings include:
- LOINC for document types and section codes (e.g.,
11488-4for Consultation Note) - SNOMED CT for clinical findings and procedures
- RxNorm for medication entries
Without consistent vocabulary binding, two CDA documents describing the same clinical concept may use incompatible codes, breaking automated processing.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us