Working with Aidbox from .NET

Last updated 2 months ago

Prepare project

  1. Start VisualStudio.

  2. Create project appropriate type (for example, “Console App”):

3. Open “Project”->”Manage NuGet Packages…”:

4. Enter in search “hl7.fhir.stu3”:

5. Click install:

6. Click “Ok”:

7. Click “I Accept”.

8. Your project is ready for working with aidbox.

Sample project

In this project we create patient in the box in aidbox via .NET API for HL7 FHIR. Next we read newly created patient from the demo box. Important to remember that currently Aidbox doesn't support XML format and we need explicitly set it to JSON.

If you build and run application, you can see something like this: