QI-Core Implementation Guide
8.0.0-ballot - STU 8 - ballot

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 8.0.0-ballot 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

## : MedicationAdministration Cumulative Duration example

Page standards status: Informative

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix sct: <http://snomed.info/id/> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

    #
    This example MedicationAdministration models QDM Medication, Administered. 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:
    startDate + therapeuticDuration
    startDate + 14 days

    The therapeuticDuration is likely measure specific, though could potentially be established for
    any drug and distributed as a CodeSystem supplement.
    It is defaulted to 14 days in the CumulativeMedicationDurationFHIR4.cql library

    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

     a fhir:MedicationAdministration ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "cmd-example"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration>     ] )
      ] ; #
      fhir:language [ fhir:v "en"] ; #
      fhir:text [
    fhir:status [ fhir:v "generated" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: MedicationAdministration 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\">Language: en</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-qicore-medicationadministration.html\">QICore MedicationAdministration</a></p></div><p><b>status</b>: Completed</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>context</b>: <a href=\"Encounter-example.html\">Encounter: status = in-progress; class = inpatient encounter (ActCode#IMP); type = Initial hospital inpatient or observation care, per day, for the evaluation and management of a patient, which requires a medically appropriate history and/or examination and high level of medical decision making. When using total time on the date of the encounter for code selection, 75 minutes must be met or exceeded.</a></p><p><b>supportingInformation</b>: <a href=\"Condition-example.html\">Condition Burn of ear</a></p><p><b>effective</b>: 2015-01-15 14:30:00+0100 --&gt; 2015-01-29 14:30:00+0100</p><p><b>request</b>: <a href=\"MedicationRequest-example.html\">MedicationRequest: status = active; intent = order; medication[x] = -&gt;Medication alemtuzumab 10 MG/ML [Lemtrada]; authoredOn = 2015-03-25 19:32:52-0500</a></p><h3>Dosages</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Route</b></td><td><b>Dose</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 47625008}\">Intravenous route (qualifier value)</span></td><td>3 mg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg = 'mg')</span></td></tr></table></div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:status [ fhir:v "completed"] ; #
      fhir:medication [
    a fhir:Reference ;
    fhir:l fhir:Medication/example ;
    fhir:reference [ fhir:v "Medication/example" ]
      ] ; #
      fhir:subject [
    fhir:l fhir:Patient/example ;
    fhir:reference [ fhir:v "Patient/example" ]
      ] ; #
      fhir:context [
    fhir:l fhir:Encounter/example ;
    fhir:reference [ fhir:v "Encounter/example" ]
      ] ; #
      fhir:supportingInformation ( [
    fhir:l fhir:Condition/example ;
    fhir:reference [ fhir:v "Condition/example" ]
      ] ) ; #
      fhir:effective [
    a fhir:Period ;
    fhir:start [ fhir:v "2015-01-15T14:30:00+01:00"^^xsd:dateTime ] ;
    fhir:end [ fhir:v "2015-01-29T14:30:00+01:00"^^xsd:dateTime ]
      ] ; #
      fhir:request [
    fhir:l fhir:MedicationRequest/example ;
    fhir:reference [ fhir:v "MedicationRequest/example" ]
      ] ; #
      fhir:dosage [
    fhir:route [
          ( fhir:coding [
    a sct:47625008 ;
    fhir:system [
    fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
    fhir:l <http://snomed.info/sct>         ] ;
    fhir:code [ fhir:v "47625008" ] ;
    fhir:display [ fhir:v "Intravenous route (qualifier value)" ]       ] )     ] ;
    fhir:dose [
    fhir:value [ fhir:v "3"^^xsd:decimal ] ;
    fhir:unit [ fhir:v "mg" ] ;
    fhir:system [
    fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
    fhir:l <http://unitsofmeasure.org>       ] ;
    fhir:code [ fhir:v "mg" ]     ]
      ] . #