Your User Friendly Name for MyContentIG Here
0.5.3-cibuild - CI Build International flag

Your User Friendly Name for MyContentIG Here, published by HL7 International - [Some] Work Group. This guide is not an authorized publication; it is the continuous build for version 0.5.3-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/sample-content-ig/ and changes regularly. See the Directory of published versions

Library: HRExampleCVMeasureCQLLibrary

Official URL: http://somewhere.org/fhir/uv/mycontentig/Library/HRExampleCVMeasureCQLLibrary Version: 0.5.3-cibuild
Draft as of 2025-10-11 Computable Name: HRExampleCVMeasureCQLLibrary
Metadata
Version 0.5.3-cibuild
Status Draft
Jurisdiction 001 from http://unstats.un.org/unsd/methods/m49/m49.htm
Steward (Publisher) HL7 International - [Some] Work Group
Type logic-library from http://terminology.hl7.org/CodeSystem/library-type
Dependency Description: Library FHIRHelpers
Resource: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1
Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1
Dependency Description: Library CQMCommon
Resource: CQMCommonExample
Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/CQMCommonExample
Dependency Description: Library QICoreCommon
Resource: QICoreCommonExample
Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/QICoreCommonExample
Dependency Description: Library SDE
Resource: SupplementalDataElementsExample
Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/SupplementalDataElementsExample
Data Requirement Type: Patient
Profile(s): QICore Patient
Parameters
Name Use Card. Type Documentation
Measurement Period In 0..1 Period
Patient Out 0..1 Resource
SDE Ethnicity Out 0..1 Resource
SDE Payer Out 0..* Resource
SDE Race Out 0..1 Resource
SDE Sex Out 0..1 Coding
Initial Population Out 0..1 boolean
Measure Population Out 0..1 boolean
Measure Population Exclusions Out 0..1 boolean
Measure Observation Out 0..1 boolean
Observation that patients are 19 years or older Out 0..1 boolean
Patient Age 18 Years or Older at Start of Measurement Period Out 0..1 boolean
Patient Age Less than 18 Years Start of Measurement Period Out 0..1 boolean
RAV Patient Too Young at Start of Measurement Period Out 0..1 boolean
RAV Patient Too Old at Start of Measurement Period Out 0..1 boolean
Library Content
CQL Content
library HRExampleCVMeasureCQLLibrary version '0.5.3-cibuild'

using QICore version '4.1.1'

include FHIRHelpers version '4.0.1' called FHIRHelpers
include CQMCommonExample called CQMCommon
include QICoreCommonExample called QICoreCommon
include SupplementalDataElementsExample called SDE

parameter "Measurement Period" Interval<DateTime>

context Patient

define "SDE Ethnicity":
  SDE."SDE Ethnicity"

define "SDE Payer":
  SDE."SDE Payer"

define "SDE Race":
  SDE."SDE Race"

define "SDE Sex":
  SDE."SDE Sex"

define "Initial Population":
  AgeInYearsAt(date from 
    end of "Measurement Period"
  ) in Interval[18, 75]

define "Measure Population":
  "Initial Population"

define "Measure Population Exclusions":
  "Initial Population"

define "Measure Observation":
  "Initial Population"

define "Observation that patients are 19 years or older":
  AgeInYearsAt(date from start of "Measurement Period") >= 18

define "Patient Age 18 Years or Older at Start of Measurement Period":
  AgeInYearsAt(date from start of "Measurement Period") >= 18

define "Patient Age Less than 18 Years Start of Measurement Period":
  AgeInYearsAt(date from start of "Measurement Period") < 18

define "RAV Patient Too Young at Start of Measurement Period":
  AgeInYearsAt(date from start of "Measurement Period") < 5

define "RAV Patient Too Old at Start of Measurement Period":
  AgeInYearsAt(date from start of "Measurement Period") > 80

define function "Measure Observation 1"():
  if AgeInYearsAt(date from start of "Measurement Period") >= 18 then 1 
    else 0
ELM XML Content
Encoded data 
ELM JSON Content
Encoded data 
Generated using version 0.5.3-cibuild of the sample-content-ig Liquid templates