FHIR Chat · extensions on a primitive · shorthand

Stream: shorthand

Topic: extensions on a primitive


view this post on Zulip David Hay (Jan 29 2020 at 18:37):

Slicing a primitive (Location.alias) works fine - except when the primitive is multiple (0..*) and the extension is on the second element only. The you get the output below. TBH I'm not sure what the output should be, given that empty fields are not included in resources...

 "_alias": [
    null,
    {
      "extension": [
        {
...snip...
        }
      ]
    }
  ]

view this post on Zulip Nick Freiter (Jan 29 2020 at 19:34):

If I understand correctly, then the alias array has two elements, and there is an extension on the second element only, correct? I think that the expected behavior is to actually have a null in there, to represent that the extension is being applied to the second element in the array, and not the first. We are getting that from this documentation here: https://hl7.org/fhir/2018May/json.html#primitive.

view this post on Zulip David Hay (Jan 29 2020 at 20:57):

Can't argue with that! (Should have checked first :( )


Last updated: Apr 12 2022 at 19:14 UTC