Developer documentation‎ > ‎FHIR® REST API‎ > ‎Operations‎ > ‎Purview‎ > ‎

Examples

Check the current user's purview

This example demonstrates how to execute the Purview operation.
  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. Make the call as detailed below, replacing the access token with your own value
  3. Your purview will be returned in the operation response

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/Consent/$purview
curlcurl -X GET --header "Accept: application/fhir+json" --header "Authorization: Bearer aaaaa-bbbbb" "https://sandbox.patientsknowbest.com/fhir/Consent/$purview"
Comments