Open jafeltra opened 2 years ago
The clarified rules for implied extensions can be found here: https://jira.hl7.org/browse/FHIR-31721
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.
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
of1
) 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 amin
of1
as well so a warning is generated by SUSHI or if any of the latest rules from HL7 directly address this case.