FHIR Chat · Discriminator on valueset used? · implementers

Stream: implementers

Topic: Discriminator on valueset used?


view this post on Zulip Robin Bosman (Jul 08 2020 at 10:24):

Let's say I want multiple slices where the only difference is the valueset. (All the valuesets use SNOMED-CT codes but codes from one valueset are not in the other valuesets)
What would be the discriminator? As the instance will only refer to the codesystem can this be done?

view this post on Zulip Rob Hausam (Jul 08 2020 at 11:35):

You should be able to do that with a pattern discriminator on the element (e.g. $this) and required bindings to the value sets in each of the slices. The value sets should be disjoint (you said that they are) and the bindings do need to be required. There are some other potential nuances and issues that we've encountered, particularly with instance validation, but I think generally that should work. We do some similar slicing in the IPS IG, and have found it to be useful.

view this post on Zulip Grahame Grieve (Jul 08 2020 at 11:55):

do you really need to slice? this is a really hard pattern for implementers, even if the validator can understand it.

view this post on Zulip Rob Hausam (Jul 08 2020 at 11:57):

I agree with Grahame that's the question to ask and answer first.

view this post on Zulip Robin Bosman (Jul 08 2020 at 12:26):

Tx guys, indeed - after a few tests, the pattern seems indeed too complex to pursue, nice to know there are possibilities though if it ever comes up again!


Last updated: Apr 12 2022 at 19:14 UTC