How do I register in Cerner Sandbox

2,158 views
Skip to first unread message

an...@getreferralmd.com

unread,
Nov 30, 2016, 2:52:03 PM11/30/16
to Cerner FHIR Developers
Hi,

How do I register my application in the Cerner sandbox and obtain a "Client ID"? code.cerner.com has a lot of useful documentation on how to use FHIR but couldn't find anything on the actual registration process to start using those resources.

Thanks
Anish Arora
ReferralMD  

Andrew Torres

unread,
Nov 30, 2016, 3:04:09 PM11/30/16
to Cerner FHIR Developers
You can click the start coding button in the upper right corner of code.cerner.com to access the technical documentation.

-Drew

Andrew Torres

unread,
Nov 30, 2016, 3:05:14 PM11/30/16
to Cerner FHIR Developers
The exact process to register an application is documented on the authorization page[1].


-Drew

On Wednesday, November 30, 2016 at 1:52:03 PM UTC-6, an...@getreferralmd.com wrote:

Mostafa Brazi

unread,
Dec 11, 2016, 10:54:09 PM12/11/16
to Cerner FHIR Developers
Hi Andrew,

I have an issue with cerner registration following the tutorial : http://engineering.cerner.com/smart-on-fhir-tutorial/ , can you please show me steps to follow to integrate with cerner, I already created an app in the console when I click 'begin test' an error uri-redirect slash trailing appear, and "http://engineering.cerner.com/smart-on-fhir-tutorial/" appear when I open my page when should I see the patient info, please can you advise?

Best,
Mostafa

Dennis Patterson

unread,
Dec 12, 2016, 9:51:12 AM12/12/16
to Cerner FHIR Developers
Hi Mostafa!  I'm assuming that you're getting the "urn:cerner:error:authorization-server:oauth2:grant:invalid-redirect-uri-trailing-slash" error.  From our list of authorization server error codes, the description is "The requested redirect URI does not match the one registered for the client application because of a trailing slash at the end of one of the URIs."  Check for an extra trailing slash either in your registered url or in your redirect_uri parameter.

If you aren't able to proceed further, please provide details on what you're sending to the authorization server and what response you are seeing.  Thanks!

Mostafa Brazi

unread,
Dec 12, 2016, 5:00:31 PM12/12/16
to Dennis Patterson, Cerner FHIR Developers
Thanks, Dennis.

My URIs are : 
and I followed step by step the tutorial, and i got message "unauthorized access" when I click begin test on cernercare console in my app.

Can you please advise? 
Thanks again

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/VTyeEVGTCoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.
To post to this group, send email to cerner-fhir-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cerner-fhir-developers/75320233-6c1f-4e5c-9345-9909fd12c710%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kol Kheang

unread,
Dec 12, 2016, 7:13:42 PM12/12/16
to Cerner FHIR Developers, dennis.r....@gmail.com
Hi Mostafa,

I found the issue.  From your app, the redirect_uri that was given to the Authorization server was "https://fhir-cerner-ekare.000webhostapp.com/" (with trailing slash and without index.html).  However, when you registered your redirect_uri in the code console, it was just "https://fhir-cerner-ekare.000webhostapp.com", without the trailing slash.  Our Authorization checks to make sure that the redirect_uri matches before proceeding.  In this case, the trailing slash was missing.  I think GitHub Pages auto append the trailing slash by default.  But since you are hosting your app somewhere else, the trailing slash doesn't get appended by default.

We'll get the tutorial updated.

I had gone ahead and updated the config to include a trailing slash for your redirect_uri since the code console doesn't allow update yet.
Please try launching your application again.

Mostafa Brazi

unread,
Dec 13, 2016, 6:17:36 AM12/13/16
to Kol Kheang, Cerner FHIR Developers, Dennis Patterson
Hi Dennis,

When I tried to access cernercare console, I stuck in this page (attached screeshoot)??

Best

--
You received this message because you are subscribed to a topic in the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cerner-fhir-developers/VTyeEVGTCoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cerner-fhir-developers+unsub...@googlegroups.com.
To post to this group, send email to cerner-fhir-developers@googlegroups.com.
Screen Shot 2016-12-13 at 11.13.00.png

Kol Kheang

unread,
Dec 13, 2016, 10:06:03 AM12/13/16
to Cerner FHIR Developers, kol.k...@gmail.com, dennis.r....@gmail.com
Hi Mostafa,

Please use the following URL to log into code console site: https://code.cerner.com/developer/smart-on-fhir/.

Thanks,
Kol

John Morrison

unread,
Jan 21, 2017, 1:52:41 PM1/21/17
to Cerner FHIR Developers, kol.k...@gmail.com, dennis.r....@gmail.com
I am having a similar issue and was hoping for help.

The app is set up as follows:

Test smart ap


Use the following username and password for login:


Username: portal

Password: portal




App Info


Client Id: dd248a23-cb7e-4fc7-b2e2-398b32609454

SMART Launch URI: https://jfmorrison.github.io/smart-on-fhir-tutorial/example-smart-app/launch.html

Redirect URI: https://jfmorrison.github.io/smart-on-fhir-tutorial/example-smart-app/


App Type: provider

FHIR Spec: dstu2 - "https://fhir-ehr.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca"

Authorized: true


Standard Scopes:

online_access

launch

profile

openid


Patient Scopes:

patient/Observation.read

patient/Patient.read


----------------------------


The error message I receive is:

"SMART on FHIR Starter App" was attempting to request access to healthcare data with FHIR Play Millennium; unfortunately, the application doesnt appear to be compatible. If you require further assistance, please contact support.

If possible, please bookmark this page or take a screen shot of it to expedite the technical support process. For assistance, contact support via:

Information to provide to Technical Support

Correlation ID
cb64271c-0d0b-4e25-ada2-b43e3975c645

Information to provide to SMART on FHIR Starter App

The requested redirect URI does not match the one registered for "SMART on FHIR Starter App".

Error Code
urn:cerner:error:authorization-server:oauth2:grant:invalid-redirect-uri

Additional information can be found in the Cerner FHIR specification



Michele Mottini

unread,
Jan 21, 2017, 2:27:39 PM1/21/17
to Cerner FHIR Developers
I think that for a provider app you should use user and not patient scopes - so user/Observation.read and user/Patient.read

  - Michele
  CareEvolution Inc


John Morrison

unread,
Jan 21, 2017, 2:58:13 PM1/21/17
to Cerner FHIR Developers
I just tried that.  It did not work either. 

Kol Kheang

unread,
Jan 21, 2017, 11:16:49 PM1/21/17
to John Morrison, Cerner FHIR Developers, dennis.r....@gmail.com
Can you try again?  The registration usually takes 15 minutes to be updated.

Thanks,
Kol (Cerner)

Information to provide to Technical Support

Correlation ID
cb64271c-0d0b-4e25-ada2-b43e3975c645

Information to provide to SMART on FHIR Starter App

The requested redirect URI does not match the one registered for "SMART on FHIR Starter App".

Error Code
urn:cerner:error:authorization-server:oauth2:grant:invalid-redirect-uri

Additional information can be found in the Cerner FHIR specification



John Morrison

unread,
Jan 22, 2017, 9:22:12 AM1/22/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Thanks for the reply.  I just checked again and it still does not work

Information to provide to Technical Support

Correlation ID
cb64271c-0d0b-4e25-ada2-b43e3975c645

Information to provide to SMART on FHIR Starter App

The requested redirect URI does not match the one registered for "SMART on FHIR Starter App".

Error Code
urn:cerner:error:authorization-server:oauth2:grant:invalid-redirect-uri

Additional information can be found in the Cerner FHIR specification



Kol Kheang (Cerner)

unread,
Jan 23, 2017, 3:50:48 PM1/23/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
John,

Please update the client id[1] with the one given in the Code Console.

John Morrison

unread,
Jan 24, 2017, 9:07:12 PM1/24/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com

Can you clarify?  This is the most recent error I am getting.



"SMART on FHIR Starter App" was attempting to request access to healthcare data with FHIR Play Millennium; unfortunately, the application doesnt appear to be compatible. If you require further assistance, please contact support.

If possible, please bookmark this page or take a screen shot of it to expedite the technical support process. For assistance, contact support via:

Information to provide to Technical Support

Correlation ID
ba0c0866-bbbe-404a-be5a-24bbf3c03c60

Information to provide to SMART on FHIR Starter App

The requested redirect URI does not match the one registered for "SMART on FHIR Starter App".

Error Code
urn:cerner:error:authorization-server:oauth2:grant:invalid-redirect-uri

Cerner's developer portal may provide useful information to assist in resolving this issue.


John Morrison

unread,
Jan 24, 2017, 9:07:57 PM1/24/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Client ID: 0ce6f5f9-6055-4ddb-90b3-e6821dca9eae

Koushic Thirukonda (Cerner)

unread,
Jan 25, 2017, 9:58:51 AM1/25/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Hi John,

Can you please update the line 13 in your launch.html , 'https://github.com/jfmorrison/smart-on-fhir-tutorial/blob/gh-pages/example-smart-app/launch.html#L13' with the clientId '0ce6f5f9-6055-4ddb-90b3-e6821dca9eaeyou replied with ?

Please try it and let us know if you still have the same issue.

Thanks,
Koushic

John Morrison

unread,
Jan 26, 2017, 6:17:50 AM1/26/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Thanks for the reply, I tried that.  Same type of error

"SMART on FHIR Starter App" was attempting to request access to healthcare data with FHIR Play Millennium; unfortunately, the application doesnt appear to be compatible. If you require further assistance, please contact support.

If possible, please bookmark this page or take a screen shot of it to expedite the technical support process. For assistance, contact support via:

Information to provide to Technical Support

Correlation ID
60899d14-3efe-4e5b-902e-5e595f4d527a

Information to provide to SMART on FHIR Starter App

The requested redirect URI does not match the one registered for "SMART on FHIR Starter App".

Error Code
urn:cerner:error:authorization-server:oauth2:grant:invalid-redirect-uri



Koushic Babu Thirukonda

unread,
Jan 26, 2017, 8:53:15 AM1/26/17
to John Morrison, Cerner FHIR Developers, dennis.r....@gmail.com
Hi John,

Please make sure you make changes to the 'gh-pages' branch and not 'master' branch. Only the changes in the 'gh-pages' branch gets deployed.

Thanks,
Koushic

On Thu, Jan 26, 2017 at 5:17 AM, John Morrison <johnfmor...@gmail.com> wrote:
Thanks for the reply, I tried that.  Same type of error

"SMART on FHIR Starter App" was attempting to request access to healthcare data with FHIR Play Millennium; unfortunately, the application doesnt appear to be compatible. If you require further assistance, please contact support.

If possible, please bookmark this page or take a screen shot of it to expedite the technical support process. For assistance, contact support via:

--
You received this message because you are subscribed to the Google Groups "Cerner FHIR Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cerner-fhir-developers+unsub...@googlegroups.com.

To post to this group, send email to cerner-fhir-developers@googlegroups.com.

John Morrison

unread,
Jan 29, 2017, 9:40:44 PM1/29/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Ok, thank you.  That allowed it to get to a log in screen.  I put the username/password from the development portal: 'portal' for both.  Following that I got the error: Failed to call FHIR Service 


On Thursday, January 26, 2017 at 8:53:15 AM UTC-5, Koushic Thirukonda (Cerner) wrote:
Hi John,

Please make sure you make changes to the 'gh-pages' branch and not 'master' branch. Only the changes in the 'gh-pages' branch gets deployed.

Thanks,
Koushic
On Thu, Jan 26, 2017 at 5:17 AM, John Morrison <johnfmor...@gmail.com> wrote:
Thanks for the reply, I tried that.  Same type of error

"SMART on FHIR Starter App" was attempting to request access to healthcare data with FHIR Play Millennium; unfortunately, the application doesnt appear to be compatible. If you require further assistance, please contact support.

If possible, please bookmark this page or take a screen shot of it to expedite the technical support process. For assistance, contact support via:

To post to this group, send email to cerner-fhir...@googlegroups.com.

John Morrison

unread,
Feb 27, 2017, 7:34:55 PM2/27/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Any thoughts on the FHIR error after trying to log in?


On Thursday, January 26, 2017 at 8:53:15 AM UTC-5, Koushic Thirukonda (Cerner) wrote:
Hi John,

Please make sure you make changes to the 'gh-pages' branch and not 'master' branch. Only the changes in the 'gh-pages' branch gets deployed.

Thanks,
Koushic
On Thu, Jan 26, 2017 at 5:17 AM, John Morrison <johnfmor...@gmail.com> wrote:
Thanks for the reply, I tried that.  Same type of error

"SMART on FHIR Starter App" was attempting to request access to healthcare data with FHIR Play Millennium; unfortunately, the application doesnt appear to be compatible. If you require further assistance, please contact support.

If possible, please bookmark this page or take a screen shot of it to expedite the technical support process. For assistance, contact support via:

To post to this group, send email to cerner-fhir...@googlegroups.com.

Kol Kheang (Cerner)

unread,
Feb 28, 2017, 5:10:28 PM2/28/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Hi John,

I'm very sorry for the delay.  I missed this response.

I looked into the issue and I have found the problem and fixed it.  The issue was that the scope that the app[1] requested didn't match the scopes that were registered in Code Console.  The app requests 'patient' scope where as the registered scopes were for 'user'.  I made the change to be 'patient' specific scope.

Please try to launch the application again.


Thank you,
Kol

Kol Kheang (Cerner)

unread,
Feb 28, 2017, 5:39:00 PM2/28/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Hi John,

We identified and fixed another issue with our FHIR server.  We will deploy the server with the latest fixes tomorrow afternoon.  Please try to launch the app again around 1:00PM CST.

Thank you for your understanding.

- Kol

John Morrison

unread,
Mar 5, 2017, 6:04:51 AM3/5/17
to Cerner FHIR Developers, johnfmor...@gmail.com, dennis.r....@gmail.com
Excellent, that seemed to work!  Thank you!

Vladimir Stankovic

unread,
Nov 1, 2017, 9:47:56 AM11/1/17
to Cerner FHIR Developers
Hi, 

I've similar problem with the Sample App. 

Error code: "urn:cerner:error:authorization-server:oauth2:grant:invalid-redirect-uri-trailing-slash".

Correlation id: aabcf7c6-9f16-422a-b2ef-33bc2d3834b2

Could you please advise how to proceed on this? 

Thanks.

Jenni Syed (Cerner)

unread,
Nov 1, 2017, 10:32:07 AM11/1/17
to Cerner FHIR Developers
That error usually means the redirect url being sent in and the redirect url that is registered differ only by the trailing slash. You should confirm that both URLs either have a slash at the end or do not have a slash at the end (they must match exactly).

~ Jenni

tce...@emory.edu

unread,
Dec 5, 2017, 10:11:36 AM12/5/17
to Cerner FHIR Developers
I've tried it both with and without a trailing slash and still get the 'invalid-redirect-uri-trailing-slash' error.

Jenni Syed (Cerner)

unread,
Dec 5, 2017, 10:27:52 AM12/5/17
to Cerner FHIR Developers
Hi,

Can you let us know your Correlation id from the error? Also, when you say you tried it both ways - are you changing the tutorial code or your registration? Changing the URL in your registration takes 10 or so minutes to take effect.

Also, you may want to start a new thread to troubleshoot (if you're still having issues) so it doesn't get lost in this older thread :)

~ Jenni
Reply all
Reply to author
Forward
0 new messages