Skip to content

banatm/fhir-net-api

 
 

Repository files navigation

DSTU2 STU3
DSTU2 STU3

Introduction

This is the official support API for working with HL7 FHIR on the Microsoft .NET (dotnet) platform.

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

The library is currently split up in four parts:

  • Core (NuGet packages starting with Hl7.Fhir.<version>) - contains the FhirClient and parsers
  • Specification (NuGet packages starting with Hl7.Fhir.Specification.<version>) - functionality to work with the specification metadata and validation
  • FhirPath (NuGet package Hl7.FhirPath) - the FhirPath evaluator, used by the Core and Specification assemblies
  • Support (NuGet package Hl7.Fhir.Support) - a library with interfaces, abstractions and utility methods that are used by the other packages

IMPORTANT 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 the .NET version for this publication is not maintained anymore.
  • DSTU2 (published October 2015) in widespread use, and still supported by this library and other tooling on the market.
  • STU3 (published March 2017) latest release, mature support by this library and most other tooling on the market.
  • R4 (not yet published), support in alpha by this library. Would not be supported by production systems, since this release is still in development. Expected publication in Q3 2018.

Planned release DSTU2.1 was never published by HL7, but you will still find traces of it, in particular we still keep the NuGet package for it available.

Getting Started

Get started by reading the online documentation. Depending on the version of FHIR you require, you'll find the relevant links to the packages and develop branches in this repository below:

Spec version Git branch Core NuGet Specification NuGet
R4 https://github.com/ewoutkramer/fhir-net-api/tree/develop-r4 https://www.nuget.org/packages/Hl7.Fhir.R4/ https://www.nuget.org/packages/Hl7.Fhir.Specification.R4/
STU3 https://github.com/ewoutkramer/fhir-net-api/tree/develop-stu3 https://www.nuget.org/packages/Hl7.Fhir.STU3/ https://www.nuget.org/packages/Hl7.Fhir.Specification.STU3/
DSTU 2.1 N/A https://www.nuget.org/packages/Hl7.Fhir.DSTU21/ https://www.nuget.org/packages/Hl7.Fhir.Specification.DSTU21/
DSTU2 https://github.com/ewoutkramer/fhir-net-api/tree/develop https://www.nuget.org/packages/Hl7.Fhir.DSTU2/ https://www.nuget.org/packages/Hl7.Fhir.Specification.DSTU2/
DSTU1 https://github.com/ewoutkramer/fhir-net-api/tree/master-dstu1 https://www.nuget.org/packages/Hl7.Fhir.DSTU/ https://www.nuget.org/packages/Hl7.Fhir.Specification.DSTU/

Support

We actively monitor the issues coming in through the GitHub repository at https://github.com/ewoutkramer/fhir-net-api/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 contributors!

If you want to participate in this project, we're using Git Flow for our branch management, so please submit your commits using pull requests no on the develop branches mentioned above!

GIT branching strategy

About

The official .NET API for HL7 FHIR

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.6%
  • Other 0.4%