Stream: terminology
Topic: ValueSet Invariants
Richard Kavanagh (Nov 12 2020 at 22:12):
Looking at the ValueSet resource (R4) I can see that invariant "vsd-3" precludes a "compose" having both a "filter" and "concept" definition.
I'm unclear as to the role ValueSet.compose.include.valueSet plays.
- Is it possible to populate this if either ValueSet.compose.include.concept or ValueSet.compose.include.filter is present ?
- Also is ValueSet.compose.include.valueSet is populated, would this potentially not conflict with ValueSet.compose.include.system & ValueSet.compose.include.version
Michael Lawley (Nov 12 2020 at 22:13):
yes, you can have both (valueSet and concept or filter) and it does an intersection
Michael Lawley (Nov 12 2020 at 22:14):
if the systems don't match, the result will be empty
Richard Kavanagh (Nov 12 2020 at 22:24):
@Michael Lawley thanks, still not sure I totally understand.
So, for example,
- if there is a filter and no valueSet, then the filter works on the codeSystem specified in include.system
- if there is a filter and a valueSet, the the filter just works on the codes defined by that valueSet
is that it?
Michael Lawley (Nov 12 2020 at 22:37):
No, the filter works on the CodeSystem but the results are intersected with the expansion of the valueset.
Eg imagine you have a valueset for drugs prescribable in some context and then your filter matches drugs containing some specific ingredient. The result will be prescribable drugs containing that ingredient
Richard Kavanagh (Nov 12 2020 at 22:42):
Thanks again - I think your example is what I was trying to describe above. :+1:
Last updated: Apr 12 2022 at 19:14 UTC