FHIR Chat · natural language independence of CQL · implementers

Stream: implementers

Topic: natural language independence of CQL


view this post on Zulip Lin Zhang (Nov 09 2019 at 09:59):

The follwing requirements are taken from the openEHR Guideline Definition Language v2 (GDL2) specification (URL: https://specifications.openehr.org/releases/CDS/latest/GDL2.html#_natural_language_independence):

  • It shall be possible to author meta-data of the rules in any natural language;
  • The rule expressions shall be independent of any natural language;
  • The name of individual rules shall be independent of any natural language;
  • It shall be possible to add multiple language translations without changing the logical definitions in the rules.

CQL seems to meet all these requirement. But some syntax is a little bit more English centric. For example, the use of a keyword combination "start of" in the following declaration:

define "InDemographic":
AgeInYearsAt(start of MeasurementPeriod) >= 16 and AgeInYearsAt(start of MeasurementPeriod) < 24

The example is taken from: https://cql.hl7.org/examples/ChlamydiaScreening_CQM.cql

Hope CQL syntax could get more natural language independent.

view this post on Zulip Grahame Grieve (Nov 09 2019 at 11:36):

isn't that an authoring tool problem?

view this post on Zulip Lin Zhang (Nov 09 2019 at 14:16):

Well, indeed, an authoring tool may be designed to enhance its natural language independence by converting/showing the combination "start of" as something like "start(...)".

view this post on Zulip Grahame Grieve (Nov 09 2019 at 19:58):

is that the only issue?


Last updated: Apr 12 2022 at 19:14 UTC