FHIR Chat · Practitioner-> Address · implementers

Stream: implementers

Topic: Practitioner-> Address


view this post on Zulip Grace Xavier (Jun 23 2021 at 06:23):

How do we return the address line(practitioner.address.line) element in a GET response when there are more than one address lines in the sending system and no value (i.e. blank) for some of the address lines? How do we process this in a POST or PUT?
For example, the following address data is stored in the sending system. How do we return in a GET and how do we process in POST or PUT so that we process and make Line 2 blank in the receiving system same as the sending system
Line 1 = Nowhere Road,
Line 2 = blank,
Line 3 = Second Street,
Line 4 = Somewhere

view this post on Zulip Michele Mottini (Jun 23 2021 at 13:13):

Empty element are not valid in FHIR, so I do not think that's possible. It has to be:
Line 1 = Nowhere Road,
Line 2 = Second Street,
Line 3 = Somewhere

view this post on Zulip Grace Xavier (Jun 24 2021 at 01:06):

So, we can't use as,
"line": [
"Nowhere Road",
"",
"Second Street",
"Somewhere"
],
OR
"line": [
"Nowhere Road",
"null",
"Second Street",
"Somewhere"
],
OR
"line": [
"Nowhere Road",
"\n",
"Second Street",
"Somewhere"
],
OR
"line": [
"Nowhere Road",
"\r\n",
"Second Street",
"Somewhere"
],

Is this true?

view this post on Zulip Michele Mottini (Jun 24 2021 at 01:31):

Yes, it is true (the second one would work, but it sets the address line to the literal string null - that is not what you want)

view this post on Zulip Grace Xavier (Jun 24 2021 at 02:01):

hmm yes I don't want to use the second option. Thank you Michele for your input.

view this post on Zulip Brian Postlethwaite (Jun 24 2021 at 02:04):

And the others evaluate as just whitespace, so expect likely rejected by strict fhir conformance/validations (but not 100% sure)

view this post on Zulip Brian Postlethwaite (Jun 24 2021 at 02:06):

And also just checking that the "somewhere" in this case isn't intended to be a city/town as that's a separate field.

view this post on Zulip Grace Xavier (Jun 24 2021 at 06:03):

@Brian Postlethwaite "somewhere" not intended to be city/town. I have mapped that city field to our system city/town field. These are the four address lines that we have excluding city, state, postcode and country.


Last updated: Apr 12 2022 at 19:14 UTC