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

Table of Contents

.. 0 Table of Contents
... 1 CQL Specification
.... 1.1 Introduction
.... 1.2 Author's Guide
.... 1.3 Developer's Guide
.... 1.4 Logical Specification
.... 1.5 Language Semantics
.... 1.6 Translation Semantics
.... 1.7 Physical Representation
.... 1.8 Appendix A - CQL Syntax
.... 1.9 Appendix B - CQL Reference
.... 1.10 Appendix C - Reference Implementations
.... 1.11 Appendix D - References
.... 1.12 Appendix E - Acronyms
.... 1.13 Appendix F - Glossary
.... 1.14 Appendix G - Formatting Conventions
.... 1.15 Appendix H - Time Interval Calculations
.... 1.16 Appendix I - FHIRPath Translation
.... 1.17 Appendix J - List Of Tables
.... 1.18 Appendix K - List Of Figures
.... 1.19 Appendix L - CQL Syntax Diagrams
... 2 Title
... 3 License
... 4 Executive Summary
... 5 Grammar
... 6 ELM
... 7 Examples
... 8 Tests
... 9 Downloads
... 10 Changes
.... 10.1 V1.1 Change Log
.... 10.2 V1.2 Change Log
.... 10.3 V1.3 Change Log
.... 10.4 V1.4 Change Log
.... 10.5 V1.5 Change Log
... 11 Artifacts Summary
.... 11.1 CQL Grammar File (G4)
.... 11.2 Chlamydia Screening Decision Support ELM in JSON (with annotations)
.... 11.3 Chlamydia Screening Decision Support ELM in XML (with annotations)
.... 11.4 Chlamydia Screening Decision Support CQL Library
.... 11.5 Chlamydia Screening Decision Support ELM in JSON (with debug information)
.... 11.6 Chlamydia Screening Decision Support ELM in XML (with debug information)
.... 11.7 Chlamydia Screening Decision Support ELM in JSON (without annotations or debug information)
.... 11.8 Chlamydia Screening Decision Support (using Common) CQL Library
.... 11.9 Chlamydia Screening Decision Support (using Common) ELM in JSON
.... 11.10 Chlamydia Screening Decision Support (using Common) ELM in XML
.... 11.11 Chlamydia Screening Decision Support ELM in XML (without annotations or debug information)
.... 11.12 Chlamydia Screening Common CQL Library
.... 11.13 Chlamydia Screening Common Library ELM in JSON
.... 11.14 Chlamydia Screening Common Library ELM in XML
.... 11.15 Chlamydia Screening Quality Measure CQL Library
.... 11.16 Chlamydia Screening Quality Measure ELM in JSON
.... 11.17 Chlamydia Screening Quality Measure (using Common) CQL Library
.... 11.18 Chlamydia Screening Quality Measure (using Common) ELM in JSON
.... 11.19 Chlamydia Screening Quality Measure (using Common) ELM in XML
.... 11.20 Chlamydia Screening Quality Measure ELM in XML
.... 11.21 Example CMS135 Quality Measure CQL Library
.... 11.22 Example CMS135 Quality Measure ELM in JSON
.... 11.23 Example CMS135 Quality Measure ELM in XML
.... 11.24 Example CMS146v2 Quality Measure CQL Library (using QUICK)
.... 11.25 Example CMS146v2 Quality Measure ELM in JSON
.... 11.26 Example CMS146v2 Quality Measure ELM in XML
.... 11.27 Example CMS146v2 Quality Measure CQL Library (using QDM)
.... 11.28 Example CMS146v2_QDM Quality Measure ELM in JSON
.... 11.29 Example CMS146v2_QDM Quality Measure ELM in XML
.... 11.30 Example CMS154v1 (NQF-0069) Quality Measure CQL Library (using QUICK)
.... 11.31 Example CMS154v1 (NQF-0069) Quality Measure ELM in JSON
.... 11.32 Example CMS154v1 (NQF-0069) Quality Measure ELM in XML
.... 11.33 Example CMS179v2 Quality Measure CQL Library (using QUICK)
.... 11.34 Example CMS179v2 Quality Measure ELM in JSON
.... 11.35 Example CMS179v2 Quality Measure ELM in XML
.... 11.36 Example CMS179v2 Quality Measure CQL Library (using QDM)
.... 11.37 Example CMS179v2_QDM Quality Measure ELM in JSON
.... 11.38 Example CMS179v2_QDM Quality Measure ELM in XML
.... 11.39 Example CMS26v2 Quality Measure CQL Library (using QUICK)
.... 11.40 Example CMS26v2 Quality Measure ELM in JSON
.... 11.41 Example CMS26v2 Quality Measure ELM in XML
.... 11.42 Example CMS55v2 (NQF-0495) Quality Measure CQL Library (using QUICK)
.... 11.43 Example CMS55v1 Quality Measure ELM in JSON
.... 11.44 Example CMS55v1 Quality Measure ELM in XML
.... 11.45 Example CMS55v2 (NQF-0495) Quality Measure CQL Library (using QDM)
.... 11.46 Example CMS55v1_QDM Quality Measure ELM in XML
.... 11.47 Related Context Retrieve Example CQL Library
.... 11.48 Related Context Retrieve Example ELM Library (JSON)
.... 11.49 Related Context Retrieve Example ELM Library (XML)
.... 11.50 FHIRPath Grammar File (G4)
.... 11.51 ELM Schema - ClinicalExpression
.... 11.52 ELM Schema - CQLAnnotations
.... 11.53 ELM Schema - Expression
.... 11.54 ELM Schema - Library
.... 11.55 ModelInfo Schema
.... 11.56 Test Schema
.... 11.57 ELM Schema - Types
.... 11.58 CQL Tests - Aggregate Functions
.... 11.59 CQL Tests - Arithmetic Functions
.... 11.60 CQL Tests - Comparison Operators
.... 11.61 CQL Tests - Conditional Operators
.... 11.62 CQL Tests - DateTime Operators
.... 11.63 CQL Tests - CQL Errors and Messaging Operators
.... 11.64 CQL Tests - Interval Operators
.... 11.65 CQL Tests - List Operators
.... 11.66 CQL Tests - Logical Operators
.... 11.67 CQL Tests - Nullological operators
.... 11.68 CQL Tests - String Operators
.... 11.69 CQL Tests - Type Operators
.... 11.70 CQL Tests - Types
.... 11.71 CQL Tests - Value Literals and Selectors