Stream: questionnaire
Topic: Columns/Table Representation
Don Langlois (Feb 14 2019 at 17:54):
I'm probably missing something ut wondering best way to represent a Questionnaire Group of items as a table. I see a few extensions but not sure if this is best way?
1) Create an array of "choiceColumns"
2) set a width extension for each question in a group
Thanks
Don Langlois (Feb 14 2019 at 18:16):
Actually see "htable" and "vtable" options - this might solve issue
Paul Lynch (Feb 14 2019 at 18:23):
choiceColumn is for answer lists, so that it is not what you want.
Paul Lynch (Feb 14 2019 at 18:26):
I think you want the itemControl extension and one of the table options under "group" at http://build.fhir.org/valueset-questionnaire-item-control.html.
Don Langlois (Feb 14 2019 at 18:49):
Thanks!
Don Langlois (Feb 14 2019 at 21:22):
Still have a question about the item-control/table format. What i was trying to convey to receiver that a group of text questions should be split ito columns. For example if for example i have 10 fields for patient information (name, dob etc) and i want to convey that should be rendered as a table with 2 columns. I see that well defined for choice types but cant find how to do this for text questions?
Thanks again
Paul Lynch (Feb 14 2019 at 23:13):
Are you saying that you want the list of questions to wrap into two columns, so that first five questions are on the left side of the page, and the next five are on the right? (I am not sure if we have a way to do that yet.)
Don Langlois (Feb 14 2019 at 23:19):
Yes that's correct. Some form question groups can be very long and would be nice to format into columns versus one big long list of questions :). Would be roughly same functionality as htables/matrix etc for choice fields
Lloyd McKenzie (Feb 14 2019 at 23:47):
What I would do is define a group that contains two groups that each contain 5 questions. You can indicate the layout of the containing group and the layout of the questions within the child group
Last updated: Apr 12 2022 at 19:14 UTC