HL7 Clinical Document Architecture (CDA) is a structured format for exchanging clinical data. A producer of information (a content creator) follows a series of rules (called templates) to construct an XML document which can be displayed or semantically interpreted by a recipient (or a content consumer). CDA is based in an early version of the HL7v3 standard, and shares many terms and concepts with HL7 Version 3.
A CDA document is logically structured as illustrated in Figure 1, and consists of four major types of elements.

Figure 1 - Logical View of a CDA Document

Additionally, CDA consists of three levels of conformance which describes the level of detail or semantic data contained within the document, they are as follows:

Level 3 is represents an extension of a Level 2 document and they are often interchangeable. For example, a consumer which only understands CDA at Level 2 (section import) can store a Level 3 document, conversely a consumer which implements Level 3 (discrete import) can still interpret a Level 2 document. Additionally some document templates will represent a mixture of level 2 and level 3 content, or may give the implementer a choice of using a level 2 section or a codified level 3 section.