It’s easy to start using the FHIR .Net API in your solution: just add the right NuGet package!
Open your project, or start a new one and go to the NuGet Package Manager. The current official version of the FHIR specification is R4, but you might be developing for one of the previous versions. For each version of the specification, there is a corresponding library.
For R4, you will need the Hl7.Fhir.R4 package:
- Choose Tools –> NuGet Package Manager –> Manage NuGet Packages for Solution…
- Click on Browse, and type fhir into the search field.
- Click on the package you need, in this case Hl7.Fhir.R4.
- Check the box next to the name of your project and click on Install.
The next section explains how the API works with the FHIR model.