Stream: questionnaire
Topic: Import Questionnaire items
Yunwei Wang (Apr 01 2020 at 20:52):
We are building several Questionnaires and there are some common items that used by different Questionnaire, such as Patient information, Provider information. We are thinking to build common modules and then just add them to Questionnaire at desired place. Just like building UI control modules and put them together to form a web page.
Is there an extension for Questionnaire to "import" or "reference" external items?
Grahame Grieve (Apr 01 2020 at 21:01):
see J#22356
Yunwei Wang (Apr 02 2020 at 13:23):
Is there any work done on that subQuestionnaire extension?
Lloyd McKenzie (Apr 02 2020 at 14:59):
Still in discussion about how it would actually work. @Grahame Grieve @Bryn Rhodes @Brian Postlethwaite - any chance of you joining today's SDC call?
Paul Lynch (Apr 02 2020 at 15:27):
I think that if you can handle it via one of the many template systems (e.g. server-side includes processing) used for web pages, that is the way to go. Adding this to Questionnaire raises of lot difficulties and concerns, as you can see in the issue Grahame cited. In one of our applications, we use server-side includes as a simple template system to assemble questionnaire definitions (albeit in LForms format) from shared pieces. The SSIs are processed as a part of the build step for the app, before it is deployed.
Yunwei Wang (Apr 02 2020 at 19:09):
I think that is better solution than assemble the questionnaire by client. Still the server side parser need to understand the extension structure.
As for the linkId, I think the extension could supply the initial linkId value.
Paul Lynch (Apr 02 2020 at 19:53):
The server side parser can be very ignorant, just as it is for web pages. It does not need to know what it is processing.
Grahame Grieve (Apr 02 2020 at 19:53):
when is the DC call?
Lloyd McKenzie (Apr 02 2020 at 19:53):
5 Eastern
Lloyd McKenzie (Apr 02 2020 at 19:54):
https://global.gotomeeting.com/join/696476549
Last updated: Apr 12 2022 at 19:14 UTC