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

SUSHI should replace ElementDefinition.type.aggregation array when modified in FSH #1411

Closed cmoesel closed 6 months ago

cmoesel commented 9 months ago

Some ElementDefinition array properties are additive (you should only add to them) while others should be fully replaced when edited (and perhaps there are other options too). I asked for more information on this when I filed FHIR-31405 back in 2021.

The ElementDefinition.type.aggregation array is an array property that should be replaced in the snapshot by whatever is in the differential. To support this, however, SUSHI needs to perform special handling of how it generates the differential. More background can be seen in this Zulip conversation.

Note that we will need to support things like this at a broader level, so any solution in FSH/SUSHI should be easy to apply to other element properties as well.