Stream: questionnaire
Topic: Translation Packs for Questionnaire
Grahame Grieve (Oct 11 2019 at 08:57):
This is for @Vladimir Smirnov who asked me this in person on Wednesday at the FHIRStarter meeting, and I didn't get the answer correct.
His question was about questionnaires getting unreasonably large if you try to have multiple languages in the questionnaire
Grahame Grieve (Oct 11 2019 at 08:58):
so there's a better way to do questionnaire translations. The answer starts with this, from https://www.hl7.org/fhir/codesystem.html#detailed-metadata:
Some other parts of the FHIR infrastructure define set of concepts that may also be treated as code systems
Questionnaire: The Questionnaire.url (canonical URL) is the system. Each .item.linkId in the snapshot is a code in the code system. Items with no linkId cannot be addressed
Grahame Grieve (Oct 11 2019 at 08:59):
this means that you can provide a code system supplement that contains the translations for the questionnaire in a specific language
Grahame Grieve (Oct 11 2019 at 09:00):
conceptually:
CodeSystem lang = {your language} url = something kind = supplement supplements = {Questionnaire.url} concept (x N) code = {Questionnaire.item.linkId} display = {String display in specified language}
Grahame Grieve (Oct 11 2019 at 09:01):
in fact, using this technique, it's possible to specify alternate presentations in the same language e.g. clinician display, or mobile display
Grahame Grieve (Oct 11 2019 at 09:02):
SDC might want to note this as an option somewhere
Lloyd McKenzie (Oct 11 2019 at 14:40):
Care to submit a change request? :)
Grahame Grieve (Oct 11 2019 at 16:38):
Vladimir Smirnov (Oct 11 2019 at 22:35):
Thank you so much for taking care of this on such a personal level! :) I believe, the two approaches Grahame mentioned during our conversation could be employed together: the one above, and respecting Content-Language parameter in HTTP query (as per 'Internationalization' section of FHIR documentation). This way, the FHIR server may generate a Questionnaire instance on demand using translations in the code system.
Patrick Werner (Oct 14 2019 at 11:59):
i really like this idea. We ran into the same issue of having really large Questionnaires.
Grahame Grieve (Oct 15 2019 at 08:25):
yes, SDC could extend this to require a form manager to perform translation on the fly
Last updated: Apr 12 2022 at 19:14 UTC