FHIR Chat · Starting hosted Questionnaire (Response) instance viewer · questionnaire

Stream: questionnaire

Topic: Starting hosted Questionnaire (Response) instance viewer


view this post on Zulip Ward Weistra (May 15 2020 at 20:02):

@Stoyan Halkaliev @Paul Lynch @Others: My hope was that there would be a hosted Questionnaire (Response) instance viewer/renderer that I could start from a Questionnaire (Response) instance on Simplifier.net (like this COVID-19 Questionnaire). If so, we could add your Tool in our Tools drop-down and call it with either a URL where your tool can download the resource or directly do a POST to a link of your choice with the resource in the body. Is this supported/of interest?

view this post on Zulip Stoyan Halkaliev (May 15 2020 at 20:15):

@Ward Weistra Yes, we totally support this. Our renderer is completely self-contained, runs as SPA in the browser (even in IE11), can handle JSon directly without FHIR-repository (if the valueset are contained), support enable when and can render multilanguage questionnaire (if implemented with the extentention). Here is live example of a questionnaire we use for one of our projects:

https://www.selbstanamnese.de/#/Anamnesis

We already can render the questionnaire you pointed to (I created a self-contained version with both languages and contained valuesets). I will setup this weekend a stand-alone version you can call directly that just renders the questionnaire.

view this post on Zulip Ward Weistra (May 15 2020 at 20:17):

That would be wonderful @Stoyan Halkaliev, let me know how I should form the URL/POST call to get the resource to that instance when you have it! Thanks

view this post on Zulip Paul Lynch (May 15 2020 at 20:50):

@Ward Weistra That is an interesting idea, and should not be difficult to add. We would probably do a POST call; I am not sure what the NLM security team would think of links to pages in the NLM space showing any random form, but a POST should be okay. Alternatively, it would really each to create a small web page with a little JavaScript that would take the Questionnaire as a URL parameter and render it with LHC-Forms, and then you could host it locally.

view this post on Zulip Ward Weistra (May 15 2020 at 20:55):

@Paul Lynch Thanks Paul. If it is an option POST that would be great, so we don't have to host another rendering application. But if it isn't, we'll look into that route too.

view this post on Zulip Stoyan Halkaliev (May 18 2020 at 15:24):

Hi @Ward Weistra , just postet an example of a call for a renderer in the other thread:

https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/Rendering.20Questionnaires.20in.20IGs/near/197948238

I made some assumptions about how to get the value sets from simplfier and it seems to work for this particular example, but let me know if there is a better way. You can actually put it in an iFrame and show it as a Tab in the questionnaire page of the simplifier.

view this post on Zulip Ward Weistra (May 18 2020 at 15:32):

@Stoyan Halkaliev Great work. They better URL to use is the FHIR API link it gives here:
2020-05-18-17_29_33-SIMPLIFIER.NET-Data4Life-FHIR-artifacts-R4-_-COVID-19-assessment-questionnai.png
That's what the connector implementation also uses and it works for https://simplifier.net/Data4LifeFHIRartifactsR4/covid-19-assessment-questionnaire-en (R4).
I couldn't get it to work with https://simplifier.net/covid-19/questionnaire-example yet (STU3), it loads an empty screen. I'm not too familiar with Questionnaires, this one seems to take a different approach with specifying the questions in the profile rather than in the FHIR instance.

view this post on Zulip Ward Weistra (May 18 2020 at 15:36):

STU3 doesn't seem to be the issue, it works with https://simplifier.net/finnishphr/questionnaire-danpss1 for example!

view this post on Zulip Stoyan Halkaliev (May 18 2020 at 15:39):

@Ward Weistra thanx for the report. Will research asap.

view this post on Zulip Stoyan Halkaliev (May 18 2020 at 16:14):

Ward Weistra said:

I couldn't get it to work with https://simplifier.net/covid-19/questionnaire-example yet (STU3), it loads an empty screen. I'm not too familiar with Questionnaires, this one seems to take a different approach with specifying the questions in the profile rather than in the FHIR instance.

:surprise: I must confess, this is completely new approach to me. I need to research it a little. Can someone please explain what is the benefit of putting quesionnaires in the profile? @Lloyd McKenzie ?

view this post on Zulip Ward Weistra (May 18 2020 at 16:16):

Let me loop in the team of @Pier Alberto Gibellini too, since they worked on it.

view this post on Zulip Lloyd McKenzie (May 18 2020 at 17:00):

Yeah, that's an empty questionnaire. I'd expect a blank page. Simply referencing the code is not enough to cause any tool to prompt you for the questions associated with that LOINC code. The questionnaire must specify the questions.

view this post on Zulip Pier Alberto Gibellini (May 20 2020 at 10:08):

Hi! Thanks Ward for bringing me in. Actually I agree with Lloyd, an existing Questionnaire instance (and as a Consequence its profile) has value only if the questions are there. That's exactly what we didn't do with the COVID-19 Questionnaire, unfortunately. We definitely wanted the answers to be in a QuestionnaireResponse, but from our customers we had only word documents or scanned PDFs as inputs to build them, and we were in a damn hurry. So we chose to buld the QuestionnaireResponses pointing to a Questionnaire which just contained a "code" that allowed our software to know which template to associate to the response, without building it from the actual content of the Questionnaire. For the mapping, we just put the linkId for each Quest.Resp. item besides each row of the word/pdf document, very rough, but it worked. It's probably one of the less refined parts of the COVID-19 profiling and definetely not a good example of Questionnaire, sorry about that :-)

view this post on Zulip Ward Weistra (May 20 2020 at 14:23):

@Pier Alberto Gibellini No need for apologies, better to get things done! We were just checking if we needed to improve the Questionnaire viewer or connector to support this. Thanks for the background on this!

view this post on Zulip Stoyan Halkaliev (May 20 2020 at 15:58):

Pier Alberto Gibellini said:

...but from our customers we had only word documents or scanned PDFs as inputs to build them, and we were in a damn hurry. ...

Completely understandable, at least not a bug on our side :-) When you have time, you can check the our questionnaire designer here http://fhirpower.tools . With it you can build multi language questionnaires quickly.

view this post on Zulip Paul Lynch (Jul 17 2020 at 18:30):

Ward Weistra said:

Paul Lynch Thanks Paul. If it is an option POST that would be great, so we don't have to host another rendering application. But if it isn't, we'll look into that route too.

Ward - We now have a viewer application here: https://lhncbc.github.io/questionnaire-viewer/, which will take a parameter "q" for the URL to a Questionnaire. Example: https://lhncbc.github.io/questionnaire-viewer/?q=https%3A%2F%2Flforms-fhir.nlm.nih.gov%2FbaseR4%2FQuestionnaire%2F55418-8
It does not support "POST". Let me know if that is a problem.

view this post on Zulip Ward Weistra (Jul 23 2020 at 08:33):

Seems to work like a charm @Paul Lynch: https://lhncbc.github.io/questionnaire-viewer/?q=https://fhir.simplifier.net/Data4LifeFHIRartifactsR4/Questionnaire/46a4d1e2-3a3b-4585-8569-151796ca96ed :tada:
Let me create a connector for that...

view this post on Zulip Ward Weistra (Jul 23 2020 at 08:35):

I guess at some point we should also pass you (and other tools like Stoyan's) a FHIR server where you can retrieve any referenced resources, like the valuesets being used.


Last updated: Apr 12 2022 at 19:14 UTC