Stream: IG creation
Topic: Must support on resource root
Elliot Silver (Nov 17 2021 at 18:13):
I've come across a few IGs that put a must support flag on the root of a profiled resource, e.g. on Patient itself, or on Extension. How should we interpret that? Is it a requirement that your system must support (for some definition of MS) that profile of Patient? Is it a redundant statement?
In the case of an extension with this flag set, anywhere I profile use of the extension, it becomes must support. For example, if I profile use of the IPS Condition abatement extension, on my AllergyIntolerance profile, then I see that slice become must support. Is that intended? Interestingly, if I explicitly add "mustSupport" : false
to the slice it then goes away. Is that intended?
David Pyke (Nov 17 2021 at 19:09):
Personally, if someone puts MS on the root of anything, they've misunderstood what that flag means.
Elliot Silver (Nov 17 2021 at 19:29):
David Pyke said:
Personally, if someone puts MS on the root of anything, they've misunderstood what that flag means.
That was my feeling too, but I wanted to check if there was a meaning I was missing.
(I was about to suggest an invariant on profiles prohibiting it, but since StructDef is normative, we probably wouldn't be allowed to even if we could figure out how to write it.)
John Moehrke (Nov 17 2021 at 19:33):
note there is open modeling discussion around backbone elements, should they be marked MS or _summary WHEN one or more elements within that backbone element is marked MS or _summary.
John Moehrke (Nov 17 2021 at 19:34):
I don't think it should... and would equate that backbone element issue with the root
Elliot Silver (Nov 17 2021 at 19:35):
Right, that would make practically every resource root be must support.
Edit: no, it wouldn't, DomainResource isn't a backbone element.
John Moehrke (Nov 17 2021 at 19:37):
understood, but the concept is similar
Lloyd McKenzie (Nov 18 2021 at 15:51):
The practical meaning is that every profile that references the extension or resource (e.g. in Parameters or Bundle) must mark it as mustSupport. In general, it's something that shouldn't ever happen and it might be good to flag it at minimum as a warning (and perhaps an error). Anyone want to submit a tracker item?
Elliot Silver (Nov 18 2021 at 19:53):
Is that a tracker against StructureDefinition or IG Publisher or templates?
Elliot Silver (Nov 25 2021 at 18:20):
@Lloyd McKenzie :point_left: poke.
Lloyd McKenzie (Nov 26 2021 at 05:43):
StructureDefinition.
Last updated: Apr 12 2022 at 19:14 UTC