features
Firely SDK
FHIR client
Patient creation
.NET
SDK integration
languages
Using Firely .NET SDK with Aidbox FHIR Server
This example demonstrates how to use the Firely .NET SDK to create a patient resource in Aidbox.
.NET
Docker and Docker Compose
2. Create a Client and an Access Policy
Navigate to REST Console in Aidbox UI and execute the following requests:
POST /fhir/Client
content-type: application/json
accept: application/json
{
"secret" : " secret" ,
"grant_types" : [
" basic"
],
"id" : " basic" ,
"resourceType" : " Client"
}
POST /fhir/AccessPolicy
content-type: application/json
accept: application/json
{
"link" : [
{
"reference" : " Client/basic"
}
],
"engine" : " allow" ,
"id" : " basic-policy" ,
"resourceType" : " AccessPolicy"
}
3. Build and Run the .NET Application
# Build and run the application
dotnet run
What the Application Does
Connects to Aidbox running on http://localhost:8080
Uses basic authentication with the default basic client credentials
Creates a sample patient with:
Name: John Doe
Birth date: January 15, 1990
Gender: Male
Retrieves the created patient to verify the operation