FHIR Chat · QuestionnaireResponse Blob · questionnaire

Stream: questionnaire

Topic: QuestionnaireResponse Blob


view this post on Zulip milton mitjans (Jun 16 2021 at 22:22):

We have a use case where a response to a questionnaire theres a report with complex json. Is there a way to represent the json payload report as a blob reference where the UI client can grab it and show it to the user?

view this post on Zulip Josh Mandel (Jun 16 2021 at 22:46):

Does the json blob represent a bunch of discrete facts that there are individual questions about?

view this post on Zulip Josh Mandel (Jun 16 2021 at 22:47):

Or is it like the questionnaire has a question of "please type some json here"

view this post on Zulip milton mitjans (Jun 17 2021 at 01:18):

The json blob is a result of a user answering a Questionnaire. When the QuestionnaireResponse is pushed by the UI Client, the server receives the respond talks to another system to generate a score based on the question answers. The system creates a report with a json format.

The json contains information around health facts based on the questionnaire. For example if the user answered a question around having high cholesterol the fact will contain information around how to manage high cholesterol.

Snippet example of the reports (there are a bunch of topics and more information)

{
"topicTitle": "Cholesterol",
"topicDetail": [ {
       "value": "Get your total cholesterol and HDL cholesterol level checked."
   }]
}

view this post on Zulip Ilya Beda (Jun 17 2021 at 07:34):

Hi @milton mitjans

Why do you want to save this data into QuestionnaireResponse?
It will be better to use CarePlan FHIR resource to store the recommendation.

Based on the questionnaire livecycle a user fill in a Questionnaire on the UI, then you store the response as QuestionnaireResponse. You don't need to add extra data from your API on this stage.
You should do it on extract stage when QuestionnaireResponse converts to a set of FHIR resources.

view this post on Zulip Josh Mandel (Jun 17 2021 at 14:42):

Agreed with @Ilya Beda -- it sounds @milton mitjans like you're trying to use QuestionnaireResponse in a way it's not designed for.

view this post on Zulip milton mitjans (Jun 18 2021 at 15:05):

@Ilya Beda @Josh Mandel Thanks for the information is really helpful! Does makes sense.
Which would be the best approach to reference the CarePlan from the QuestionnaireResponse?

view this post on Zulip Josh Mandel (Jun 18 2021 at 15:20):

If you create a CarePlan from a QuestionnaireResponse, you could link back to the questionnaire response with an extension, or perhaps via CarePlan.supportingInfo.


Last updated: Apr 12 2022 at 19:14 UTC