This page is part of the Using CQL with FHIR Implementation Guide (v1.0.0: STU1) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions
Library: CQL Example
(Experimental)
Official URL: http://hl7.org/fhir/uv/cql/Library/CQLExample
|
Version:
1.0.0
|
Active
as of 2024-05-31
|
Computable Name: CQLExample |
Other Identifiers: OID:2.16.840.1.113883.4.642.40.37.28.2
|
Example CQL Library illustrating the CQL Profile (a Library with only text/cql content)
Related Artifacts
Parameters
GlucoseThreshold | in | 0 | 1 | Quantity |
Patient | out | 0 | 1 | Patient |
Blood Glucose Observations | out | 0 | * | Observation |
Data Requirements
Contents
text/cql
library CQLExample
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
codesystem LOINC: 'http://loinc.org'
code "Blood Glucose": '2339-0' from LOINC display 'Glucose Bld-mCnc'
parameter GlucoseThreshold Quantity
context Patient
define "Blood Glucose Observations":
[Observation: "Blood Glucose"] BG
where BG.value > GlucoseThreshold