VOOZH about

URL: https://www.nuget.org/packages/Hl7.Cql.Runtime/2.2.0

⇱ NuGet Gallery | Hl7.Cql.Runtime 2.2.0




Hl7.Cql.Runtime 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Hl7.Cql.Runtime --version 2.2.0
 
 
NuGet\Install-Package Hl7.Cql.Runtime -Version 2.2.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hl7.Cql.Runtime" Version="2.2.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hl7.Cql.Runtime" Version="2.2.0" />
 
Directory.Packages.props
<PackageReference Include="Hl7.Cql.Runtime" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hl7.Cql.Runtime --version 2.2.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Hl7.Cql.Runtime, 2.2.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Hl7.Cql.Runtime@2.2.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hl7.Cql.Runtime&version=2.2.0
 
Install as a Cake Addin
#tool nuget:?package=Hl7.Cql.Runtime&version=2.2.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 Build Status

Introduction

This 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.

Release Notes

This is release version 2.1 of the engine. Earlier 1.x releases will be maintained with hotfixes, but will not receive new features.

The releases notes at firely-cql-sdk/releases for each major version will document these changes and (major) issues we have encountered.

Getting Started

  • Read how to included in the repository.
  • There is a great presentation on the engine from DevDays 2023.
  • The CQL section in the .NET SDK documentation
  • The document with background documentation on the design.
  • The showing the internal dependencies of the CQL SDK toolkit services.

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.

Dependencies

The SDK has dependencies on the following key external packages:

Cql.Firely

  • Hl7.Fhir.Base: Version 5.12.0 - Base classes and utilities for FHIR support
  • Hl7.Fhir.R4: Firely SDK version - FHIR R4 POCOs and serialization support

Cql.Grammar

  • Antlr4.Runtime.Standard: Version 4.13.1 - ANTLR4 runtime for CQL grammar parsing

Cql.Runtime

  • Microsoft.Extensions.Logging.Debug: Version 8.0.0 - Debug logging provider
  • Fhir.Metrics: Version 1.3.0 - FHIR units and metrics support

Cql.CqlToElm

  • Microsoft.Extensions.Configuration: Version 9.0.3 - Configuration framework
  • Microsoft.Extensions.DependencyInjection: Version 8.0.0 - Dependency injection container
  • Microsoft.Extensions.Logging: Version 8.0.0 - Logging abstractions

CodeGeneration.NET

  • Microsoft.CodeAnalysis.CSharp: Version 4.12.0 - Roslyn C# compiler APIs
  • Microsoft.Extensions.Logging.Debug: Version 8.0.0 - Debug logging provider
  • Microsoft.Extensions.Logging.Console: Version 8.0.1 - Console logging provider

Cql.Compiler

  • Microsoft.Extensions.Logging.Abstractions: Version 8.0.1 - Logging abstractions
  • Microsoft.Extensions.Logging.Debug: Version 8.0.0 - Debug logging provider

Elm

  • Microsoft.CodeAnalysis.CSharp: Version 4.12.0 - Roslyn C# compiler APIs
  • System.Text.Json: Version 8.0.5 - High-performance JSON serialization

Cql.Packaging

  • Hl7.Fhir.R4: Firely SDK version - FHIR R4 POCOs and serialization support

PackagerCLI (cql-package tool)

  • Microsoft.Extensions.Hosting: Version 8.0.0 - Generic host for .NET applications
  • Microsoft.Extensions.Configuration: Version 9.0.3 - Configuration framework
  • Microsoft.Extensions.Logging.Console: Version 8.0.1 - Console logging provider
  • Serilog.Extensions.Logging: Version 9.0.1 - Serilog integration with Microsoft.Extensions.Logging
  • Serilog.Sinks.File: Version 7.0.0 - Serilog file logging sink
  • System.CommandLine: Version 2.0.0-beta4.22272.1 - Command-line argument parsing
  • System.CommandLine.NamingConventionBinder: Version 2.0.0-beta4.22272.1 - Command-line binding support
  • Hl7.Fhir.R4: Firely SDK version - FHIR R4 POCOs and serialization support

Dev Start

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 .

Support

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.

Contributing

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.

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Hl7.Cql.Runtime:

Package Downloads
Hl7.Cql.Model

Support package for Hl7.Cql. Incorporates CQL model information into the runtime.

Hl7.Cql.Fhir

Support package for Hl7.Cql. Contains the bindings to use Firely's .NET SDK Pocos for FHIR.

Hl7.Cql.Compiler

Support package for Hl7.Cql. Translates ELM into C# expression trees and can emit those expression trees into either runtime Delegates or C# source code.

Hl7.Cql.CodeGeneration.NET

Support package for Hl7.Cql. Converts .NET lambda expressions into C# source code.

Hl7.Cql.CqlToElm

Support package for Hl7.Cql. Unit conversion for CQL. Contains functionality to convert CQL to ELM.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.9.0 482 6/12/2026
2.8.2 309 6/10/2026
2.8.1 302 6/4/2026
2.8.0 283 6/3/2026
2.7.0 606 5/21/2026
2.6.0 2,205 3/17/2026
2.5.0 606 2/20/2026
2.4.0 3,158 1/15/2026
2.3.1 371 1/8/2026
2.2.0 6,636 10/16/2025
2.1.0 10,188 8/19/2025
2.1.0-rc.1 446 8/13/2025
2.1.0-beta.1 1,586 7/9/2025
2.1.0-alpha.18 2,310 5/20/2025
2.0.17-alpha 439 5/12/2025
2.0.16-alpha 513 5/1/2025
2.0.14-alpha 504 4/8/2025
2.0.13-alpha 412 3/20/2025
2.0.12-alpha 2,000 2/11/2025
2.0.11-alpha 290 2/11/2025
Loading failed