FHIR Chat · Closing extensions · shorthand

Stream: shorthand

Topic: Closing extensions


view this post on Zulip Nathan Davis (Apr 16 2020 at 15:18):

I need to limit the allowed extensions in a profile to just those defined in the profile. How is this done in FSH?

view this post on Zulip Jean Duteau (Apr 16 2020 at 15:29):

a) This is a bad idea
b) this is really hard to do as there are many holes you have to plug
c) declare extension and modifierExtension to only have X repetitions (instead of being 0..*) where X is the number of extensions you want. NOTE: You have to declare those two to be 0..0 everywhere you haven't already defined an extension since extensions can appear anywhere. Datatypes can have extensions, every field in your resource can have extensions, every field inherited by your resource can have extensions, etc. That's a lot of places to declare extensions off-limit.
d) this is still a really bad idea


Last updated: Apr 12 2022 at 19:14 UTC