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: Patient Health Questionnaire (PHQ-9)

Approval Status: Approved
Task Force Approval: 2019-07-11
SDWG Approval: 2019-07-25, 2023-03-09

This is an example of to include a PHQ-9 survey with total score and compoonent questions. While not all questions may be necessary in all uses, the total score has an impact on quality measures related to depression screening.

This file includes examples of the following templates:


<section xmlns="urn:hl7-org:v3">
  <!--  Mental Status Section  -->
  <!--  An assessment should be included in the section where it is appropriate in clinical context  -->
  <!--  Other asssessments may go into other sections. Depression screening is clinically appropriate for Mental Status  -->
  <templateId root="2.16.840.1.113883.10.20.22.2.56" extension="2015-08-01"/>
  <code displayName="Mental status Narrative" codeSystemName="LOINC"
        codeSystem="2.16.840.1.113883.6.1" code="10190-7"/>
  <title>MENTAL STATUS</title>
  <text>
    <table>
      <thead>
        <tr>
          <th>Date</th>
          <th>Assessment</th>
          <th>Value</th>
          <th>Relevant Reference Range</th>
          <th>Interpretation</th>
        </tr>
      </thead>
      <tbody>
        <!--  Note that sending the total score may be adequate for some use cases, although both total and detail responses shown below  -->
        <!--  PHQ-9 Total Score  -->
        <tr>
          <td ID="assessment" colspan="5">PHQ-9 Questionnaire (panel)</td>
        </tr>
        <tr ID="assessmentTotal">
          <td>06/22/2015</td>
          <td>PHQ-9 Total Score</td>
          <td>12</td>
          <td ID="assessmentReferenceRange">0-4</td>
          <td>High</td>
        </tr>
        <!--  PHQ-9 Component Questions  -->
        <tr ID="assessment1">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Little interest or pleasure in doing things?</td>
          <td>0 (Not at all)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment2">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Feeling down, depressed, or hopeless?</td>
          <td>1 (Several days)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment3">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Trouble falling or staying asleep, or sleeping too much?</td>
          <td>2 (More than half the days)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment4">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Feeling tired or having little energy?</td>
          <td>0 (Not at all)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment5">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Poor appetite or overeating?</td>
          <td>1 (Several days)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment6">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Feeling bad about yourself-or that you are a failure or have let yourself or your family down?</td>
          <td>3 (Nearly Every Day)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment7">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Trouble concentrating on things, such as reading the newspaper or watching television?</td>
          <td>2 (More than half the days)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment8">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Moving or speaking so slowly that other people could have
            noticed. Or the opposite-being so fidgety or restless that you have been moving around a lot more than usual?</td>
          <td>3 (Nearly Every Day)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment9">
          <td>06/22/2015</td>
          <td>PHQ-9 Question: Thoughts that you would be better off dead, or of hurting yourself in some way?</td>
          <td>0 (Not at all)</td>
          <td/>
          <td/>
        </tr>
        <tr ID="assessment10">
          <td>06/22/2015</td>
          <td>PHQ-9 How difficult have these problems made it for you to do your work,
            take care of things at home, or get along with other people?</td>
          <td>(Not difficult at all)</td>
          <td/>
          <td/>
        </tr>
      </tbody>
    </table>
  </text>
  <entry typeCode="DRIV">
    <observation moodCode="EVN" classCode="OBS">
      <!--  Assessment Scale Observation  -->
      <templateId root="2.16.840.1.113883.10.20.22.4.69"/>
      <templateId root="2.16.840.1.113883.10.20.22.4.69"
                  extension="2022-06-01"/>
      <id root="f1aa44dd-6f39-4f5c-b267-897c3824b673"/>
      <code xsi:type="CD"
            displayName="PHQ-9 quick depression assessment panel" codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1"
            code="44249-1"/>
      <text xsi:type="ED">
        <reference value="#assessment"/>
      </text>
      <statusCode code="completed"/>
      <effectiveTime value="20150622"/>
      <!--  Note that the value attribute is required in an assessment scale observation. Since LOINC organizes this information  -->
      <!--  where the total score is part of the panel, that total score code is shown through entryRelationship to supporting observation  -->
      <!--  The total score, however, is the most relevant value of the panel, so it has also been elevated to the panel value  -->
      <!--  INT is preferred for assessments such as a questionnaire. Units are not allowed for xsi:type="INT"  -->
      <value xsi:type="INT" value="12"/>
      <interpretationCode displayName="High"
                          codeSystem="2.16.840.1.113883.5.83" code="H"/>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <!--  Assessment Scale Supporting Observation  -->
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="a6a704ab-271a-4bfa-9f0d-1581da2b1235"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44261-6"/>
          <text xsi:type="ED">
            <reference value="#assessmentTotal"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <!--  Definition of "PQ" A dimensioned quantity expressing the result of a measurement act. -->
          <!--  Definition of "INT" Integer numbers (-1,0,1,2, 100, 3398129, etc.) are precise numbers that are results of counting and enumerating.. -->
          <!--  INT is preferred for assessments such as a questionnaire. Units are not allowed for xsi:type="INT"  -->
          <value xsi:type="INT" value="12"/>
        </observation>
      </entryRelationship>
      <!--  The total score may be adequate for some use cases, although detail components can be sent as shown below as warranted by use case  -->
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="a6a704ab-271a-4bfa-9f0d-1581da2b1186"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44250-9"/>
          <text xsi:type="ED">
            <reference value="#assessment1"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="0"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="Not at all"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6568-5"/>
        </observation>
      </entryRelationship>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="466f43c8-fc2b-4161-b9a1-2d88688e5f74"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44255-8"/>
          <text xsi:type="ED">
            <reference value="#assessment2"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="1"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="Several days"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6569-3"/>
        </observation>
      </entryRelationship>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="e3e5b3d7-76f5-48f1-8ba0-b2b4e6314f95"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44259-0"/>
          <text xsi:type="ED">
            <reference value="#assessment3"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="2"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="More than half the days"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6570-1"/>
        </observation>
      </entryRelationship>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="4d77eb67-6588-4f77-b506-1d987eee1711"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44254-1"/>
          <text xsi:type="ED">
            <reference value="#assessment4"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="0"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="Not at all"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6568-5"/>
        </observation>
      </entryRelationship>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="b24d5a2c-48d6-46a0-bd92-1c901e577cc3"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44251-7"/>
          <text xsi:type="ED">
            <reference value="#assessment5"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="1"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="Several days"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6569-3"/>
        </observation>
      </entryRelationship>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="c67c51ea-4928-449d-b6c0-0f85b1975e07"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44258-2"/>
          <text xsi:type="ED">
            <reference value="#assessment6"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="3"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="Nearly every day"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6571-9"/>
        </observation>
      </entryRelationship>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="68301d32-9158-429b-92b6-1f1e553a2f8c"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44252-5"/>
          <text xsi:type="ED">
            <reference value="#assessment7"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="2"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="More than half the days"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6570-1"/>
        </observation>
      </entryRelationship>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="400a66ad-3d5f-4b6e-913e-81e46241d83b"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44253-3"/>
          <text xsi:type="ED">
            <reference value="#assessment8"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="3"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="Nearly every day"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6571-9"/>
        </observation>
      </entryRelationship>
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="36792a59-7905-406e-a920-701a2ae746be"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="44260-8"/>
          <text xsi:type="ED">
            <reference value="#assessment9"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <value xsi:type="INT" value="0"/>
          <!--  Systems may send a second value with LOINC answer concept   -->
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="Not at all"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6568-5"/>
        </observation>
      </entryRelationship>
      <!--  New question for PHQ9 (question 10) not included in score  -->
      <entryRelationship typeCode="COMP">
        <observation moodCode="EVN" classCode="OBS">
          <templateId root="2.16.840.1.113883.10.20.22.4.86"/>
          <templateId root="2.16.840.1.113883.10.20.22.4.86"
                      extension="2022-06-01"/>
          <id root="aa81195f-3cd4-4b55-b79b-1eb71bc42c9e"/>
          <code xsi:type="CD" codeSystemName="LOINC"
                codeSystem="2.16.840.1.113883.6.1" code="69722-7"/>
          <text xsi:type="ED">
            <reference value="#assessment10"/>
          </text>
          <statusCode code="completed"/>
          <effectiveTime value="20150622"/>
          <!--  xsi:type could be CD or CO - CO Indicates to receiver that these values can be put in an ordered list  -->
          <value xsi:type="CO" displayName="Not difficult at all"
                 codeSystem="2.16.840.1.113883.6.1" code="LA6572-7"/>
        </observation>
      </entryRelationship>
      <!--  Other ranges may be included as well (such as a high range) as considered appropriate per observation and use case  -->
      <referenceRange>
        <observationRange>
          <text>
            <reference value="#assessmentReferenceRange"/>
          </text>
          <value xsi:type="IVL_INT">
            <low value="0"/>
            <high value="4"/>
          </value>
          <!--  This interpretation code denotes that this reference range is for normal results. This is not the interpretation a specific patient value -->
          <interpretationCode displayName="Normal"
                              codeSystem="2.16.840.1.113883.5.83" code="N"/>
        </observationRange>
      </referenceRange>
    </observation>
  </entry>
</section>