Da Vinci - Documentation Templates and Rules
1.0.0 - STU 1

Publication Build: This will be filled in by the publication tooling

## : DTR Task Example - R4 - XML Representation

Raw xml | Download

    <Task xmlns="http://hl7.org/fhir">
      <id value="blood-gass-panel-task-r4"/>
      <meta>
        <profile
                 value="http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-task-r4"/>
      </meta>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p>This is an example Task that was created to request a Blood Gas Panel.</p></div>
      </text>
      <contained>
        <Patient>
          <id value="example1"/>
          <gender value="male"/>
          <birthDate value="1996-12-23"/>
          <address>
            <use value="home"/>
            <type value="both"/>
            <state value="MA"/>
          </address>
        </Patient>
      </contained>
      <contained>
        <Practitioner>
          <id value="example2"/>
          <identifier>
            <system value="http://hl7.org/fhir/sid/us-npi"/>
            <value value="1122334455"/>
          </identifier>
          <name>
            <family value="Doe"/>
            <given value="Jane"/>
            <prefix value="Dr."/>
          </name>
        </Practitioner>
      </contained>
      <contained>
        <ServiceRequest>
          <id value="example4"/>
          <status value="active"/>
          <intent value="original-order"/>
          <code>
            <coding>
              <system value="http://loinc.org"/>
              <code value="24338-6"/>
            </coding>
            <text value="Gas panel - Blood"/>
          </code>
          <subject>
            <reference value="#example1"/>
          </subject>
          <occurrenceDateTime value="2019-05-08T09:33:27+07:00"/>
          <requester>
            <reference value="#example2"/>
            <display value="Dr. Jane Doe"/>
          </requester>
          <reasonCode>
            <text value="Check for O2 blood saturation levels"/>
          </reasonCode>
        </ServiceRequest>
      </contained>
      <basedOn>
        <display value="home-o2-questionnaire"/>
      </basedOn>
      <status value="requested"/>
      <intent value="order"/>
      <priority value="routine"/>
      <description value="Create order for getting O2 blood saturation levels"/>
      <focus>
        <reference value="#example4"/>
        <display value="Blood gas panel request"/>
      </focus>
      <for>
        <reference value="#example1"/>
      </for>
      <executionPeriod>
        <start value="2019-07-13T08:25:05+10:00"/>
      </executionPeriod>
      <authoredOn value="2019-07-18T08:25:05+10:00"/>
      <lastModified value="2019-07-18T09:45:05+10:00"/>
      <requester>
        <reference value="#example2"/>
        <display value="Dr Jane Doe"/>
      </requester>
      <performerType>
        <coding>
          <system value="http://snomed.info/sct"/>
          <code value="18850004"/>
        </coding>
        <text value="Performer"/>
      </performerType>
      <restriction>
        <repetitions value="1"/>
        <period>
          <end value="2016-11-02T09:45:05+10:00"/>
        </period>
      </restriction>
    </Task>