CDA Examples
1.0.0 - active United States of America flag

CDA Examples, published by Health Level Seven. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/CDA-Examples/ and changes regularly. See the Directory of published versions

Example: RTF Note

Approval Status: Approved
Task Force Approval: 2020-10-08
SDWG Approval: 2020-12-17

This is an example of how to include rich text in a C-CDA Note Activity.

This file includes examples of the following templates:


<section xmlns="urn:hl7-org:v3">
  <!--  Notes Section  -->
  <templateId root="2.16.840.1.113883.10.20.22.2.65" extension="2016-11-01"/>
  <code displayName="Nurse Note" codeSystemName="LOINC"
        codeSystem="2.16.840.1.113883.6.1" code="34746-8"/>
  <title>Nursing Notes</title>
  <text>
    <list listType="unordered">
      <!--  This is the Plain Text representation of the RTF, it must FULLY preserve the meaning of the embedded RTF.  -->
      <!--  Systems receiving a section with RTF SHALL be capable of displaying the section.text.  -->
      <item ID="note1">
        <caption>Nursing Note written by Nick Nurse</caption>
        <paragraph>0700-1900 Nursing Note: Patient's vital signs were stable as documented throughout shift on 2L Oxygen via nasal cannula. His lungs are diminished with scattered crackles. Bowel sounds are active and the patient had a bowel movement x 2 today, both soft. Incontinent of urine and wearing a diaper. Skin intact at this time. Skin color is pale. 2+ non-pitting edema noted in bilateral calves and ankles. Assessed patient and reconciled medications. Spoke with daughter, pt's power of attorney, to provide updates and education on the patient's condition. Laboratory obtained morning labs without problem and vascular therapy placed a new 18g peripheral IV as the previous one was due for a change. Pt took all morning meds without problem. Reoriented patient and provided opportunities for toileting and for making needs known every 1-2 hours today to lessen risk of fall.</paragraph>
      </item>
    </list>
  </text>
  <!--  When converting RTF to Plain Text, it's important to preserve the meaning in RTF. For example, strikethrough and other formatting which change the meaning SHALL be considered  -->
  <!--  Systems that render RTF (OPTIONAL) should use caution since malicious content may be embedded in RTF -->
  <!--  Note Activity (extra markup removed to focus on <text>)  -->
  <entry typeCode="DRIV">
    <act moodCode="EVN" classCode="ACT">
      <templateId root="2.16.840.1.113883.10.20.22.4.202"
                  extension="2016-11-01"/>
      <code displayName="Note" codeSystemName="LOINC"
            codeSystem="2.16.840.1.113883.6.1" code="34109-9">
        <translation xsi:type="CD" displayName="Nurse Note"
                     codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" code="34746-8"/>
      </code>
      <!--  This Base64 example includes line breaks which is optional  -->
      <text representation="B64" mediaType="text/rtf">e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZGVmZjBcbm91aWNvbXBhdFxkZWZsYW5nMTAzM3tcZm9udHRibHtcZjBcZm5pbFxmY2hhc
        nNldDAgQ2FsaWJyaTt9fQ0Ke1xjb2xvcnRibCA7XHJlZDUxXGdyZWVuNTFcYmx1ZTUxO30NCntcKlxnZW5lcmF0b3IgUmljaGVkMj
        AgMTAuMC4xODM2Mn1cdmlld2tpbmQ0XHVjMSANClxwYXJkXHNhMjAwXHNsMjc2XHNsbXVsdDFcY2YxXGJcZjBcZnMyMlxsYW5nOSA
        wNzAwLTE5MDAgTnVyc2luZyBOb3RlOiBcY2YwXGIwIFBhdGllbnRccnF1b3RlIHMgdml0YWwgc2lnbnMgd2VyZSBzdGFibGUgYXMg
        ZG9jdW1lbnRlZCB0aHJvdWdob3V0IHNoaWZ0IG9uIDJMIE94eWdlbiB2aWEgbmFzYWwgY2FubnVsYS4gSGlzIGx1bmdzIGFyZSBka
        W1pbmlzaGVkIHdpdGggc2NhdHRlcmVkIGNyYWNrbGVzLiBCb3dlbCBzb3VuZHMgYXJlIGFjdGl2ZSBhbmQgdGhlIHBhdGllbnQgaG
        FkIGEgYm93ZWwgbW92ZW1lbnQgeCAyIHRvZGF5LCBib3RoIHNvZnQuIEluY29udGluZW50IG9mIHVyaW5lIGFuZCB3ZWFyaW5nIGE
        gZGlhcGVyLiBTa2luIGludGFjdCBhdCB0aGlzIHRpbWUuIFNraW4gY29sb3IgaXMgcGFsZS4gMisgbm9uLXBpdHRpbmcgZWRlbWEg
        bm90ZWQgaW4gYmlsYXRlcmFsIGNhbHZlcyBhbmQgYW5rbGVzLiBBc3Nlc3NlZCBwYXRpZW50IGFuZCByZWNvbmNpbGVkIG1lZGljY
        XRpb25zLiBTcG9rZSB3aXRoIGRhdWdodGVyLCBwdFxycXVvdGUgcyBwb3dlciBvZiBhdHRvcm5leSwgdG8gcHJvdmlkZSB1cGRhdG
        VzIGFuZCBlZHVjYXRpb24gb24gdGhlIHBhdGllbnQncyBjb25kaXRpb24uIExhYm9yYXRvcnkgb2J0YWluZWQgbW9ybmluZyBsYWJ
        zIHdpdGhvdXQgcHJvYmxlbSBhbmQgdmFzY3VsYXIgdGhlcmFweSBwbGFjZWQgYSBuZXcgMThnIHBlcmlwaGVyYWwgSVYgYXMgdGhl
        IHByZXZpb3VzIG9uZSB3YXMgZHVlIGZvciBhIGNoYW5nZS4gUHQgdG9vayBhbGwgbW9ybmluZyBtZWRzIHdpdGhvdXQgcHJvYmxlb
        S4gUmVvcmllbnRlZCBwYXRpZW50IGFuZCBwcm92aWRlZCBvcHBvcnR1bml0aWVzIGZvciB0b2lsZXRpbmcgYW5kIGZvciBtYWtpbm
        cgbmVlZHMga25vd24gZXZlcnkgMS0yIGhvdXJzIHRvZGF5IHRvIGxlc3NlbiByaXNrIG9mIGZhbGwuXHBhcg0KfQ0KAA==
        <reference value="#note1"/>
      </text>
      <statusCode code="completed"/>
      <effectiveTime value="20140203070000-0700"/>
      <!--  Author Participant information here  -->
      <author nullFlavor="NA">
        <templateId root="2.16.840.1.113883.10.20.22.4.119"/>
        <time value="20140203070000-0700"/>
        <assignedAuthor>
          <id nullFlavor="NA"/>
          <addr nullFlavor="NA"/>
          <telecom nullFlavor="NA"/>
          <assignedPerson>
            <name>Nick Nurse</name>
          </assignedPerson>
        </assignedAuthor>
      </author>
    </act>
  </entry>
</section>