FHIR / sushi

SUSHI (aka "SUSHI Unshortens Short Hand Inputs") is a reference implementation command-line interpreter/compiler for FHIR Shorthand (FSH).
Apache License 2.0
145 stars 44 forks source link

Use title and name values in IG resource list #1339

Closed mint-thompson closed 1 year ago

mint-thompson commented 1 year ago

Fixes #1296 and completes task CIMPL-1138.

Some resource types have title and name elements that are strings or similar datatypes. If present, these can be used to set the name in the IG resource list.

For package resources, only the title element value is used for this purpose. A title set with a keyword will have higher precedence than a title set by assigning to an element.

For predefined resources, the name element can be used for this purpose as well. The title element has a higher precedence than the name element. Note that the name element will only be used for predefined resources, not package resources. This change applies to both example and non-example predefined resources.

As expected, this change affects many IGs using FSH. It can change the order of resources in the IG if they are being sorted by name, which also changes the order of generated link references. The link references themselves are unchanged. It will also change the titles shown on pages in the IG, since many artifacts will now have a name based on something other than their id.