Getting Error in Epic bulk data request

80 views
Skip to first unread message

Pradeep Mishra

unread,
May 11, 2023, 7:18:53 AM5/11/23
to SMART on FHIR
Hi All,

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.
We are getting an error "Error processing Bulk Data Kickoff request: Client is not allowed access to any of the requested resource types".

I am also attaching a postman collection to test those API's


Has someone faced similar issue and what is the solution to this problem ?


Thanks,


Sandbox

ClientId - <clientid>

JWKS endpoint - **https://api.healthwizz.net/apps/v1.1/oauth/jwks**


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)

curl --location 'https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4/Group/e3iabhmS8rsueyz7vaimuiaSmfGvi.QwjVXJANlPOgR83/$export' \
--header 'Accept: application/fhir+json' \
--header 'Prefer: respond-async' \
--header 'Authorization: Bearer <token>' \
--header 'Cookie: EpicPersistenceCookie=<cookie>'


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"
        }
    ]
}
Reply all
Reply to author
Forward
0 new messages