Skip to content

CQL Conversions Table

Ewout Kramer edited this page Oct 16, 2023 · 1 revision

Since the section on (implicit) conversion in the CQL spec is unreadable, I have included the repaired table below:

From\To Boolean Integer Long Decimal Quantity Ratio String Date DateTime Time Code Concept List ValueSet
Boolean N/A Explicit Explicit Explicit - - Explicit - - - - - -
Integer Explicit N/A Implicit Implicit Implicit - Explicit - - - - - -
Long Explicit Explicit N/A Implicit - - Explicit - - - - - -
Decimal Explicit - - N/A Implicit - Explicit - - - - - -
Quantity - - - - N/A - Explicit - - - - - -
Ratio - - - - - N/A Explicit - - - - - -
String Explicit Explicit Explicit Explicit Explicit Explicit N/A Explicit Explicit Explicit - - - -
Date - - - - - - Explicit N/A Implicit - - - - -
DateTime - - - - - - Explicit Explicit N/A - - - - -
Time - - - - - - Explicit - - N/A - - - -
Code - - - - - - - - - - N/A Implicit - -
Concept - - - - - - - - - - - N/A Explicit -
List - - - - - - - - - - - Explicit N/A -
ValueSet - - - - - - - - - - - - Implicit N/A