Bad Request 400 when

77 views
Skip to first unread message

Craig Hogan

unread,
Mar 15, 2017, 10:32:05 PM3/15/17
to SMART on FHIR
Hi, 

My code was working last week, but now when using patient #19 I cant load heir allergies and am getting a "Bad Request 400" error.

GET https://tw171.open.allscripts.com/FHIR/AllergyIntolerance/?_id=19&_format=json&_format=json HTTP/1.1
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImlNTWJHZ1lScWE5aXFMT3k1eVNYdkdXWmNuVSIsImtpZCI6ImlNTWJHZ1lScWE5aXFMT3k1eVNYdkdXWmNuVSJ9.eyJpc3MiOiJodHRwczovL3R3MTcxLm9wZW4uYWxsc2NyaXB0cy5jb20iLCJhdWQiOiJodHRwczovL3R3MTcxLm9wZW4uYWxsc2NyaXB0cy5jb20vcmVzb3VyY2VzIiwiZXhwIjoxNDg5NjEzNDk2LCJuYmYiOjE0ODk2MTIyOTYsInN1YiI6ImptZWRpY2kiLCJ0d19zZXNzaW9uIjoiZmNjMDNmYjg4ZTRjNWEzYWU5ZTEyNjg0ZGU0MDUzNTQiLCJ0d19wcm92aWRlci1pZCI6IjgyIiwidHdfcmVnLXN5c3RlbSI6IlRvdWNoV29ya3MiLCJ0d19zaXRlLWRlIjoiMiIsImNsaWVudF9pZCI6WyI1QzhEMTY5Ni0yNUEyLTRBREItOTdENi0zREVERkQzNzUzNDkiLCI1YzhkMTY5Ni0yNWEyLTRhZGItOTdkNi0zZGVkZmQzNzUzNDkiXSwiaW5zdGl0dXRpb24iOiIzIiwiZmhpcl9hcGlfaWQiOiI2ZGMxYzIwMC1iMTRmLTQwN2YtOWQ5OC00ZWE4YzNmNTYyN2YiLCJzY29wZSI6WyJsYXVuY2giLCJvcGVuaWQiLCJwcm9maWxlIiwicGF0aWVudC8qLnJlYWQiXSwiYXV0aF90aW1lIjoxNDg5NjExMzQxLCJpZHAiOiJBbGxzY3JpcHRzRkhJUkF1dGhvcml6YXRpb24iLCJhbXIiOlsiUGFzc3dvcmQiXX0.oZGlKgA1xO9I4bVjV0-_odvQi0aPB_8PNflJP3v3ugJz6wIJtArBIsWLFflSEsdjBPWPJ8PT9UdsTx-JeAUvq1fE6TUsDdL7gYWfTTAt7x1Uls5j54VUKGTfSnQI0r7chzGFsHOX46WL6kt4lfIAvlIcLQHCGeD3gB3Le7ZEclNNNxkjkaYpH8jRR6lOEM7b6O3KWCmUPuDpyy_JAvZ4eUKxkKcOlGMAqfdxw9R65YmZz3HooRlhsaHjFSiC6o3mPCzBrXQ9ysF24j2hU5lOQ6_uhU6EU1AXOWrQVAgDbeS8x257eZuxAlhFB9rqxZgIzrwwIEx_c_vKdppU9A3g6MAu60Ztp1iqeVgktRFFU1hHnuSFxutLKO7pI9NLhmhubVBlztcmUx9iuBQ13JjOwJ6TCruE8A520KeuVznF_gEnL-GFuU6CkywP5M1jguBfEP3e-whEN14ZSsnllyGMyJ2I32jLjNRPDzg73MvlqwHS3aMR1hv5_AoUDQO1m4D5Ts3wLq1uKVhMDK3Sww0CwiPPJxzUsyngqHfxteMa5KAiDLfV7RvkIrS8Wq_U2ZgKOrIK8GhjEN07CYUtyB6k9B_9b-3F3ZvIB58PLQFa_xbuTNCK6AWyjwGtKuyV6s6Q18CEOKdm6VhtUpbT10jz1S1FfKnXvcgU6sVr3KB0OhI


Note I have tried ?id=19 as well with the same result. The docs on https://developer.allscripts.com/Content/fhir/content/patient/ mention both options.

The response is:

HTTP/1.1 500 Internal Server Error
Cache-Control: private
Content-Length: 155
Content-Type: application/json+fhir; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE
Access-Control-Allow-Headers: content-Type, accept, origin, X-Requested-With, Authorization, name
Access-Control-Allow-Credentials: true
Date: Wed, 15 Mar 2017 21:28:14 GMT

{"resourceType":"OperationOutcome","text":{"status":"generated","div":"<p>Request Failed.Error:400</p>"},"issue":[{"severity":"fatal","code":"exception"}]}


Am I missing something?
Authorisation and loading the patient works like a dream, does the 400 just mean there is no allergy information for this client?

cheers
Craig


Nikolai Schwertner

unread,
Mar 15, 2017, 10:38:29 PM3/15/17
to smart-...@googlegroups.com
This question would be most appropriate for the AllScripts ADP forum. Generally speaking, the parameter that you should be using would be "patient=19"
--
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages