Stream: shorthand
Topic: Sushi build error with arrays
Arvid Thunholm (Jan 19 2021 at 16:15):
Hello,
I'm trying to build an IG for Swedish base patient using IG Builder. It works great except for when I´m trying to create an example Patient and explicity trying to set an extension in the second given name: * name[0].given[1].extension[nameQualifier].valueCode = #CL
When setting the extension on the first given name it works fine, but when refering the second given name I get a build error in sushi. Link to build log in zulip: https://chat.fhir.org/#narrow/stream/179297-committers.2Fnotification/topic/ig-build/near/223241367
Thankful for help!
Lloyd McKenzie (Jan 19 2021 at 16:19):
Slicing by position isn't currently supported. You'd have to do ordered slicing and slice by something else - likely the presence/absence of the extension.
Chris Moesel (Jan 19 2021 at 16:28):
I don't think that @Arvid Thunholm is trying to slice by position. I think that Arvid has stumbled on a SUSHI bug. I think that the intent is that the name qualifier extension should be applicable to any HumanName.given
, but in this case, SUSHI is accepting it on a specific name's given[0]
, but not on its given[1]
. That feels like a SUSHI bug to me and we will try to reproduce it and fix it.
Arvid Thunholm (Jan 19 2021 at 19:59):
@Chris Moesel - that is what I’m trying to do.
See https://github.com/HL7Sweden/basprofiler-r4 for source shorthand files.
Chris Moesel (Jan 19 2021 at 20:24):
Yeah, we were able to reproduce the bug and I've created a fix that is currently under review. Assuming it gets approved, it will be in the next version of SUSHI. We can probably publish a new version in the next couple of days if you need it soon.
Arvid Thunholm (Jan 20 2021 at 07:22):
No rush, but great that you found the bug
Last updated: Apr 12 2022 at 19:14 UTC