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
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Id: 64b94a09774bb523d9a14581 Url: http://ecqi.healthit.gov/ecqms/Library/CumulativeMedicationDuration Version: 3.3.000 Identifier: value: 64b94a09774bb523d9a14581 Name: CumulativeMedicationDuration Title: CumulativeMedicationDuration Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-28T15:49:26+00:00 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. Related Artifacts: Dependencies Content: text/cql library CumulativeMedicationDuration version '3.3.000' using QICore version '4.1.1' include FHIRHelpers version '4.3.000' include QICoreCommon version '1.5.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 "V3TimingEvent" // event occurs at breakfast (from the Latin cibus matutinus) code "CD": 'CD' from "V3TimingEvent" // event occurs at lunch (from the Latin cibus diurnus) code "CV": 'CV' from "V3TimingEvent" // event occurs at dinner (from the Latin ante cibus vespertinus) code "AC": 'AC' from "V3TimingEvent" // event occurs [offset] before a meal (from the Latin ante cibus) code "ACM": 'ACM' from "V3TimingEvent" // event occurs [offset] before breakfast (from the Latin ante cibus matutinus) code "ACD": 'ACD' from "V3TimingEvent" // event occurs [offset] before lunch (from the Latin ant…
extension:
  url:
    v: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem
    l: cqfm-softwaresystem
  value: Reference
    l: cqf-tooling
    reference:
      v: Device/cqf-tooling
url:
  v: http://ecqi.healthit.gov/ecqms/Library/CumulativeMedicationDuration
  l: CumulativeMedicationDuration
identifier:
  use:
    v: official
  system:
    v: https://madie.cms.gov/login
    l: login
  value:
    v: 64b94a09774bb523d9a14581
version:
  v: 3.3.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: 2023-08-28T15:49:26+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.
related artifact:
  id:
    v: MORN
  display:
    v: MORN
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: MORN.early
  display:
    v: MORN.early
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: MORN.late
  display:
    v: MORN.late
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: NOON
  display:
    v: NOON
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: AFT
  display:
    v: AFT
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: AFT.early
  display:
    v: AFT.early
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: AFT.late
  display:
    v: AFT.late
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: EVE
  display:
    v: EVE
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: EVE.early
  display:
    v: EVE.early
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: EVE.late
  display:
    v: EVE.late
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: NIGHT
  display:
    v: NIGHT
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing
related artifact:
  id:
    v: PHS
  display:
    v: PHS
  url:
    v: http://hl7.org/fhir/event-timing
    l: event-timing
  document:
    url:
      v: http://hl7.org/fhir/event-timing
      l: event-timing

id:
  v: HS
display:
  v: HS
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: WAKE
display:
  v: WAKE
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: C
display:
  v: C
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: CM
display:
  v: CM
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: CD
display:
  v: CD
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: CV
display:
  v: CV
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: AC
display:
  v: AC
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: ACM
display:
  v: ACM
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: ACD
display:
  v: ACD
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: ACV
display:
  v: ACV
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: PC
display:
  v: PC
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: PCM
display:
  v: PCM
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: PCD
display:
  v: PCD
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

id:
  v: PCV
display:
  v: PCV
url:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent
document:
  url:
    v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
    l: v3-TimingEvent

type:
  v: depends-on
display:
  v: QICore model information
resource:
  v: http://hl7.org/fhir/Library/QICore-ModelInfo
  l: QICore-ModelInfo

type:
  v: depends-on
display:
  v: Library FHIRHelpers
resource:
  v: http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers|4.3.000
  l: http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers

type:
  v: depends-on
display:
  v: Library QICoreCommon
resource:
  v: http://ecqi.healthit.gov/ecqms/Library/QICoreCommon|1.5.000
  l: http://ecqi.healthit.gov/ecqms/Library/QICoreCommon

type:
  v: depends-on
display:
  v: Code system V3TimingEvent
resource:
  v: http://terminology.hl7.org/CodeSystem/v3-TimingEvent
  l: v3-TimingEvent

type:
  v: depends-on
display:
  v: Code system EventTiming
resource:
  v: http://hl7.org/fhir/event-timing
  l: event-timing

type:
  v: depends-on
display:
  v: Code system SNOMEDCT
resource:
  v: http://snomed.info/sct
  l: sct

name:
  v: ErrorLevel
use:
  v: in
min:
  v: 0
max:
  v: 1
type:
  v: string

name:
  v: Patient
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Resource

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient
  l: qicore-patient

content type:
  v: text/cql

content type:
  v: application/elm+xml