Stream: IG creation
Topic: Order of artifacts in the index
Giorgio Cangioli (Nov 11 2021 at 13:16):
I'd like to order somehow the artifacts in the artifacts index page: is there a way to do it ?
Lloyd McKenzie (Nov 14 2021 at 19:55):
If you enumerate the artifacts in your IG, it should use the order you've provided. You can explicitly declare the groupings too. However, if you don't enumerate or declare the groupings, they'll be sorted authomatically.
Corey Spears (Nov 14 2021 at 23:19):
I was looking around and it did not seem immediately obvious to me how to enumerate the artifacts. I would like to provide order to the profiles that show up in artifacts.html (something besides alphabetical order). It would also be nice to show what resource they profile or their baseDefinition (but I guess that is a separate matter).
Richard Townley-O'Neill (Nov 15 2021 at 00:24):
ImplementationGuide.definition.resource
Giorgio Cangioli (Nov 15 2021 at 08:38):
Lloyd McKenzie said:
If you enumerate the artifacts in your IG, it should use the order you've provided. You can explicitly declare the groupings too. However, if you don't enumerate or declare the groupings, they'll be sorted authomatically.
Thanks
Giorgio Cangioli (Nov 15 2021 at 08:57):
Mmhh.. I don't know if there is any step I missed.
this is what I put in my sushi-config.yaml file
resources:
StructureDefinition/Library-uv-f4f:
name: Library (Study Level Medatata)
<... omissis ..>
StructureDefinition/DocumentManifest-uv-f4f:
name: DocumentManifest (Subject Level Medatata)
this is what I get
Giorgio Cangioli (Nov 15 2021 at 09:01):
.. in effect the order in the generated ig.json is not the same of the config file...I'll move the discussion to the shorthand stream..
Lloyd McKenzie (Nov 15 2021 at 16:53):
What's the order in the ImplementationGuide? That'll tell you whether it's a SUSHI issue or a publisher/template issue
Chris Moesel (Nov 15 2021 at 16:56):
@Lloyd McKenzie -- I've already commented over on the shorthand thread that Giorgio started. SUSHI is always listing the resources in alpha order when it generates the ImplementationGuide.
Since SUSHI allows authors to specify a partial list of resources (and have SUSHI fill in the rest w/ default values), it's not clear what SUSHI should do in cases where the author doesn't list all the resources in the SUSHI config file. There's more discussion on that in the linked thread above.
Last updated: Apr 12 2022 at 19:14 UTC