lforms-fhir-app
lforms-fhir-app copied to clipboard
Add author/source to QuestionnaireResponse
I noticed that the FHIR QuestionnaireResponse does not add the patient and/or user in the json. Using the app I think the user is the source of questionnaire ('The individual or device that answered the questions'). Therefore it seems handy to put this also in the QuestionnaireResponse.
Since we're already in the app and have the info about the user, this does not seem like a big change. Would this be possible to implement?
Thanks for bringing this up. It should be a very simple change. However, the app will be making the assumption that for any questionnaire, the subject should be the selected patient. QuestionnaireResponse.subject's documentation says, "The subject of the questionnaire response. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to...." However, for our demo at least, I think the assumption that it is the patient is fine.
Yes I think the assumption for the demo is fine
Added subject
and author
to questionnaireresponse in the latest version.