Stream: implementers
Topic: Rendering questionnaire
Simone Heckmann (Mar 07 2016 at 14:15):
Is anyone aware of tools out there to create questionnaire instances from profiles in a sandbox environment?
Lloyd McKenzie (Mar 07 2016 at 16:12):
There's tooling built into the build that generates questionnaires from profiles. I don't know if it's available for stand-alone use.
Simone Heckmann (Mar 07 2016 at 16:17):
Please elaborate. ..
Lloyd McKenzie (Mar 07 2016 at 17:13):
Every resource and profile in the spec gets a generated questionnaire based on the StructureDefinition. The process is written in Java. I don't know if you can run it outside the build
Simone Heckmann (Mar 07 2016 at 18:02):
Hm, well I guess that's not exactly what we are looking for. We have a bunch of Questionnaire Profiles and need a tool to display them in a WebBased environment. ClinFHIR doesn't do Questionnaires, right?
Grahame Grieve (Mar 07 2016 at 19:18):
what's a 'Questionnaire Profile'?
Brian Postlethwaite (Mar 07 2016 at 21:12):
http://hl7.org/fhir/structuredefinition-operations.html#6.17.13.1
I did implement this, but on checking it just now, something isn't working very well.
Brian Postlethwaite (Mar 07 2016 at 21:12):
It only worked for a structure def that we created
http://sqlonfhir-dstu2.azurewebsites.net/fhir/StructureDefinition/hcxdir-practitioner/$questionnaire
Brian Postlethwaite (Mar 07 2016 at 21:13):
Or have I read the question wrong?
Grahame Grieve (Mar 07 2016 at 21:16):
that's what I thought it was too, as did Lloyd, but "We have a bunch of Questionnaire Profiles and need a tool to display them in a WebBased environment" - that suggests that this is about the transform in the XMLtools.
Grahame Grieve (Mar 07 2016 at 21:18):
http://hl7-fhir.github.io/fhir-1.3.0-XML%20Tools-0.01.zip
Brian Postlethwaite (Mar 07 2016 at 21:21):
Brian Postlethwaite (Mar 07 2016 at 21:21):
If the question is, does anyone have a renderer that they can use and pass their own questionnaires to it, then this is ours that you can try out.
Brian Postlethwaite (Mar 07 2016 at 21:21):
Not perfect, but its pretty good.
Brian Postlethwaite (Mar 07 2016 at 21:22):
(especially if the questionnaire isn't complete too)
Brian Postlethwaite (Mar 07 2016 at 21:23):
(Note the languages property isn't handled very well here...)
Brian Postlethwaite (Mar 07 2016 at 21:23):
No real way of defining that in a quesitonnaire at the moment.
Simone Heckmann (Mar 07 2016 at 21:48):
@Brian Postlethwaite : Thanks! Looks like this is what we are looking for. Sorry I guess my wording was off. I was just forwarding the request without taking a deeper look into how questionnaires are defined. A questionaaire is defined as an instance of Questionnaire not a Profile of Questionnaire. So, what we have is in fact "a bunch of Questionnaires" :/
Grahame Grieve (Mar 07 2016 at 21:49):
k. so there's a transform in the xml tools that will convert a questionnaire to an html form
Grahame Grieve (Mar 07 2016 at 21:49):
Lloyd wrote it, and my system implements it. There's a link to put on the questionnaire to get the html form for it
Simone Heckmann (Mar 07 2016 at 21:52):
Great! We'll give it a try. Thanks!
Grahame Grieve (Mar 07 2016 at 22:00):
in the http headers
Grahame Grieve (Mar 07 2016 at 22:00):
I'll have to look up what I'm using....
Simone Heckmann (Mar 07 2016 at 22:10):
Does anyone implement $populate?
Brian Postlethwaite (Mar 07 2016 at 22:12):
We have a custom implementation of this, based on custom extensions using FHIRpath, not the SDC defined DataElement stuff
Brian Postlethwaite (Mar 07 2016 at 22:13):
(Must writeup the extensions that we use and publish them on foundry)
Pascal Pfiffner (Mar 08 2016 at 09:59):
FWIW, our C3-PRO toolchain can use ResearchKit on iOS to render FHIR questionnaires.
https://github.com/chb/c3-pro-ios-framework/tree/master/Sources/Questionnaire
Brian Postlethwaite (Mar 09 2016 at 05:51):
Just reviewing capability to provide formatted help content in a questionnaire text and was going to use the markup extension. This documents a capability to use HTML, I thought this was intended to be markdown.
http://hl7-fhir.github.io/extension-markup.html
Grahame Grieve (Mar 09 2016 at 06:41):
that's just a poor description. it's definitely mark up, but it produces xhtml formatting
Brian Postlethwaite (Mar 09 2016 at 21:39):
Thanks, just wanted to be sure before I started putting content in.
I'll log a new tracker for clarification - done.
Justin Doods (Apr 21 2016 at 14:28):
Hello,
thanks Simone for starting this thread, i finally found time to replay here as well ;)
I created a converter from the ODM schema to the FHIR questionnaire profile for our site which contains +5.000 forms in the ODM format. I was looking for looking for ways to render questionnaire in order to see whether my implementation is correct.
It seems to be working with the xml transformation and next i'll test it with the site SmartQ site, but i would be happy about feedback from others as well.
Our site is https://medical-data-models.org and questionnaires can be downloaded in FHIR (XML or JSON) after a free registration. Any feedback is welcome.
Lloyd McKenzie (Apr 21 2016 at 14:37):
Hello :)
Brian Postlethwaite (Apr 23 2016 at 03:39):
If you find any issues with the SmartQ site, please do let me know.
Keen to keep improving this, even though it's still in DSTU2 (as its production - well another site based on it)
Ewout Kramer (Apr 26 2016 at 14:28):
Nice website! I'll try to register so I can download a form as a Questionnaire definition!
Aleksandra Pavlyshina (Dec 13 2018 at 05:10):
Hello All,
Is anyone aware of tools out there to render an HTML form from a questionnaire instance? :simple_smile:
Previously, if I remember correctly, http://smartq.azurewebsites.net allowed to do this. Now, as I can see, it only allows to view web forms and submit assessment for already existing questionnaires on the server, and does not allow to post new resources there.
Brian Postlethwaite (Dec 13 2018 at 05:17):
That only currently supports DSTU2, but you can pass in any Questionnaire (or QuestionnaireResponse) ID on the query string. Just navigate to one on the demo, then replace the URL parameter with your own one
Aleksandra Pavlyshina (Dec 13 2018 at 05:35):
Thanks, Brian! That worked for me.
René Spronk (Dec 13 2018 at 06:07):
A tool like that is essential to promote / test the use of the Questionnaires. @Brian Postlethwaite any plans to update this to R3 or R4 ? (for me, as a FHIR tutor/trainer, discussion of Questionnaires [and doing an exercise] is only really possible if one has a generic rendering engine.)
Brian Postlethwaite (Dec 13 2018 at 06:09):
Yes we will be, but don't have a hard timeline just yet.
Simone Heckmann (Dec 13 2018 at 17:26):
https://chat.fhir.org/#narrow/stream/102-questionnaire/topic/open.20source
Paul Lynch (Dec 14 2018 at 19:03):
This is still a work-in-progress, but we are working on an SDC Questionnaire SMART on FHIR app: https://gallery.smarthealthit.org/app/lforms-questionnaire-app . This is based on the LHC-Forms form renderer, which has partial support for importing Questionnaires (with a focus on the SDC profile). We actively working on improving support and adding R4 features.
Last updated: Apr 12 2022 at 19:14 UTC