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

Revisit Implied (Cross-Version) Extensions #1110

Open jafeltra opened 2 years ago

jafeltra commented 2 years ago

HL7 has recently revisited implied extensions and made additional rules around them. We should revisit our implementation of implied extensions to be sure we are adhering to the latest guidance.

As part of this, we should consider revisiting how required extensions are interpreted. An issue was reported on Slack here where a sub-extension is marked as required (min of 1) but the value on the extension is optional. We may have intentionally built in this behavior, but we should consider if it makes sense to mark the value with a min of 1 as well so a warning is generated by SUSHI or if any of the latest rules from HL7 directly address this case.

cmoesel commented 2 years ago

The clarified rules for implied extensions can be found here: https://jira.hl7.org/browse/FHIR-31721

cmoesel commented 1 month ago

The FHIR Core team is working on creating FHIR packages with definitions for all the cross-version extensions. If they are able to do this, then SUSHI can just load those packages like any other package and we would no longer need all the custom code to generate "implied extensions" on the fly.