Hi, I can't seem to get around a 403 when making a request in the sandbox to a binary URL that's pulled from an /Encounter endpoint response. More specifically, I get the Encounter response, look at the Encounter resource, and pull off the URL from resource.content[0].attachment.url and make a request to it
However, no matter what I try I always get the error
HttpError: 403 Forbidden
URL: https://fhir-ehr-code.cerner.com/r4/{id}/Binary/R-198702576
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "error",
"code": "forbidden",
"diagnostics": "Bearer realm=\"fhir-ehr-code.cerner.com\", error=\"insufficient_scope\"",
"expression": [
"http.Authorization"
]
}
]
}
My scope includes user/Binary.read (we're a provider-app) but also fails even when I include patient/Binary.read or system/Binary.read
All other requests work.
Any tips?