FHIR Chat · Slicing in Parameters Profile · implementers

Stream: implementers

Topic: Slicing in Parameters Profile


view this post on Zulip Filipe Castro (Apr 09 2019 at 12:50):

Hi all,

I'm trying to create a Parameters structure definition profile with slices within slice elements, and i have a problem with slicing element 'part'. When i put value 'name' for discriminator, it gave me the following error: 'Could not match discriminator (name) for slice '. i have the same name on resource 'Parameters' that i'm trying to validate with this profile resource.

This is my profile: Parameters_profile.xml

This is my resource: Parameters_resource

Does anyone can help me?
Thanks.

view this post on Zulip Lloyd McKenzie (Apr 09 2019 at 15:19):

I'm not clear on what this bit is for:
<element id="Parameters.parameter.value[x]:valueString">
<path value="Parameters.parameter.valueString"/>
<sliceName value="valueString"/>
<type>
<code value="string"/>
</type>
</element>

Also, you're allowing both a valueCode and a child parameter for XDSDocumentEntryPatientDetail. You need to pick one or the other.

Setting fixed values for code system in a CodeableConcept isn't a good idea - have you looked at using pattern instead? That will allow for translations. Also, "openAtEnd" is generally not great for interoperability either. Order shouldn't matter.

I don't know if any of those are driving your problem though. If you fix them and still have troubles, try simplfiying your profile to the bare minimum that's still causing an issue and then post that.

view this post on Zulip Filipe Castro (Apr 10 2019 at 08:37):

Thanks for your help Lloyd. My problem its on 'sliceParameter_XDSDocumentEntryNaturalidade' slice element that has a sliced element('slicePartPaisNaturalidade') within his strucuture. And when i validate some 'Parameters' resource, with this profile, it give me the error 'could not match discriminator' for slice', even if if i put the same name on the parameter that reference the discrimiantor field.

view this post on Zulip Lloyd McKenzie (Apr 10 2019 at 15:42):

What's the minimum profile that still triggers the problem?

view this post on Zulip Filipe Castro (Apr 11 2019 at 09:06):

Profile is Parameters. In the attachment i've mencioned the elements that i have problems on slicing.

Parameters.PNG

Discriminator is 'Value' for 'name' element, and i have the same name on message that i want to validate with this profile.


Last updated: Apr 12 2022 at 19:14 UTC