Hl7.Cql.Packager
2.0.17-alpha
See the version list below for details.
dotnet tool install --global Hl7.Cql.Packager --version 2.0.17-alpha
dotnet new tool-manifest
dotnet tool install --local Hl7.Cql.Packager --version 2.0.17-alpha
#tool dotnet:?package=Hl7.Cql.Packager&version=2.0.17-alpha&prerelease
nuke :add-package Hl7.Cql.Packager --version 2.0.17-alpha
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:
- CQL to ELM Conversion: Converts CQL files into ELM JSON files.
- ELM to C#: 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.
- C# to .NET DLL Compilation: Compiles the generated C# code into a single assembly per ELM file.
- Packaging to FHIR Libraries/Measures: 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. Where applicable, FHIR Measure resources are also generated.
Limitations
The tool does not convert CQL into ELM yet. You need to use the existing Java-based tooling for this conversion.
Getting Started
Installation
Install the packager tool globally using the following command:
dotnet tool install Hl7.Cql.Packager --global --prerelease
Note: The
--prerelease
option is required because only prerelease versions are currently available.
Usage
Get help for the command line tool by running any of the following commands:
cql-package --help
cql-package cql --help
cql-package elm --help
Example
cql-package elm --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. |
This package has no dependencies.
Version | Downloads | Last Updated |
---|---|---|
2.1.0-beta.1 | 101 | 7/9/2025 |
2.1.0-alpha.18 | 140 | 5/20/2025 |
2.0.17-alpha | 203 | 5/12/2025 |
2.0.16-alpha | 128 | 5/1/2025 |
2.0.14-alpha | 188 | 4/8/2025 |
2.0.13-alpha | 135 | 3/20/2025 |
2.0.12-alpha | 303 | 2/11/2025 |
2.0.11-alpha | 107 | 2/11/2025 |
2.0.10-alpha | 115 | 1/16/2025 |
2.0.8-alpha | 217 | 12/4/2024 |
2.0.7-alpha | 76 | 11/19/2024 |
2.0.4-alpha | 106 | 9/20/2024 |
2.0.3-alpha | 115 | 9/4/2024 |
2.0.2-alpha | 85 | 9/4/2024 |
2.0.1-alpha | 127 | 8/21/2024 |
2.0.0-alpha | 93 | 6/17/2024 |
1.0.0-rc3 | 87 | 7/10/2024 |
1.0.0-rc2 | 412 | 10/23/2023 |
1.0.0-rc1 | 120 | 9/7/2023 |