FHIR Chat · Extension on primitive · shorthand

Stream: shorthand

Topic: Extension on primitive


view this post on Zulip David Hay (May 25 2020 at 20:30):

I have this profile:

...
* alias.extension contains
    $aliasType named aliasType 1..1
...

and this instance:

...
//trading as 'East End Inc'
* alias = "East End Inc."

//an extension on this alias that indicates that the alias type is 'trading as'
* alias.extension[aliasType].valueCodeableConcept.coding.system = "http://standards.digital.health.nz/fhir/CodeSystem/aliasType"
* alias.extension[aliasType].valueCodeableConcept.coding.code = #ta
* alias.extension[aliasType].valueCodeableConcept.coding.display = "Trading As"
...

but sushi is complaining thusly:

error Element Location.alias.extension has minimum cardinality 1 but occurs 0 time(s).
  File: /Users/davidhay/IG/HPI/fsh/examples/example-location-location1.fsh
  Line: 1 - 47

The instance is valid (checked with hapi) - but the '_alias' is at the top of the instance, not immediately following the 'alias' value. Not sure if that is confusing sushi...

view this post on Zulip Nick Freiter (May 26 2020 at 13:02):

This looks like a bug that should have been fixed in SUSHI 0.12.7. If you are using the 0.13.1-beta.1 version, the fix that was released in 0.12.7 has not yet been released on the experimental beta version. If you are using 0.12.7, and you are still seeing that error, then we might need to dig deeper.

view this post on Zulip David Hay (May 26 2020 at 19:24):

I am using the experimental version. Any timeline on when it will be updated?

view this post on Zulip Chris Moesel (May 26 2020 at 19:34):

Hi @David Hay -- we'll try to get an update on the 0.13 beta line tomorrow. Thanks for your patience! In the future, we'll try to align the bug fix updates more closely (although I hope we're not maintaining two separate development lines much longer anyway).

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

thanks! I'm also having an issue with inter-IG links that mat be related in some way to the difference to the sushi version in the auto build so will be interested to see if that resolves it...


Last updated: Apr 12 2022 at 19:14 UTC