Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Getting an HTTP 406 when requesting Diagnostic Report form

99 views
Skip to first unread message

Mark Hatoum

unread,
Jun 7, 2018, 8:07:22 PM6/7/18
to Cerner FHIR Developers
Hi

I am trying to GET https://fhir-ehr.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Binary/TR-7765438?patient=4342009 using Bearer and my access token value in the request header from my test app and receive an HTTP 406 response.

How can I resolve?

  • X-Request-Id: 12e55ab218162ed1fac09f78b4344132

Here is some of the other into:

GENERAL
Request Method: GET
Status Code: 406 Not Acceptable
Remote Address: 159.140.7.16:443
Referrer Policy: no-referrer-when-downgrade

REQUEST HEADERS
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: Bearer ..........
Connection: keep-alive
Content-Type: text/html
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

QUERY STRING PARAMETERS
patient: 4342009


RESPONSE HEADERS
Access-Control-Allow-Methods: DELETE, GET, POST, PUT, OPTIONS, HEAD
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Content-Location, Location, X-Request-Id, WWW-Authenticate, Date
Access-Control-Max-Age: 0
Cache-Control: no-cache
Content-Type: text/plain; charset=utf-8
Date: Thu, 07 Jun 2018 23:51:52 GMT
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server-Response-Time: 181.531553
Status: 406 Not Acceptable
Strict-Transport-Security: max-age=631152000
Transfer-Encoding: chunked
Vary: Origin,User-Agent,Accept-Encoding
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Request-Id: 12e55ab218162ed1fac09f78b4344132
X-XSS-Protection: 1; mode=block


-Mark

Madhur Rajendran (Cerner)

unread,
Jun 7, 2018, 8:14:34 PM6/7/18
to Cerner FHIR Developers
Hi Mark,

The Accept type you're using is invalid. We only support the accept types that are outlined on our documentation: https://fhir.cerner.com/millennium/dstu2/infrastructure/binary/#headers

Also, you're calling the Binary endpoint with an id, so you don't need to pass in the patient parameter on the request.


Thanks,
Madhur

Mark Hatoum

unread,
Jun 8, 2018, 12:48:11 PM6/8/18
to Cerner FHIR Developers
Thanks Madhur! That resolved the issue.

-Mark
Reply all
Reply to author
Forward
0 new messages