Read Receipts: Search for DocumentReference resources sent by your organisation, on a given date, which have been read by the patient
This example demonstrates how to determine which of your documents have been read by the patient.
This can be achieved by providing your organisation reference, the date of interest, and a status of "READ" as input parameters to the DocumentReference type search.
Generate an access token by following the OAuth 2.0 walkthrough
The example below assumes you have been granted an access token of: aaaaa-bbbbb
Confirm the Organization reference of your own organisation
The example below assumes a reference of: Organization/235a397b-1ae8-4755-9c77-1a0e2fbc5314
Confirm the date of interest
The example below assumes a date of: 2018-08-01
Make the call as detailed below, replacing the access token and search parameters with your own values
The matching DocumentReference resources will be returned in the search results
This example is written for sandbox.patientsknowbest.com; replace the URL as needed if you are connecting to a different environment.