FHIR Chat · Extensions on name of Patient · dotnet

Stream: dotnet

Topic: Extensions on name of Patient


view this post on Zulip Yener Topal (Jul 11 2018 at 11:48):

Hello Everyone,

I am working on deserializing a Bundle json request.

This request has a Patient resource and the "name" key has extensions set in the following way:

        "family": "Jongeneel - de Haas",
        "_family": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix",
              "valueString": "de"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-name",
              "valueString": "Haas"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/humanname-partner-name",
              "valueString": "Jongeneel"
            }
          ]

When using the PHIR Api these extensions are not set by default, I did manage to set the extension by writing the URL myself using the SetExtension function.

My question is if i should retrieve these extension automatically and if so how can i do that with the FHIR C# Api?

view this post on Zulip Yener Topal (Jul 11 2018 at 11:49):

I am able to receive any other info except for the extensions and the property _family using the latest stable FHIR api version.

view this post on Zulip Yener Topal (Jul 11 2018 at 11:52):

Hmm i just noticed that the c# api provides a FamilyElement that has the info i was looking for :).
Problem solved

view this post on Zulip Yener Topal (Jul 11 2018 at 12:25):

Strange that there is no Enum type defined that contains the URLs for Patient Name FamilyName..

view this post on Zulip Brian Postlethwaite (Jul 11 2018 at 12:29):

Correct, there is no set of static strings that contain all the standard extension URLs (yet)

view this post on Zulip Brian Postlethwaite (Jul 11 2018 at 12:29):

I've considered doing this, but hasn't become critical for me as yet.
(Been thinking of doing it at an IG layer)

view this post on Zulip Yener Topal (Jul 11 2018 at 12:56):

Correct, there is no set of static strings that contain all the standard extension URLs (yet)

Thanks for confirming.


Last updated: Apr 12 2022 at 19:14 UTC