FHIR Chat · Dotnet Backend FhirController · dotnet

Stream: dotnet

Topic: Dotnet Backend FhirController


view this post on Zulip Lars Ewert (Jan 21 2021 at 07:00):

Hi Everyone,

I've started to develop a webapplication with a dotnet core backend which should get data from a already existing Fhir Server (R3 / R4).
The raw use of the FhirClient and Resources is already known by me, but im asking myself, if there is a service or an extension to get the exposed endpoints from the existing Fhir Server to generate the Controller Routes of my own Backend.
I know it exists a FhirController in the Github repo, but i cant find a way to include the Controller functionality (i think i miss something here...).

I also thought about adding some service per DI to enable the functionality, but i cant find a Fhir service to implement this too from the official HL7 Nuget Package.

I hope you guys have an idea for me how to access the Endpoints ;-)

view this post on Zulip Brian Postlethwaite (Jan 21 2021 at 09:12):

Not sure what you're trying to do, create your own fhir server through a facade on your own data, on someone else's data?

view this post on Zulip Brian Postlethwaite (Jan 21 2021 at 09:14):

If you want to do your own facade, look at this NuGet package https://www.nuget.org/packages/brianpos.Fhir.R4.WebApi.aspnetcore
Which has a sample project showing how to use it here
https://github.com/brianpos/fhir-net-web-api

view this post on Zulip Brian Postlethwaite (Jan 21 2021 at 09:14):

There are other alternatives out there similar that use similar approaches too.

view this post on Zulip Lars Ewert (Jan 21 2021 at 10:37):

@Brian Postlethwaite
It should be a Client Web Application with UserManagement and connection to a Fhir Server and another local Database.

A possible Scenario would be:
I have a room with beds and my Database has entities for those.
Every bed has an ID which is an Patient/ID on the fhir server. So i basically need to load the patients data from the Fhir Server and generate my output for my frontend.

As far as i know the Endpoints of a Fhir Server are always the same => baseURL, resourceName and resourceParameters. (in General)
So i would like to have on my own dotnetcore Backend the functions to call these endpoints. I dont know if i mix something in my head and should just write my own functions to call the FhirServer API with the FhirClient() on my own.

I hope you understand what i was trying to explain

Thanks so far for you help!


Last updated: Apr 12 2022 at 19:14 UTC