Stream: implementers
Topic: Using same extension multiple times
Jonny Rylands (Mar 31 2016 at 12:45):
Is it possible to use the same extension type multiple times on the same element?
E.g. the open and close date extensions on the active element at http://fhir.endeavourhealth.org/profiles/primarycare-organization.html
Or should I define two separate extensions - OpenDateExtension and CloseDateExtension?
Michel Rutten (Mar 31 2016 at 12:51):
@Jonny Rylands The extension element is sliced on url, therefore each node should have a unique url. If you introduce two sibling extension elements mapped to the same definition, then the extension slicing discriminator is no longer unique. So I don't think this is valid.
Michel Rutten (Mar 31 2016 at 12:52):
Instead, you could e.g. define a complex Period extension with subelements OpenDate and CloseDate.
Jonny Rylands (Mar 31 2016 at 12:56):
Ok that makes more sense. I came to implement and realised there appeared to be no differentiator! Thanks.
Last updated: Apr 12 2022 at 19:14 UTC