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

This page is part of the Quality Improvement Core Framework (v6.0.0: STU6 (v6.0.0)) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: MedicationDispense cumulative dose example - JSON Representation

Raw json | Download


// 
This example MedicationDispense models QDM Medication, Dispensed. Cooking with CQL session 53 discusses how to calculate cumulative medication duration:
https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/blob/master/Source/Cooking%20With%20CQL/53/CumulativeMedicationDurationFHIR.cql

The cumulative medication duration in this example would be calculated as:
supply or (quantity / (dose * dosesPerDay))
30 or (450 / (5 * 3)) = 30 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" : "MedicationDispense",
  "id" : "cmd-example",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationdispense"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: MedicationDispense</b><a name=\"cmd-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 MedicationDispense &quot;cmd-example&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-qicore-medicationdispense.html\">QICore MedicationDispense</a></p></div><p><b>status</b>: completed</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><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Practitioner-example.html\">Practitioner/example</a> &quot; CAREFUL&quot;</td></tr></table><p><b>authorizingPrescription</b>: <a href=\"MedicationRequest-example.html\">MedicationRequest/example</a></p><p><b>quantity</b>: 450 ml<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM code ml = 'ml')</span></p><p><b>daysSupply</b>: 30 Day<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM code d = 'd')</span></p><p><b>whenPrepared</b>: 2012-05-30 16:20:00+0000</p><p><b>whenHandedOver</b>: 2012-05-31 10:20:00+0000</p><p><b>destination</b>: <a href=\"Location-example.html\">Location/example</a> &quot;South Wing, second floor&quot;</p><p><b>receiver</b>: <a href=\"Patient-example.html\">Patient/example</a> &quot; CHALMERS&quot;</p><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: 3 per 1 days</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></div>"
  },
  "status" : "completed",
  "medicationReference" : {
    🔗 "reference" : "Medication/example"
  },
  "subject" : {
    🔗 "reference" : "Patient/example"
  },
  "performer" : [
    {
      "actor" : {
        🔗 "reference" : "Practitioner/example"
      }
    }
  ],
  "authorizingPrescription" : [
    {
      🔗 "reference" : "MedicationRequest/example"
    }
  ],
  "quantity" : {
    "value" : 450,
    "unit" : "ml",
    "system" : "http://unitsofmeasure.org",
    "code" : "ml"
  },
  "daysSupply" : {
    "value" : 30,
    "unit" : "Day",
    "system" : "http://unitsofmeasure.org",
    "code" : "d"
  },
  "whenPrepared" : "2012-05-30T16:20:00+00:00",
  "whenHandedOver" : "2012-05-31T10:20:00+00:00",
  "destination" : {
    🔗 "reference" : "Location/example"
  },
  "receiver" : [
    {
      🔗 "reference" : "Patient/example"
    }
  ],
  "dosageInstruction" : [
    {
      "timing" : {
        "repeat" : {
          "frequency" : 3,
          "period" : 1,
          "periodUnit" : "d"
        }
      },
      "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"
          }
        }
      ]
    }
  ]
}