QI-Core Implementation Guide
6.0.0 - STU6 United States of America flag

QI-Core Implementation Guide, published by HL7 International / Clinical Quality Information. This guide is not an authorized publication; it is the continuous build for version 6.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-qi-core/ and changes regularly. See the Directory of published versions

: MedicationRequest Cumulative Duration - JSON Representation

Raw json | 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

{
  "resourceType" : "MedicationRequest",
  "id" : "cmd-example",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: MedicationRequest</b><a name=\"cmd-example\"> </a><a name=\"hccmd-example\"> </a></p><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\">Resource MedicationRequest &quot;cmd-example&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-qicore-medicationrequest.html\">QICore MedicationRequest</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/example</a></p><p><b>subject</b>: <a href=\"Patient-example.html\">Patient/example</a> &quot; CHALMERS&quot;</p><p><b>authoredOn</b>: 2015-03-25 19:32:52-0500</p><p><b>requester</b>: <a href=\"Practitioner-example.html\">Practitioner/example</a> &quot; CAREFUL&quot;</p><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: 3 per 1 days</p><p><b>site</b>: Digestive tract route (qualifier value) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#447964005)</span></p><p><b>route</b>: oral administration of treatment <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#394899003)</span></p><blockquote><p><b>doseAndRate</b></p></blockquote></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 code ml = 'ml')</span></td></tr></table></div>"
  },
  "status" : "active",
  "intent" : "order",
  "medicationReference" : {
    🔗 "reference" : "Medication/example"
  },
  "subject" : {
    🔗 "reference" : "Patient/example"
  },
  "authoredOn" : "2015-03-25T19:32:52-05:00",
  "requester" : {
    🔗 "reference" : "Practitioner/example"
  },
  "dosageInstruction" : [
    {
      "timing" : {
        "repeat" : {
          "frequency" : 3,
          "period" : 1,
          "periodUnit" : "d"
        }
      },
      "site" : {
        "coding" : [
          {
            "system" : "http://snomed.info/sct",
            "code" : "447964005"
          }
        ]
      },
      "route" : {
        "coding" : [
          {
            "system" : "http://snomed.info/sct",
            "code" : "394899003",
            "display" : "oral administration of treatment"
          }
        ]
      },
      "doseAndRate" : [
        {
          "type" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/dose-rate-type",
                "code" : "ordered",
                "display" : "Ordered"
              }
            ]
          },
          "doseQuantity" : {
            "value" : 5,
            "unit" : "ml",
            "system" : "http://unitsofmeasure.org",
            "code" : "ml"
          }
        }
      ]
    }
  ],
  "dispenseRequest" : {
    "numberOfRepeatsAllowed" : 2,
    "quantity" : {
      "value" : 100,
      "unit" : "ml",
      "system" : "http://unitsofmeasure.org",
      "code" : "ml"
    }
  }
}