Describe the issue
The 5.3.0 release of hapi adds support for the Measure $evaluate-measure operation. The CQL translator and engine that's embedded can support CQL language levels 1.3-1.5, however it's currently hard-coded to assume all CQL is 1.5. The content out in the wild (such as the Measures in the Connectathon repo) typical matches the CQL language level to the FHIR version. In other words, DSTU3 Measures use CQL 1.3, R4 Measures use 1.4
There's currently no way to detect language level from a Library resource itself, so the language level for the embedded engine needs to be exposed as a configuration option. Preferable, on a per-FHIR-version basis.
Environment (please complete the following information):
Describe the issue The 5.3.0 release of hapi adds support for the Measure $evaluate-measure operation. The CQL translator and engine that's embedded can support CQL language levels 1.3-1.5, however it's currently hard-coded to assume all CQL is 1.5. The content out in the wild (such as the Measures in the Connectathon repo) typical matches the CQL language level to the FHIR version. In other words, DSTU3 Measures use CQL 1.3, R4 Measures use 1.4
There's currently no way to detect language level from a Library resource itself, so the language level for the embedded engine needs to be exposed as a configuration option. Preferable, on a per-FHIR-version basis.
Environment (please complete the following information):