Support package for Hl7.Cql. Contains the required runtime components for CQL execution.
$ dotnet add package Hl7.Cql.RuntimeThis is NCQA's and Firely's official support SDK for working with CQL on the Microsoft .NET (dotnet) platform. It contains an engine for executing ELM, and/or turning the contents of an ELM file into a .NET assembly so it can be called statically.
The engine has been tested by running it against the current NCQA HEDIS measures and CMS measures. There is quite some variation in how CQL is written and interpreted, so it is likely at this early stage that there will be deviations from other engines currently available.
The SDK targets .NET 8 (LTS) and .NET 10 (LTS) to provide optimal performance from .NET 10's enhancements (especially in LINQ which CQL heavily relies upon) while maintaining long-term support. All SDK packages (Hl7.Cql.*) are multi-targeted and will run on either framework with identical behavior.
This is release version 2.4.0 of the engine.
The releases notes at firely-cql-sdk/releases for each major version will document these changes and (major) issues we have encountered.
1.* Releases will be maintained with hotfixes, but will not receive new features.
The presentation is a good place to start, but note that we have made some minor changes to the public surface, so the names of the classes in the presentation will differ from the examples in the Demo project itself.
This SDK consists of the following packages:
The SDK depends on the following key external packages:
During development, pre-releases will appear on Firely's GitHub Package feed. To use these packages you must add https://nuget.pkg.github.com/FirelyTeam/index.json to your NuGet sources:
Get a Personal Access token (PAT) from github.com with scope read:packages
Next open a console on your machine and run dotnet nuget add source --name github --username <USERNAME> --password <PAT> https://nuget.pkg.github.com/FirelyTeam/index.json
USERNAME: your username on GitHub
PAT: your Personal access token with at least the scope read:packages
Further information can be found in docs/getting-started.md.
The SDK includes comprehensive tools for testing against both .NET 8 and .NET 10 to verify identical behavior across both LTS frameworks.
Test Categories:
Local Testing Scripts:
# Windows - Test all multi-target projects against both frameworks
.\test-multiframework.ps1
# Windows - Test specific project against both frameworks
.\test-multiframework.ps1 -TestProject CoreTests
# Linux/macOS - Test all multi-target projects against both frameworks
./test-multiframework.sh
# Linux/macOS - Test specific project against both frameworks
./test-multiframework.sh CoreTests
CI/CD Testing:
Multi-framework testing is fully integrated into the Azure Pipelines CI/CD workflow. The multiFrameworkTests stage runs after the main build and tests in parallel:
See build/README.md for complete CI/CD testing documentation and configuration details.
We actively monitor the issues coming in through the GitHub repository at https://github.com/FirelyTeam/firely-cql-sdk/issues. You are welcome to register your bugs and feature suggestions there. For questions and broader discussions, we use the .NET FHIR Implementers chat and CQL chat on Zulip.
We are welcoming contributions!
If you want to participate in this project, we're using Git Flow for our branch management. Please submit PRs with changes against the develop branch.
Current 2.x development is done against the develop branch, while hotfixes are done under the support/1.x branch. Please refer to our Git Branching and Workflow Guidelines on the wiki for detailed guidelines on git branching and naming conventions.