Search for responses to a specific questionnaire, completed by a specific patient as a System client
This example demonstrates how to find responses to a specific questionnaire, completed by a specific patient.
Generate an access token by following the OAuth 2.0 walkthrough
The example below assumes you have been granted an access token of: eyJhbGxxxx
Confirm the ID of the Organisation whose questionnaires you are fetching
The example below assumes you have an ID of: 235a397b-1ae8-4755-9c77-1a0e2fbc5314
Confirm the Questionnaire reference
The example below assumes a reference of: Questionnaire/f1a841f1-6f3a-43fc-830f-e1417b4ff13d
Confirm the Patient reference
The example below assumes a reference of: Patient/3d8afd18-0844-459a-b3c2-355d02e54c0a
Make the call as detailed below, replacing the access token and search parameters with your own values
The matching QuestionnaireResponse resources will be returned
This example is written for sandbox.patientsknowbest.com; replace the URL as needed if you are connecting to a different environment.
Note: whilst every effort has been made to ensure that the examples are correct and useful, they do not form part of the official specification.