Stream: implementers
Topic: Derived profile on extensions
Ardon Toonstra (Mar 11 2021 at 12:30):
Can you create a derived profile of an extension profile?
Lloyd McKenzie (Mar 11 2021 at 15:43):
Yup. But you can't override the fixed URL.
Lloyd McKenzie (Mar 11 2021 at 15:44):
You can constrain the allowed types, child extensions, value set, inner cardinalities, etc. though. Or even just provide more specific documentation
Ardon Toonstra (Mar 11 2021 at 15:54):
Thnx Lloyd. That's what's Forge is complaining about too, if I try to make a derived profile on an extension there. Makes sense.
So in the instance, you will always state the base extension URL, but the validator can check against the derived extension based on what you defined in the profile for that instance.
Lloyd McKenzie (Mar 11 2021 at 16:58):
When you reference the extension, you'll specify the canonical URL of the derived StructureDefinition. That sets the constraints. In the instance, you'll specify the fixed value for the URL, which should be the canonical URL of the 'original' extension
Last updated: Apr 12 2022 at 19:14 UTC