Clinical Quality Language Specification
1.5.3 - Release 1 Errata 2

Clinical Quality Language Specification, published by Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 1.5.3 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cql/ and changes regularly. See the Directory of published versions

: Example CMS179v2 Quality Measure CQL Library (using QUICK) - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Binary ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "binary-example-cms179v2-cqm-cql"] ; # 
  fhir:contentType [ fhir:v "text/cql"] ; # 
  fhir:data [ fhir:v "bGlicmFyeSBDTVMxNzkgdmVyc2lvbiAnMicNCg0KLy8gV2FyZmFyaW4gdGltZSBpbiB0aGVyYXBldXRpYyByYW5nZQ0KDQp1c2luZyBRVUlDSw0KDQp2YWx1ZXNldCAiRmx1dHRlciBEaWFnbm9zaXMiOiAnMi4xNi44NDAuMS4xMTM4ODMuMy4xMTcuMS43LjEuMjAyJw0KdmFsdWVzZXQgIldhcmZhcmluIE1lZGljYXRpb24iOiAnMi4xNi44NDAuMS4xMTM4ODMuMy4xMTcuMS43LjEuMjMyJw0KdmFsdWVzZXQgIkZhY2UtdG8tZmFjZSBFbmNvdW50ZXIiOiAnMi4xNi44NDAuMS4xMTM4ODMuMy40NjQuMTAwMy4xMDEuMTIuMTA0OCcNCnZhbHVlc2V0ICJPZmZpY2UgVmlzaXQiOiAnMi4xNi44NDAuMS4xMTM4ODMuMy40NjQuMTAwMy4xMDEuMTIuMTAwMScNCnZhbHVlc2V0ICJWYWx2dWxhciBIZWFydCBEaXNlYXNlIjogJzIuMTYuODQwLjEuMTEzODgzLjMuNDY0LjEwMDMuMTA0LjEyLjEwMTcnDQp2YWx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