Developer documentation‎ > ‎FHIR® REST API‎ > ‎Resources‎ > ‎Consent‎ > ‎

Examples

Search for consent records for a specific Patient

This example demonstrates how to search for Consent resources for a specific Patient.
  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 you are interested in
    1. The example below assumes a reference of: Patient/00000000-0000-0000-0000-000000000000
  3. Make the call as detailed below, replacing the access token and search parameters with your own values
  4. The matching Consent resources will be returned in the search results
Example Details
Relative URL /Consent
Sandbox example  
Absolute URL https://sandbox.patientsknowbest.com/fhir/Consent?patient=Patient/00000000-0000-0000-0000-000000000000
curl curl -X GET --header "Accept: application/fhir+json" --header "Authorization: Bearer aaaaa-bbbbb" "https://sandbox.patientsknowbest.com/fhir/Consent?patient=Patient/00000000-0000-0000-0000-000000000000"
Comments