Stream: questionnaire
Topic: Expectations for contained ValueSets
Paul Lynch (Jun 24 2021 at 20:25):
@Jose Costa Teixeira and I were discussing whether a Questionnaire author should expect a form renderer to look in a contained ValueSet's "compose" element to determine the expansion. In the case in question, the "compose.include" section directly listed a few codes, so it is technically not a challenge to figure out the expansion (unless there is also "filter"). However, the LHC-Forms renderer expects that for a contained ValueSet, one or more of the following is true:
1) there is some FHIR context (e.g. provided by SMART on FHIR) that be queried to obtain the expansion
2) a preferred-terminologyServer extension is present to indicate where to get the expansion
3) the ValueSet itself contains the "expansion" element.
I am curious as to what other people think about how a renderer should expect to get the expansion, and I think the documentation should be clarified on that point.
Jose Costa Teixeira (Jun 24 2021 at 20:28):
The discussion was around entensionally defined valuesets. Extensionallydefined valuesets have the codes already in. In that case, and only in cases the valueset is only extensionally defined, the concepts in the expansion are(?) the same as the concepts in the compose.include
Grahame Grieve (Jun 24 2021 at 20:30):
well, not entirely. A server doing $expand will check that the concepts actually exist
Jose Costa Teixeira (Jun 24 2021 at 20:31):
I don't know but perhaps the $expand may also bring designations in different languages if they exist..?
Grahame Grieve (Jun 24 2021 at 20:32):
well, yes, you will (or should) get language support from a terminology server
Jose Costa Teixeira (Jun 24 2021 at 20:33):
From what I learned last week, the question for me is: does the author need to have any concerns about which type of valueset to populate?
Jose Costa Teixeira (Jun 24 2021 at 20:33):
I learned it's ok - and better - to pass everything through the $expand - but does this affect the author's expectations or actions?
Jose Costa Teixeira (Jun 24 2021 at 21:26):
In other words, is a questionnaire author expected to need expand such a valueset him/herself, or is that something for (whatever) toolchain?
Brian Postlethwaite (Jun 24 2021 at 23:02):
My expectations would be if the expansion is there that should be used, otherwise send to terminology server.
And control dependant usage of filter parameter too.
Last updated: Apr 12 2022 at 19:14 UTC