Stream: implementers
Topic: Discriminator on valueset used?
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?
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.
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.
Rob Hausam (Jul 08 2020 at 11:57):
I agree with Grahame that's the question to ask and answer first.
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