FHIR Chat · Previous Question · questionnaire

Stream: questionnaire

Topic: Previous Question


view this post on Zulip milton mitjans (May 27 2021 at 01:40):

Is there the ability in the Adaptive Form to navigate backwards? For example if the UI shows a question but the user have the ability to go back to the previous question.

view this post on Zulip Lloyd McKenzie (May 27 2021 at 09:20):

Generally no. There's an SDC extension that defines what sort of navigation is allowed, though I think we'd presumed it wasn't necessary for adaptive forms. Issue is that if you change previous answers then all subsequent answers and questions are potentially invalidated.

view this post on Zulip milton mitjans (May 27 2021 at 14:42):

Thank you, do you know a link to the SDC extension that defines the navigation?

view this post on Zulip Lloyd McKenzie (May 27 2021 at 15:24):

http://build.fhir.org/ig/HL7/sdc/behavior.html#entryMode

view this post on Zulip David Winters (Jun 02 2021 at 10:40):

@milton mitjans if you're curious about what the implementation for this looks like, I've recently added support for this extension in questionnaire-to-survey.

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

Thank you!
In the Adaptive flow; let's say that there have being 3 questions answered. Does the POST request to get the next question will need to have all 3 questions within the QuestionnaireResponse? I see that the questions themselves are on the contained Questionnaire but I'm not sure if the POST will also need to have the answers.

Thanks!

view this post on Zulip Lloyd McKenzie (Jun 03 2021 at 02:36):

The POST will be the QuestionnaireResponse with all answers to date and a contained Questionnaire listing all questions. There's no expectation that the server will track what's previously been asked, so all information must be present in the instance. And at the end, the form needs to show all questions that were asked and all answers that were given.


Last updated: Apr 12 2022 at 19:14 UTC