Stream: questionnaire
Topic: Additional-text field for Choice Questions
Sravanti Cherukuri (Mar 29 2021 at 18:15):
How do i represent below question using FHIR Questionnaire resource
I know how to represent a multi select question(choice) using FHIR Questionnaire Resource. But here i need to have additional text field for couple of answer options. Please let me know standard way to achieve this.
Here is the sample Json i used for implementing multi choice question
AdditionaText_Question_JSON_FHIR.PNG
AdditionaText_Question_FHIR.PNG
Lloyd McKenzie (Mar 29 2021 at 18:17):
Child questions that have 'enableWhen' if the parent answer is a particular value.
Sravanti Cherukuri (Mar 29 2021 at 18:27):
@Lloyd :Do you mean I should consider additional text fields next to answer options ("Los Angeles" and "San Diego") in the above example as child questions of this question "What city do you live in ?"
Lloyd McKenzie (Mar 29 2021 at 18:37):
Yes
Sravanti Cherukuri (Mar 31 2021 at 18:56):
@Lloyd :Is there any extension available in FHIR to paint additional text field next to every answer option for a multi choice question in UI
Sravanti Cherukuri (Mar 31 2021 at 18:56):
any sample reference FHIR questionnaire will be helpful
Paul Lynch (Mar 31 2021 at 19:42):
What is your use case for wanting to do that?
Lloyd McKenzie (Mar 31 2021 at 21:08):
An example of what you're trying to do would be helpful
Sravanti Cherukuri (Apr 01 2021 at 00:10):
In a Questionnaire i want to show attached multi choice Question (with additional text field showing next to them for few choice options) any fhir extensions to paint this scenario.
AdditionaText_Question_FHIR.PNG
Lloyd McKenzie (Apr 01 2021 at 02:17):
We just answered that above - you use child questions. What do you mean by "paint additional text field"?
Paul Lynch (Apr 01 2021 at 17:44):
Also, what is the question you are asking next to "Los Angeles" and "San Diego"?
Sravanti Cherukuri (Apr 28 2021 at 18:05):
If any additional comments user wants to enter after opting the option im collecting in that textbox
Lloyd McKenzie (Apr 28 2021 at 18:07):
Why are you capturing comments for some cities but not other - and why is there no prompt telling the user what to fill in?
Sravanti Cherukuri (Apr 28 2021 at 20:52):
Use case is for capturing only few cities and yeah i am showing the prompt but missed sending here
Last updated: Apr 12 2022 at 19:14 UTC