Hl7.Fhir.Specification.STU3 5.0.0-beta1

Prefix Reserved
This is a prerelease version of Hl7.Fhir.Specification.STU3.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Hl7.Fhir.Specification.STU3 --version 5.0.0-beta1                
NuGet\Install-Package Hl7.Fhir.Specification.STU3 -Version 5.0.0-beta1                
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.Fhir.Specification.STU3" Version="5.0.0-beta1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hl7.Fhir.Specification.STU3 --version 5.0.0-beta1                
#r "nuget: Hl7.Fhir.Specification.STU3, 5.0.0-beta1"                
#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.
// Install Hl7.Fhir.Specification.STU3 as a Cake Addin
#addin nuget:?package=Hl7.Fhir.Specification.STU3&version=5.0.0-beta1&prerelease

// Install Hl7.Fhir.Specification.STU3 as a Cake Tool
#tool nuget:?package=Hl7.Fhir.Specification.STU3&version=5.0.0-beta1&prerelease                

Build Status

IMPORTANT The 5.0 version of the SDK contains substantial changes to the way we have organized the NuGet packages and source code. Please read before installing this new 5.0 version.

IMPORTANT Version 5.0 of the SDK is in beta. Navigate back to the main repository for the stable 4.x release.

Introduction

This is Firely's official support SDK for working with HL7 FHIR on the Microsoft .NET (dotnet) platform.

This SDK provides:

  • Class models for working with the FHIR data model using POCO's
  • Xml and Json parsers and serializers
  • A REST client for working with FHIR-compliant servers
  • Helper classes to work with the specification metadata, most notably StructureDefinition and generation of differentials
  • Validation of instances based on profiles
  • Evaluation FhirPath expressions

Release notes

Read the releases notes on firely-net-sdk/releases. You can find documentation about this SDK in the Firely docs site.

Getting Started

Before installing one of the NuGet packages (or clone the repo) it is important to understand that HL7 has published several updates of the FHIR specification, each with breaking changes - so you need to ensure you use the version that is right for you:

  • DSTU1 (published September 2014) is mostly obsolete and we are no longer maintaining this library for DSTU1.
  • DSTU2 (published October 2015) is mostly obsolete and and we are no longer maintaining this library for DSTU2.
  • STU3 (published March 2017) is older, but still widely in use. Is fully supported by this library.
  • R4 (published January 2019) is in active use and fully supported by this library.
  • R4B (published May 2022) is the latest official release of the FHIR spec and is fully supported by this library.
  • R5 (not yet published) is work-in-progress. This library currently supports "snapshot-1".

Planned release DSTU2.1 was never published by HL7, but you will still find traces of it. We are not maintaining the version, but the NuGet package is still available.

Read the online documentation, and download the correct NuGet package for your FHIR release. Depending on the version of FHIR you require, you'll find the relevant link to the package below. For most developers, just including this NuGet package is enough to get started.

Spec version Git branch NuGet
R5 https://github.com/FirelyTeam/firely-net-sdk/tree/release/5.0.0 https://www.nuget.org/packages/Hl7.Fhir.R5
R4B https://github.com/FirelyTeam/firely-net-sdk/tree/release/5.0.0 https://www.nuget.org/packages/Hl7.Fhir.R4B
R4 https://github.com/FirelyTeam/firely-net-sdk/tree/release/5.0.0 https://www.nuget.org/packages/Hl7.Fhir.R4
STU3 https://github.com/FirelyTeam/firely-net-sdk/tree/release/5.0.0 https://www.nuget.org/packages/Hl7.Fhir.STU3
DSTU2 https://github.com/FirelyTeam/firely-net-sdk/tree/develop-dstu2 https://www.nuget.org/packages/Hl7.Fhir.DSTU2

Upgrading

We spend a lot of effort trying to maintain compile compatibility (not binary compatibility) between minor releases of the SDK. We do, however, publish a new major version with breaking changes about once a year. The table below lists the breaking changes for each of the major upgrades.

SDK version Breaking changes
2.x https://github.com/FirelyTeam/firely-net-sdk/wiki/Breaking-changes-in-2.0
3.x https://github.com/FirelyTeam/firely-net-sdk/wiki/Breaking-changes-in-3.0
4.x https://github.com/FirelyTeam/firely-net-sdk/wiki/Breaking-changes-in-4.0
5.x https://github.com/FirelyTeam/firely-net-sdk/wiki/Breaking-changes-in-5.0

The SDK has been totally restructured for the 5.0 release. Please take not of the following changes if you are upgrading:

  • The additional Hl7.Fhir.Specification packages are no longer relevant starting at version 5.0 of the SDK and should not be included in your projects anymore.
  • The main NuGet package no longer contains the specification.zip file that contains all the conformance resources used in the FHIR specification. If you are using the ZipSource resolvers (e.g. for profile validation), you will need to include the correct HL7.Fhir.Specification.Data.* NuGet packages. We recommend you look at the newer FhirPackageResolver that directly use the HL7-published NPM packages. Documentation can be found here.
  • The profile validator has been split off into its own repository. The NuGet packages for the 5.0 version of the profile validator will be posted soon.

Support

We actively monitor the issues coming in through the GitHub repository at https://github.com/FirelyTeam/firely-net-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 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 branche.

Note: Since the 5.0 release of the SDK, the branches for STU3 and newer have been combined in a single develop branch. This branch now contains the code for all FHIR releases from STU3 and up. We have also refactored all the common code out to projects within that branch, so the separate common repository (at https://github.com/FirelyTeam/firely-net-common) is no longer in use. This greatly simplifies management and creating PRs for these projects.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Hl7.Fhir.Specification.STU3:

Package Downloads
FhirStarter.Flare.STU3

Contains the necessary classes to create a FHIR server. Both the setup classes and FHIR controller is here.

FhirStarter.Bonfire.STU3

Complements the Spark.Engine library with additional features such as a FHIR service interface and service handling

FhirKhit.Tools.R3

FhirKhit tools for Fhir STU 3

Eir.FhirKhit.R3

FhirKhit tools for Fhir STU 3

FhirTool.Core

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.11.1 69 11/25/2024
5.11.0 133 11/8/2024
5.10.3 423 9/19/2024
5.10.2 98 9/18/2024
5.10.1 921 9/12/2024
5.10.0 121 9/10/2024
5.9.1 146 8/8/2024
5.9.0 402 7/25/2024
5.8.2 128 7/10/2024
5.8.1 603 5/2/2024
5.8.0 141 4/24/2024
5.7.0 332 3/15/2024
5.6.1 422 2/13/2024
5.6.0 158 2/13/2024
5.5.1 242 1/16/2024
5.5.0 238 1/10/2024
5.4.0 492 10/26/2023
5.3.0 348 7/27/2023
5.2.0 487 5/26/2023
5.1.0 323 4/28/2023
5.0.0 806 2/17/2023
5.0.0-beta1 297 12/21/2022
4.3.0 55,128 9/22/2022
4.2.1 3,877 8/17/2022
4.2.0 759 8/16/2022
4.1.0 3,041 7/7/2022
4.0.0 5,251 5/10/2022
4.0.0-beta2 209 3/4/2022
4.0.0-beta1 201 2/7/2022
3.8.3 13,803 4/28/2022
3.8.2 8,934 3/28/2022
3.8.1 611 3/4/2022
3.8.0 30,943 1/7/2022
3.7.0 2,930 12/1/2021
3.6.0 21,269 10/15/2021
3.5.0 3,673 9/2/2021
3.4.0 7,350 6/30/2021
3.3.0 2,673 6/2/2021
3.2.0 5,052 5/4/2021
3.1.0 925 4/1/2021
3.0.0 11,417 2/25/2021
2.0.3 4,244 1/26/2021
2.0.2 691 1/22/2021
2.0.1 4,288 11/25/2020
2.0.0 776 11/16/2020
2.0.0-beta2 396 9/22/2020
2.0.0-beta1 475 7/16/2020
1.9.0 19,599 7/23/2020
1.8.0 1,089 7/2/2020
1.7.0 6,313 5/6/2020
1.6.0 6,596 3/4/2020
1.5.0 3,482 2/4/2020
1.5.0-beta1 526 12/19/2019
1.4.0 13,438 10/10/2019
1.3.0 11,181 7/10/2019
1.2.1 38,659 4/16/2019
1.2.0 2,370 3/29/2019
1.2.0-beta2 574 2/28/2019
1.2.0-beta1 596 2/20/2019
1.1.3 4,327 2/13/2019
1.1.2 13,309 1/31/2019
1.1.1 792 1/30/2019
1.1.0-beta1 728 12/17/2018
1.0.0 1,206 12/17/2018
1.0.0-beta1 650 11/7/2018
0.96.0 15,403 6/6/2018
0.95.0 2,839 4/12/2018
0.94.0 56,076 12/7/2017
0.94.0-beta2 1,632 11/8/2017
0.94.0-beta1 850 11/7/2017
0.93.5 7,552 10/17/2017
0.93.5-beta7 927 9/27/2017
0.93.5-beta6 895 9/5/2017
0.93.5-beta5 873 8/30/2017
0.93.5-beta4 879 8/29/2017
0.93.5-beta3 923 8/3/2017
0.93.5-beta1 932 7/27/2017
0.93.5-alpha1 935 6/15/2017
0.93.4 12,457 5/7/2017
0.93.4-alpha3 923 5/1/2017
0.93.4-alpha2 959 4/26/2017
0.93.4-alpha1 907 4/26/2017
0.93.3 1,193 4/26/2017
0.93.2 1,164 4/25/2017
0.93.1 1,182 4/25/2017
0.93.0 1,370 4/24/2017
0.93.0-alpha4 991 4/12/2017
0.93.0-alpha3 957 4/11/2017
0.93.0-alpha2 883 4/11/2017
0.93.0-alpha1 1,022 3/23/2017
0.90.6-alpha7 2,967 9/15/2016
0.90.5-alpha4 1,088 6/7/2016
0.90.5-alpha3 974 4/11/2016