FHIR Chat · Extension anywhere in the resource · IG creation

Stream: IG creation

Topic: Extension anywhere in the resource


view this post on Zulip Mohammad Jafari (Mar 28 2021 at 16:48):

I am trying to define an extension that may appear anywhere in a resource. Since extensions can by default appear anywhere in a resource , I tried leaving the context empty in the structured definition, but I get an error like the following:
extension-... is not allowed to be used at this point (allowed = ; this element is [[Patient.identifier, Identifier])
Any advice on how to define this extension and what to use as the context?

view this post on Zulip Lloyd McKenzie (Mar 28 2021 at 16:52):

Define the context as Element

view this post on Zulip Lloyd McKenzie (Mar 28 2021 at 16:53):

Note that there are a few places where extensions are prohibited - you can't extend Bundle, Binary or Parameters (though you can extend child elements within them. You also can't extend Resource.id.


Last updated: Apr 12 2022 at 19:14 UTC