You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a profile has an element, and that element itself has several allowed profiles, a warning is emitted when that element is unfolded. However, this may not necessarily be a useful warning to emit. Consider this example FSH, taken from the Zulip conversation linked at the end of this issue:
The identifier element has several profiles on it based on the definition of the au-core-patient profile. The identifier element is also required: it has a minimum of 1, so when creating the XYZPatientPatientDonaldDuck Instance, it is checked for fixed values. This element is unfolded to check for child elements that have fixed values. When unfolding it, the warning is emitted. However, there's nothing the author can do here to avoid getting that warning. So, when unfolding it to check for fixed values, it might be best to not emit the warning at all.
There are variations on this scenario which are also important to consider. For example, if identifier has a minimum of 0, it would still be checked for fixed values (and unfolded) in this example, because there are rules on the Instance that create an identifier. If the rule is on identifier[ihi] or some other defined slice, should the warning be avoided? If the rule is on identifier and does not refer to a defined slice, should the warning be avoided?
When a profile has an element, and that element itself has several allowed profiles, a warning is emitted when that element is unfolded. However, this may not necessarily be a useful warning to emit. Consider this example FSH, taken from the Zulip conversation linked at the end of this issue:
The
identifier
element has several profiles on it based on the definition of theau-core-patient
profile. Theidentifier
element is also required: it has a minimum of 1, so when creating theXYZPatientPatientDonaldDuck
Instance, it is checked for fixed values. This element is unfolded to check for child elements that have fixed values. When unfolding it, the warning is emitted. However, there's nothing the author can do here to avoid getting that warning. So, when unfolding it to check for fixed values, it might be best to not emit the warning at all.There are variations on this scenario which are also important to consider. For example, if
identifier
has a minimum of 0, it would still be checked for fixed values (and unfolded) in this example, because there are rules on the Instance that create anidentifier
. If the rule is onidentifier[ihi]
or some other defined slice, should the warning be avoided? If the rule is onidentifier
and does not refer to a defined slice, should the warning be avoided?See also original Zulip conversation: https://chat.fhir.org/#narrow/stream/215610-shorthand/topic/Base.20element.20type.20will.20be.20used.20instead.20of.20any.20profiles
The text was updated successfully, but these errors were encountered: