Search for encounters for a specific Patient
This example demonstrates how to search for Encounter resources for 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: aaaaa-bbbbb
Confirm the Patient reference of the Patient you are interested in
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 Encounter 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.