CumulativeMedicationDuration
type: Library
node role: treeRoot
id:
  v: CumulativeMedicationDuration
meta:
  profile:
    v: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-library-cqfm
    l: computable-library-cqfm
text:
  status:
    v: extensions
  div:
    v: Metadata Title CumulativeMedicationDuration Version 4.1.000 Identifier 660c3cee34f8773b6f26972b Topic FHIR Topic CQL Steward (Publisher) ICF Description This library provides cumulative medication duration calculation logic for use with FHIR medication prescription, administration, and dispensing resources. The logic here follows the guidance provided as part of the 5.6 version of Quality Data Model. Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Dependency Description: Library FHIRHelpers Resource: FHIRHelpersversion: null4.4.000) Canonical URL: https://madie.cms.gov/Library/FHIRHelpers|4.4.000 Dependency Description: Library QICoreCommon Resource: QICoreCommonversion: null2.1.000) Canonical URL: https://madie.cms.gov/Library/QICoreCommon|2.1.000 Dependency Description: Code System V3TimingEvent Resource: TimingEvent Canonical URL: http://terminology.hl7.org/CodeSystem/v3-TimingEvent Dependency Description: Code System EventTiming Resource: EventTiming Canonical URL: http://hl7.org/fhir/event-timing Parameters Name Use Card. Type Documentation ErrorLevel In 0..1 string Patient Out 0..1 Resource Library Content CQL Content /* @update: JKR 2024-04-02 -> Incremented QICoreCommon and FHIRHelpers version Created Fluent functions for all relevant functions */ library CumulativeMedicationDuration version '4.1.000' using QICore version '4.1.1' include FHIRHelpers version '4.4.000' include QICoreCommon version '2.1.000' // These code systems are not known to the MAT environment yet, request to have them added submitted codesystem "V3TimingEvent": 'http://terminology.hl7.org/CodeSystem/v3-TimingEvent' codesystem "EventTiming": 'http://hl7.org/fhir/event-timing' code "HS": 'HS' from "V3TimingEvent" // event occurs [offset] before the hour of sleep (or trying to) code "WAKE": 'WAKE' from "V3TimingEvent" // event occurs [offset] after waking code "C": 'C' from "V3TimingEvent" // event occurs at a meal (from the Latin cibus) code "CM": 'CM' from "V3Ti…
url:
  v: https://madie.cms.gov/Library/CumulativeMedicationDuration
  l: CumulativeMedicationDuration
identifier:
  use:
    v: official
  system:
    v: https://madie.cms.gov/login
    l: login
  value:
    v: 660c3cee34f8773b6f26972b
version:
  v: 4.1.000
name:
  v: CumulativeMedicationDuration
title:
  v: CumulativeMedicationDuration
status:
  v: active
experimental:
  v: false
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2024-12-11T20:58:49+00:00
publisher:
  v: ICF
description:
  v: This library provides cumulative medication duration calculation logic for use with FHIR medication prescription, administration, and dispensing resources. The logic here follows the guidance provided as part of the 5.6 version of Quality Data Model.
topic:
  text:
    v: FHIR
topic:
  text:
    v: CQL
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: https://madie.cms.gov/Library/FHIRHelpers|4.4.000
    l: https://madie.cms.gov/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Library QICoreCommon
  resource:
    v: https://madie.cms.gov/Library/QICoreCommon|2.1.000
    l: https://madie.cms.gov/Library/QICoreCommon
related artifact:
  type:
    v: depends-on
  display:
    v: Code System V3TimingEvent
  resource:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent
related artifact:
  type:
    v: depends-on
  display:
    v: Code System EventTiming
  resource:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
parameter:
  name:
    v: ErrorLevel
  use:
    v: in
  min:
    v: 0
  max:
    v: 1
  type:
    v: string
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Resource
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json