Examples

Search for a patient's appointments, starting on or after a given date, including their source information

This example demonstrates how to retrieve a patient's upcoming appointments.
  1. Generate an access token by following the OAuth2 walkthrough
    1. The example below assumes you have been granted an access token of: aaaaa-bbbbb
  2. Confirm the Patient reference of the patient
    1. The example below assumes a reference of: Patient/3d8afd18-0844-459a-b3c2-355d02e54c0a
  3. Confirm the date of interest
    1. The example below assumes a date of: 2018-08-01
  4. Make the call as detailed below, replacing the access token and search parameters with your own values
  5. The matching Appointment resources will be returned in the search results

Example Request

This example is written for sandbox.patientsknowbest.com; replace the URL as needed if you are connecting to a different environment.

ExampleDetails
Absolute URLhttps://sandbox.patientsknowbest.com/fhir/Appointment?patient=Patient/3d8afd18-0844-459a-b3c2-355d02e54c0a&date=ge2018-08-01&_revinclude=Provenance:target
curlcurl -X GET --header "Accept: application/fhir+json" --header "Authorization: Bearer aaaaa-bbbbb" "https://sandbox.patientsknowbest.com/fhir/Appointment?patient=Patient/3d8afd18-0844-459a-b3c2-355d02e54c0a&date=ge2018-08-01&_revinclude=Provenance:target"
Comments