We have an epic developer account and we are trying to use the bulk fhir API to download patient data. While fetching the bulk API's we are facing some issues.
Sandbox
payload of the Access token request
grant_type:client_credentials
client_assertion_type:urn:ietf:params:oauth:client-assertion-type:jwt-bearer
client_assertion: <client_assertion>
Got the Access token successfully. Passed in next request (kick-off)
Response - 400 Bad request
{
"resourceType": "OperationOutcome",
"issue": [
{
"severity": "fatal",
"code": "exception",
"diagnostics": "Error processing Bulk Data Kickoff request: Client is not allowed access to any of the requested resource types"
}
]
}