Clinical Document Architecture Framework

Total Page:16

File Type:pdf, Size:1020Kb

Clinical Document Architecture Framework

1 Clinical Document

2 Architecture Framework 3 1 4 Version 1.0 DRAFT 5 August 4, 2000

6 7 Chair/Editor: Liora Alschuler, alschuler.spinosa Robert H. Dolin, MD, Kaiser Permanente Editor: Sandy Boyer, BSP, Consultant Calvin Beebe, Mayo Clinic Chair: Paul V. Biron, MLIS, Kaiser Permanente Rachael Sokolowski, Magnolia Technologies 8 9 Table of Contents 10 111 INTRODUCTION...... 6

12 1.1 WHAT IS THE CDA?...... 6 13 1.1.1 Key aspects of the CDA...... 6 14 1.1.2 Scope of the CDA...... 6 15 1.2 GOALS AND DESIGN PRINCIPLES...... 7 16 1.2.1 Goals...... 7 17 1.2.2 Design Principles...... 7 18 1.3 SCOPE OF THE TECHNICAL SPECIFICATIONS IN THIS DOCUMENT...... 7 192 CDA CONCEPTS...... 7

20 2.1 CDA DOCUMENT...... 7 21 2.2 DOCUMENT SCHEMAS AND DOCUMENT TYPE DEFINITIONS...... 8 22 2.3 DOCUMENT ARCHITECTURE...... 8 23 2.4 SECURITY, CONFIDENTIALITY, AND DATA INTEGRITY...... 9 24 2.5 RELATIONSHIP OF THE CDA TO HL7 MESSAGING STANDARDS...... 9 25 2.5.1 CDA Documents and document management...... 9 26 2.5.2 Sending a CDA document in a V2.x message...... 10 27 2.5.3 Sending a CDA document in a V3 message...... 11 283 CDA TECHNICAL SPECIFICATIONS...... 13

29 3.1 INTRODUCTION...... 13 30 3.2 CDA HEADER...... 14 31 3.2.1 Overview...... 14 32 3.2.2 Technical details...... 14 33 3.2.2.1 Common XML attributes...... 14

11 This specification was balloted at Committee level under the name “Patient Record Architecture”. The 2designation “DRAFT” will be removed with addition of any technical corrections after membership ballot. 3Health Level Seven, © 2000. All rights reserved 1 4Membership Ballot August 2000 1 3.2.2.1.1 XML element identification...... 14 2 3.2.2.2 Document information...... 15 3 3.2.2.2.1 Document identification...... 15 4 3.2.2.2.2 Document time stamps...... 15 5 3.2.2.2.3 Document confidentiality...... 16 6 3.2.2.2.4 Document relationships...... 16 7 3.2.2.3 Encounter data...... 17 8 3.2.2.4 Service actors...... 18 9 3.2.2.4.1 People responsible for a clinical document...... 18 10 3.2.2.4.2 Authenticators...... 19 11 3.2.2.4.3 Intended recipients...... 19 12 3.2.2.4.4 Originators...... 20 13 3.2.2.4.5 Transcriptionist...... 20 14 3.2.2.4.6 Healthcare providers...... 20 15 3.2.2.4.7 Other service actors...... 21 16 3.2.2.5 Service targets...... 22 17 3.2.2.5.1 Patient...... 22 18 3.2.2.5.2 Originating device...... 22 19 3.2.2.5.3 Other service targets...... 23 20 3.2.2.6 Localization...... 23 21 3.2.3 Hierarchical Description...... 25 22 3.2.4 XML Document Type Definition...... 32 23 3.3 CDA LEVEL ONE BODY...... 47 24 3.3.1 Overview...... 47 25 3.3.2 Technical details...... 47 26 3.3.2.1 Document body and sections...... 47 27 3.3.2.1.1 Document body...... 47 28 3.3.2.1.2 Document sections...... 48 29 3.3.2.1.3 Non_xml body...... 49 30 3.3.2.2 Shared XML attributes...... 50 31 3.3.2.2.1 XML element identification...... 50 32 3.3.2.2.2 Confidentiality...... 50 33 3.3.2.2.3 Originators...... 50 34 3.3.2.2.4 Language...... 51 35 3.3.2.3 Document Structures...... 51 36 3.3.2.3.1 Paragraphs...... 51 37 3.3.2.3.2 Lists and list items...... 52 38 3.3.2.3.3 Tabular material...... 53 39 3.3.2.4 Document Entries...... 54 40 3.3.2.4.1 Character data...... 54 41 3.3.2.4.2 Content...... 54 42 3.3.2.4.3 Links...... 55 43 3.3.2.4.4 Coded entries...... 56 44 3.3.2.4.5 Observation media...... 59 45 3.3.2.4.6 Localization...... 61 46 3.3.3 XML Document Type Definition...... 62 474 GLOSSARY...... 74

485 APPENDICES (NON-NORMATIVE)...... 76

49 5.1 SAMPLES...... 76 50 5.1.1 Sample document...... 76 51 5.1.2 Sample CDA document ...... 78 52 5.1.3 Sample XSLT stylesheet...... 83 53 5.1.4 HTML rendition of sample CDA document...... 91 54 5.2 CDA LEVEL ONE BODY UML MODEL...... 94 55 5.3 CDA IMPLEMENTATION NOTES...... 96 56 5.3.1 Tables...... 96 57 5.3.2 Validation and conformance...... 96 58 5.3.3 Localization...... 97 1Health Level Seven, © 2000. All rights reserved 2 2Membership Ballot August 2000 1 5.3.4 Transformation issues...... 97 2 5.3.5 Representing authenticated content...... 98 3 5.4 REFERENCES...... 99 4 5.5 ACKNOWLEDGEMENTS...... 100 5 6 7 8

1Health Level Seven, © 2000. All rights reserved 3 2Membership Ballot August 2000 1 Table of Figures 2 3FIGURE 1. ILLUSTRATION OF CDA DOCUMENT HIERARCHY...... 9 4FIGURE 2. EXAMPLE OF A CDA DOCUMENT IN AN MDM (EVENT T02) MESSAGE...... 11 5FIGURE 3. EXAMPLE OF A CDA DOCUMENT IN A VERSION 3 MESSAGE...... 12 6FIGURE 4. XML ID ATTRIBUTE...... 15 7FIGURE 5. XML CONTENT MODEL OF ...... 24 8FIGURE 6. HIERARCHICAL DESCRIPTION OF CDA HEADER...... 25 9FIGURE 7. XML CONTENT MODEL OF ...... 48 10FIGURE 8. XML CONTENT MODEL OF

...... 48 11FIGURE 9. XML CONTENT MODEL OF ...... 49 12FIGURE 10. XML CONTENT MODEL OF ...... 50 13FIGURE 11. XML CONFIDENTIALITY ATTRIBUTE...... 50 14FIGURE 12. XML ORIGINATOR ATTRIBUTE...... 51 15FIGURE 13. XML XML:LANG ATTRIBUTE...... 51 16FIGURE 14. XML CONTENT MODEL OF ...... 52 17FIGURE 15. XML CONTENT MODEL OF AND ...... 53 18FIGURE 16. CHANGES TO THE STRICT XHTML TABLE MODEL IN CDA...... 54 19FIGURE 17. XML CONTENT MODEL OF ...... 55 20FIGURE 18. XML CONTENT MODEL OF AND ...... 56 21FIGURE 19. XML CONTENT MODEL OF ...... 57 22FIGURE 20. REFERENCING ORIGINAL TEXT WITH ...... 58 23FIGURE 21. HIERARCHICAL DESCRIPTION OF ...... 59 24FIGURE 22. XML CONTENT MODEL OF ...... 60 25FIGURE 23. XML CONTENT MODEL OF ...... 61 26 27

1Health Level Seven, © 2000. All rights reserved 4 2Membership Ballot August 2000 1 Table of Tables 2 3TABLE 1. VOCABULARY DOMAIN FOR (CWE)...... 13 4TABLE 2. EXAMPLE CONCEPTS FOR (CWE)...... 14 5TABLE 3. EXAMPLE CONCEPTS FOR (CWE)...... 15 6TABLE 4. VOCABULARY DOMAIN FOR (CWE)...... 16 7TABLE 5. VOCABULARY DOMAIN FOR (CNE)...... 17 8TABLE 6. VOCABULARY DOMAIN FOR (CNE)...... 17 9TABLE 7. VOCABULARY DOMAIN FOR (CWE)...... 18 10TABLE 8. VOCABULARY DOMAIN FOR (CWE)...... 18 11TABLE 9. VOCABULARY DOMAIN FOR (CNE)...... 19 12TABLE 10. VOCABULARY DOMAIN FOR (CNE)...... 19 13TABLE 11. VOCABULARY DOMAIN FOR (CNE)...... 19 14TABLE 12. VOCABULARY DOMAIN FOR (CNE)...... 20 15TABLE 13. VOCABULARY DOMAIN FOR (CNE)...... 20 16TABLE 14. VOCABULARY DOMAIN FOR (CNE)...... 20 17TABLE 15. VOCABULARY DOMAIN FOR (CNE)...... 20 18TABLE 16. VOCABULARY DOMAIN FOR (CNE)...... 21 19TABLE 17. VOCABULARY DOMAIN FOR (CWE)...... 21 20TABLE 18. VOCABULARY DOMAIN FOR (CWE)...... 22 21TABLE 19. VOCABULARY DOMAIN FOR (CNE)...... 22 22TABLE 20. VOCABULARY DOMAIN FOR (CWE)...... 22 23TABLE 21. VOCABULARY DOMAIN FOR (CNE)...... 23 24TABLE 22. VOCABULARY DOMAIN FOR (CWE)...... 23 25TABLE 23. VOCABULARY DOMAIN FOR (CWE)...... 23 26TABLE 24. EXAMPLE CONCEPTS FOR (CWE)...... 48 27TABLE 25. EXAMPLE CONCEPTS FOR ...... 56 28 29

1Health Level Seven, © 2000. All rights reserved 5 2Membership Ballot August 2000 11 Introduction

21.1 What is the CDA? 3The HL7 Clinical Document Architecture (CDA) is a document markup standard that specifies the 4structure and semantics of "clinical documents"2 for the purpose of exchange. A clinical document contains 5observations and services and has the following characteristics: 6 7 Persistence – A clinical document continues to exist in an unaltered state, for a time period defined by 8 local and regulatory requirements. 9 10 Stewardship – A clinical document is maintained by a person or organization entrusted with its care. 11 12 Potential for authentication - A clinical document is an assemblage of information that is intended to 13 be legally authenticated. 14 15 Wholeness - Authentication of a clinical document applies to the whole and does not apply to portions 16 of the document without the full context of the document. 17 18 Human readability – A clinical document is human readable. 19 20A CDA document is a defined and complete information object that can include text, images, sounds, and 21other multimedia content.

221.1.1 Key aspects of the CDA 23Key aspects of the CDA include: 24 25 CDA documents are encoded in Extensible Markup Language (XML). 26 CDA documents derive their meaning from the HL7 Reference Information Model (RIM3) and use 27 RIM data types. 28 The complete CDA will include a hierarchical set of document specifications. This hierarchy is 29 referred to as an "architecture". 30 31Many of the standards that have contributed to the development of the CDA are listed in 5.4 References 32and general acknowledgments are given in 5.5 Acknowledgements.

331.1.2 Scope of the CDA 34The scope of the CDA is the standardization of clinical documents for exchange. 35 36The clinical content of CDA documents is defined in the RIM. The CDA does not model clinical content, 37but does standardize the markup of the structure and semantics needed for exchange of clinical documents. 38 39CDA documents can be transmitted in HL7 messages designed to transfer clinical documents. The 40specification for such messages is outside the scope of the CDA, although this standard does specify how to 41package CDA documents within HL7 messages (see 2.5.2 Sending a CDA document in a V2.x message 42and 2.5.3 Sending a CDA document in a V3 message). 43

12 Terms defined in the glossary are cited in double quotes on first mention within this document. Acronyms 2are not quoted but are expanded in the glossary. 33 The Clinical Document Architecture is based on the HL7 Reference Information Model, Version 0.98, 4which reflects agreements made through and including the July 2000 RIM Harmonization meeting. 5Health Level Seven, © 2000. All rights reserved 6 6Membership Ballot August 2000 1The CDA does not specify the creation or management of documents, only their exchange markup. 2Document management is critically interdependent with the CDA specifications, but the specification of 3document management messages is outside the scope of the CDA. (For more on this, see 2.5.1 CDA 4Documents and document management).

51.2 Goals and Design Principles

61.2.1 Goals 7The goals of the CDA are: 81. Give priority to delivery of patient care. 92. Use open standards. 103. Support exchange of human-readable documents between users, including those with different levels 11 of technical sophistication. 124. Promote longevity of all information encoded according to this architecture. 135. Enable a wide range of post-exchange processing applications. 146. Be compatible with a wide range of document creation applications. 157. Promote exchange independent of the underlying transfer or storage mechanism. 168. Prepare the design reasonably quickly. 179. Enable policy-makers to control their own information requirements without extension to this 18 specification.

191.2.2 Design Principles 20A number of design principles follow from consideration of the above goals. 211. This architecture must be compatible with XML and the HL7 RIM. 222. Technical barriers to use of the architecture should be minimized. 233. The architecture specifies the schemas required for exchange. 244. The architecture should impose minimal constraints or requirements on document structure and content 25 required for exchange. 265. The architecture must be scalable to accommodate fine-grained markup such as highly structured text 27 and coded data. 286. Document specifications based on this architecture should accommodate such constraints and 29 requirements as supplied by appropriate professional, commercial, and regulatory agencies. 307. Document specifications for document creation and processing, if intended for exchange, should map 31 to this exchange architecture. 328. CDA documents must be human readable using widely-available and commonly-deployed XML- 33 aware browsers and print drivers and a generic CDA style sheet written in a standard style sheet 34 language

351.3 Scope of the technical specifications in this document 36This document presents the CDA concepts and architecture that comprise the complete CDA framework, 37and presents the technical specifications for the root of the architecture known as "CDA Level One". CDA 38Level One specifies a complete document structure, and as such can stand alone, prior to the completion of 39the specification of the complete architecture.

402 CDA Concepts

412.1 CDA Document 42A CDA document is comprised of a header, referred to as the "CDA Header", and a body, which at CDA 43Level One is referred to as the "CDA Level One Body". The CDA Header identifies and classifies the 44document and provides information on authentication, the encounter, the patient, and the provider. The 45body contains the clinical report. 46

1Health Level Seven, © 2000. All rights reserved 7 2Membership Ballot August 2000 1The CDA Level One Body is comprised of nested containers. There are four types of containers: sections, 2paragraphs, lists, and tables. Containers have contents and optional captions. Contents include plain text, 3links, and multimedia. 4 5Both the header and the body use the data types defined in the HL7 RIM.

62.2 Document schemas and document type definitions 7A "schema" is a specification or set of constraints for a class of documents. A "document type definition" 8(DTD) is one type of schema used for both SGML and XML documents. At this writing, the DTD is the 9only standardized schema for markup languages. The World Wide Web Consortium (W3C) is moving 10toward standardization of "XML Schemas", which represent a more expressive way of specifying the 11constraints for a class of documents. As soon as these are adopted and implemented, the CDA will adopt 12XML Schemas. This specification is expressed using DTDs. 13 14CDA Level One is specified by the CDA Level One DTD. This DTD incorporates the CDA Header DTD, 15which is defined as an XML entity. The CDA Header DTD incorporates the HL7 RIM data type DTD, also 16defined as an XML entity. A CDA Level One document references the CDA Level One DTD. 17 18Terminology note: The term "document type" is ambiguous. In XML, "document type" is typically equated 19with "DTD". In the RIM, "document type" is equated with the type code of a document (such as the code 20for a "Consultation Note" or a "Discharge Summary"). This document uses "DTDs" when referring to 21XML document types and uses "document type codes" when referring to the type code of a document, and 22avoids the phrase "document type".

232.3 Document architecture 24The CDA is envisioned as an extensible and hierarchical set of document specifications that, in aggregate, 25define the semantics and structural constraints necessary for the representation of clinical documents. This 26set of specifications is called an architecture to distinguish it from a specification based on a single 27document schema or a set of document schemas with ambiguous or undefined relationships. 28 29In this architecture, relationships between document specifications are defined by specialization and 30inheritance. Use of an architecture avoids imposition of unacceptably rigid constraints on local document 31implementation and facilitates interoperability. 32 33"Levels" within the architecture represent a quantum set of specializations, to which further constraints can 34be applied: 35 CDA Level One is the root of the hierarchy and is the most general document specification. RIM 36 classes are used in the specification of the document header, while the document body is largely 37 structural, although terms from controlled vocabulary can be applied. 38 "CDA Level Two" will be a specialization of CDA Level One, and will constrain the set of allowable 39 structures and semantics based on document type code. 40 "CDA Level Three" will be a specialization of CDA Level Two that will specify the markup of clinical 41 content to the extent that it can be expressed in the HL7 RIM. 42 43These CDA levels will establish baselines for conformance claims. These baselines standardize document 44encoding at stepwise levels of greater shared meaning. Each level makes possible the computer-processible 45expression of richer shared semantics. Levels are extensible laterally – that is, the markup granularity of all 46schemas within a given level is roughly the same but each schema expresses a different set of constraints. 47 48The CDA Level One DTD permits use of any valid document type code and section code, but there is only 49one CDA Level One DTD for all types of clinical documents, regardless of content. Above Level One, 50there will be distinct XML DTDs for different types of clinical documents. Thus, at Level One, it is 51possible to differentiate a "Consultation Note" from a "Discharge Summary" because the two will have 52distinct document type code values in the document instance. Above Level One, it will be possible to

1Health Level Seven, © 2000. All rights reserved 8 2Membership Ballot August 2000 1specify additional constraints on a document based on whether it is a "Consultation Note" or a "Discharge 2Summary" by creating distinct XML DTDs for each document type code. 3 4An illustration of one possible hierarchy of CDA DTDs is shown here4: 5 6 Figure 1. Illustration of CDA Document Hierarchy 7CDA Level One 8 CDA Level Two 9 Level Two :: Progress Note 10 Level Two :: Cardiology Progress Note 11 Level Two :: Endocrinology Progress Note 12 Level Two :: Diabetes Mellitus Progress Note 13 CDA Level Three 14 Level Three :: Progress Note 15 Level Three :: Cardiology Progress Note 16 Level Three :: Endocrinology Progress Note 17 Level Three :: Diabetes Mellitus Progress Note 18 19Note that the clinical content of CDA documents is invariant across all levels of the architecture. Thus a 20single report can be marked up as a Level One, a Level Two, or a Level Three document and its clinical 21content will not vary. What will vary between the levels are: 22 23 The degree to which clinical content can be machine processible in an exchange context. 24 The degree to which clinical document specifications can impose constraints on content. 25

262.4 Security, Confidentiality, and Data Integrity 27Application systems sending and receiving CDA documents are responsible for meeting all legal 28requirements for document authentication, confidentiality, and retention (see 2.5.1 CDA Documents and 29document management). For communications over public media, cryptographic techniques for 30source/recipient authentication and secure transport of encapsulated documents may be required, and 31should be addressed with commercially available tools outside the scope of this standard. 32 33The CDA does provide confidentiality status information to aid application systems in managing access to 34sensitive data. Confidentiality status may apply to the entire document (see 3.2.2.2.3 Document 35confidentiality) or to specified segments of the document (see 3.3.2.2.2 Confidentiality).

362.5 Relationship of the CDA to HL7 Messaging Standards 37A CDA document is a defined and complete information object that can exist outside of a messaging 38context and/or can be a payload within an HL7 message. Thus, the CDA complements HL7 messaging 39specifications.

402.5.1 CDA Documents and document management 41Clinical documents can be revised, and they can be appended to existing documents. Ideally, an updated 42document would declare itself as obsolete, and would contain an explicit pointer to a more recent version. 43This would lessen the chances of a healthcare provider basing treatment decisions on erroneous or 44incomplete data. 45 46In practice, however, it is impossible to guarantee an explicit forward pointer from an outdated version to 47the newer version. Providers print clinical documents and place copies in their own personal charts.

14 An ontology of clinical document types is under development by a consortium of standards and 2vocabulary organizations. See the draft paper, “Proposal for an Ontology for Exchange of Clinical 3Documents” published July 19, 2000 at http://www.hl7.org/special/dotf/dotf.htm. 4Health Level Seven, © 2000. All rights reserved 9 5Membership Ballot August 2000 1Lawyers and patients request copies of clinical documents. Without a process that tracks the chain of 2custody of clinical documents and all of their copies, there can be no way to guarantee that a clinical 3document being viewed has not been subsequently revised. 4 5To minimize the risk of viewing superseded information, there is a critical interdependence between 6clinical documents and document management systems. If CDA documents are viewed outside the context 7of a document management system, it cannot be known with certainty whether or not the viewed document 8has been revised. HL7 messages that carry CDA documents (such as the MDM messages in HL7 V2.x) 9convey critical contextual information that ensures accurate viewing of clinical data.

102.5.2 Sending a CDA document in a V2.x message 11From the perspective of a V2.x message, a CDA document is a multimedia object, to be exchanged as a 12Multipurpose Internet Mail Extensions (MIME, RFC 2046) package, encoded as an encapsulated data type 13(ED). We name our MIME types per the recommendations in the Internet Draft (draft RFC) XML Media 14Types, (http://www.imc.org/draft-murata-xml). 15 16CDA documents are to be exchanged in the OBX segment, in any message that can exchange documents 17(such as MDM and ORU). Within the OBX segment, the MIME package is encoded as a V2.x 18encapsulated data type. The value of OBX.2 (Field 00570 Value Type) should be set to "ED". 19 20OBX 5 (Field 00573 Observation Value) contains the MIME package, encoded as an encapsulated data 21type. The components of the data type in OBX.5 should be valued as follows: 22 23 Set the value of the 2nd component (type of data) to equal "multipart". 24 25 Set the value of the 3rd component (data subtype) to equal "x-hl7-cda-level-one". 26 27 Set the value of the 4th component (encoding) to equal "A". (Note that a MIME package is not itself 28 Base64-encoded. Rather, entities within the MIME package are Base64-encoded. A MIME package is 29 sent as ASCII text. Therefore, the correct value for the 4th component of the encapsulated data type is 30 "A", not "Base64".) 31 32 Set the value of the 5th component (data) to equal the MIME package itself. Every entity within the 33 MIME package must be Base64-encoded. HL7 delimiters that occur within MIME boundary 34 identifiers must be escaped, using the escaping rules defined in the HL7 V2.3.1 Standard, Chapter 2 35 Control/Query, section 2.9, "Use of escape sequences in text fields". The content type of the first 36 MIME entity is set to "application/x-hl7-cda-level-one+xml", and should contain the CDA document 37 itself. Multimedia objects referenced by the CDA document that need to be transmitted with the CDA 38 document are to be placed in successive entities of the MIME package. 39

1Health Level Seven, © 2000. All rights reserved 10 2Membership Ballot August 2000 1 Figure 2. Example of a CDA document in an MDM (event T02) message.

2 MSH|...

3 EVN|...

4 PID|...

5 PV1|...

6 TXA|...

7 OBX|1|ED|11492-6^History and Physical^LN|| 8 ^multipart^x-hl7-cda-level-one^A^

9 MIME-Version: 1.0

10 Content-Type: multipart/mixed; boundary="HL7-CDA-boundary"

11 Content-Transfer-Encoding: Base64

12 --HL7-CDA-boundary

13 Content-Type: application/x-hl7-cda-level-one+xml

14 15 ... Base64-encoded CDA document ...

16 17 --HL7-CDA-boundary

18 Content-Type: image/JPEG

19 20 ... Base64 image ...

21 22 --HL7-CDA-boundary--

23 |...

242.5.3 Sending a CDA document in a V3 message 25From the perspective of a V3 message, a CDA document is a multimedia object, to be exchanged as a 26MIME package, encoded as an encoded data type (ED). We name our MIME types per the 27recommendations in the Internet Draft (draft RFC) for XML Media Types, (http://www.imc.org/draft- 28murata-xml). 29 30CDAdocuments can be exchanged in any message that can exchange documents. The Service.txt RIM 31attribute contains the MIME package, encoded as an encoded data type. The components of the data type 32should be valued as follows: 33 34 Set the value of the ED.media_descriptor to equal "multipart/x-hl7-cda-level-one". 35 36 Set the value of ED.data to equal the MIME package itself. Every entity within the MIME package 37 must be Base64-encoded. XML delimiters that occur within MIME boundary identifiers must be 38 escaped, using standard XML escaping rules. The content type of the first MIME entity is set to 39 "application/x-hl7-cda-level-one+xml", and should contain the CDA document itself. Multimedia 40 objects referenced by the CDA document that need to be transmitted with the CDA document are to be 41 placed in successive entities of the MIME package. 1Health Level Seven, © 2000. All rights reserved 11 2Membership Ballot August 2000 1 2 Figure 3. Example of a CDA document in a Version 3 message.5

3

4

6

7 MIME-Version: 1.0

8 Content-Type: multipart/mixed; boundary="HL7-CDA-boundary"

9 Content-Transfer-Encoding: Base64

10 --HL7-CDA-boundary

11 Content-Type: application/x-hl7-cda-level-one+xml

12 13 ... Base64-encoded CDA document ...

14 15 --HL7-CDA-boundary

16 Content-Type: image/JPEG

17 18 ... Base64 image ...

19 20 --HL7-CDA-boundary--

21

22

15 Note that the exact representation is contingent on the outcome of the HL7 RIM data type DTD ballot. 2Health Level Seven, © 2000. All rights reserved 12 3Membership Ballot August 2000 13 CDA Technical Specifications

23.1 Introduction 3As noted above, CDA Level One is specified by the CDA Level One DTD. This DTD incorporates the 4CDA Header DTD, which is defined as an XML entity. The CDA Header DTD incorporates the HL7 RIM 5data type DTD, also defined as an XML entity. A CDA Level One document references the CDA Level 6One DTD. 7 8Technically, CDA Level One is specified by three components: 9 10  The CDA Header is specified by the CDA Header DTD which is derived from a Hierarchical 11 Description (HD), using a method that closely parallels the V3 Message Development Framework 12 (see 5.4 References). 13  The CDA Level One Body is specified in the CDA Level One DTD and is derived from document 14 analysis, building on the modeling employed by document markup standards. 15  The RIM data type DTD is an XML implementation of the abstract data type specification used by 16 both the CDA and the HL7 Version 3 message specifications.6 17 18The CDA element 7 is the root element of a CDA Level One document. The 19element, declared in the CDA Level One DTD, contains a and a . The 20details of are explained in the next section (see 3.2 CDA Header), followed 21by the details of the (see 3.3 CDA Level One Body). 22 23Vocabulary domains represent value sets for coded CDA components. These domains can include HL7- 24defined concepts or can be drawn from HL7-recognized coding systems such as LOINC or SNOMED. 25Vocabulary domains have a coding strength that can be "Coded, No Extensions" (CNE), in which case the 26only allowable values for the CDA component are those in the vocabulary domain; or "Coded, With 27Extensions" (CWE), in which case values other than those in the vocabulary domain (such as local codes) 28can be used if necessary8. Every vocabulary domain has a unique HL7-assigned identifier, and every 29concept within a vocabulary domain has a unique code. A coded CDA component may constrain its use of 30an associated vocabulary domain to a stated subset. 31 32Where a coded CDA component is associated with an HL7-defined vocabulary domain, the standard 33specifies the coding strength (CWE vs. CNE) and enumerates the allowable concepts with a code, display 34name, and definition for each concept, as shown in the following example: 35 36 Table 1. Vocabulary domain for (CWE) Code Display Name Definition G go To proceed. S stop To refrain from proceeding. 37 38

16 The RIM abstract data type specification and the XML implementation of those data types are being 2separately balloted by the Control Query Technical Committee, in parallel with this document. The data 3type specification is the work product of an open task force that was charged in Summer 1998 by the 4Control Query Technical Committee to redesign data types for HL7 Version 3. A working document that 5contained the specification has been presented to the Technical Steering Committee in 1999. The data type 6specification has been approved through the RIM harmonization process, and the data types are part of the 7RIM. 87 In the descriptive text of this document, XML element names are surrounded by angle brackets (<>). 98 CNE vocabulary domains are enumerated in the XML DTD such that a CDA document containing a value 10outside the enumerated set is invalid. 11Health Level Seven, © 2000. All rights reserved 13 12Membership Ballot August 2000 1Where a coded CDA component is associated with an externally-defined vocabulary domain, the standard 2specifies the coding strength (CWE vs. CNE), and an example of allowable concepts of that domain (with a 3code, display name, and code system identifier for each concept), as shown in the following example: 4 5 Table 2. Example concepts for (CWE) Code Display Name Code System* Code System Name 18733-6 Ambulatory visit 2.16.840.1.113883.6.1 LOINC note 18742-7 Arthroscopy report 2.16.840.1.113883.6.1 LOINC 6*Code systems in HL7 V2.x were identified by HL7-assigned abbreviations. HL7 now assigns ISO identifiers instead 7of abbreviations.

83.2 CDA Header

93.2.1 Overview 10The purpose of the CDA Header is to enable clinical document exchange across and within institutions; 11facilitate clinical document management; and facilitate compilation of an individual patient's clinical 12documents into a lifetime electronic patient record. 13 14There are four logical components of the CDA Header: 15(1) Document information; 16(2) Encounter data; 17(3) Service actors (such as providers); and 18(4) Service targets (such as patients). 19 20Document information identifies the document, defines confidentiality status, and describes relationships to 21other documents and orders. Encounter data describes the setting in which the documented encounter 22occurred. Service actors include those who authenticate the document, those intended to receive a copy of 23the document, document originators and transcriptionists, and health care providers who participated in the 24service(s) being documented. Service targets include the patient, other significant participants (such as 25family members), and those devices that may have originated portions of the document.

263.2.2 Technical details

273.2.2.1 Common XML attributes

283.2.2.1.1 XML element identification 29Every XML element within a CDA document has an optional identifier, which must be unique within the 30document. The identifier is an XML "ID" data type9. Values of XML attributes of type "IDREF" or 31"IDREFS" must match the value of an ID attribute on some element within the document. 32

19 This document discusses both XML data types and RIM data types. Unless otherwise qualified, the term 2"data type” refers to RIM data types. 3Health Level Seven, © 2000. All rights reserved 14 4Membership Ballot August 2000 1 Figure 4. XML ID attribute

2

3 ...

4 ID ID #IMPLIED

5 ...>

63.2.2.2 Document information

73.2.2.2.1 Document identification 8Every document has a required, globally-unique instance identifier, , an identifier that remains 9constant across all document revisions that derive from a common root, , and a version number, 10. These identifiers are useful in the management of addenda and replacements (as described 11in 3.2.2.2.4 Document relationships). An original report is the first version of a report, and gets a new 12globally unique value. An original report also gets a new value for , and has the value of 13 set to equal "1".

15Every document has a required document type code, . The externally-defined 16vocabulary domain for is drawn from LOINC.10 17 18 Table 3. Example concepts for (CWE) Code Display Name Code System Code System Name 18733-6 Ambulatory visit 2.16.840.1.113883.6.1 LOINC note 18742-7 Arthroscopy report 2.16.840.1.113883.6.1 LOINC 18743-5 Autopsy report 2.16.840.1.113883.6.1 LOINC 18745-0 Cardiac 2.16.840.1.113883.6.1 LOINC catheterization report 11488-4 Consultation note 2.16.840.1.113883.6.1 LOINC 18747-6 CT report 2.16.840.1.113883.6.1 LOINC 11490-0 Discharge note 2.16.840.1.113883.6.1 LOINC 11520-4 Echocardiogram 2.16.840.1.113883.6.1 LOINC report 15507-7 Emergency visit note 2.16.840.1.113883.6.1 LOINC 11492-6 History and physical 2.16.840.1.113883.6.1 LOINC note 11504-8 Operative note 2.16.840.1.113883.6.1 LOINC 11505-5 Procedure note 2.16.840.1.113883.6.1 LOINC 11506-3 Progress note 2.16.840.1.113883.6.1 LOINC 11522-0 Radiology report 2.16.840.1.113883.6.1 LOINC 11519-6 Social service report 2.16.840.1.113883.6.1 LOINC 11529-5 Surgical pathology 2.16.840.1.113883.6.1 LOINC report 18761-7 Transfer summary 2.16.840.1.113883.6.1 LOINC 11542-8 Visit note 2.16.840.1.113883.6.1 LOINC

193.2.2.2.2 Document time stamps 20There are many temporal events that come into play when creating and validating a CDA document. Some 21of the relevant times are part of the document information, while other times relate to the encounter, and 22the time during which various service actors and targets played a role. Some temporal events can be 23represented as a specific point in time (indicated by an XML element name ending in "_dttm" and using the 24"point in time" data type), while other temporal events include time points or time intervals (indicated by an

110 We anticipate that document type codes in LOINC will be supplemented by codes conforming to the 2proposed document ontology. See the draft paper, "Proposal for an Ontology for Exchange of Clinical 3Documents" published July 19, 2000 at http://www.hl7.org/special/dotf/dotf.htm. 4Health Level Seven, © 2000. All rights reserved 15 5Membership Ballot August 2000 1XML element name ending in "_tmr" and using the "interval of time" or the "general time specification" 2data type). 3 4The represents the time the service being documented took place. It is required unless there 5is an encounter associated with the service in which case , which represents the time of 6the encounter, is required, and need not be recorded11. Both and 7 can be expressed as a point in time or a time interval. 8 9The represents the time an original document is initiated (e.g. dictated or input into a 10software interface). If a document is subsequently revised, the value of remains 11unchanged. 12 13The represents the time a document is released (i.e. copied or sent to a display device) from a 14document management system that maintains revision control over the document. Once valued, it cannot be 15changed. The intent of is to give the viewer of the document some notion as to how long the 16document has been out of the safe context of its document management system. 17 18Other time stamps in the document lifecycle are recorded through their association with the various service 19actors and service targets. Thus, there is a time associated with document authentication, origination, 20transcription, provider and other service actors’ participation, and patient and other service targets’ 21participation.

223.2.2.2.3 Document confidentiality 23The CDA Header indicates document confidentiality status. Implementers may include a single document 24confidentiality status indicator in the header that will apply to the entire document. To assign different 25levels of confidentiality to different portions of the document, implementers can include more than one 26confidentiality status indicator in the header. Portions of the body are associated with one of the codes 27through reference (see 3.3.2.2.2 Confidentiality). Values for confidentiality status should be drawn from the 28ServiceConfidentiality vocabulary domain. 29 30 Table 4. Vocabulary domain for (CWE) Code Print Display Name Definition C celebrity Celebrities are people of public interest including employees, whose information require special protection. D clinician Only clinicians may see this item, billing and administration persons can not access this item without special permission. I individual Access only to individual persons who are mentioned explicitly as actors of this service and whose actor type warrants that access. N normal Normal confidentiality rules (according to good health care prapraCDActice) apply, that is, only authorized individuals with a medical or business need may access this item. R restricted Restricted access, i.e. only to providers having a current care relationship to the patient. S sensitive Information for which the patient seeks heightened confidentiality. Sensitive information is not to be shared with family members. T taboo Information not to be disclosed or discussed with patient except through physician assigned to patient in this case. Example use is a new fatal diagnosis or finding, such as malignancy or HIC.

313.2.2.2.4 Document relationships

323.2.2.2.4.1 Relationships between documents 33The CDA Header enables the explicit representation of the relationships between documents. These 34relationships rely on document identifiers described above (see 3.2.2.2.1 Document identification). An

111 Note that the XML DTD does not express this constraint in such a way that a validating XML processor 2can enforce conformance. 3Health Level Seven, © 2000. All rights reserved 16 4Membership Ballot August 2000 1original report is the first version of a report, and gets a new globally unique value, a new value for 2, and has the value of set to equal "1". 3 4An addendum is an appendage to an existing report that contains supplemental information. The appendage 5is itself an original report, as described in the previous paragraph. The parent report being appended is 6referenced via , with set to equal "APND" (for 7"appends"). The parent report being appended remains in place and its content and status are unaltered. 8 9A replacement report replaces an existing report. The replacement report gets a new globally unique 10value, while the replacement report uses the same value for as the parent report being replaced, 11and increments the value of by 1. (Note that must be incremented by one 12when a report is replaced, but can also be incremented more often to meet local requirements.) The parent 13report is considered superseded, but is still retained in the system for historical reference. The parent report 14being replaced is referenced via a , with set to 15equal "RPLC" (for "replaces"). 16 17The following table summarizes allowable values for . 18 19 Table 5. Vocabulary domain for 20 (CNE) Code Display Name Definition APND appends An addendum is an appendage to an existing report that contains supplemental information. The appendage is itself an original report that is related to the parent report. The parent report being appended remains in place and its content and status are unaltered. RPLC replaces A replacement report replaces an existing report. The state of the parent report being replaced becomes "superseded", but is still retained in the system for historical reference.

213.2.2.2.4.2 Relationship to orders 22Documents may be generated in response to one or more orders. The component of the 23CDA Header enables the explicit representation of the relationship to orders by expressing the globally 24unique identifier(s) of the orders that have been fulfilled. The following table summarizes allowable values 25for . 26 27 Table 6. Vocabulary domain for (CNE) Code Display Name Definition FLFS fulfills (order) A service that was done in fulfillment of an ordered service description. A fulfilled service may differ from an ordered (or planned) service description.

283.2.2.3 Encounter data 29Encounter data include an optional, globally-unique encounter identifier; a required encounter time stamp; 30and an optional encounter location, which includes a globally unique location identifier and an address. 31 32The represents the time the service being documented took place. It is required unless there 33is an encounter associated with the service, in which case (which represents the time of 34the encounter) is required, and need not be recorded12. Both and 35 can be expressed as a point in time or a time interval. 36 37An encounter also includes an optional practice setting code, , which is a 38categorization of the clinical setting (e.g. cardiology clinic, primary care clinic, rehabilitation hospital, 39skilled nursing facility) in which care is delivered. (Note that there is a many-to-many relationship between 40practice setting and the physical location where care is delivered. Thus, a particular room can provide the

112 Note that the XML DTD does not express this constraint in such a way that a validating XML processor 2can enforce conformance. 3Health Level Seven, © 2000. All rights reserved 17 4Membership Ballot August 2000 1location for cardiology clinic one day, and for primary care clinic another day; and cardiology clinic today 2might be held in one physical location, but in another physical location tomorrow.) 3 4Values for should be drawn from the PracticeSetting vocabulary domain. 5 6 Table 7. Vocabulary domain for (CWE) Code Display Name* OF Outpatient facility CARD Cardiology clinic GIM General internal medicine clinic PC Primary care clinic RHEUM Rheumatology clinic SPMED Sports medicine clinic WND Wound clinic HU Hospital unit CCU Coronary care unit ER Emergency room ICU Intensive care unit PHU Psychiatric hospital unit RHU Rehabilitation hospital unit HOSP Hospital GACH General acute care hospital RH Rehabilitation hospital NCCF Nursing or Custodial Care Facility SNF Skilled nursing facility RTF Residential treatment facility SURF Substance use rehabilitation facility 7*Note that there are no definitions for these concepts included in RIM 0.98.

83.2.2.4 Service actors 9All people and materials involved with a CDA document can potentially be associated with the document 10as either service actors (described here) or service targets (described next, see 3.2.2.5 Service targets). 11Service actors include those who authenticate the document, those intended to receive a copy of the 12document, document originators and transcriptionists, and health care providers who participated in the 13service(s) being documented. Service actors are capable of and accountable for their independent decisions.

143.2.2.4.1 People responsible for a clinical document 15Several CDA Header components represent people and organizations that play a role in the document or 16the services documented. While these components can represent different people, it is often the case that 17the same person will be represented as the value for more than one of these components (e.g. the person 18originating a document also authenticates it). In such cases, the person should be included as the value for 19each appropriate component. 20 21The role that a person is playing is specified by the type_cd components (e.g. , 22). While the role may be suggested by the XML element name, the type_cd values 23are the definitive indication13. 24 25Every person has a required globally unique identifier, an optional set of physical addresses and 26telecommunications addresses, and an optional set of names. A person's name has an effective date, 27, and a code, drawn from the PersonNameType vocabulary domain, that specifies the type 28of name. The following table summarizes allowable values for the . 29 30 Table 8. Vocabulary domain for (CWE) Code Display Name Definition A Artist / Stage name Includes writer's pseudonym, stage name, etc. C License name A name recorded on a license, record, certificate, etc (if different from

113 Where there is only one allowable value for type_cd, it is modeled as a fixed attribute in the XML DTD. 2Health Level Seven, © 2000. All rights reserved 18 3Membership Ballot August 2000 legal name) I Indigenous / Tribal e.g. Chief Red Cloud. name L Legal name A person's full legal name. R Religious name e.g. Sister Mary Francis, Brother John.

13.2.2.4.2 Authenticators 2The CDA is a standard that specifies the structure of exchanged clinical documents. In the case where a 3local document is transformed into a CDA document for exchange, authentication occurs on the local 4document, and that fact is reflected in the exchanged CDA document. A CDA document can reflect the 5unauthenticated, authenticated, or legally authenticated state. The unauthenticated state exists when no 6authentication information has been recorded (i.e., it is the absence of being either authenticated or legally 7authenticated). 8 9An authenticated document exists when a provider has attested to the accuracy of the document. A 10document can be authenticated by zero or more people. The following table, drawn from the ServiceActor 11vocabulary domain, summarizes allowable values for . 12 13 Table 9. Vocabulary domain for (CNE) Code Display Nmae Definition VRF verifier A person who verifies (authenticates) the correctness and appropriateness of the document. 14 15A legally authenticated document exists when the individual who is legally responsible for the document 16has attested to its accuracy. The following table, drawn from the ServiceActor vocabulary domain, 17summarizes allowable values for . 18 19 Table 10. Vocabulary domain for 20 (CNE) Code Display Name Definition SPV supervisor (legal A person who is legally responsible for (and legally authenticates) the service authenticator) carried out by a performer. A supervisor is not necessarily present in an action, but is accountable for the action through the power to delegate, and the duty to review actions with the performing actor after the fact. 21 22The element is used to indicate the time of authentication or legal authentication. 23 24Both authentication and legal authentication require that a document has been signed manually or 25electronically by the responsible individual. While electronic signatures are not part of the CDA Header, 26the CDA Header does require the acquisition of signature to be documented, via the 27component. The following table, drawn from the ServiceActorSignature vocabulary domain, summarizes 28allowable values for . 29 30 Table 11. Vocabulary domain for (CNE) Code Display Name Definition S signed A signature for the service is on file from this actor. X required A signature for the service is required of this actor. 31 32The can be used to distinguish between intended and actual authenticators. A value of "S" 33indicates that the signature has been obtained and is on file, whereas a value of "X" indicates that the actor 34is an intended authenticator or legal authenticator.

353.2.2.4.3 Intended recipients 36Intended recipients are those people to whom a copy of the document is to be sent. The CDA Header can 37specify one or more intended recipients. The following table, drawn from the ServiceActor vocabulary 38domain, summarizes allowable values for . 1Health Level Seven, © 2000. All rights reserved 19 2Membership Ballot August 2000 1 2 Table 12. Vocabulary domain for (CNE) Code Display Name Definition TRC tracker A person who may receive copies of exchange about this service.

33.2.2.4.4 Originators

43.2.2.4.4.1 Originating person 5CDA documents can be originated (authored) by humans and/or by machines. The element is 6used to indicate human origination, and the element is used to indicate machine 7origination (see 3.2.2.5.2 Originating device). The CDA Header requires the specification of one or more 8document originators, but does not require that there be a human originator14. The 9element is used to indicate the time of origination. The following table, drawn from the ServiceActor 10vocabulary domain, summarizes allowable values for . 11 12 Table 13. Vocabulary domain for (CNE) Code Display Name Definition AUT author (originator) A person who originates (e.g., dictates) a document.

133.2.2.4.4.2 Originating organization 14The CDA Header can specify the organization from which the document originates and that is in charge of 15maintaining the document. The following table, drawn from the ServiceActor vocabulary domain, 16summarizes allowable values for . 17 18 Table 14. Vocabulary domain for 19 (CNE) Code Display Name Definition CST custodian An organization who originates and is in charge of maintaining the document.

203.2.2.4.5 Transcriptionist 21The CDA Header can specify a transcriptionist. The element is used to indicate the 22time of transcription. The following table, drawn from the ServiceActor vocabulary domain, summarizes 23allowable values for . 24 25 Table 15. Vocabulary domain for (CNE) Code Display Name Definition ENT data entry person A person entering the data into the originating system.

263.2.2.4.6 Healthcare providers 27The CDA Header requires the specification of one or more healthcare providers who participated in the 28service(s) being documented. The element is used to indicate the time of participation. 29The following table, drawn from the ServiceActor vocabulary domain, summarizes allowable values for the 30required . 31 32 Table 16. Vocabulary domain for (CNE) Code Display Name Definition ASS assistant performer A person assisting in a service through his substantial presence and involvement. This includes: assistants, technicians, associates, or whatever the job titles may be. CON consultant An advisor participating in the service by performing evaluations and making

114 Note that the XML DTD does not express this constraint in such a way that a validating XML processor 2can enforce conformance, since both and are optional, but at least one or 3the other must be present. 4Health Level Seven, © 2000. All rights reserved 20 5Membership Ballot August 2000 recommendations. PRF performer A person who actually and principally carries out the action. Need not be the principal responsible actor, e.g. a surgery resident operating under supervision of attending surgeon. 1 2The optional describes the business function of the provider in more detail. The following 3table, drawn from the ServiceActorFunction vocabulary domain, summarizes allowable values for 4. 5 6 Table 17. Vocabulary domain for (CWE) Code Display Name Definition ADMPHYS admitting physician A physician who admitted a patient to a hospital or other care unit that is the context of this service. ANEST anesthesist In a typical anesthesia setting an anesthesiologist or anesthesia resident in charge of the anesthesia and life support, but only a witness to the surgical procedure itself. To clarify responsibilities anesthesia should always be represented as a separate service related to the surgery. ANRS anesthesia nurse In a typical anesthesia setting the nurse principally assisting the anesthesiologist during the critical periods. ATTPHYS attending physician A physician who is primarily responsible for a patient during the hospitalization, which is the context of the service. DISPHYS discharging physician A physician who discharged a patient from a hospital or other care unit that is the context of this service. FASST first assistant surgeon In a typical surgery setting the assistant facing the primary surgeon. The first assistant performs parts of the operation and assists in others (e.g., incision, approach, electrocoutering, ligatures, sutures.) MDWF midwife A person (usually female) helping a woman deliver a baby. Responsibilities vary locally, ranging from a mere optional assistant to a full required participant, responsible for (normal) births and pre- and post-natal care for both mother and baby. NASST nurse assistant In a typical surgery setting the non-sterile nurse handles material supply from the stock, forwards specimen to pathology, and helps with other non-sterile tasks (e.g., phone calls, etc.) PCP primary care physician The healthcare provider that holds primary responsibility for the overall care of a patient. PRISURG primary surgeon In a typical surgery setting the primary performing surgeon. RNDPHYS rounding physician A physician who made rounds on a patient in a hospital or other care center. SASST second assistant In a typical surgery setting the assistant who primarily holds the hooks. surgeon SNRS scrub nurse In a typical surgery setting the nurse in charge of the instrumentation. TASST third assistant In a typical surgery setting there is rarely a third assistant (e.g., in some Hip operations the third assistant postures the affected leg.) 7 8Note that the component designates the actual function performed in the service being 9documented. This is different from a role associated with a person or a profession- or specialty-code. For 10instance, the function "anesthetist" is not necessary served by an anesthesiologist.

113.2.2.4.7 Other service actors 12In addition to the specific service actors described above, other people occasionally play a role in certain 13circumstances or with certain types of documents. The CDA Header can specify one or more of these 14people via the component. The element is used to indicate the time of 15participation. The is used as described above (see 3.2.2.4.2 Authenticators) to differentiate 16actual vs. intended participation. The identity of the person or organization serving as actor must be 17specified. The following table, drawn from the ServiceActor vocabulary domain, suggests values for 18. 19 20 Table 18. Vocabulary domain for (CWE) Code Display Name Definition CBC call-back contact A contact (often not individual) to whom immediate questions for clarification should be directed (e.g., a care facility to be called by phone number.) CNS consenter The person giving consent to the service (usually the patient himself or a legal

1Health Level Seven, © 2000. All rights reserved 21 2Membership Ballot August 2000 guardian.) INF informant A source of reported information (e..g a next of kin who answers questions about the patient's history.) REF referrer A person having referred the subject of the service to the performer (e.g. referring physician.) WIT witness A person witnessing the action happening without doing anything. A witness is not necessarily aware, much less approves of anything stated in the service event.

13.2.2.5 Service targets 2Service targets are physical entities, including living subjects and inanimate material, that are typically the 3object of services being documented. Service targets include the patient, other significant participants (such 4as family members), and those devices that may have originated portions of the document.

53.2.2.5.1 Patient 6The CDA Header requires one and only one value for . The value of the component 7indicates whose medical record this document belongs to. By default, the is also the principal 8subject of the service(s) being documented. If that is not the case, the CDA Header allows other service 9targets to be specified (see 3.2.2.5.3 Other service targets). The element is used to 10indicate the time of participation. The following table, drawn from the ServiceTargetType vocabulary 11domain, summarizes allowable values for . 12 13 Table 19. Vocabulary domain for (CNE) Code Display Name Definition PAT patient The patient target indicates whose patient medical record this service is part of. PATSBJ patient subject Implies that the patient is the subject of the service. 14 15The is defined as having the same components as any other person (see 3.2.2.4.1 People 16responsible for a clinical document), plus a date of birth, , and a gender, 17. The following table, drawn from the AdministrativeGender vocabulary 18domain, summarizes allowable values for . 19 20 Table 20. Vocabulary domain for (CWE) Code Display Name Definition F Female A patient that can share a hospital room with someone of the female gender. M Male A patient that can share a hospital room with someone of the male gender. 21 22A has two types of identifiers. The first type of identifier can be used for any individual and 23belongs to a person independent of affiliation with a healthcare service provider (see 3.2.2.4.1 People 24responsible for a clinical document). The second type of identifier is used by a healthcare service provider 25to identify a patient with whom they have a relationship. This second type of identifier is used only for 26people in their role as patient under the auspices of a single provider organization. This identifier is 27represented by the element and the element identifies the healthcare 28provider.

293.2.2.5.2 Originating device 30CDA documents can be originated (authored) by humans and/or by machines. The element is 31used to state human origination (see 3.2.2.4.4.1 Originating person), and the element 32is used to indicate machine origination. The CDA Header requires the specification of one or more 33document originators, but does not require that there be a human originator15. 34 35The optionally repeating CDA component indicates those devices used to originate 36portions of a CDA document. The element is used to indicate the time of origination. 115 Note that the XML DTD does not express this constraint in such a way that a validating XML processor 2can enforce conformance, since both and are optional, but at least one or 3the other must be present. 4Health Level Seven, © 2000. All rights reserved 22 5Membership Ballot August 2000 1The following table, drawn from the ServiceTargetType vocabulary domain, summarizes allowable values 2for . 3 4 Table 21. Vocabulary domain for (CNE) Code Display Name Definition ODV originating device A device that originates all or part of a document. 5 6Each originating device has a unique identifier and falls under the responsibility of one or more 7stakeholders, and the responsible parties for a device can be specified in the CDA Header using the 8 component. The element is used to indicate the time during which the 9stakeholder assumed the type of responsiblity indicated by the element. The 10following table, drawn from the MaterialResponsibility vocabulary domain, suggests values for 11. 12 13 Table 22. Vocabulary domain for (CWE) Code Display Name Definition MNT maintainer A person in charge of the maintenance of a material. Assumes responsibility for proper operation, quality, and safety.

143.2.2.5.3 Other service targets 15In addition to the specific service targets described above, other people occasionally may play a role in 16certain circumstances or with certain types of documents. The CDA Header can specify one or more of 17these people via the component. The element is used to indicate the 18time of participation. The following table, drawn from the ServiceTargetType vocabulary domain, suggests 19values for . 20 21 Table 23. Vocabulary domain for (CWE) Code Display Name Definition BBY baby In an obstetric service, the baby. BEN beneficiary Target on behalf of whom the service happens, but that is not necessarily present in the service. DIR direct target Target that is substantially present in the service and which is directly affected by the service action. MTH mother In an obstetric service, the mother. NOK proxy Someone who is the subject of the service on behalf of the patient. For example, a family member who is the subject of a teaching service in the patient's matters. SBJ subject The principal target that the service acts on. E.g. a specimen in a lab observation, a patient's family member (teaching).

223.2.2.6 Localization 23Locally-defined markup must be used when local semantics have no corresponding representation in the 24CDA specification. CDA seeks to standardize the highest level of shared meaning while providing a clean 25and standard mechanism for tagging meaning that is not shared. This is achieved with the CDA 26 element. 27 28The element is optionally repeating, and recursive. The "descriptor" attribute describes the 29element, and the value can be drawn from a local vocabulary domain. The "ignore" attribute tells the 30receiver to ignore just the tag (ignore="markup"), or to ignore the tag and 31all contained content (ignore="all"). The "render" attribute indicates how the sender would render the 32contents. The value can be drawn from a local vocabulary domain. The human language of contained 33character data can be specified using the xml:lang attribute (see 3.3.2.2.4 Language). The nested 34 element is provided to make it easier to map local XML attribute values into local markup. 35

1Health Level Seven, © 2000. All rights reserved 23 2Membership Ballot August 2000 1 Figure 5. XML content model of

2

3

4 ignore (all | markup) "markup"

5 descriptor CDATA #IMPLIED

6 render CDATA #IMPLIED

7 ID ID #IMPLIED

8 xml:lang NMTOKEN #IMPLIED >

9

10

11 name NMTOKEN #REQUIRED

12 value CDATA #REQUIRED

13 ID ID #IMPLIED

14 xml:lang NMTOKEN #IMPLIED> 15

1Health Level Seven, © 2000. All rights reserved 24 2Membership Ballot August 2000 13.2.3 Hierarchical Description 2See 1999 HL7 Message Development Framework for detailed description of this table structure. 3 4 Figure 6. Hierarchical description of CDA Header Row Row Class or RIM RIM XML in XML Element Source Data Type Car Vocabulary Coding Man- De- Con- # Type Property of Source Element Element of dina Domain Strngth datory fault straint Class Class Name Name Element lity Value # (Attribute or Association) 1. class service document_ document_ clinical_document_ Root N document 1..1 M service service_as_ header _service clinical_ document_ header 2. attr id document_ id id clinical_document_ D II 1..1 M service header 3. attr set_id document_ set_id set_id clinical_document_ D II 0..1 M service header 4. attr version_nbr document_ version_ version_nbr clinical_document_ D INT 0..1 M service nbr header 5. attr service_cd document_ service_cd document_type_cd clinical_document_ D CE 1..1 DocumentType CWE service header 6. attr activity_ document_ activity_ service_tmr clinical_document D GTS 0..1 M dttm service dttm _header 7. attr origination_ document_ origination_ origination_dttm clinical_document_ D TS 1..1 M dttm service dttm header 8. attr copy_dttm document_ copy_dttm copy_dttm clinical_document_ D TS 0..1 M service header 9. attr confidentiality document_ confidentiality confidentiality_cd clinical_document_ D SET 0..1 ServiceConfident CWE N C1 _cd service _cd header iality 10. assoc is_source_ document_ is_source_for_ document_ clinical_document_ N service_ 0..* M for service service_ relationship header relationship relationship 11. attr type_cd service_ type_cd document_ document_ D CS 1..1 ServiceRelations CNE M C2 relationship relationship. relationship hip type_cd 12. assoc has_target service_ has_ target_ related_ document_ N service 1..1 M relationship service document relationship 13. attr id document_ id id related_document D II 1..1 M service 14. attr set_id document_ set_id set_id related_document D II 0..1 M service

1Health Level Seven, © 2000. All rights reserved 25 2Membership Ballot August 2000 Row Row Class or RIM RIM XML in XML Element Source Data Type Car Vocabulary Coding Man- De- Con- # Type Property of Source Element Element of dina Domain Strngth datory fault straint Class Class Name Name Element lity Value # (Attribute or Association) 15. attr version_nbr document_ version_nbr version_nbr related_document D INT 0..1 M service 16. assoc is_source_ document_ is_source_for_ fulfills_order clinical_document_ N service_ 0..1 M for service service_ header relationship relationship 17. attr type_cd service_ type_cd fulfills_order. fulfills_order D CS 1..1 ServiceRelations CNE M FLFS C3 relationship type_cd hip 18. assoc has_target service_ has_target_ order fulfills_order N service 1..* M relationship service 19. attr id document_ id id order D II 1..1 M service 20. assoc is_assigned_ document_ is_assigned_ patient_encounter clinical_document_ N patient_ 0..1 M to service to_patient_ header encounter encounter 21. attrib id patient_ id id patient_encounter D II 0..1 M encounter 22. attrib practice_ patient_ practice_ practice_ patient_encounter D CE 0..1 PracticeSetting CWE setting_ encounter setting_ setting_ cd cd cd 23. attrib active_tmr patient_ active_tmr encounter_tmr patient_encounter D IVL_TS 1..1 M encounter 24. assoc has patient_ has_master_ service_ patient_encounter N master_ 0..1 M encounter patient_ location patient_ service_ service_ location location 25. attr id master_ id id service_location D II 0..1 M patient_ service_ location 26. attr addr master_ addr addr service_location D AD 0..1 M patient_ service_ location 27. assoc has document_ has_ authenticator clinical_document N service_ 0..* M service service_ _header actor actor 28. attr type_cd service_ type_cd authenticator. authenticator D CS 1..1 ServiceActor CNE M VRF C4 actor type_cd 29. attr tmr service_ tmr participation_ authenticator D IVL_TS 1..1 M actor tmr

1Health Level Seven, © 2000. All rights reserved 26 2Membership Ballot August 2000 Row Row Class or RIM RIM XML in XML Element Source Data Type Car Vocabulary Coding Man- De- Con- # Type Property of Source Element Element of dina Domain Strngth datory fault straint Class Class Name Name Element lity Value # (Attribute or Association) 30. attr signature_cd service_ signature_cd signature_cd authenticator D CS 1..1 ServiceActorSig CNE M S actor nature 31. assoc participation service_ participation_ person authenticator N person 1..1 M _of actor of_person 32. attr id stakeholder id id person D SET 1..1 M 33. assoc has person has_ person_name person N person_ 0..* M person_name name 34. attr effective_tmr person_ effective_tmr effective_ person_name D IVL_TS 0..1 M name tmr 35. attr nm person_ nm nm person_name D PN 1..1 M name 36. attr type_cd person_ person_name. person_name. person_name D CE 0..1 PersonNameTyp CWE name type_cd type_cd e 37. attr addr stakeholder addr addr person D SET 0..1 M 38. attr phon stakeholder phon phon person D SET 0..1 M 39. assoc has document_ has_ legal_ clinical_document N service_ 0..1 M service service_ authenticator _header actor actor 40. attr type_cd service_ type_cd legal_ legal_ D CS 1..1 ServiceActor CNE M SPV C5 actor authenticator. authenticator type_cd 41. attr tmr service_ tmr participation_ legal_ D IVL_TS 1..1 M actor tmr authenticator 42. attr signature_cd service_ signature_cd signature_cd legal_ D CS 1..1 ServiceActorSig CNE M S actor authenticator nature 43. assoc participation service_ participation_ person legal_ U person 1..1 M _of actor of_person authenticator 44. assoc has document_ has_ intended_recipient clinical_document N service_ 0..* M service service_ _header actor actor 45. attr type_cd service_ type_cd intended_ intended_recipient D CS 1..1 ServiceActor CNE M TRC C6 actor recipient. type_cd 46. assoc participation service_ participation_ person intended_recipient U person 1..1 M _of actor of_person 47. assoc has document_ has_ originator clinical_document N service_ 0..* M C7 service service_ _header actor actor 48. attr type_cd service_ type_cd originator. originator D CS 1..1 ServiceActor CNE M AUT C8

1Health Level Seven, © 2000. All rights reserved 27 2Membership Ballot August 2000 Row Row Class or RIM RIM XML in XML Element Source Data Type Car Vocabulary Coding Man- De- Con- # Type Property of Source Element Element of dina Domain Strngth datory fault straint Class Class Name Name Element lity Value # (Attribute or Association) actor type_cd 49. attr tmr service_ tmr participation_ originator D IVL_TS 1..1 M actor tmr 50. assoc participation service_ participation_ person originator U person 1..1 M _of actor of_person 51. assoc has document_ has_ originating_ clinical_document N service_ 0..1 M service service_ organization _header actor actor 52. attr type_cd service_ type_cd originating_ originating_ D CS 0..1 ServiceActor CNE M CST C9 actor organization. organization type_cd 53. assoc participation service_ participation_ organization originating_ U organizatio 1..1 M _of actor of_ organization n organization 54. attr id stakeholder id id organization D SET 0..1 M 55. attrib nm organizatio nm organization. organization D SET 0..1 M n nm 56. attrib addr stakeholder addr addr organization D SET 0..1 M 57. assoc has document_ has_ transcriptionist clinical_document N service_ 0..1 M service service_ _header actor actor 58. attr type_cd service_ type_cd transcriptionist transcriptionist D CS 1..1 ServiceActor CNE M ENT C10 actor .type_cd 59. attr tmr service_ tmr participation_ transcriptionist D IVL_TS 0..1 M actor tmr 60. assoc participation service_ participation_ person transcriptionist U person 1..1 M _of actor of_person 61. assoc has document_ has_ provider clinical_document N service_ 1..* M service service_ _header actor actor 62. attr type_cd service_ type_cd provider. provider D CS 1..1 ServiceActor CNE M PRF C11 actor type_cd 63. attr function_cd service_ function_cd function_cd provider D CE 0..1 ServiceActorFun CWE actor ction 64. attr tmr service_ tmr participation_ provider D IVL_TS 0..1 M actor tmr 65. assoc participation service_ participation_ person provider U person 1..1 M _of actor of_person 66. assoc has document_ has_ service_actor clinical_document N service_ 0..* M service service_ _header actor

1Health Level Seven, © 2000. All rights reserved 28 2Membership Ballot August 2000 Row Row Class or RIM RIM XML in XML Element Source Data Type Car Vocabulary Coding Man- De- Con- # Type Property of Source Element Element of dina Domain Strngth datory fault straint Class Class Name Name Element lity Value # (Attribute or Association) actor 67. attr type_cd service_ type_cd service_actor. service_actor D CE 1..1 ServiceActor CWE actor type_cd 68. attr tmr service_ tmr participation_ service_actor D IVL_TS 0..1 M actor tmr 69. attr signature_cd service_ signature_cd signature_cd legal_ D CS 0..1 ServiceActorSig CNE M S actor authenticator nature 70. assoc participation service_ participation_ person_or_ service_actor N person | 1..1 M _of actor of_stakeholder organization organizatio n 71. assoc has document_ has_ patient clinical_document N service_ 1..1 M service service_ _header actor target 72. attr type_cd service_ type_cd patient.type_cd patient D CS 1..1 ServiceTargetTy CNE M PATS C12 target pe BJ 73. attr tmr service_ tmr participation_ patient D IVL_TS 0..1 M target tmr 74. assoc participation service_ participation_ person patient U person 1..1 M _of target of_person 75. assoc is_known_by person is_known_by is_known_by patient N person_ 0..* M provider_ association 76. attr id person_ id id is_known_by N SET 1..1 M provider_ association 77. assoc is_known_to person_ is_known_to is_known_to is_known_by N healthcare_ 1..1 M provider_ service_ association provider 78. attr id healthcare_ id id is_known_to N SET 1..1 M service_ provider 79. attr birth_dttm person birth_dttm birth_dttm patient D TS 0..1 M 80. attr administrative person administrative administrative_ patient D CE 0..1 AdministrativeG CWE _gender_cd _gender_cd gender_cd ender 81. assoc has document_ has_service_ originating_device clinical_document N service_ 0..* M C13 service target _header target 82. attr type_cd service_ type_cd originating_ originating_device D CS 1..1 ServiceTargetTy CNE M ODV C14 target device.type_cd pe 83. attr tmr service_ tmr participation_ originating_device D IVL_TS 0..1 M target tmr

1Health Level Seven, © 2000. All rights reserved 29 2Membership Ballot August 2000 Row Row Class or RIM RIM XML in XML Element Source Data Type Car Vocabulary Coding Man- De- Con- # Type Property of Source Element Element of dina Domain Strngth datory fault straint Class Class Name Name Element lity Value # (Attribute or Association) 84. assoc participation service_ participation_ device originating_device N device 1..1 M _of target of_material 85. attr id device id id device D SET 1..* M 86. assoc is_the device is_the_ responsibility device N responsibili 0..* M responsibility ty 87. attr type_cd responsibili type_cd responsi responsibility D CE 0..1 MaterialResponsi CWE ty bility. bility type_cd 88. attr tmr responsibili tmr responsi responsibility D IVL_TS 0..1 M ty bility_ tmr 89. assoc of responsibili of_person person responsibility U person 1..1 M ty 90. assoc has document_ has_ service_target clinical_document N service_ 0..* M service service_ _header actor target 91. attr type_cd service_ type_cd service_target. service_target D CE 1..1 ServiceTargetTy CWE target type_cd pe 92. attr tmr service_ tmr participation_ service_target D IVL_TS 0..1 M target tmr 93. assoc participation service_ participation_ person service_target U person 1..1 M _of target of_person 1 2C1 :: The ServiceConfidentiality vocabulary domain is constrained to only include: "C", "D", "I", "N", "R", "S", "T". (See also 3.2.2.2.3 Document 3 confidentiality.) 4C2 :: The ServiceRelationship vocabulary domain is constrained to only include: "APND", "RPLC". (See also 3.2.2.2.4.1 Relationships between documents.) 5C3 :: The ServiceRelationship vocabulary domain is constrained to only include: "FLFS". (See also 3.2.2.2.4.2 Relationship to orders.) 6C4 :: The ServiceActor vocabulary domain is constrained to only include: "VRF". (See also 3.2.2.4.2 Authenticators.) 7C5 :: The ServiceActor vocabulary domain is constrained to only include: "SPV". (See also 3.2.2.4.2 Authenticators.) 8C6 :: The ServiceActor vocabulary domain is constrained to only include: "TRC". (See also 3.2.2.4.3 Intended recipients.) 9C7 :: There must be at least one or . 10C8 :: The ServiceActor vocabulary domain is constrained to only include: "AUT". (See also 3.2.2.4.4.1 Originating person.) 11C9 :: The ServiceActor vocabulary domain is constrained to only include: "CST". (See also 3.2.2.4.4.2 Originating organization.) 12C10 :: The ServiceActor vocabulary domain is constrained to only include: "ENT". (See also 3.2.2.4.5 Transcriptionist.) 13C11 :: The ServiceActor vocabulary domain is constrained to only include: "ASS", "CON", "PRF". (See also 3.2.2.4.6 Healthcare providers.) 14C12 :: The ServiceTargetType vocabulary domain is constrained to only include: "PAT", "PATSBJ". (See also 3.2.2.5.1 Patient.) 15C13 :: There must be at least one or .

1Health Level Seven, © 2000. All rights reserved 30 2Membership Ballot August 2000 1C14 :: The ServiceTargetType vocabulary domain is constrained to only include: "ODV". (See also 3.2.2.5.2 Originating device.) 2 3 4Abbreviations used in Hierarchical Description 5 Abbreviation Appears in column Definition CNE Coding Strength If a vocabulary domain is "Coded, No Extensions" (CNE) , then the only allowable values for the CDA component are those in the vocabulary domain. CWE Coding Strength If a vocabulary domain is "Coded, With Extensions" (CWE), then values other than those in the vocabulary domain (such as local codes) can be used if necessary. M Mandatory If an element is present, it may not contain a null value. Note that the column labeled "cardinality" determines whether or not an element must be present. The column labeled "mandatory" determines whether or not elements that are present are allowed to contain null values. AD Data Type Address data type. CE Data Type Coded With Equivalents data type CS Data Type Coded Simple Value data type. GTS Data Type General Time Specification data type. II Data Type Instance Identifier data type. INT Data Type Integer data type. IVL_TS Data Type Interval of Time data type. ON Data Type Organization Name data type. PN Data Type Person Name data type. ST Data Type String data type. TS Data Type Time Stamp data type. assoc Row Type This row is defining the use of a RIM association. attr Row Type This row is defining the use of a RIM attribute. D Source of Element The RIM attribute described in this row is modeled as the data type stated in the "Data Type" column. N Source of Element This is the first time that the RIM attribute described in this row appears in this Hierarchical Description. U Source of Element The RIM attribute in this row has already been defined in this Hierarchical Description and is being reused.

1Health Level Seven, © 2000. All rights reserved 31 2Membership Ballot August 2000 13.2.4 XML Document Type Definition 2 17 18 19 29 30 33%HL7V3.0-datatypes; 34 35 43 44 47 48 1Health Level Seven, © 2000. All rights reserved 32 2Membership Ballot August 2000 1 2 26 31 32 49 50 3 4 12 13 14 18 19 20 24 25 26 30 31 32 36 37 45 46 47 51 52 53 57 1Health Level Seven, © 2000. All rights reserved 34 2Membership Ballot August 2000 1 2 6 7 15 16 17 21 22 31 32 36 40 41 42 52 53 1Health Level Seven, © 2000. All rights reserved 35 2Membership Ballot August 2000 1 5 6 10 14 15 16 26 27 30 34 35 49 50 56 3 4 5 9 10 11 15 16 20 24 25 26 30 31 43 44 53 54 3 7 8 13 17 18 19 23 24 25 29 30 31 35 36 37 41 42 51 52 1Health Level Seven, © 2000. All rights reserved 38 2Membership Ballot August 2000 1 5 6 7 17 18 19 23 24 25 35 36 42 46 47 48 1Health Level Seven, © 2000. All rights reserved 39 2Membership Ballot August 2000 1 2 10 11 15 19 20 21 31 32 41 42 47 51 52 53 6 7 11 15 16 17 27 28 33 37 38 39 43 44 52 53 1Health Level Seven, © 2000. All rights reserved 41 2Membership Ballot August 2000 1 5 6 7 17 18 26 27 33 37 38 39 49 50 51 55 56 7 8 14 18 19 20 24 25 36 37 46 47 55 2 3 4 14 15 19 23 24 27 31 32 33 37 38 39 43 44 53 54 2 6 7 8 18 19 23 27 28 33 37 38 39 43 44 45 49 50 1Health Level Seven, © 2000. All rights reserved 45 2Membership Ballot August 2000 1 2 7 11 12 13 17 18 43 44 45 51 52 53 1Health Level Seven, © 2000. All rights reserved 46 2Membership Ballot August 2000 13.3 CDA Level One Body

23.3.1 Overview 3The CDA element is the root element of a CDA Level One document. The element 4contains a and a . The is derived from 5the RIM, as described in detail above (see 3.2 CDA Header). The is comprised of either

6elements, or a element, which is used when the document body is in some format other then 7XML. A CDA
can contain "structures", nested
elements, and elements. 8CDA structures include the , , and elements. These structures contain CDA 9"entries", which include the , , , , and 10 elements, in addition to plain character data. 11 12Where CDA entries are derivable from the RIM, as is currently only the case for the 13element, they have an associated Hierarchical Description (HD) and an XML representation that follows 14the style used for the CDA Header. 15 16Document analysis was used to articulate requirements for the CDA Level One Body. These are expressed 17in XML using industry-standard constructs. The structural components themselves are not part of RIM 180.98. The Unified Modeling Language (UML) model of the CDA Level One Body included in the 19appendix (see 5.2 CDA Level One Body UML model) is presented as a non-normative tool to aid in 20understanding the XML DTD.

213.3.2 Technical details

223.3.2.1 Document body and sections

233.3.2.1.1 Document body 24The CDA occurs in the element. All CDA documents have exactly one . The 25 contains either one or more

elements (see 3.3.2.1.2 Document sections) or a single 26 data segment (see ID ID #IMPLIED). 27 28The has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional set of 29confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators (see 3.3.2.2.3 30Originators). The human language of contained character data can be specified using the xml:lang attribute 31(see 3.3.2.2.4 Language). 32 33 Figure 7. XML content model of

34

35

36 ID ID #IMPLIED

37 confidentiality IDREFS #IMPLIED

38 originator IDREFS #IMPLIED

39 xml:lang NMTOKEN #IMPLIED >

403.3.2.1.2 Document sections 41The CDA

is a container used to wrap other containers. A
can occur in the , or 42can be nested within another
. A
has an optional
(see 3.3.2.1.2.1 Captions),

1Health Level Seven, © 2000. All rights reserved 47 2Membership Ballot August 2000 1followed by nested

elements or structures (see 3.3.2.3 Document Structures), followed by 2optionally repeating elements (see 3.3.2.4.4 Coded entries). 3 4Each
has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional set 5of confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators (see 3.3.2.2.3 6Originators). The human language of contained character data can be specified using the xml:lang attribute 7(see 3.3.2.2.4 Language). 8 9 Figure 8. XML content model of

10

12

13 ID ID #IMPLIED

14 confidentiality IDREFS #IMPLIED

15 originator IDREFS #IMPLIED

16 xml:lang NMTOKEN #IMPLIED>

173.3.2.1.2.1 Captions 18The CDA

is a label for a container. The element can occur in a
, 19, , , or element. A 33 34 35 36 37 38 39 40 41 42 47 48 49 50 56 64 65 66 67 68 69 70 71 1Health Level Seven, © 2000. All rights reserved 83 2Membership Ballot August 2000 1 2 3 4 5 6 7 12 13 14 15 16 21 24 27 28 34 35 36 39 40 41 42 43 48 49
50
51 52
53 54
55
56 57 58
    59
  • 60 61 62 :: 63 64 65
  • 66
67
68 69 4 5

6 7

8
9 10 14 15
    16 17
  • 18 19 20 :: 21 22 23
  • 24
    25
26
27 28 32 33 34 35 36 ; 37 38 39 40 41 42 43 44 45 46 47 54 55 56 57 58 59 61 62 63 64 65 66 1Health Level Seven, © 2000. All rights reserved 85 2Membership Ballot August 2000 1 2 5
6 7 8 9 10 11
12
13 14 19 20 21 22 24 25 26 27 28 29 30 31 32 33 42 51 52 53 54 55 56 57 58 59 62 63 64 65 66 67 68 69 3 4 6 7
8 Signed by: 9 10 11 12 13 on 14 15 17 18 19
20
21
22 23 26 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 , 59 60 61 62 , 63 64 65 66 67 68 2 3 4 5 6 7 January 8 9 10 February 11 12 13 March 14 15 16 April 17 18 19 May 20 21 22 June 23 24 25 July 26 27 28 August 29 30 31 September 32 33 34 October 35 36 37 November 38 39 40 December 41 42 43 44 45 , 46 47 48 49 , 50 51 52 53 54 55 56 59 60 61 62 63 Consultant 64 65 66 Primary surgeon 67 68 69 First assistant 70 71 1Health Level Seven, © 2000. All rights reserved 88 2Membership Ballot August 2000 1 Second assistant 2 3 4 Scrub nurse 5 6 7 Third assistant 8 9 10 Nurse assistant 11 12 13 Anesthetist 14 15 16 Anesthesia nurse 17 18 19 Midwife 20 21 22 Attending physician 23 24 25 Admitting physician 26 27 28 Discharging physician 29 30 31 Rounding physician 32 33 34 Primary care provider 35 36 37 38 39 40 41 42 43 44 45 46 Male 47 48 49 Female 50 51 52 53 54 55 56 57

1Health Level Seven, © 2000. All rights reserved 89 2Membership Ballot August 2000 15.1.4 HTML rendition of sample CDA document 2 3 4 5 10 22Good Health Clinic Consultation note 23 24 25

Good Health Clinic Consultation note
26
27
28
contains plain text and may contain links 20(see 3.3.2.4.3 Links), and can be coded using the element. A is optional and 21non-repeatable, and must occur first within a 16. The vocabulary domain for , 22DocumentSectionType, is externally-defined by LOINC. Example values, drawn from the 23DocumentSectionType vocabulary domain, are shown in the following table. 24 25 Table 24. Example concepts for (CWE) Code Display Name Code System Code System Name 10154-3 Chief complaint 2.16.840.1.113883.6.1 LOINC 10155-0 History of allergies 2.16.840.1.113883.6.1 LOINC 10156-8 History of childhood 2.16.840.1.113883.6.1 LOINC diseases 10157-6 History of family 2.16.840.1.113883.6.1 LOINC member diseases 11349-8 History of past 2.16.840.1.113883.6.1 LOINC illness 10167-5 History of surgical 2.16.840.1.113883.6.1 LOINC procedures 10182-4 History of travel 2.16.840.1.113883.6.1 LOINC 11384-5 Physical 2.16.840.1.113883.6.1 LOINC examination 10187-3 Review of systems 2.16.840.1.113883.6.1 LOINC 8716-3 Vital signs 2.16.840.1.113883.6.1 LOINC 26 27Each has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional set 28of confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators (see 3.3.2.2.3 29Originators). The human language of contained character data can be specified using the xml:lang attribute 30(see 3.3.2.2.4 Language). 31

116 Note that the XML DTD does not express this constraint in such a way that a validating XML processor 2can enforce conformance. 3Health Level Seven, © 2000. All rights reserved 48 4Membership Ballot August 2000 1 Figure 9. XML content model of

2

3

4 ID ID #IMPLIED

5 confidentiality IDREFS #IMPLIED

6 originator IDREFS #IMPLIED

7 xml:lang NMTOKEN #IMPLIED>

8

9

10 %CE-attrib.list;

11 ID ID #IMPLIED

12 confidentiality IDREFS #IMPLIED

13 originator IDREFS #IMPLIED

14 xml:lang NMTOKEN #IMPLIED>

153.3.2.1.3 Non_xml body 16The CDA container represents a document body that is in some format other than XML. CDA's 17 is an encoded data type (ED), which is used only to reference data that is stored externally to 18the CDA Level One document. To incorporate non-XML data within an XML document, see 3.3.2.4.5 19Observation media. 20 21The element has an optional local identifier (see 3.3.2.2.1 XML element identification), an 22optional set of confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators 23(see 3.3.2.2.3 Originators). The human language of contained character data can be specified using the 24xml:lang attribute (see 3.3.2.2.4 Language). 25 26 Figure 10. XML content model of

27

28

29 %ED-attrib.list;

30 ID ID #IMPLIED

31 confidentiality IDREFS #IMPLIED

32 originator IDREFS #IMPLIED

33 xml:lang NMTOKEN #IMPLIED>

343.3.2.2 Shared XML attributes 35Elements in the CDA Level One Body share a set of XML attributes. Some of these attributes are declared 36in the CDA Header DTD and used in the document body, while other attributes are declared in the CDA 37Level One DTD for use specifically in the document body.

383.3.2.2.1 XML element identification

1Health Level Seven, © 2000. All rights reserved 49 2Membership Ballot August 2000 1Every XML element within a CDA document has an optional identifier, which must be unique within the 2document. (See 3.2.2.1.1 XML element identification).

33.3.2.2.2 Confidentiality 4The confidentiality attribute can occur on any element within the CDA body. The CDA Header contains an 5optionally repeating element (see 3.2.2.2.3 Document confidentiality). The 6confidentiality attribute on CDA Body elements can reference one or more of the confidentiality values in 7the CDA Header using XML IDREFS. The value(s) referenced must be XML ID(s) in the 8 element of the CDA Header. Confidentiality is inherited by nested content, unless 9overridden. 10 11 Figure 11. XML confidentiality attribute

12

13 ...

14 confidentiality IDREFS #IMPLIED

15 ...>

163.3.2.2.3 Originators 17The originator attribute can occur on any element within the CDA body. The CDA Header contains 18optionally repeating elements (see 3.2.2.4.4.1 Originating person) and 19(see 3.2.2.5.2 Originating device). The originator attribute on an element within the CDA Body can 20reference one or more of these values using XML IDREFS. The value(s) referenced must be XML ID(s) in 21the or element of the CDA Header. Origination is inherited by nested 22content, unless overridden. 23 24 Figure 12. XML originator attribute

25

26 ...

27 originator IDREFS #IMPLIED

28 ...>

293.3.2.2.4 Language 30The human language of character data can be specified using the xml:lang attribute as defined in the XML 311.0 Recommendation: 32 33 "A special attribute named xml:lang may be inserted in documents to specify the language used in 34 the contents and attribute values of any element in an XML document. In valid documents, this 35 attribute, like any other, must be declared if it is used. The values of the attribute are language 36 identifiers as defined by the IETF (Internet Engineering Task Force) RFC 1766: Tags for the 37 Identification of Languages, ed. H. Alvestrand. 1995." 38 39The value of the xml:lang attribute is inherited by nested content, unless overridden. 40

1Health Level Seven, © 2000. All rights reserved 50 2Membership Ballot August 2000 1 Figure 13. XML xml:lang attribute

2

3 ...

4 xml:lang NMTOKEN #IMPLIED

5 ...>

6

73.3.2.3 Document Structures

83.3.2.3.1 Paragraphs 9The CDA can occur in a

, , or table cell (
). A has an 10optional
(see 3.3.2.1.2.1 Captions), followed by zero or more elements (see 3.3.2.4.2 11Content). 12 13Each has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional 14set of confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators (see 153.3.2.2.3 Originators). The human language of contained character data can be specified using the xml:lang 16attribute (see 3.3.2.2.4 Language). 17 18 Figure 14. XML content model of

19

20

21 ID ID #IMPLIED

22 confidentiality IDREFS #IMPLIED

23 originator IDREFS #IMPLIED

24 xml:lang NMTOKEN #IMPLIED >

253.3.2.3.2 Lists and list items 26The CDA can occur in a

, , or table cell (
). A has an optional
27(see 3.3.2.1.2.1 Captions), and contains one or more elements. The list_type attribute specifies 28whether the is ordered or unordered (with unordered being the default). Use an ordered list when the 29ordering of list items is meaningful. 30 31Each has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional set of 32confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators (see 3.3.2.2.3 33Originators). The human language of contained character data can be specified using the xml:lang attribute 34(see 3.3.2.2.4 Language). 35 36The CDA only occurs within a . An has an optional (see 3.3.2.1.2.1 37Captions), and may contain (see 3.3.2.4.2 Content) and nested structures (see 3.3.2.3 Document 38Structures). 39 40Each has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional set of 41confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators (see 3.3.2.2.3 42Originators). The human language of contained character data can be specified using the xml:lang attribute 43(see 3.3.2.2.4 Language). 44 1Health Level Seven, © 2000. All rights reserved 51 2Membership Ballot August 2000 1 Figure 15. XML content model of and

2

3

4 list_type (ordered | unordered) "unordered"

5 ID ID #IMPLIED

6 confidentiality IDREFS #IMPLIED

7 originator IDREFS #IMPLIED

8 xml:lang NMTOKEN #IMPLIED >

9

10

11 ID ID #IMPLIED

12 confidentiality IDREFS #IMPLIED

13 originator IDREFS #IMPLIED

14 xml:lang NMTOKEN #IMPLIED >

153.3.2.3.3 Tabular material 16In CDA Level One, any information can be presented as a table. The table markup is for presentation 17purposes only and, unlike a database table, does not possess meaningful field names. The CDA

can 18occur in a
or . A
has an optional 23 24 25 Henry Levin, the 7th is a 67 year old male referred for further 26 asthma management. Onset of asthma in his teens. He was hospitalized 27 twice last year, and already twice this year. He has not been able to 28 be weaned off steroids for the past several months. 29 30 31 32
33
34 35 Asthma 36 Hypertension 37 Osteoarthritis, right knee 38 39 40
41
44 45 Theodur 200mg BID 46 Proventil inhaler 2puffs QID PRN 47 Prednisone 20mg qd 48 HCTZ 25mg qd 49 50 51
52
53 54 Penicillin - Hives 55 Aspirin - Wheezing 56 57 58
59
60 61 62 63 Smoking :: 1 PPD between the ages of 20 and 55, and then he quit. 64 65

126 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 2as a technical correction when available. 327 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 4as a technical correction when available. 5Health Level Seven, © 2000. All rights reserved 79 6Membership Ballot August 2000 1 Alcohol :: rare 2 3 4

5
8
9
12 13 BP 118/78 14 Resp 16 and unlabored 15 T 98.6F 16 HR 86 and regular 17 18 19
20
23 24 Erythematous rash, palmar surface, left index finger. 25 26 27 28 29 30 31 32 33
34
37 38 Clear with no wheeze. Good air flow. 39 40 41
42
43 44 RRR with no murmur, no S3, no S4. 45 46 47 48
49
52 53 54 55 CXR 02/03/1999: Hyperinflated. Normal cardiac silhouette, clear lungs. 56 57 58 Peak Flow today: 260 l/m 59 60 61
62
65 66 67 68 Asthma, with prior smoking 69 history. Difficulty weaning off steroids. Will try gradual taper. 70 71 2 3 4 5 Hypertension, well-controlled. 6 Contact dermatitis on finger. 7 8 9
10
13 14 Complete PFTs with lung volumes. 15 Chem-7 16 17 18 Provide educational material on inhaler usage and peak flow self-monitoring. 19 20 21 22 Decrease prednisone to 20qOD alternating with 18qOD. 23 24 Hydrocortisone cream to finger BID. 25 RTC 1 week. 26 27 28 29 30

1Health Level Seven, © 2000. All rights reserved 81 2Membership Ballot August 2000 15.1.3 Sample XSLT stylesheet 2Created according to W3C XSL Transformations Version 1.0, http://www.w3.org/TR/1999/REC-xslt- 319991116. 4 5 6 7 10 ]> 11 13 14 16 17 19

20select='/levelone/clinical_document_header/originating_organization/organization/organiza 21tion.nm/@V'/> 23 24 25 26 27 28 29 30 31 32 33 34 do NOT edit this HTML directly, it was generated 35 via an XSLT transformation from the original Level 1 36 document. 37 38 52 53 54 <xsl:value-of select='$title'/> 55 56 57 58

59 60
61
62 63
64 65 66 67 68 1Health Level Seven, © 2000. All rights reserved 82 2Membership Ballot August 2000 1 2 20 21
22
(see 3.3.2.1.2.1 Captions). 19 20CDA modifies the strict XHTML table model (see 5.4 References and Appendix 5.3.1 Tables) by removing 21formatting tags and by setting the content model of cells to be similar to the contents of other CDA 22containers. The
element is modeled analogously to the
element (see 3.3.2.1.2.1 Captions), 23and like the element, the is optional and non-repeatable, and must occur first. 24 25Each element in the table model has an optional local identifier (see 3.3.2.2.1 XML element identification), 26an optional set of confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of 27originators (see 3.3.2.2.3 Originators). The human language of contained character data can be specified 28using the xml:lang attribute (see 3.3.2.2.4 Language). 29

1Health Level Seven, © 2000. All rights reserved 52 2Membership Ballot August 2000 1 Figure 16. Changes to the strict XHTML table model in CDA

2 Change this:

3

4 To this:

5

6 7 Change these XML attributes:

8 %attrs;

9 To these:

10 ID ID #IMPLIED

11 confidentiality IDREFS #IMPLIED

12 originator IDREFS #IMPLIED

13 xml:lang NMTOKEN #IMPLIED

14 15 Change this:

16

17 to this:

18

20 21 change this:

22

23 to this:

24

253.3.2.4 Document Entries

263.3.2.4.1 Character data 27CDA character data (i.e., XML #PCDATA) occurs in , ,

, 28, or table cells (both
and ).

293.3.2.4.2 Content 30CDA occurs in , table cells (

), , , and nested within 31. The element contains zero or more entries (see 3.3.2.4 Document Entries). 32 33The element can nest recursively, which enables wrapping a string of plain text down to as small 34a chunk as desired. These elements can serve as anchors, and elements can 35reference these anchors to indicate the original text that supports the use of a coded entry. (See 3.3.2.4.4 36Coded entries for more detail.) 37

1Health Level Seven, © 2000. All rights reserved 53 2Membership Ballot August 2000 1Each element has an optional local identifier (see 3.3.2.2.1 XML element identification), an 2optional set of confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators 3(see 3.3.2.2.3 Originators). The human language of contained character data can be specified using the 4xml:lang attribute (see 3.3.2.2.4 Language). 5 6 Figure 17. XML content model of

7

9

10 ID ID #IMPLIED

11 confidentiality IDREFS #IMPLIED

12 originator IDREFS #IMPLIED

13 xml:lang NMTOKEN #IMPLIED >

143.3.2.4.3 Links 15The CDA is a generic referencing mechanism and occurs within , , table 16cells (

), or
. A contains a single required element. 17 18Each has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional set of 19confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators (see 3.3.2.2.3 20Originators). The human language of contained character data can be specified using the xml:lang attribute 21(see 3.3.2.2.4 Language). 22 23The CDA can only occur within a . Each has an optional local identifier 24(see 3.3.2.2.1 XML element identification), an optional set of confidentiality status flags (see 3.3.2.2.2 25Confidentiality), and an optional set of originators (see 3.3.2.2.3 Originators). The human language of 26contained character data can be specified using the xml:lang attribute (see 3.3.2.2.4 Language). 27 28The CDA link mechanism is based on the HTML anchor tag. Several groups (see 5.4 References) are 29actively developing formal link specifications. When a suitable open standard is available and 30implemented, it will be reviewed with the intent to incorporate it into the CDA Level One specification. 31 32Multimedia that is integral to a document, and part of the attestable content of the document requires the 33use of (see 3.3.2.4.5 Observation media). Multimedia that is simply referenced by the 34document and not an integral part of the document should use . 35

1Health Level Seven, © 2000. All rights reserved 54 2Membership Ballot August 2000 1 Figure 18. XML content model of and

2

3

4 ID ID #IMPLIED

5 confidentiality IDREFS #IMPLIED

6 originator IDREFS #IMPLIED

7 xml:lang NMTOKEN #IMPLIED >

8

9

10 name CDATA #IMPLIED

11 href CDATA #IMPLIED

12 rel CDATA #IMPLIED

13 rev CDATA #IMPLIED

14 title CDATA #IMPLIED

15 ID ID #IMPLIED

16 confidentiality IDREFS #IMPLIED

17 originator IDREFS #IMPLIED

18 xml:lang NMTOKEN #IMPLIED>

193.3.2.4.4 Coded entries 20The CDA element inserts codes from HL7-recognized coding schemes into CDA 21documents. Where there are no suitable HL7-recognized codes available, locally-defined codes can be 22used. The use of in CDA Level One is unrestricted, and the primary intent of 23 is to facilitate document indexing, search and retrieval, and to provide a standard 24convention for insertion of locally-meaningful codes. 25 26The element can occur in

, , , or table cells (
). A 27 contains an optional instance identifier, , and a value, 28, which is modeled as an HL7 concept descriptor (CD) data type. 29 30Each has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional 31set of confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators (see 323.3.2.2.3 Originators). The human language of contained character data can be specified using the xml:lang 33attribute (see 3.3.2.2.4 Language). 34 35Example values are shown in the following table. 36 37 Table 25. Example concepts for Code Display Name Code System Code System Name D2-51000 Asthma 2.16.840.1.113883.6.5 SNOMED D3-14000 Ischemic heart 2.16.840.1.113883.6.5 SNOMED disease D6-B7300 Muscle carnitine 2.16.840.1.113883.6.5 SNOMED deficiency 6298-4 POTASSIUM:SCN 2.16.840.1.113883.6.1 LOINC 1Health Level Seven, © 2000. All rights reserved 55 2Membership Ballot August 2000 Code Display Name Code System Code System Name C:PT:BLD 5196-1 HEPATITIS B 2.16.840.1.113883.6.1 LOINC VIRUS SURFACE AG:ACNC:PT:SER 14909-6 SALICYLATES:SC 2.16.840.1.113883.6.1 LOINC NC:PT:SER/PLAS 2428-1 HOMOCYSTEINE: 2.16.840.1.113883.6.1 LOINC MCNC:PT:PLAS 997.61 Neuroma of 2.16.840.1.113883.6.3 ICD9CM amputation stump 253.6 Syndrome of 2.16.840.1.113883.6.3 ICD9CM inappropriate ADH production 836.60 Open dislocation of 2.16.840.1.113883.6.3 ICD9CM knee 1 2 Figure 19. XML content model of

3

5

6 ID ID #IMPLIED

7 confidentiality IDREFS #IMPLIED

8 originator IDREFS #IMPLIED

9 xml:lang NMTOKEN #IMPLIED >

10

11

12 %II-attrib.list;

13 ID ID #IMPLIED >

14

15

16 %CD-attrib.list;

17 ID ID #IMPLIED > 18 19The element can explicitly reference the original text within the document that 20supports the use of the code. The process involves: 21 22 Assign a value to the XML ID attribute of the element that wraps the #PCDATA to be referenced. 23 (Because the element is recursive, you can wrap as small a chunk of text as you want.) 24 25 The original text attribute (ORIGTXT) of the CD data type references the appropriate ID attribute. 26 27 The element can be located in any legal position in the document. 28

1Health Level Seven, © 2000. All rights reserved 56 2Membership Ballot August 2000 1 Figure 20. Referencing original text with 17

2 In the first case, is used to simply insert a code 3 into a CDA document, without referencing the original text:

4

5 Asthma, with prior smoking history. Difficulty weaning off 6 steroids. Will try gradual taper.

7

8

10

11

12 13 In the second case, explicitly references the 14 original text that supports the assigned code:

15

16 Asthma, with prior smoking 17 history. Difficulty weaning off steroids. Will try gradual 18 taper.

19

20

22

23 24 25

117 Note that the exact mechanism and representation of intra-document referencing is contingent on the 2outcome of the HL7 RIM data type DTD ballot. 3Health Level Seven, © 2000. All rights reserved 57 4Membership Ballot August 2000 13.3.2.4.5 Observation media 2The element represents media that is logically a part of a CDA document, but is stored outside the document and incorporated by 3reference. Multimedia that is integral to a document, and part of the attestable content of the document, requires the use of . Multimedia 4that is simply referenced by the document and not an integral part of the document should use (see 3.3.2.4.3 Links). Note that CDA's 5 is used only to reference data that is stored externally. 6 7The CDA element is derived from the RIM Observation class. The element can occur in , table cells 8(

), or . An contains an optional instance identifier, , and a value, , 9which is modeled as an HL7 encoded data (ED) data type. 10 11The CDA does not take advantage of ED's ability to Base64 encode images and other observation media and include them directly in a document instance file. 12Several groups (see 5.4 References) are actively developing formal specifications for packaging binary data within XML documents. When a suitable open 13standard for direct incorporation of binary data is available and implemented, it will be incorporated into the CDA Level One specification. 14 15Each has an optional local identifier (see 3.3.2.2.1 XML element identification), an optional set of confidentiality status flags (see 3.3.2.2.2 16Confidentiality), and an optional set of originators (see 3.3.2.2.3 Originators). The human language of contained character data can be specified using the 17xml:lang attribute (see 3.3.2.2.4 Language). 18 19 Figure 21. Hierarchical description of Row Row Class or RIM RIM XML in XML Element Source Data Type Car Vocabulary Coding Man- De- Con- # Type Property of Source Element Element of dina Domain Strngth datory fault straint Class Class Name Name Element lity Value # (Attribute of Association) 1. class observation observation observation_ observation_media observation_ N observation 1..1 M as_ media _media observation_ media 2. attr id observation id observation_media. observation_ D II 0..1 M id media 3. attr value observation value observation_media. observation_ D ED 1..1 M value media 20 21Abbreviations used in Hierarchical Description 22 Abbreviation Appears in column Definition M Mandatory If an element is present, it may not contain a null value. Note that the column labeled "cardinality" determines

1Health Level Seven, © 2000. All rights reserved 58 2Membership Ballot August 2000 whether or not an element must be present. The column labeled "mandatory" determines whether or not elements that are present are allowed to contain null values. ED Data Type Encoded data data type. II Data Type Instance Identifier data type. attr Row Type This row is defining the use of a RIM attribute. D Source of Element The RIM attribute described in this row is modeled as the data type stated in the "Data Type" column. N Source of Element This is the first time that the RIM attribute described in this row appears in this Hierarchical Description. 1 2 3 Figure 22. XML content model of

4

5

6 ID ID #IMPLIED

7 confidentiality IDREFS #IMPLIED

8 originator IDREFS #IMPLIED

9 xml:lang NMTOKEN #IMPLIED >

10

11

12 %II-attrib.list;

13 ID ID #IMPLIED >

14

15

16 %ED-attrib.list;

17 ID ID #IMPLIED > 18

1Health Level Seven, © 2000. All rights reserved 59 2Membership Ballot August 2000 13.3.2.4.6 Localization 2The implementation of localization in the CDA Level One Body using the element 3parallels the implementation described above for the CDA Header (see 3.2.2.6 Localization). 4 5The element can occur in , , , table cells 6(

), and can be nested in . The element contains zero or more entries 7(see 3.3.2.4 Document Entries). 8 9Each has an optional local identifier (see 3.3.2.2.1 XML element identification), an 10optional set of confidentiality status flags (see 3.3.2.2.2 Confidentiality), and an optional set of originators 11(see 3.3.2.2.3 Originators). The language of contained character data can be specified using the xml:lang 12attribute (see 3.3.2.2.4 Language). 13 14The descriptor attribute describes the element, and the value can be drawn from a local vocabulary domain. 15The ignore attribute tells the receiver to ignore just the tag (ignore="markup"), or to 16ignore the tag and all contained content (ignore="all"). The render attribute indicates how 17the sender would render the contents. The value can be drawn from a local vocabulary domain. The nested 18 element makes it easier to map local XML attribute values into the CDA. 19 20 Figure 23. XML content model of

21

23

24 ignore (all | markup) "markup"

25 descriptor CDATA #IMPLIED

26 render CDATA #IMPLIED

27 ID ID #IMPLIED

28 confidentiality IDREFS #IMPLIED

29 originator IDREFS #IMPLIED

30 xml:lang NMTOKEN #IMPLIED >

31

32

33 name NMTOKEN #REQUIRED

34 value CDATA #REQUIRED

35 ID ID #IMPLIED

36 xml:lang NMTOKEN #IMPLIED>

37

1Health Level Seven, © 2000. All rights reserved 60 2Membership Ballot August 2000 13.3.3 XML Document Type Definition 2 15 16 17 25 26 29%CDA-Header-1.0; 30 31 32 9 10 15 16 18 19 20 21 22 41 42 43 47 48 49 16 17 18 22 23 24 28 29 30 36 37 38 47 48 7 8 9 13 14 15 42 43 44 48 49 50 2 3 4 20 21 23 26 27 28 31 32 33 36 37 2 3 5 10 11 12 16 17 18 22 23 24 42 43 44 51 52 53 5 6 16 17 18 22 23 24 41 42 43 48 49 50 54 55 56 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1Health Level Seven, © 2000. All rights reserved 68 2Membership Ballot August 2000 1 2 3 4 5 6 8 9 10 11 19 20 21 27 28 29 30 35 40 41 42 45 46 48 49 50 51 52 53 54 55 56 57 1Health Level Seven, © 2000. All rights reserved 69 2Membership Ballot August 2000 1 2 13 14 18 19 24 25 29 37 38 50 1Health Level Seven, © 2000. All rights reserved 70 2Membership Ballot August 2000 1 2 14 20 21 27 28 34 35 41 42 43 44 45 46 47 2 3 15

1Health Level Seven, © 2000. All rights reserved 72 2Membership Ballot August 2000 14 Glossary 2 Term or Abbreviation Definition Architecture An architecture for structured documents defines relationships between documents and document specifications in terms of specialization and inheritance (see also CDA architecture) ASCII American Standard Code for Information Interchange, a common 8-bit character encoding CDA Clinical Document Architecture CDA document A defined and complete information object that can exist outside of a messaging context and/or can be a payload within an HL7 message. Includes the CDA Header and CDA Body. CDA Level One DTD The CDA Level One specification, expressed as an XML DTD. Clinical document A clinical document is a documentation of clinical observations and services, with the following characteristics:

 Persistence – A clinical document continues to exist in an unaltered state, for a time period defined by local and regulatory requirements.

 Stewardship – A clinical document is maintained by a person or organization entrusted with its care.

 Potential for authentication - A clinical document is an assemblage of information that is intended to be legally authenticated.

 Wholeness - Authentication of a clinical document applies to the whole and does not apply to portions of the document without the full context of the document.

 Human readability – A clinical document is human readable. Clinical Document The architecture described by this proposal Architecture (CDA) CNE Coded, No Extentions Coded, No Extensions If a vocabulary domain is "Coded, No Extensions" (CNE) , then the only allowable (CNE) values for the CDA component are those in the vocabulary domain. Coded, With Extensions If a vocabulary domain is "Coded, With Extensions" (CWE), then local codes and other (CWE) values not in the vocabulary domain can be used if necessary. Conformance A valid document that complies with all of the HL7 rules and constraints [see also 5.3.2 Validation and conformance] CWE Coded, With Extensions Declaration See XML declaration Document type declaration Contains or points to the markup declarations that provide a grammar for a class of documents; (see DTD) Document type definition A grammar for a class of documents; a type of XML schema (DTD) DTD Document Type Definition Granularity The relative size of a defined unit; in the context of this specification, granularity refers to the size of an information unit where

would be course grained and a data point would be fine grained. HD Hierarchical Description Hierarchical Description Serialization of subset of RIM objects, attributes, and associations with constraints on (HD) usage presented in table form. (Similar to the Hierarchical Message Description [HMD] defined in the 1999 HL7 Message Development Framework [MDF]). HL7 Health Level 7 1Health Level Seven, © 2000. All rights reserved 73 2Membership Ballot August 2000 HTML Hypertext Markup Language, a specification of the W3C Legal authentication A completion status in which a document has been signed manually or electronically by the individual who is legally responsible for that document. This is the most mature state in the workflow progression. Level A quantum set of specializations within the CDA Level One CDA Level One. The lowest, coarsest-grained level in the HL7 Clinical Document Architecture Level Three CDA Level Three. The third, most detailed level of the HL7 Clinical Document Architecture Level Two CDA Level Two. The second level of the HL7 Clinical Document Architecture Local document The original, authenticated form of a document. Typically, local documents will not be limited to CDA markup. LOINC Logical Observations, Identifiers, Names, and Codes (http://www.regenstrief.org/loinc/loinc.htm) Markup Computer-processible annotations within a multimedia document. In the context of this specification, markup syntax is according to the XML Recommendation MDF HL7 Message Development Framework MIME Multipurpose Internet Mail Extensions (MIME, RFC 2046) Prolog An XML document structure. “Front matter” consisting of the XML Declaration and a Document Type Declaration Reference Information An information model used as the ultimate defining reference for all HL7 standards. Model (RIM) RIM Reference Information Model Schema A formal definition of the structure and content of a class of document. (See also XML Schemas) Semantic In the context of a technical specification, semantic refers to the meaning of an element as distinct from its syntax. Syntax can change without affecting semantics. SGML Standard Generalized Markup Language, ISO 8879:1986(E) as amended and corrected SNOMED Systematized Nomenclature of Medicine (http://www.snomed.org/) Source document See "Local document". UML Unified Modeling Language, a specification of the Object Management Group (OMG) (http://www.omg.org/technology/uml/) URI Uniform Resource Indicator Valid document A document which meets all of the validity constraints in the XML Specification W3C The World Wide Web Consortium, an international industry consortium (http://www.w3.org) Well-formed document A document which meets all of the well-formedness constraints in the XML Specification XHTML XHTML 1.0. A Reformulation of HTML 4 in XML 1.0. W3C Recommendation 26- January-2000. (www.w3.org/TR/xhtml1/) XML Extensible Markup Language, specification of the W3C, a formal subset of SGML (http://www.w3.org/TR/REC-xml) XML Declaration Markup stating that the document is an XML document and stating to which version of the XML specification the document is conformant XML document An XML document consists of a prolog, root document element, and other objects. A data object is an XML document if it is well-formed, as defined in the XML specification. XSL Extensible Style Language, a specification of the W3C (www.w3.org/Style/XSL/) XSLT XSL transformation language, a specification of the W3C (http://www.w3.org/TR/1999/REC-xslt-19991116) 1 2

1Health Level Seven, © 2000. All rights reserved 74 2Membership Ballot August 2000 15 Appendices (non-normative) 2The appendices contain non-normative material supplied as aids to understanding and implementing the 3technical specifications described above. 4 5Appendix 5.1 "Samples" presents a sample document, both as it might appear in a typical word-processor, 6and how it would appear when represented as a CDA Level One document instance. We present an XSLT 7style sheet that transforms the CDA document instance into the included HTML instance. 8 9Appendix 5.2 "CDA Level One Body UML model" provides a UML model that is a very literal expression 10of the CDA Level One Body portion of the CDA Level One DTD. We note however that the 11expressiveness of UML and DTD differs, so that certain constraints expressed within the DTD (such as the 12ordering of elements within a content model) are not explicitly represented in the UML model. 13 14Appendix 5.3 "CDA Implementation Notes" contains additional material of value to implementers. Section 155.3.1 "Tables" describe CDA's goals and objectives for the use of tabular material. Section 5.3.2 16"Validation and conformance" describes CDA conformance determinants. Section 5.3.3 "Localization" and 17section 5.3.4 "Transformation issues" describe considerations that arise when mapping from a local 18implementation into CDA. Section 5.3.5 "Representing authenticated content" discusses the markup of 19legally authenticated content within CDA documents. 20 21Appendix 5.4 "References" enumerates those HL7 specifications, W3C specifications, and other Standards 22and literature that have contributed to the development of the CDA. 23 24Last, but certainly not least, appendix 5.5 "Acknowledgements" recognizes the many contributors to this 25specification. The collaborative spirit and the enormous personal contributions made by these individuals 26are greatly appreciated.

275.1 Samples

285.1.1 Sample document 29 30Good Health Clinic Consultation note 31 32Consultant: Robert Dolin, MD 33Date: April 7, 2000 34Patient: Henry Levin, the 7th MRN: 12345 Sex: Male 35Birthdate: September 24, 1932 36 37History of Present Illness 38Henry Levin, the 7th is a 67 year old male referred for further asthma management. Onset of asthma in his 39teens. He was hospitalized twice last year, and already twice this year. He has not been able to be weaned 40off steroids for the past several months. 41 42Past Medical History 43 Asthma 44 Hypertension 45 Osteoarthritis, right knee 46 47Medications 48 Theodur 200mg BID 49 Proventil inhaler 2puffs QID PRN 50 Prednisone 20mg qd 1Health Level Seven, © 2000. All rights reserved 75 2Membership Ballot August 2000 1 HCTZ 25mg qd 2 3Allergies 4 Penicillin - Hives 5 Aspirin - Wheezing 6 7Social History 8 Smoking :: 1 PPD between the ages of 20 and 55, and then he quit. 9 Alcohol :: Rare 10 11Physical Exam 12 Vital Signs :: BP 118/78; Wt 185lb; Resp 16 and unlabored; T 98.6F; HR 86 and regular. 13 Skin :: Erythematous rash, palmar surface, left index finger.

14 15 Lungs :: Clear with no wheeze. Good air flow. 16 Cardiac :: RRR with no murmur, no S3, no S4. 17 18Labs 19 CXR 02/03/1999: Hyperinflated. Normal cardiac silhouette, clear lungs. 20 Peak Flow today: 260 l/m. 21 22Assessment 23 Asthma, with prior smoking history. Difficulty weaning off steroids. Will try gradual taper. 24 Hypertension, well-controlled. 25 Contact dermatitis on finger. 26 27Plan 28 Complete PFTs with lung volumes. 29 Chem-7 30 Provide educational material on inhaler usage and peak flow self-monitoring. 31 Decrease prednisone to 20qOD alternating with 18qOD. 32 Hydrocortisone cream to finger BID. 33 RTC 1 week. 34 35Signed by: Robert Dolin, MD April 8, 2000 36

1Health Level Seven, © 2000. All rights reserved 76 2Membership Ballot August 2000 15.1.2 Sample CDA document 18 2 3 4 5 6 7 8 9 11 12 19 13 20 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 21 31 32 33 34 35 36 37

38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 22 57

118 Note that the exact representation is contingent on the outcome of the HL7 RIM data type DTD ballot. 219 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 3as a technical correction when available. 420 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 5as a technical correction when available. 621 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 7as a technical correction when available. 822 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 9as a technical correction when available. 10Health Level Seven, © 2000. All rights reserved 77 11Membership Ballot August 2000 1 2 3 4

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 24 52 53 54 55 56 57 58 25 59 60 61 62 26 63

123 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 2as a technical correction when available. 324 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 4as a technical correction when available. 525 The official HL7 OID for this vocabulary domain has not yet been assigned. This value will be updated 6as a technical correction when available. 7Health Level Seven, © 2000. All rights reserved 78 8Membership Ballot August 2000 1 2 3 4 5 6 27 7 8 9 10 11 12 13 14 ... extra stuff that is only used locally ... 15 16 17 18

19
20 21 History of Present Illness 22 Past Medical History 42 Medications 43 AllergiesSocial History 6 Physical Examination 7 10 Vital Signs 11 21 Skin 22 35 Lungs 36 Cardiac 50 Labs 51 63 Assessment 64 11 Plan 12
23 24 25 26 27
28 29 30 31 32
Date: 43 44 45 46 51 52 53 54 : 55 57 58 59 61 62 63
Birthdate: 8 9 10 11 Patient: 17 18 19 20 22 MRN: 23 25 26 Sex: 29 30 32 33
29 30 31 33 34 35 37 38 39 43 44 45 47 48 49
Consultant:Robert 32Dolin, MD
Date:April 7, 362000
Patient:Henry Levin, 40the 7thMRN:12345Sex:Male
Birthdate:September 4624, 1932
50 51
52
53
54 55 History of Present Illness 56
57

58 Henry Levin, the 7th is a 67 year old male referred for further 59 asthma management. Onset of asthma in his teens. He was hospitalized 60 twice last year, and already twice this year. He has not been able to 61 be weaned off steroids for the past several months. 62

63
64
65
Past Medical History
66
    67
  • Asthma
  • 68
  • Hypertension
  • 69
  • Osteoarthritis, right knee
  • 1Health Level Seven, © 2000. All rights reserved 90 2Membership Ballot August 2000 1
2
3
4
5 Medications 6
7
    8
  • Theodur 200mg BID
  • 9
  • Proventil inhaler 2puffs QID PRN
  • 10
  • Prednisone 20mg qd
  • 11
  • HCTZ 25mg qd
  • 12
13
14
15
Allergies
16
    17
  • Penicillin - Hives
  • 18
  • Aspirin - Wheezing
  • 19
20
21
22
Social History
23
    24
  • 25 Smoking :: 1 PPD between the ages of 20 and 55, and then he quit. 26
  • 27
  • Alcohol :: rare
  • 28
29
30
31
32 Physical Examination 33
34
    35
  • 36 37 Vital Signs 38 :: BP 118/78; Resp 16 and unlabored; T 98.6F; HR 86 and regular
  • 39
40
    41
  • 42 43 Skin 44 :: 45 Erythematous rash, palmar surface, left index finger. 46
    47 48 49
    50
  • 51
52
    53
  • 54 55 Lungs 56 :: 57 Clear with no wheeze. Good air flow. 58 59
  • 60
61
    62
  • 63Cardiac :: 64 RRR with no murmur, no S3, no S4. 65 66
  • 67
68
69
70
71 Labs 1Health Level Seven, © 2000. All rights reserved 91 2Membership Ballot August 2000 1
2
    3
  • 4 CXR 02/03/1999: Hyperinflated. Normal cardiac silhouette, clear lungs. 5
  • 6
  • Peak Flow today: 260 l/m
  • 7
8
9
10
11 Assessment 12
13
    14
  • 15 Asthma, with prior smoking 16 history. Difficulty weaning off steroids. Will try gradual taper. 17 18
  • 19
  • Hypertension, well-controlled.
  • 20
  • Contact dermatitis on finger.
  • 21
22
23
24
25 Plan 26
27
    28
  • Complete PFTs with lung volumes.
  • 29
  • Chem-7
  • 30
  • 31 Provide educational material on inhaler usage and peak flow self-monitoring. 32
  • 33
  • Decrease prednisone to 20qOD alternating with 18qOD.
  • 34
  • Hydrocortisone cream to finger BID.
  • 35
  • RTC 1 week.
  • 36
37
38
39Signed by:Robert Dolin, MD on April 8, 2000
40 41

1Health Level Seven, © 2000. All rights reserved 92 2Membership Ballot August 2000 15.2 CDA Level One Body UML model 2This section provides a UML model that is a very literal expression of the CDA Level One Body portion of 3the CDA Level One DTD. We note however that the expressiveness of UML and DTD differs, so that 4certain constraints expressed within the DTD (such as the ordering of elements within a content model) are 5not explicitly represented in the UML model. 6 7Document analysis was used to articulate requirements for the CDA Level One Body. These are expressed 8in XML using industry-standard constructs. The structural components themselves are not part of RIM 90.98. The UML model of the CDA Level One Body included here is presented as a non-normative tool to 10aid in understanding the XML DTD.

1Health Level Seven, © 2000. All rights reserved 93 2Membership Ballot August 2000 non_xml contains levelone contains body 1..1 %common_atts; clinical_document_header 1..1 contains 1..1 %common_atts; %common_atts; %body_atts; %body_atts; %body_atts; 0..1 1..1 1..1 contains 0..1

body_atts 1 section 0..* originator : XML_IDREFS common_atts 0..* %common_atts; confidentiality : XML_IDREFS ID : XML_ID %body_atts; contains xml:lang : XML_NMTOKEN 0..1 0..1 0..1 contains 0..* contains caption 0..1 %common_atts; %body_atts; 0..1 structures 0..* caption_cd : CE contains 0..1 %common_atts; 0..1 %body_atts; col colgroup 0..1 %common_atts; 0..* %common_atts; 0..1 %body_atts; %body_atts; 0..1 0..* contains 0..* 0..* contains 0..1 contains item contains 0..1 1..1 %common_atts; %body_atts; thead 0..1 table tbody paragraph %common_atts; 0..1 %common_atts; contains contains contains %body_atts; 1..1 %body_atts; 1..* contains 1..1 0..* contains 0..1 0..1 1..1 0..* 0..1 0..1 0..1 contains contains contains contains contains contains 1..1 0..* contains 0..1 1..* 1..* 0..1 contains tfoot tr td list %common_atts; %common_atts; %common_atts; contains contains list_type : (ordered | unordered) = unordered %body_atts; 0..1 1..* %body_atts; %body_atts; 1..1 0..* 0..1 contains 0..* 0..1 1..1 contains contains link_html 0..* name 0..* th link contains href %common_atts 1 rel 0..* %common_atts; %body_atts; contains rev %body_atts; caption_cd : CE 0..1 1 title %common_atts; %body_atts; 0..* 0..1 0..1 0..* 0..1 contains contains content 0..1 0..* %common_atts; coded_entry 0..* contains %body_atts; PCDATA %common_atts; 1 %body_atts; id : II value : CD

0..* observation_media 0..* %common_atts; 0..1 contains %body_atts; entries local_markup id : II local_attr 0..* ignore contains value : CD name : XML_NMTOKEN descriptor value : XML_CDATA render %common_atts; %common_atts; 0..1 0..* 1Health Level Seven, © 2000. All rights reserved 94 %body_atts; 2Membership Ballot August 2000 15.3 CDA Implementation Notes 2The following sections contain background information and explanatory material that can help those 3implementing the CDA.

45.3.1 Tables 5The following goals apply to information presented in tabular form in CDA Level One: 6 71. Meet CDA guidelines for human readability: use common browsers and standard style sheets. 82. Ensure that the widest possible group of participants can create documents and then transform them 9 into CDA Level One. 103. Allow use of common word processing tools (including RTF, HTML and XML editors) to create 11 tables which can be easily inserted into CDA-compliant documents. 124. Allow conversion of tables created in non-CDA XML into CDA Level One. 13 14Subsequent releases and higher levels of the architecture will observe the same goals and may include a 15standard for markup of tabular material that meets some or all of the following additional criteria: 16 175. Information in tables in higher levels of the architecture should be down-translatable into lower levels 18 with a minimum of semantic loss. 196. Import tables from relational and object oriented databases using automated processes with minimal 20 loss of processing semantics. 217. Easily encode and insert into a document material received within an HL7 message that is conceptually 22 tabular with minimal loss of processing semantics. 238. Automated table manipulation is not guaranteed safe where there are no agreed-upon semantics to 24 guide the processing (for example, tables meeting goals 1-5 only). Revisions may need to be checked 25 for consistent use of the table format. 269. Render documents for dynamic display. 2710. CDA tables can be queried with a relatively simple SQL-like statement. In the future, this requirement 28 will extend to cover the nascent XQL specification. 2911. Data in CDA tables can be extracted with sufficient granularity to be translated into a database schema. 30 The design of the table model should minimize the complexity of translating into and out of the table 31 model. 3212. Non-architectural tables: A single table model or set of table models should be used across all CDA 33 documents, irrespective of Level. This requires that the table model(s) have a uniform method of 34 carrying semantic encoding which might be optional at Level One, but required and specified at higher 35 levels.

365.3.2 Validation and conformance 37A CDA Level One document is "valid" if it complies with the constraints expressed in the CDA Level One 38DTD. (This definition of validity is taken from the W3C XML Recommendation). However validity of a 39CDA Level One document against the CDA Level One DTD does not mean that all HL7 rules and 40constraints have been met. It is not possible to represent all the constraints of a Hierarchical Description 41explicitly in an XML DTD such that a validating XML processor can determine whether or not they were 42adhered to. A CDA document is in "conformance" if it is valid and if it complies with all HL7 rules and 43constraints. It is expected that additional application logic, above and beyond that found in a validating 44XML processor, will be required to determine whether or not a CDA document is in complete conformance 45with the CDA Level One specification. 46 47The W3C is actively developing an XML constraint language (known as XML Schemas) that will be more 48expressive (such that an XML Schema-aware processor can validate a greater set of constraints) than XML 49DTDs (see 5.4 References). When such a recommendation is issued by the W3C, it will be reviewed with 50the intent to create an XML Schema for the CDA Level One specification. However it is anticipated that 51even Schema-valid CDA documents will need additional conformance checking.

1Health Level Seven, © 2000. All rights reserved 95 2Membership Ballot August 2000 15.3.3 Localization 2Those implementing structured document systems for healthcare may choose to adopt CDA DTDs directly 3into their application or environment. Yet applications and implementations commonly have features and 4requirements that exceed the CDA definitions. The two primary modes of localization are use of locally- 5defined markup within the CDA (see the discussion of localization in the CDA Header, 3.2.2.6 6Localization, and in the CDA Level One Body, 3.3.2.4.6 Localization), and use of a local DTD that is 7transformed to the CDA for the purpose of exchange. 8 9The implementation of localization within CDA parallels the "version compatibility definition" in HL7 10V2.3.1 (Chapter 2 Control/Query, section 2.10.2) that enables new fields, segments, and components to be 11introduced at the tail end of the normative specification. In the process of converting from the Hierarchical 12Description to the XML DTD, the CDA specification adds a element to the end of every 13XML content model. Likewise, a element is added to the end of every XML content 14model within the CDA Level One Body.

155.3.4 Transformation issues 16A CDA document may be original markup (meaning that the immediate output of a document authoring 17application is a CDA document), or may be the result of a mapping or transformation from original markup 18(where the immediate output of a document authoring application is not a CDA document). It is likely that 19developers will implement XML DTDs tailored to their own requirements that incorporate the shared CDA 20markup and extend it with local information. 21 22Because many institutions have or are actively developing their own internal document markup or 23metadata, there will be a need to transform documents built against local specifications into documents that 24conform to CDA specifications for purposes of exchange. SGML and XML transformation languages 25include Hytime Architectural Forms (ISO/IEC 10744), Document Style Semantics and Specification 26Language (DSSSL, ISO/IEC 10179:1996), and Extensible Stylesheet Language (XSL) 27(www.w3.org/Style/XSL/). General programming languages also enable the transformation of markup from 28one DTD to another. 29 30Note that transformation of markup does not affect the legally authenticated (or pre-authenticated) content 31of a document. 32 33Each transformation language has potential syntactic limitations in the type of mappings that can be 34formally expressed. Additionally, there are semantic mappings that cannot be resolved regardless of the 35transformation language employed. While the discussion here focuses on mapping from one DTD to 36another, the issues are no different than those that arise in the more general sense of mapping from one 37information model to another. Elements in the source DTD may be in different order then in a CDA DTD 38(e.g. vs. ). The source DTD may be missing a required 39element (e.g. CDA DTD requires ). The source and CDA DTDs may have 40different enumerated list values (e.g. male vs. ). Elements may have different data types (e.g. January 13, 1923 vs. 42). The source DTD may be have coarser granularity than the CDA 43DTD (e.g. Henry Levin, the 7th vs. Load more

Recommended publications