Clinical Quality Language Specification
2.0.0-ballot - R2 STU 1 (Ballot)

Clinical Quality Language Specification, published by Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 2.0.0-ballot 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

## Appendix J - List Of Tables

Page standards status: Informative | Maturity Level: N/A

### Introduction

1. Table 1-A : Relationship of the current specifications to each component

2. Table 1-B : Major roles that this specification was written for

### Author's Guide

1. Table 2-A : Constructs that CQL libraries can contain

2. Table 2-B : Elements that define a parameter

3. Table 2-C : Typical contexts for CQL

4. Table 2-D : Four main clauses for a query construct

5. Table 2-E : Types of simple values that CQL supports

6. Table 2-F : Elements that make up a code type

7. Table 2-G : Elements that make up a Concept type

8. Table 2-H : The built-in comparison operators that CQL provides

9. Table 2-I : Logical operations that CQL provides

10. Table 2-J : Arithmetic operations that CQL provides

11. Table 2-K : The arguments that the DateTime operator takes

12. Table 2-L : The arguments that the Time operator takes

13. Table 2-M : The operators that CQL supports for retrieving the current date and time

14. Table 2-N : The precision-based comparison operators for Date and Time comparisons

15. Table 2-O : The valid extraction components for extracting Date and Time components

16. Table 2-P : The ISO8601 calendar semantics that should be used for calculations involving Date and Time

17. Table 2-Q : Comparison of two interval values using a complete set of operations

18. Table 2-R : The operators that can be used to construct timing phrases

19. Table 2-S : The operators that can be used for list comparisons

20. Table 2-T : The aggregate operators available in CQL

21. Table 2-U : The age related operators available in CQL

22. Table 2-V : QDM Data elements and their mapping to QUICK data structures

### Developer's Guide

1. Table 3-A : The basic lexical elements defined in CQL

2. Table 3-B : The types of literals supported in CQL

3. Table 3-C : The escape sequences for string literals in CQL

4. Table 3-D : The symbols supported by CQL to provide structure to the grammar and allow symbolic invocation of common operators such as addition

5. Table 3-E : The escape sequences for identifiers in CQL

6. Table 3-F : The order of operator precedence in CQL

7. Table 3-G : The primitive types and their ranges supported in CQL

8. Table 3-H : The structured types to facilitate representation and manipulation of clinical information

9. Table 3-I : The defined type conversion operators in CQL

10. Table 3-J : The explicit and implicit conversions supported in CQL

### Logical Specification

### Language Semantics

1. Table 5-A : Description of the data defined by each retrieve

2. Table 5-B : The structure of clinical data descriptors

3. Table 5-C : The categories of nodes and the process for determining the type of each category

4. Table 5-D : The required properties for a cacheable item

5. Table 5-E : The general categories of nodes and the process of evaluation for each

6. Table 5-F : The operations within the expression language are defined with a scope, and the stack to represent this scope

7. Table 5-G : Definitions for the terms involved in dealing with Date and Time values

8. Table 5-H : The components used to represent Date and Time values in CQL

9. Table 5-I : The Quantities and their precision that can be used for Date and Time calculations in CQL

### Translation Semantics

1. Table 6-A : The ELM equivalent for each CQL declaration

2. Table 6-B : The ELM equivalent for each CQL type-specifier

3. Table 6-C : The ELM equivalent for each CQL Literal

4. Table 6-D : The ELM equivalent for each CQL logical operator

5. Table 6-E : The ELM equivalent for each CQL type operator

6. Table 6-F : The ELM equivalent for each CQL nullological operator

7. Table 6-G : The ELM equivalent for each CQL comparison operator

8. Table 6-H : The ELM equivalent for each CQL arithmetic operator

9. Table 6-I : The ELM equivalent for each CQL String operator

10. Table 6-J : The ELM equivalent for each CQL Date and Time operator

11. Table 6-K : The ELM equivalent for each CQL Interval operator

12. Table 6-L : The ELM equivalent for each CQL List operator

13. Table 6-M : The ELM equivalent for each CQL aggegrate operator

14. Table 6-N : The ELM equivalent for each CQL clinical operator

15. Table 6-O : The ELM equivalent for each CQL construct

### Physical Representation

1. Table 7-A : The schemata that defines the ELM physical representation

2. Table 7-B : The data model reference required components

3. Table 7-C : The required information for each type available in the data model

### Appendix B - CQL Reference

1. Table 9-A : The truth table for the And operator

2. Table 9-A1 : The truth table for the Implies operator

3. Table 9-B : The truth table for the Not operator

4. Table 9-C : The truth table for the Or operator

5. Table 9-D : The truth table for the Xor operator

6. Table 9-E : The conversions supported in CQL

7. Table 9-F : The string representations that the ToBoolean operator accepts

8. Table 9-G : The string representations that the ToString operator uses for each data type

### Appendix E - Acronyms

1. Table 12-A : Acronyms used in this specification