Hi,
We are just starting to implement our app interface to Millennium.
We have registered and have a Standard account with our Account ID, and genrated Token.
We are trying to access sandbox and are getting the following error.
What are we doing wrong?
Thanks,
Hello, the response headers is as below:
{
'content-type': 'application/fhir+json',
'content-length': '175',
connection: 'close',
date: 'Wed, 27 Apr 2022 16:13:25 GMT',
'x-request-id': '3724a13f-26dd-473a-91df-a2656deb6804',
'access-control-allow-origin': '*',
'access-control-expose-headers': 'WWW-Authenticate, X-Request-Id',
'www-authenticate': 'Bearer realm="fhir-ehr-code.cerner.com"',
'x-cache': 'Error from cloudfront',
via: '1.1 1bfde73e7d02732154f58c7e03609d08.cloudfront.net (CloudFront)',
'x-amz-cf-pop': 'HIO50-C2',
'x-amz-cf-id': '8WrTpgWT2-EU68c7oq2IgU5xj8vHQIkzm60UxSzvY1cd6Zwv6VXOlg=='
{
'content-type': 'application/fhir+json',
'content-length': '175',
connection: 'close',
date: 'Thu, 28 Apr 2022 18:08:15 GMT',
'x-request-id': 'd43f1475-3c59-4a7e-bdea-e7711306a8f7',
'access-control-allow-origin': '*',
'access-control-expose-headers': 'WWW-Authenticate, X-Request-Id',
'www-authenticate': 'Bearer realm="fhir-ehr-code.cerner.com"',
'x-cache': 'Error from cloudfront',
via: '1.1 078213358ed22cd95c76373c4ed65b5a.cloudfront.net (CloudFront)',
'x-amz-cf-pop': 'HIO50-C2',
'x-amz-cf-id': 'YM_05VPX_G9VGMCOs1khPbRKa1vlcrixw2ybwN191mB9UDDuRtSOQA=='
}
{
'content-type': 'application/fhir+json',
'content-length': '175',
connection: 'close',
date: 'Thu, 28 Apr 2022 18:05:54 GMT',
'x-request-id': '6a397930-9486-4a14-b246-a0ad37190ea5',
'access-control-allow-origin': '*',
'access-control-expose-headers': 'WWW-Authenticate, X-Request-Id',
'www-authenticate': 'Bearer realm="fhir-ehr-code.cerner.com"',
'x-cache': 'Error from cloudfront',
via: '1.1 38e44b0b4251fbfb70eb0f304e9558fa.cloudfront.net (CloudFront)',
'x-amz-cf-pop': 'HIO50-C2',
'x-amz-cf-id': 'izNxHei6qAzE2KHRFwtt7iviWqttMzk7F2u2U3KjRDRfLLkSzAArDQ=='
}
{
'content-type': 'application/fhir+json',
'content-length': '175',
connection: 'close',
date: 'Thu, 28 Apr 2022 18:41:47 GMT',
'x-request-id': '1873fc39-77b0-4676-83f6-6581d809a8d9',
'access-control-allow-origin': '*',
'access-control-expose-headers': 'WWW-Authenticate, X-Request-Id',
'www-authenticate': 'Bearer realm="fhir-ehr-code.cerner.com"',
'x-cache': 'Error from cloudfront',
via: '1.1 925a9355525ad52853e1025fe231bef8.cloudfront.net (CloudFront)',
'x-amz-cf-pop': 'HIO50-C2',
'x-amz-cf-id': 'J0l9gBlk8uTiasBFJJVq1D82soC3n_7XwuXmOnW7u5Mh4PnFRbz-Ew=='
}
Note: the way to do the Base64 encode for Authorization referred to: https://fhir.cerner.com/authorization/#requesting-authorization-on-behalf-of-a-system
To start development quickly, there is an open source fhir-client JavaScript library that takes care of the OAuth2 handshake and provides a built-in library to call FHIR resources. The library is usable but has several known issues in previous versions. One particular issue is around the usage of the sessionStorage property. Cerner requires that you upgrade the library to version v0.1.10 or higher to correct a known patient safety issue. You also must download and include this additional code into your project to correct this issue.
Other additional FHIR clients are available: