Stream: implementers
Topic: NUGET or C# classes to represent FHIR Profiles
John George (Jul 28 2020 at 15:13):
Hi All, one of our Electronic Patient Record suppliers, said one area that would ease the transition from STU3 to R4, is the provision of any NUGET or C# classes which represent the FHIR profiles that have changed between the two FHIR versions, because being able to import these classes makes their data mapping exercise easier. Could you kindly advise or point me to any useful links that would help me understand how to convert FHIR profiles to NUGET or C# classes. Ideally, if there is a tool that could do this, that would be great. If that tool is free, even better. :wink:
Grahame Grieve (Jul 28 2020 at 20:00):
this doesn't sound like the same as "a C# representation of the resources" but I don't know what it actually is
John George (Jul 28 2020 at 20:37):
Hi Graham, on reflection, I think the EPR supplier is referring to a "C# representation of the resources". In hindsight, I wish I attended the FHIR API presentation at last month's virtual Dev Days, as I think this topic may have been covered. I've found a DevDays slide deck, hopefully this will help me understand this topic better:
https://www.devdays.com/wp-content/uploads/2019/02/DD-2017-P-FHIR-API-for-NET-programmers-Introduction-Mirjam-Baltus-2017-11-15.pdf
Grahame Grieve (Jul 28 2020 at 20:53):
right there certainly is a well supported dotnet api
Jens Villadsen (Jul 28 2020 at 21:55):
@John George the use of the nuget packages (see more here: https://github.com/FirelyTeam/fhir-net-api) will help you a part of the way, eg. where fields have been renamed or removed as this will generate compile errors when going from eg. STU3 to R4. The nuget packages offer support for the resources in their 'base' profiles
John George (Jul 29 2020 at 12:18):
@Jens Villadsen thanks for the link, I will look into the .NET API for HL7 FHIR.
Rik Smithies (Jul 29 2020 at 12:58):
I wonder if they are wanting C# code to convert between the versions.
Grahame Grieve (Jul 29 2020 at 20:11):
I don't think that exists but there is a dotnet implementation of the mapping language
Grahame Grieve (Jul 29 2020 at 20:12):
and there are mapping language conversion scripts
Ricardo Vila (Jul 30 2020 at 17:24):
Hello. Im also attacking a similar problem as I need to extract data from CMS Blue Button Medicare profiles and import them to my own fhir server. CMS Blue Button is in STU3 and I need to convert STU3 profiles to R4. Is there any tooling facilitating this conversion? Or is this expected to be done "by hand"?
Ricardo Vila (Jul 30 2020 at 17:41):
Grahame Grieve said:
and there are mapping language conversion scripts
What is the purpose of these mapping language conversion scripts? Where might I find them? Thank you
Grahame Grieve (Jul 30 2020 at 23:42):
they are built into the spec e.g. http://hl7.org/fhir/R4/patient-version-maps.html
Last updated: Apr 12 2022 at 19:14 UTC