This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v2.0.0: STU 2) based on FHIR R4. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions
Library-Common
Formats: XML, JSON, Turtle
Id: |
Common |
Url: |
http://hl7.org/fhir/us/cqfmeasures/Library/Common |
Version: |
2.0.0 |
Identifier: |
value: Common
|
Name: |
Common |
Title: |
Common Library |
Status: |
active |
Experimental: |
true |
Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
Date: |
2019-09-03 |
Publisher: |
Health Level 7 International - Clinical Quality Information Work Group |
Description: |
This library is used as an example in the FHIR Quality Measure Implementation Guide |
Jurisdiction: |
US |
Approval Date: |
2019-08-03 |
Last Review Date: |
2019-08-03 |
Related Artifacts: |
Type | Resource |
depends-on | http://hl7.org/fhir/Library/FHIR-ModelInfo|4.0.1 |
depends-on | http://hl7.org/fhir/Library/FHIRHelpers|4.0.1 |
|
Parameters: |
Name | Type | Min | Max | In/Out |
Patient | Patient | 0 | 1 | out |
|
Content: text/cql |
library Common version '2.0.0'
/*
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.
*/
using FHIR version '4.0.1'
include 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
|
Content: application/elm+xml |
Encoded data (5568 characters)
|
Content: application/elm+json |
Encoded data (8888 characters)
|