Stream: questionnaire
Topic: Editing a questionnaire response
Diane (Dec 13 2021 at 00:59):
A. When the form filler (eg. LHC Forms) merges a questionnaire response with a questionnaire, what are the expectations for behavior if there is a mismatch such as a questionnaire response has the question as a string but the questionnaire definition has this now as a dropdown? Or do you prevent mismatches by storing (in the questionnaire ID element of the questionnaire response) the entire url of the questionnaire used to create the qr including the version?
I know that when we call the utility method to do the merge, we reference the form definitions for the questionnaire used to create the qr, but we didn't ever consider mismatches between the latest questionnaire version and the version when the questionnaire was created. Ideally, the questionnaire should be stable, so the shouldn't be many changes from year to year, but it is something to think about.
B. Is it part of the spec that the questionnaire response is supposed to be populated by the form filler when the questionnaire response is submitted? I don't see that happening, but maybe there is a setting in LHC-Forms parameters for the method that I don't have enabled? If LHC-Forms doesn't do this when the form is submitted, then I guess our software should add functionality to add questionnaire ID to the questionnaire response?
Brian Postlethwaite (Dec 13 2021 at 04:17):
That is a canonical URL, not a reference, and yes, we do recommend putting the version on the end
e.g. https://lforms-fhir.nlm.nih.gov/baseR4/Questionnaire/55418-8-x|0.2.0
Diane (Dec 13 2021 at 04:41):
Thanks for pointing out the canonical URL with the bar for the version!
Paul Lynch (Dec 13 2021 at 17:05):
Diane said:
B. Is it part of the spec that the questionnaire response is supposed to be populated by the form filler when the questionnaire response is submitted? I don't see that happening, but maybe there is a setting in LHC-Forms parameters for the method that I don't have enabled? If LHC-Forms doesn't do this when the form is submitted, then I guess our software should add functionality to add questionnaire ID to the questionnaire response?
LHC-Forms does leave it up to the application to set QuestionnaireResponse.questionnaire on the response it generates. The reason it does that is that there are some situations in which only the application knows what the questionnaire canonical should be-- for instance, if the user has uploaded a new Questionnaire into the app which needs to be saved to the FHIR server prior to saving the QuestionnaireResponse.
Diane (Dec 13 2021 at 19:58):
Thanks. This makes sense.
Jing Tang (Dec 20 2021 at 12:36):
Looking at this example: http://www.hl7.org/fhir/questionnaireresponse-example-gcs.json.html the questionnaire field is set to a questionnaire id ("Questionnaire/gcs") rather than a canonical url in the corresponding questionnaire http://www.hl7.org/fhir/questionnaire-example-gcs.json.html - should this be corrected?
Lloyd McKenzie (Dec 20 2021 at 15:18):
Yes it should. Can you submit a change request @Jing Tang?
Jing Tang (Dec 20 2021 at 17:41):
done https://jira.hl7.org/browse/FHIR-34530
Last updated: Apr 12 2022 at 19:14 UTC