lforms-fhir-app icon indicating copy to clipboard operation
lforms-fhir-app copied to clipboard

Add author/source to QuestionnaireResponse

Open annabel-uzl opened this issue 1 year ago • 2 comments

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?

annabel-uzl avatar Feb 07 '24 10:02 annabel-uzl

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.

plynchnlm avatar Feb 07 '24 21:02 plynchnlm

Yes I think the assumption for the demo is fine

annabel-uzl avatar Feb 08 '24 07:02 annabel-uzl

Added subject and author to questionnaireresponse in the latest version.

jcy1225 avatar May 23 '24 20:05 jcy1225