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 CMS154v1 (NQF-0069) Quality Measure CQL Library (using QUICK) - JSON Representation

Raw json | Download

{
  "resourceType" : "Binary",
  "id" : "binary-example-cms154v1-nqf0069-cql",
  "contentType" : "text/cql",
  "data" : "bGlicmFyeSBDTVMxNTQgdmVyc2lvbiAnMScNCg0KLyoNCglDTVMxNTR2MSAtIE5RRjAwNjkNCglBcHByb3ByaWF0ZSBUcmVhdG1lbnQgZm9yIENoaWxkcmVuIHdpdGggVXBwZXIgUmVzcGlyYXRvcnkgSW5mZWN0aW9uIChVUkkpDQoNClBvcHVsYXRpb24gY3JpdGVyaWENCg0KICAgIEluaXRpYWwgUGF0aWVudCBQb3B1bGF0aW9uID0NCiAgICAgICAgQU5EOiAiUGF0aWVudCBDaGFyYWN0ZXJpc3RpYyBCaXJ0aGRhdGU6IGJpcnRoIGRhdGUiID49IDMgbW9udGgocykgc3RhcnRzIGJlZm9yZSBzdGFydCBvZiAiTWVhc3VyZW1lbnQgUGVyaW9kIg0KICAgICAgICBBTkQ6ICJQYXRpZW50IENoYXJhY3RlcmlzdGljIEJpcnRoZGF0ZTogYmlydGggZGF0ZSIgPD0gMTggeWVhcihzKSBzdGFydHMgYmVmb3JlIHN0YXJ0IG9mICJNZWFzdXJlbWVudCBQZXJpb2QiDQogICAgICAgIEFORDoNCiAgICAgICAgICAgIE9SOiAiT2NjdXJyZW5jZSBBIG9mIERpYWdub3NpcywgQWN0aXZlOiBVcHBlciBSZXNwaXJhdG9yeSBJbmZlY3Rpb24iIHN0YXJ0cyBkdXJpbmcNCiAgICAgICAgICAgICAgICBPUjogIkVuY291bnRlciwgUGVyZm9ybWVkOiBPZmZpY2UgVmlzaXQiDQogICAgICAgICAgICAg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