Stream: questionnaire
Topic: Hierarchical valuesets in answers
Jose Costa Teixeira (Jun 30 2021 at 17:32):
Is there an example or recommendation of using hierarchical valuesets (if that is the option) for chained questions in a questionnaire?
Problem: select a location by selecting country, then region, then city.
Should I have one single VS for that, or several VSs? How would one link the different VSs?
Yunwei Wang (Jun 30 2021 at 17:57):
(deleted)
Lloyd McKenzie (Jun 30 2021 at 18:21):
I think we've said that would generally be done by optionExpression - where the set of available options is determined by an expression (and might be determined by answers to other questions).
Paul Lynch (Jun 30 2021 at 18:23):
Lloyd McKenzie said:
optionExpression
I think you mean "answerExpression"
Lloyd McKenzie (Jun 30 2021 at 18:24):
http://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-answerExpression.html
Grahame Grieve (Jun 30 2021 at 19:31):
I don't understand this answer. I don't see how answer expression relates to a heirarchical value set. and no, we don't have a canned example to mw knowledge, though there is an example of a heirachical expansion in the value set examples
Jose Costa Teixeira (Jun 30 2021 at 19:32):
Does this assume different valuesets then? Or is it possible to use an expression to constrain valuesets?
Jose Costa Teixeira (Jun 30 2021 at 19:35):
Yes @Grahame Grieve (sent my question before I saw your comment).
An adaptive form could get some information to populate the response based on what's on the server, but what I need is (?) to ask a terminology server for some values in a hierarchy (or in a different valueset) depending on the previous answers.
Grahame Grieve (Jun 30 2021 at 19:39):
oh I read the question better this time. I wouldn't have a series of questions for that, just a single heirarchical value set
Jose Costa Teixeira (Jun 30 2021 at 20:08):
one question only?
Jose Costa Teixeira (Jun 30 2021 at 20:09):
I'd need to output the country, region and city as different elements
Jose Costa Teixeira (Jun 30 2021 at 20:10):
so I assume 3 questions, where the form would ask the terminology server the values depending on the answer to the previous questions.
Grahame Grieve (Jun 30 2021 at 20:30):
yes well, then, i agree with Lloyd
Jose Costa Teixeira (Jun 30 2021 at 21:04):
So is this an adaptive questionnaire, or a "populatable" one (if there's a difference)?
Would one say "use the terminology server x.y.z to get the answer to question3 knowing that the question 2 answer is Belgium"? And how would that look like?
Elliot Silver (Jun 30 2021 at 21:52):
Please don't require an adaptive questionnaire to solve this. Can you imagine a user having to go through three pages in order to fill out where they live?
@Paul Lynch , I think @Lloyd McKenzie was correct, you want the options available for question 2 to dynamically change depending on what was selected for Q1.
I tried to solve this exact problem last year, but could never figure out how to do it.
Paul Lynch (Jun 30 2021 at 21:57):
Elliot Silver said:
you want the options available for question 2 to dynamically change depending on what was selected for Q1.
The RxTerms demo form does that (https://lforms-fhir.nlm.nih.gov/baseR4/Questionnaire/rxterms, https://rxterms.nlm.nih.gov/)
Last updated: Apr 12 2022 at 19:14 UTC