Stream: questionnaire
Topic: Patient Contextual Questionnaire
Madhur Rajendran (Jan 21 2021 at 22:38):
I'm trying to implement the Questionnaire resource, for both read by id and search by parameters, but the problem I'm facing is that the Questionnaire is contextual to the patient. Therefore, I need to have access to the patient id the Questionnaire is defined for on a search. There doesn't seem to be any search parameter I can use for this.
Is there any way to support this, apart from making a custom parameter available?
Eric Haas (Jan 21 2021 at 23:08):
the patient is referenced by the QuestionnaireResponse not the Questionnaire. The QuestionnaireResponse also references the Questionnaire. So you can fetch the Questionnaire that way.
for example this fetches both the QR and Q
GET [base]/QuestionnaireResponse?_id=[id]&_include=QuestionnaireResponse:questionnaire
Last updated: Apr 12 2022 at 19:14 UTC