How would you handle dynamic questionnaire
# support
t
Hello everyone, I'm working on an application that needs some dynamic questionnaire, I think it is called Adaptative Questionnaire in the FHIR documentation (https://build.fhir.org/ig/HL7/sdc/adaptive.html). The idea is that I want to trigger some question based on the answer of other questions. How would you handle this on your end ? From what I saw into the Medplum backoffice, there is no rules to trigger adaptative questionnaires. The application will be written in Flutter as a mobile application. My idea was to load the questionnaire with all the questions and implement the logic directly in the application, but if I can have something more flexible that would be awesome. Thank you for your answer.
I have also seen that it is possible in the FHIR api to use something called Dynamic Behavior. But again i don't see how this can be implemented in Medplum. As we are currently looking for a solution, for our questionnaires, this is a must have in the FHIR solution we will choose.
I actually see that it the enableWhen exists on the definition type but I don't know how to set it up :
Ok I've just seen that I can modify the JSON directly I guess this is the way to do it 🙂
r
HI @thomabig ! Thank you for your patience. We don't yet support Adaptive Questionnaires, but it's definitely something on our roadmap: https://github.com/medplum/medplum/issues/3648
Adaptive Questionnaires are typically used when you need advanced, server side logic to determine future questions.
As you noted, if your logic is simple, you can use the
enableWhen
features to show hide whole
groups
of questions.
As you noted, the main way to do this is to edit the Resource JSON directly. The builder only exposes a subset of functionality
t
Thank you @rahul1 🙂
133 Views