QI-Core Implementation Guide
7.0.2 - STU 7

QI-Core Implementation Guide - Downloaded Version 7.0.2 See the Directory of published versions

## : MedicationRequest Cumulative Duration - XML Representation

Page standards status: Informative

Raw xml | Download

      <!--
    This example MedicationRequest models QDM Medication, Order. Cooking with CQL session 49 discusses how to calculate cumulative medication duration:
    https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/blob/master/Source/Cooking%20With%20CQL/49/36_CumulativeMedicationDuration.cql

    The cumulative medication duration in this example would be calculated as:
    (supply * (1 + refills )) / (dosage * frequency)
    (100 * (1 + 2)) / (5 * 3) = 20 days

    See the QDM to QI-Core mapping for details regarding QDM data attribute representation in FHIR.
    http://hl7.org/fhir/us/qicore/qdm-to-qicore.html
     -->
    <MedicationRequest xmlns="http://hl7.org/fhir">
      <id value="cmd-example"/>
      <meta>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequested"/>
      </meta>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: MedicationRequest cmd-example</b></p><a name="cmd-example"> </a><a name="hccmd-example"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-qicore-medicationrequested.html">QICore MedicationRequested</a></p></div><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>medication</b>: <a href="Medication-example.html">Medication alemtuzumab 10 MG/ML [Lemtrada]</a></p><p><b>subject</b>: <a href="Patient-example.html">Jim Chalmers  Male, DoB: 1974-12-25 ( Medical record number (use: usual, period: 2001-05-06 --&gt; (ongoing)))</a></p><p><b>authoredOn</b>: 2015-03-25 19:32:52-0500</p><p><b>requester</b>: <a href="Practitioner-example.html">Practitioner Adam Careful </a></p><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: 3 per 1 day</p><p><b>site</b>: <span title="Codes:{http://snomed.info/sct 447964005}">Digestive tract route (qualifier value)</span></p><p><b>route</b>: <span title="Codes:{http://snomed.info/sct 394899003}">oral administration of treatment</span></p><h3>DoseAndRates</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Dose[x]</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{http://terminology.hl7.org/CodeSystem/dose-rate-type ordered}">Ordered</span></td><td>5 ml<span style="background: LightGoldenRodYellow"> (Details: UCUM  codeml = 'ml')</span></td></tr></table></blockquote><h3>DispenseRequests</h3><table class="grid"><tr><td style="display: none">-</td><td><b>NumberOfRepeatsAllowed</b></td><td><b>Quantity</b></td></tr><tr><td style="display: none">*</td><td>2</td><td>100 ml<span style="background: LightGoldenRodYellow"> (Details: UCUM  codeml = 'ml')</span></td></tr></table></div>
      </text>
      <status value="active"/>
      <intent value="order"/>
      <medicationReference>🔗
        <reference value="Medication/example"/>
      </medicationReference>
      <subject>🔗
        <reference value="Patient/example"/>
      </subject>
      <authoredOn value="2015-03-25T19:32:52-05:00"/>
      <requester>🔗
        <reference value="Practitioner/example"/>
      </requester>
      <dosageInstruction>
        <timing>
          <repeat>
            <frequency value="3"/>
            <period value="1"/>
            <periodUnit value="d"/>
          </repeat>
        </timing>
        <site>
          <coding>
            <system value="http://snomed.info/sct"/>
            <code value="447964005"/>
          </coding>
        </site>
        <route>
          <coding>
            <system value="http://snomed.info/sct"/>
            <code value="394899003"/>
            <display value="oral administration of treatment"/>
          </coding>
        </route>
        <doseAndRate>
          <type>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/dose-rate-type"/>
              <code value="ordered"/>
              <display value="Ordered"/>
            </coding>
          </type>
          <doseQuantity>
            <value value="5"/>
            <unit value="ml"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="ml"/>
          </doseQuantity>
        </doseAndRate>
      </dosageInstruction>
      <dispenseRequest>
        <numberOfRepeatsAllowed value="2"/>
        <quantity>
          <value value="100"/>
          <unit value="ml"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="ml"/>
        </quantity>
      </dispenseRequest>
    </MedicationRequest>