CQMCommon
type: Library
node role: treeRoot
id:
  v: CQMCommon
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: CQMCommon Url: http://ecqi.healthit.gov/ecqms/Library/CQMCommon Version: 1.4.000 Identifier: value: CQMCommon Name: CQMCommon Title: CQMCommon Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-09-06T20:02:06+00:00 Publisher: ICF Description: This library contains declarations that are commonly used in eCQMs and shared across the logic of multiple measures, such as the Encounter Inpatient value set, and the Inpatient Encounter population criteria definition. This library also contains functions for calculating hospitalization duration as well as hospital arrival and departure times. Related Artifacts: Dependencies Data Requirements: Type Profile MS Code Filter Encounter code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Encounter code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292 Encounter code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143 Encounter code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.38 Condition Location Medication Content: text/cql library CQMCommon version '1.4.000' using QICore version '4.1.1' include FHIRHelpers version '4.3.000' called FHIRHelpers include QICoreCommon version '1.5.000' called QICoreCommon valueset "Emergency Department Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292' valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307' valueset "Intensive Care Unit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.206' valueset "Observation Services": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143' valueset "Outpatient Surgery Service": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.38' valueset "Present on Admission or Clini…
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/CQMCommon
  l: CQMCommon
identifier:
  use:
    v: official
  system:
    v: https://madie.cms.gov/login
    l: login
  value:
    v: CQMCommon
version:
  v: 1.4.000
name:
  v: CQMCommon
title:
  v: CQMCommon
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-09-06T20:02:06+00:00
publisher:
  v: ICF
description:
  v: This library contains declarations that are commonly used in eCQMs and shared across the logic of multiple measures, such as the Encounter Inpatient value set, and the Inpatient Encounter population criteria definition. This library also contains functions for calculating hospitalization duration as well as hospital arrival and departure times.
related artifact:
  type:
    v: depends-on
  display:
    v: QICore model information
  resource:
    v: http://hl7.org/fhir/Library/QICore-ModelInfo
    l: QICore-ModelInfo
related artifact:
  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
related artifact:
  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
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Emergency Department Visit
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Encounter Inpatient
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Intensive Care Unit
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.206
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1029.206
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Observation Services
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Outpatient Surgery Service
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.38
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.38
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Present on Admission or Clinically Undetermined
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1147.197
parameter:
  name:
    v: Measurement Period
  use:
    v: in
  min:
    v: 0
  max:
    v: 1
  type:
    v: Period
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Resource
parameter:
  name:
    v: Inpatient Encounter
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Resource
data requirement:
  type:
    v: Patient
  profile:
    v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient
    l: qicore-patient
data requirement:
  type:
    v: Encounter
  profile:
    v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
    l: qicore-encounter
  must support:
    v: type
  must support:
    v: status
  must support:
    v: status.value
  must support:
    v: period
  must support:
    v: location
  must support:
    v: location.type
  must support:
    v: condition
  must support:
    v: condition.reference
  must support:
    v: condition.reference.value
  must support:
    v: rank
  must support:
    v: rank.value
  code filter:
    path:
      v: type
    value set:
      v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
      l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307

path:
  v: status.value
code:
  code:
    v: finished

path:
  v: period
value: Period
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-expression
      l: cqf-expression
    value: Expression
      language:
        v: text/cql-identifier
      expression:
        v: Measurement Period

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
  l: qicore-encounter
must support:
  v: type
must support:
  v: status
must support:
  v: status.value
must support:
  v: period
must support:
  v: location
must support:
  v: location.type
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: condition.reference.value
must support:
  v: rank
must support:
  v: rank.value
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
code filter:
  path:
    v: status.value
  code:
    code:
      v: finished

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
  l: qicore-encounter
must support:
  v: type
must support:
  v: period
must support:
  v: location
must support:
  v: location.type
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: condition.reference.value
must support:
  v: rank
must support:
  v: rank.value
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.38
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.38
date filter:
  path:
    v: period
  value: Period
    extension:
      url:
        v: http://hl7.org/fhir/uv/crmi-analysisException
        l: crmi-analysisException
      value: String
        v: Error attempting to determine filter value: toFhirValue not implemented for Subtract

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
  l: qicore-encounter
must support:
  v: type
must support:
  v: status
must support:
  v: status.value
must support:
  v: period
must support:
  v: location
must support:
  v: location.type
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: condition.reference.value
must support:
  v: rank
must support:
  v: rank.value
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
code filter:
  path:
    v: status.value
  code:
    code:
      v: finished

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter
  l: qicore-encounter
must support:
  v: type
must support:
  v: status
must support:
  v: status.value
must support:
  v: period
must support:
  v: location
must support:
  v: location.type
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: condition.reference.value
must support:
  v: rank
must support:
  v: rank.value
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
code filter:
  path:
    v: status.value
  code:
    code:
      v: finished
date filter:
  path:
    v: period
  value: Period
    extension:
      url:
        v: http://hl7.org/fhir/uv/crmi-analysisException
        l: crmi-analysisException
      value: String
        v: Error attempting to determine filter value: toFhirValue not implemented for Subtract

type:
  v: Location
profile:
  v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location
  l: qicore-location
must support:
  v: id
must support:
  v: id.value

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition
  l: qicore-condition
must support:
  v: id
must support:
  v: id.value

content type:
  v: text/cql

content type:
  v: application/elm+xml