Inferensys

Glossary

Clinical Document Architecture (CDA)

A standardized, XML-based markup standard defining the structure and semantics of clinical documents for exchange between healthcare systems.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
HEALTHCARE DATA INTERCHANGE

What is Clinical Document Architecture (CDA)?

A foundational HL7 standard for the exchange of clinical documents, defining both structure and semantics using XML markup.

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.

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.

Architectural Pillars

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.

01

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.

02

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

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

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

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.'
06

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-5 for 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.
CLINICAL DOCUMENT ARCHITECTURE

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.

CLINICAL DOCUMENT EXCHANGE STANDARDS

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.

FeatureCDAFHIR 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

Prasad Kumkar

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.