FHIR Chat · value attribute in discriminator ? · IG creation

Stream: IG creation

Topic: value attribute in discriminator ?


view this post on Zulip Brian Reinhold (Nov 24 2018 at 10:52):

I was surprised to see this in the slicing examples while I was searching for a way not to get errors on my slicings of value[x]:

<discriminator value="system"/>
        <type value="value"/>
        <path value="use"/>
      </discriminator/>

What!!? The discriminator can take on an attribute? I would never have guessed from the Elementdefinition documentation. Can someone point me to the documentation explaining how one can do this, what values such an attribute can take, and what the consequences of doing it are?

view this post on Zulip Lloyd McKenzie (Nov 24 2018 at 20:10):

Whether it manifests as an attribute or an element in XML is irrelevant to whether something can be used to slice - it's no different to any other FHIR element.


Last updated: Apr 12 2022 at 19:14 UTC