FHIR Chat · inline extension · shorthand

Stream: shorthand

Topic: inline extension


view this post on Zulip David Hay (May 20 2020 at 22:26):

Is there any way to remove the warning you get when using inline extensions? eg:

warn  Extension with slice name 'period' will be treated as an inline extension, even though the name can be resolved to the external extension: http://hl7.org/fhir/StructureDefinition/organization-period. Starting with SUSHI 0.10.0, extension slices using standalone extensions should explicitly declare a slice name and type. If this extension slice should refer to http://hl7.org/fhir/StructureDefinition/organization-period, recommended practice is to define an alias:
  Alias: PeriodExtension = http://hl7.org/fhir/StructureDefinition/organization-period
then use it in the contains rule:
  extension contains PeriodExtension named period 0..1

view this post on Zulip Nick Freiter (May 21 2020 at 11:17):

That warning happens because you have an inline extension with the same name/id as an external extension, so it isn't general to all inline extensions. I'm sure that doesn't make it any less annoying though! No, there is nothing you can do to get rid of that warning, assuming you don't want to change the name of your inline extension. However, it has been a good amount of time since we have made the syntax change to x contains y named z which necessitated that warning, so I think it's time we consider removing the warning.

view this post on Zulip Nick Freiter (May 21 2020 at 11:20):

https://github.com/FHIR/sushi/issues/456

view this post on Zulip Chris Moesel (May 21 2020 at 12:24):

Yes, it was the intent that this message would be temporary -- so I agree that we should consider removing it now.

view this post on Zulip David Hay (May 21 2020 at 17:34):

yep - I remember (and appreciated) the warnings when they came out. I just prefer the 'success' puns to the others :). (I feel a little glow of satisfaction)

view this post on Zulip Chris Moesel (May 21 2020 at 17:59):

Wow. So you will unlock a whole new set of puns once we make those warnings go away! ;-)

view this post on Zulip David Hay (May 21 2020 at 18:18):

Oh, I do have IG's that build without warning - but I want them ALL to !


Last updated: Apr 12 2022 at 19:14 UTC