Re: HAPI FHIR VALIDATION - COULD NOT MATCH DISCRIMINATOR (NAME) FOR SLICE

220 views
Skip to first unread message

James Agnew

unread,
May 9, 2019, 10:20:09 AM5/9/19
to Filipe Castro, HAPI FHIR
Hi Filipe,

That is a fairly old version of HAPI FHIR you are using- there are validator fixes in every version of HAPI FHIR since then so it would probably be worth trying first on HAPI FHIR 3.7.0 or even 3.8.0-SNAPSHOT.

Cheers,
James

On Thu, May 9, 2019 at 4:41 AM Filipe Castro <lipeca...@gmail.com> wrote:
Hi all,

I'm newest on FHIR and i'm trying to validate FHIR messages using HAPI FHIR JPA SERVER(3.4.0) and FORGE STU3(19.7) to create profiles structure definitions.
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.

Parameters.png

 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(using JPA SERVER 3.4.0) 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 on Forge. 

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/4a1012e1-dad9-4581-af4d-090af27f3af6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages