Stream: dotnet
Topic: How to add Extensions to Address Line
Prosoftware (Dec 14 2017 at 09:09):
Hello,
We are in the proces of generating an Organization resource in C# to send back to a FHIR client, however we are stuck on the address.
Could anyone help us in adding the extensions (like streetname) to the "Line" in the Address Resource for an official address?
Kind Regards
Prosoftware
Mirjam Baltus (Dec 14 2017 at 09:52):
Hi! You need to create a new Extension, set the URL to the url of the extension profile. Then, create a value according to the possible values for that extension, and set your Extension.value to that. After that, you can add your Extension to the LineElement.Extension list.
There's some example code for adding an extension to a birthdate here: http://docs.simplifier.net/fhirnetapi/model/extensions.html
Mirjam Baltus (Dec 14 2017 at 09:54):
Please drop me a line if it's still unclear!
Last updated: Apr 12 2022 at 19:14 UTC