CumulativeMedicationDuration
type: Library
node role: treeRoot
id:
  v: CumulativeMedicationDuration
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title Cumulative Medication Duration Version 2.0.0-cibuild Jurisdiction United States of America Topic FHIR Topic CQL Topic Medication Topic Cumulative Medication Duration Steward (Publisher) HL7 International / Clinical Decision Support 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: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1 Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1 Dependency Description: Library FHIRCommon Resource: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0 Canonical URL: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0 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 Guidance (Usage) Note that the logic here assumes single-instruction dosing information. Split-dosing, tapering, and other more complex dosing instructions are not handled. Parameters Name Use Card. Type Documentation ErrorLevel In 0..1 string Patient Out 0..1 Patient Library Content CQL Content /* @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. @comment: Note that the logic here assumes single-instruction dosing information. Split-dosing, tapering, and other more complex dosing instructions are not handled. Note also that this logic is not US-specific, this library is a candidate for p…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 3
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: cds
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: informative
url:
  v: http://hl7.org/fhir/us/cql/Library/CumulativeMedicationDuration
  l: CumulativeMedicationDuration
version:
  v: 2.0.0-cibuild
name:
  v: CumulativeMedicationDuration
title:
  v: Cumulative Medication Duration
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: 2026-04-03T16:14:32+00:00
publisher:
  v: HL7 International / Clinical Decision Support
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/dss
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.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: US
    display:
      v: United States of America
usage:
  v: Note that the logic here assumes single-instruction dosing information. Split-dosing, tapering, and other more complex dosing instructions are not handled.
topic:
  text:
    v: FHIR
topic:
  text:
    v: CQL
topic:
  text:
    v: Medication
topic:
  text:
    v: Cumulative Medication Duration
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRCommon
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0
    l: http://hl7.org/fhir/uv/cql/Library/FHIRCommon
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: Patient
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json