DocumentReference 401 Unauthorized

48 views
Skip to first unread message

pavan....@emorphis.com

unread,
Apr 7, 2021, 1:03:09 PM4/7/21
to Cerner FHIR Developers
Hello,

We are  calling DocumentReference Api and getting Error Status code:401 Unauthorized
We are able to call Search patient using the same auth token but getting issue while calling DocumentReference.
Is there any extra setting on account required?

Response:
{
    "resourceType": "OperationOutcome",
    "issue": [
        {
            "severity": "error",
            "code": "login",
            "diagnostics": "Bearer realm=\"fhir-ehr-code.cerner.com\"",
            "expression": [
                "http.Authorization"
            ]
        }
    ]
}


Aaron McGinn (Cerner)

unread,
Apr 7, 2021, 1:12:37 PM4/7/21
to Cerner FHIR Developers
Per our group guidelines, can you provide the X-Request-Id from the response headers?

-Aaron (Cerner)

pavan....@emorphis.com

unread,
Apr 8, 2021, 1:17:47 AM4/8/21
to Cerner FHIR Developers
Hello Aaron,

The X-Request-Id is : 00297b72-f6d6-4390-88c7-2eae1c312b29

Aaron McGinn (Cerner)

unread,
Apr 8, 2021, 12:23:41 PM4/8/21
to Cerner FHIR Developers
The ID you posted shows that you did not provide an Authorization Token in your request.

-Aaron (Cerner)

pavan....@emorphis.com

unread,
Apr 9, 2021, 9:54:05 AM4/9/21
to Cerner FHIR Developers
Thanks,

I supplied token correctly and got error=\"insufficient_scope\
X-Request-Id:  07e74d34-f341-4799-93a5-aa911ece113d

Can you please look into that suggest me what next to do.



Aaron McGinn (Cerner)

unread,
Apr 9, 2021, 4:35:22 PM4/9/21
to Cerner FHIR Developers
The token you provided in the request has "system/Observation.read" and "system/Patient.read" but not DocumentReference.

-Aaron (Cerner)
Reply all
Reply to author
Forward
0 new messages