SMART on FHIR tutorial code not working

260 views
Skip to first unread message

Loris Nikolov

unread,
Sep 9, 2022, 11:46:46 AM9/9/22
to Cerner FHIR Developers
Hi Cerner team,

I'm currently working through the SMART on FHIR tutorial, and having troubles with the code. After logging in as one of your test patients, I keep getting the error "Failed to call FHIR service". Inspecting the console in chrome dev tools shows the error "No 'state' parameter found in authorization response". 

The error URI I'm getting is giving me the error code urn:cerner:error:authorization-server:smart-v1:grant:launch:mismatched-identity. The Correlation ID is 6f12eda4-e19d-45c6-b042-2ef9e4ee50c5.

I find this very strange, as alongside the basic app I have successfully put together a standalone patient app that pulls immunization data, and that works completely fine. I haven't changed any code from the tutorial for the basic app (the code is slightly different to the code I forked when beginning the tutorial but that all pertains to the standalone app), and have checked over the launch scopes and client ID a million times, but it just won't work. 

Here is the link to the public GitHub repo if that's at all useful to you https://github.com/lorisnikolov55/smart-on-fhir-tutorial.

Any help would be hugely appreciated.

Thanks,
Loris

Fenil Desani (Cerner)

unread,
Sep 12, 2022, 10:23:13 AM9/12/22
to Cerner FHIR Developers
Hello Loris,

Base on the CorrelationID in the post, looks like the App is registered as a Patient App.
You can only launch Patient App using the clientID: de66f28f...

Thanks,
Fenil

Loris Nikolov

unread,
Sep 12, 2022, 11:47:22 AM9/12/22
to cerner-fhir...@googlegroups.com

Hi Fenil,

 

Thanks for your reply. This is the clientID I am currently trying to use to launch the app, and it is not working. Should I not have registered the app as a patient app? Once again, I have set up my standalone app very similarly, and it works completely fine, so this behavior is very odd to me.

 

Cheers,

Loris

 

Sent from Mail for Windows

--
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-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cerner-fhir-developers/b0a58c5a-f445-45cc-98c8-15c53bf2e49dn%40googlegroups.com.

 

Reply all
Reply to author
Forward
0 new messages