FHIR Chat · FORGE STU3 - slicing within sliced element · implementers

Stream: implementers

Topic: FORGE STU3 - slicing within sliced element


view this post on Zulip Filipe Castro (Apr 12 2019 at 15:35):

Hi all,
Does it possible to slice an element within other sliced element, on Forge platform?
What should be the Discriminator configuration?
For example, using 'Parameters' structuredefinition and slice element 'part' within an sliced 'parameter' element.

view this post on Zulip Michel Rutten (Apr 12 2019 at 17:01):

Hi @Filipe Castro, Forge supports nested slices and allows you to create the profile constraints that you describe. The discriminator depends on the actual use case.

view this post on Zulip Filipe Castro (Apr 12 2019 at 17:38):

@Michel Rutten , thanks for your help. i've tried to create a Parameters profile where i've setup the parameters element with multiple slices. One of this sliced parameters element has other element 'part' sliced too. For this slicing configuration i've used the discriminator with type 'value' and path 'name'. When i try to validate a message with this Parameters profile, the 'parameters' slice works well, but for 'part' slice it give me the following error: 'Could not match element (name) for slice..'. In the attachment its possible to see how this slice is configured. Parameters.PNG

view this post on Zulip Michel Rutten (Apr 13 2019 at 00:02):

The profile appears to be valid. The error message may indicate a limitation in the validation logic. How did you validate the message?


Last updated: Apr 12 2022 at 19:14 UTC