Quality Measure Implementation Guide
2.0.0 - STU 2 International flag

This page is part of the Quality Measure Implementation Guide (v2.0.0: STU 2) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Library: Common Library (Experimental)

Official URL: http://hl7.org/fhir/uv/cqm/Library/Common Version: 2.0.0
Standards status: Informative Computable Name: Common
Other Identifiers: http://example.org/fhir/cqi/ecqm/Library/Identifier#Common (use: official, ), OID:2.16.840.1.113883.4.642.40.61.28.6

This library is used as an example in the FHIR Quality Measure Implementation Guide

Metadata
Title Common Library
Version 2.0.0
Identifier Common
Identifier urn:oid:2.16.840.1.113883.4.642.40.61.28.6
Approval Date 2019-08-03
Last Review Date 2019-08-03
Experimental true
Jurisdiction http://unstats.un.org/unsd/methods/m49/m49.htm#001
Topic FHIR
Topic CQL
Steward (Publisher) HL7 International / Clinical Quality Information
Description

This library is used as an example in the FHIR Quality Measure Implementation Guide

Type http://terminology.hl7.org/CodeSystem/library-type#logic-library
Parameters
Name Use Card. Type Documentation
Patient Out 0..1 Patient
Library Content
CQL Content
/*
This example is a work in progress and should not be considered a final specification
or recommendation for guidance. This example will help guide and direct the process
of finding conventions and usage patterns that meet the needs of the various stakeholders
in the measure development community.
*/
library Common

using FHIR version '4.0.1'

include hl7.fhir.uv.cql.FHIRHelpers version '4.0.1' called FHIRHelpers

context Patient

define function
   "Includes Or Starts During"(Condition Condition, Encounter Encounter):
      Interval[Condition.onset, Condition.abatement] includes Encounter.period
         or Condition.onset during Encounter.period
ELM XML Content
Encoded data 
ELM JSON Content
Encoded data 
Citations and References
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
Generated using version 0.5.7-cibuild of the sample-content-ig Liquid templates