FHIR Chat · pre-populating a questionnaire · questionnaire

Stream: questionnaire

Topic: pre-populating a questionnaire


view this post on Zulip René Spronk (Sep 25 2019 at 12:48):

When crating a pre-populated Questionnaire for 1 specific patient: AFAIK there is no reference to the patient (or: subject) resource from the Questionnaire. So how is one supposed to know which pre-pop Q should be answered by which patient ?

view this post on Zulip Grahame Grieve (Sep 25 2019 at 12:48):

what do you mean by 'a pre-pop' questionnaire?

view this post on Zulip René Spronk (Sep 25 2019 at 12:49):

pre-populated answers pulled from an EHR

view this post on Zulip Grahame Grieve (Sep 25 2019 at 13:00):

the you need a QuestionniareResponse

view this post on Zulip Brian Postlethwaite (Sep 25 2019 at 13:03):

The $populate will take the series of parameters which indicate which to use.
Often these come from the smart on fhir context.

view this post on Zulip Brian Postlethwaite (Sep 25 2019 at 13:03):

I have a set of slides that walks through the new SDC approach, and my server can now demonstrate it too.

view this post on Zulip René Spronk (Sep 25 2019 at 15:56):

Slide decks are always welcome ;-) .. Ok, so the result is a Q-response. Which means a rendering engine should both be capable of rendering a Q (without pre-population), as well as a Q-response (a partially populated questionnaire). If one renders a Q-response, one would also need the Q, the questions/text is not in the Q-response, but only in the Q.

view this post on Zulip Grahame Grieve (Sep 25 2019 at 19:20):

right. But since a typical workflow includes 'save and come back', being able to start with a pre-populated QR should be the default

view this post on Zulip Paul Lynch (Sep 25 2019 at 21:44):

In LHC-Forms, the pre-population is done on the client side, starting with Questionnaire. The patient data comes from the SMART on FHIR connection. The QuestionnaireResponse is not created until the user tries to save.

view this post on Zulip Anubhav Gulati (Dec 01 2021 at 17:55):

Can someone please help on how I can pre-populate some questions in a questionnaire ?
If there are any examples related to it.

view this post on Zulip Lloyd McKenzie (Dec 01 2021 at 18:58):

There's a whole section on pre-population, including links to examples, in the SDC IG here

view this post on Zulip Anubhav Gulati (Dec 01 2021 at 19:35):

Thanks. I am trying to pre-populate a question from database source rather than questionnaire itself. How can I pre-populate the answer of a question from database column ? For example - Assume I have 2 questions , First name and Last Name. I want to fetch the values from database columns and pre-populate it.
So, while creating questionnaire, how can I refer a question (item) to give database context ?

view this post on Zulip Lloyd McKenzie (Dec 01 2021 at 23:37):

There's no standard way to do that because there's no standard way to access arbitrary databases or to provide other context necessary to allow secure and appropriate execution of queries against the database. That's why all the defined mechanisms in SDC leverage a FHIR interface - there are well-defined standards for performing the query, securing the query, and you know exactly what you'll get back regardless of what server you're filling out the form on. If you want to create a Questionnaire intended for use with a specific database and with a specific form filler that knows how to query that database, then you could define your own extensions for doing so. There won't be a standard mechanism though.

view this post on Zulip Anubhav Gulati (Dec 02 2021 at 16:04):

Thank you for your inputs.


Last updated: Apr 12 2022 at 19:14 UTC