FHIR Chat · Extension value[x] element syntax · IG creation

Stream: IG creation

Topic: Extension value[x] element syntax


view this post on Zulip Sean McIlvenna (Jan 08 2019 at 22:58):

Can someone confirm the syntax for defining an extension's value[x] element?
Currently, I am using:
<element id="Extension.value[x]">
<path value="Extension.value[x]" />
<type code="CodeableConcept" />
<type code="Coding" />
</element>

However, reading the spec, I'm not sure that's correct. It mentions that the id and path should be different depending on the type. It also mentions that I should enumerate each of the types that are allowed in different elements with unique id's and path's. I've ALSO seen examples where the value uses slicing to indicate what the correct type is (with a sliceName).

So, now I'm not sure what the correct syntax is for an extension's value. Can someone show the correct syntax for an extension with a value limited to a single type, as well as an extension with a value allowing multiple types (but not all types)?

view this post on Zulip Sean McIlvenna (Jan 08 2019 at 23:01):

@Rick Geimer pointed out I probably should have put this in #conformance. Sorry. Posting there, now, as well.


Last updated: Apr 12 2022 at 19:14 UTC