HttpError
instances (which are thrown when a request has failed) now have aresponse
property that is a reference to the
Response object. This can be used to read response headers or inspect the response in some other way in case of error.- Client requests should now always fail with
HttpError
. Previously they were sometimes being rejected with customError
objects which do not have the response or the status code information. - All the request methods (except for the ones used for refreshing) can now accept new
includeResponse
boolean option. The affected methods are
client.request
,client.create
,client.update
,client.delete
,client.patient.read
,client.user.read
,client.encounter.read
andclient.patient.request
.
Read More - In case of EHR launch the
authorize
function can now be called with an array of options. This makes it possible to pre-configure an
app to be launch-able from multiple EHRs. The right configuration will be picked based on the passediss
url parameter using the new
issMatch
option. Read More