hapifhir / hapi-fhir

🔥 HAPI FHIR - Java API for HL7 FHIR Clients and Servers
http://hapifhir.io
Apache License 2.0
2k stars 1.31k forks source link

Add support for configuring CQL language level #2388

Closed JPercival closed 2 months ago

JPercival commented 3 years ago

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):

Capt-Mac commented 2 months ago

this is exposed now in hapi-fhir-jpaStarter via cqlOptions