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

Consider defaulting values in Instances based on sushi-config.yaml values #1457

Open jafeltra opened 6 months ago

jafeltra commented 6 months ago

For Profiles, Extensions, ValueSets, and CodeSystems, SUSHI defaults status to what is in sushi-config.yaml. Similarly, in FSHOnly projects, SUSHI will default version to what is in sushi-config.yaml for those entities. The IG Publisher will also set these values, so the IG Publisher handles assigning a default to version in non-FSHOnly projects.

We should consider if it is helpful to assign a default for status and version for Instances with #definition usage that have a status and/or version element. SUSHI already sets a default url for #definition instances based on the canonical from sushi-config.yaml. Is adding status and version defaults helpful? Is this something we should only do in FSHOnly projects? Does the IG Publisher set these values by default? Are there other properties we should consider defaulting if the instance has them, like fhirVersion?