Hl7.Cql.Packager
2.0.7-alpha
This is a prerelease version of Hl7.Cql.Packager.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global Hl7.Cql.Packager --version 2.0.7-alpha
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Hl7.Cql.Packager --version 2.0.7-alpha
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Hl7.Cql.Packager&version=2.0.7-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Hl7.Cql.Packager --version 2.0.7-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HL7 CQL Packager
A .NET tool that packages CQL, ELM, and build outputs into a FHIR Library resource.
Overview
The HL7 CQL Packager performs the following steps:
- Translation: Converts ELM JSON files into Linq.Expressions, then translates these expressions into C# code. Each ELM file is converted into a class, with each function within that file becoming a public method in the class.
- Compilation: Compiles the generated C# code into a single assembly per ELM file.
- Packaging: Packages the assembly (and optionally the original CQL, ELM, and C# source code) into a FHIR Library resource, creating one resource per original ELM file.
Getting Started
Installation
Install the packager tool globally using the following command:
dotnet tool install Hl7.Cql.Packager --global --prerelease
Note: The
--prereleaseoption is required because only prerelease versions are currently available.
Prerequisites
The tool does not convert CQL into ELM. You need to use the existing Java-based tooling for this conversion.
Usage
Run the tool with the following command:
cql-package --elm <directory> --cql <directory> [options]
Mandatory Parameters
--elm <directory>: Specifies the root directory for the ELM files. This parameter is required.--cql <directory>: Specifies the root directory for the CQL files. This parameter is required.
Optional Parameters
[--fhir <directory>]: Specifies the output directory for the FHIR resources[--cs <directory>]: Specifies the output directory for generated C# code[--cs-typeformat <var|explicit>]: Specifies whether to use 'var' (default) or explicit types in the generated C# output[--dll <directory>]: Specifies the DLL output directory[--log-debug <true|false>]: Enable debug logging or not (default)[--canonical-root-url <url>]: Specifies the root url used for the resource canonical. If omitted a '#' will be used.[--override-utc-date-time <ISO8601-date-time>]: Defines the UTC date to override in the generated FHIR resource libraries (example: 2000-12-31T23:59:59.99Z). If omitted the current date time will be used.
Example
cql-package --elm Elm\json --cql Cql\input --fhir c:\packager-output-fhir --cs c:\packager-output-cs
This command packages the ELM and CQL files from the specified directories and writes the generated FHIR Resources and C# code to the respective directories.
Further Reading
The CQL Packager tool is part of the Firely CQL SDK. More information can be found at Firely’s documentation site.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.14.0 | 113 | 8/20/2026 |
| 2.13.0 | 103 | 8/13/2026 |
| 2.12.0 | 117 | 8/5/2026 |
| 2.11.0 | 112 | 7/30/2026 |
| 2.10.0 | 108 | 7/21/2026 |
| 2.9.2 | 121 | 7/8/2026 |
| 2.9.1 | 117 | 7/7/2026 |
| 2.9.0 | 138 | 6/12/2026 |
| 2.8.2 | 128 | 6/10/2026 |
| 2.8.1 | 121 | 6/4/2026 |
| 2.8.0 | 116 | 6/3/2026 |
| 2.7.0 | 130 | 5/21/2026 |
| 2.6.0 | 179 | 3/17/2026 |
| 2.5.0 | 148 | 2/20/2026 |
| 2.4.0 | 406 | 1/15/2026 |
| 2.3.1 | 157 | 1/8/2026 |
| 2.2.0 | 358 | 10/16/2025 |
| 2.1.0 | 355 | 8/19/2025 |
| 2.1.0-rc.1 | 190 | 8/13/2025 |
| 2.0.7-alpha | 172 | 11/19/2024 |
Loading failed