FHIR Chat · Extension Warning · shorthand

Stream: shorthand

Topic: Extension Warning


view this post on Zulip Jean Duteau (Jul 01 2020 at 00:12):

So I just did a silly thing on an extension definition:
Extension: blah
Id: blah

  • extension.value[x] only CodeableConcept

Do you see it? I accidentally added extension in my first constraint. Obviously a user error, but I feel that a warning from SUSHI would be appropriate here because, without any other constraints, this probably isn't what the user really wanted.

view this post on Zulip Chris Moesel (Jul 01 2020 at 12:00):

Hmmm... so that is technically valid (essentially saying all sub-extensions must have CodeableConcept values), but I agree that it's almost always a mistake. So far we've only flagged "probably mistakes" in rare circumstances (the only one that comes to mind is when we changed extension syntax).

If we were to issue a warning, what would you suggest the condition be under which we issue the warning? Constraints on extension.* without a contains rule to declare sub-extensions?

view this post on Zulip Jean Duteau (Jul 01 2020 at 16:35):

Chris Moesel said:

If we were to issue a warning, what would you suggest the condition be under which we issue the warning? Constraints on extension.* without a contains rule to declare sub-extensions?

Yes, that is probably the condition. Did you actually mean to constrain extension.* when you didn't declare actual sub-extensions?

view this post on Zulip Chris Moesel (Jul 01 2020 at 16:40):

OK. I logged an issue so we can keep track of it, but we probably won't address it right away: https://github.com/FHIR/sushi/issues/514


Last updated: Apr 12 2022 at 19:14 UTC