Stream: IG creation
Topic: Profiling use of StructureDefinition.isSummary
Elliot Silver (Jan 19 2022 at 17:26):
Can I create a profile that sets an element as isSummary?
(As I understand it there are a number of elements in StructureDefinition that only apply to resource definition, profiling, logical models, etc. Is there any indication that which elements apply to which use?)
Josh Mandel (Jan 19 2022 at 17:33):
In theory profiles can do this, but they won't necessarily impact server behavior for things like GET /Observation?_summary=true
. From https://build.fhir.org/elementdefinition-definitions.html#ElementDefinition.isSummary:
servers might not support per-profile use of the isSummary flag
Elliot Silver (Jan 19 2022 at 18:09):
Argh, I need to learn to RTFM. Thanks.
Josh Mandel (Jan 19 2022 at 18:58):
I never would have had this reference handy for you if it wasn't something that had just come up in our discussion at the working creating:-) the manual is pretty gosh darn large
Lloyd McKenzie (Jan 20 2022 at 02:31):
The specification says this about isSummary in profiles: "The element's presence, and value, must match the definition in the base definition". I.e. you can declare isSummary in a differential if you want, but it can't differ from the value declared in the base. (Which means there's not much point.) Phrased differently - isSummary is fixed in the resource definition and can't be changed by profiles.
Lloyd McKenzie (Jan 20 2022 at 02:31):
(https://build.fhir.org/elementdefinition.html#interpretation)
Elliot Silver (Jan 20 2022 at 04:32):
That sounds like @Josh Mandel's quote should read "no server should support per-profile use."
Lloyd McKenzie (Jan 20 2022 at 14:26):
I've added FHIR#35855
Josh Mandel (Jan 20 2022 at 14:40):
We also identified an issue where modifierExtension
isn't isSummary
but ought to be.
Josh Mandel (Jan 20 2022 at 14:40):
@Alexander Zautke did you file this issue? I can't find it searching Jira but don't want to duplicate
Alexander Zautke (Jan 20 2022 at 14:44):
@Josh Mandel Sorry, not yet. I‘ll create one and link it here.
John Moehrke (Jan 20 2022 at 14:46):
gets me thinking that .meta.security should also be marked with isSummary in the core DomainResource
John Moehrke (Jan 20 2022 at 14:48):
oh, it does look like all of .meta is marked is Summary... carry on.
Alexander Zautke (Jan 24 2022 at 09:29):
Added FHIR#35865 for the clarification about modifierExtensions in summaries
Last updated: Apr 12 2022 at 19:14 UTC