Stream: implementers
Topic: Question form
Pranitha Sruthi (May 25 2017 at 11:53):
Hi all, which tool shall I use to generate a form which contains questions of any type on fhir ?
Lloyd McKenzie (May 25 2017 at 12:58):
You'd use the Questionnaire resource. To the best of my knowledge, there are no open-source user interfaces for authoring Questionnaires yet.
Pranitha Sruthi (May 25 2017 at 13:00):
Ok but how can I mention the questions?
Lloyd McKenzie (May 25 2017 at 13:09):
Questionnaire.item is used to define both questions and groups of questions
Lloyd McKenzie (May 25 2017 at 13:09):
(And even just instructions)
Pranitha Sruthi (May 25 2017 at 13:16):
We are developing an iOS application and use forge to create profiles. In a similar manner, how can I create a question form?
René Spronk (May 25 2017 at 14:23):
As Lloyd pointed out: there are no open-source user interfaces for authoring Questionnaires yet.
Should you create one, please share it with the wider community :-)
Lloyd McKenzie (May 25 2017 at 14:47):
In other words, right now, you're looking at hand-coding the Questionnaires in XML or JSON (presumably using an editor that at least supports schema validation)
Pranitha Sruthi (May 26 2017 at 04:26):
@René Spronk Sure will share :)
@Lloyd McKenzie yes. Is there any alternative solution?
Tim Berezny (May 26 2017 at 14:42):
I hadn't come across the questionnaire resource before, but it looks quite useful.
Would /questionnaire the be an appropriate resource to use to generate a custom referral form to a service?
Lloyd McKenzie (May 26 2017 at 15:05):
@Pranitha Sruthi Only other alternative is to create your own tool.
Lloyd McKenzie (May 26 2017 at 15:07):
@Tim Berezny Questionnaire is appropriate for any type of form - it's appropriate as a data capture tool. However, if you actually want to share/manipulate referral information in a standardized way, it's best to extract the information from the QuestionnaireResponse resource and migrate it into ReferralRequest and other related resources.
Tim Berezny (May 26 2017 at 15:13):
I see, so we build the form itself with Questionnaire, and then QuestionnaireResponse is how we store the answers to the related Questionnaire.
When you say "migrate to ReferralRequest", do you mean transferring related data into matching fields (such as firstName, lastName, etc..)?
For fields that are NOT in existing resources (lets say i'm referring to Meals on Wheels, and i ask about meal/menu preferences), would it be appropriate to send that over in a QuestionnaireResponse attached to the ReferralRequest? (or, to build an extension for those fields, or something else?)
Lloyd McKenzie (May 26 2017 at 15:38):
There should always be a resource where information should live. Something like meal/menu preferences would likely live either as Observation or in one of the nutrition resources.
Tim Berezny (May 26 2017 at 20:47):
I see, thanks so much for your feedback. I really appreciate it.
Pranitha Sruthi (May 29 2017 at 06:49):
@Lloyd McKenzie thank you
Brian Postlethwaite (Jun 05 2017 at 03:41):
I agree with you @Tim Berezny on attatching the QR to the ReferrralRequest and sending that through. If the receiver then converts these into other resources (as @Lloyd McKenzie points out), thats fine too.
Last updated: Apr 12 2022 at 19:14 UTC