FHIR Chat · Slicing BackboneElement by extension.valueCodeableConcept · shorthand

Stream: shorthand

Topic: Slicing BackboneElement by extension.valueCodeableConcept


view this post on Zulip Igor Sirkovich (Jun 04 2020 at 05:46):

I'm trying to slice a BackboneElement element (Practitioner.qualification) by extension.valueCodeableConcept (the extension is defined on "qualification" in my profile).

I define slicing:

  • qualification ^slicing.discriminator.type = #pattern
  • qualification ^slicing.discriminator.path = "$this"

and define slices:

  • qualification[SLICE1] ^patternBackboneElement.extension.url = MyURL
  • qualification[SLICE1] ^patternBackboneElement.extension.valueCodeableConcept.coding.code = #mycode

However, when I run sushi, I get an error "Cannot resolve element from path: patternBackboneElement.extension.url".

This approach seems to work for slicing of Identifier and CodeableConcept elements, but I'm wondering whether this is valid for slicing of a BackboneElement element and whether Sushi is supposed to support this.

view this post on Zulip Nick Freiter (Jun 04 2020 at 12:07):

The pattern[x] element https://www.hl7.org/fhir/elementdefinition-definitions.html#ElementDefinition.pattern_x_ has a * datatype. Following the link on the * leads you to this description of open type elements, which are described as such:
"Some elements do not have a specified type. The type is represented by the wildcard symbol "*". In these cases, the element type may be one of the following"

If you look through the big long lists of types below, you will see CodeableConcept and Identifier, but you will not see BackboneElement, so I don't think you are allowed to create a field patternBackboneElement. Since this approach is not valid in FHIR, SUSHI is stopping you from doing it.

view this post on Zulip Igor Sirkovich (Jun 04 2020 at 15:14):

Thank you so much @Nick Freiter ! I remembered seeing this list in the past but couldn't locate it. I will try a different approach then.


Last updated: Apr 12 2022 at 19:14 UTC