FHIR Chat · Example Instances Grouping · shorthand

Stream: shorthand

Topic: Example Instances Grouping


view this post on Zulip Geoff Low (May 17 2021 at 19:02):

Does anyone know if it is possible to group the Example Instances in the generated template by Resource Type?

view this post on Zulip Chris Moesel (May 17 2021 at 19:14):

SUSHI uses the default template groupings by default. If you wish to override those, you can do so in the sushi-config.yaml. Here is the relevant snippet from the exhaustive config example:

# Groups can control certain aspects of the IG generation.  The IG
# documentation recommends that authors use the default groups that
# are provided by the templating framework, but if authors want to
# use their own instead, they can use the mechanism below.  This will
# create IG.definition.grouping entries and associate the individual
# resource entries with the corresponding groupIds.
groups:
  GroupA:
    name: Group A
    description: The Alpha Group
    resources:
    - StructureDefinition/animal-patient
    - StructureDefinition/arm-procedure
  GroupB:
    name: Group B
    description: The Beta Group
    resources:
    - StructureDefinition/bark-control
    - StructureDefinition/bee-sting

I'm not an expert in how the template handles groups though... so I can't say for sure what happens to any remaining resources you don't put into a group. Also, as is probably apparent, this is fairly manual. I'm not aware of any automated approach to grouping examples by resource type.

view this post on Zulip Jean Duteau (May 17 2021 at 19:25):

i know this - if you don't put them in a group, then the default grouping comes back into play

view this post on Zulip Lloyd McKenzie (May 17 2021 at 19:27):

Jose and I have been talking about a 'smarter' FHIR-path based grouping mechanism as part of moving to Composition to manage the various navigation mechanisms. That might provide a means other than manually providing a grouping for each artifact (and listing each artifact in your IG)

view this post on Zulip Geoff Low (May 17 2021 at 21:11):

Thanks, I was hoping there was a template for eg PlanDefinitions, ActivtityDefinitions, and it automagically worked! This will work I think

view this post on Zulip Geoff Low (May 17 2021 at 21:13):

Oops, my page was out of date - thanks Lloyd - that's what I was hoping for. I need to work out the ordering as well, so for the moment I'll generate something static


Last updated: Apr 12 2022 at 19:14 UTC