Stream: IG creation
Topic: Over ride of value set binding in an extension
Nathan Davis (Jan 20 2021 at 17:33):
I'm using the observation-deviceCode extension in several profiles. I have created new value set bindings in the profiles that should over ride the one in the extension. This isn't happening. Why?
My code snippet:
<path value="Observation.extension"/>
<sliceName value="measurementDevice"/>
<short value="Measurement Device Type"/>
<type>
<code value="Extension"/>
<profile value="http://hl7.org/fhir/StructureDefinition/observation-deviceCode"/>
</type>
<binding>
<strength value="extensible"/>
<valueSet value="http://hl7.org/fhir/us/vitals/ValueSet/heartRateMeasDeviceVS"/>
</binding>
As you can see, the rendered IG still points to the FHIRDeviceTypes (example) binding.
image.png
Lloyd McKenzie (Jan 20 2021 at 17:48):
You can't define the binding on the 'extension' - you have to define it on the extension.value. (The fact the binding renders on the extension is a shortcut.)
Nathan Davis (Jan 20 2021 at 17:51):
Thanks Lloyd!
Nathan Davis (Jan 22 2021 at 16:54):
@Lloyd McKenzie I did the binding to extension.value but now it appears that I have two bindings. I'm sure it's because the first is declared in the extension and the second in my profile.
image.png
Is there a way to remove the first one?
Lloyd McKenzie (Jan 22 2021 at 17:23):
@Grahame Grieve @Mark Iantorno - looks like this is something that needs to be fixed in the publisher. We don't want to display the binding from the base extension if it's overridden in context.
Mark Iantorno (Jan 22 2021 at 21:29):
Can we log this as an issue in the github repository please?
Mark Iantorno (Jan 22 2021 at 21:29):
Include details and description in the issues.
Last updated: Apr 12 2022 at 19:14 UTC