change practitioner for testing when launch smart app

92 views
Skip to first unread message
Assigned to Fenil....@cerner.com by me

Bo Yuan

unread,
Dec 14, 2021, 2:29:03 PM12/14/21
to Cerner FHIR Developers
Hi Cerner team, 
Is there a way for us to change the practitioner when launch smart app? Currently we are logging in with user name portal, and the practitioner id is 97953483. Is there a way to change it? I did a search with https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Practitioner?_id=97953483, the result is that the practitioner is not found. We would like to have a practitioner that is searchable in https://fhir-ehr-code.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/Practitioner?_id=xxxx.
Thanks.

Fenil Desani (Cerner)

unread,
Dec 14, 2021, 2:56:01 PM12/14/21
to Cerner FHIR Developers
Hello,

From where do you get the Practitioner ID:97953483 ?
If the provider App is launched from the Code Console, you need to usename portal and the Practitioner ID is: 12742069

Thanks,
Fenil

Bo Yuan

unread,
Dec 15, 2021, 8:54:19 PM12/15/21
to cerner-fhir...@googlegroups.com
I get id from responseBody of calling the following api.
@PostMapping(headers = "Content-Type=application/x-www-form-urlencoded")
ZoomResponseEntity<SmartCernerAccessToken> getSmartCernerAccessToken(URI endpoint,@RequestParam("client_id") String client_id, @RequestParam("grant_type") String grant_type, @RequestParam("code") String code,@RequestParam("redirect_uri") String redirect_uri);

There are patient id and encounter id. I would assume encounter id is the practitioner id? The encounter id is not always the same though. 
Or maybe there is another way to obtain the practitioner id?

Zoom Logo for Email Signature.png

Bo Yuan

Java Integration Engineer

Zoom Video Communications

Call (209) 319-0614  I  Click zoom.us  I  Zoom o8cDb1gjRa-75yQ8sIPviw

FB logo.pngTwitter Logo.pngLinkedIn Logo.pngInstagram Logo.png


--
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/jfzGamhZ3_4/unsubscribe.
To unsubscribe from this group and all its topics, 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/b51b4409-231b-4dd9-a468-7f911f2c5fa6n%40googlegroups.com.

Fenil Desani (Cerner)

unread,
Dec 16, 2021, 11:57:47 AM12/16/21
to Cerner FHIR Developers
EncounterId is not a PractitionerId. To retrieve the information about the Practitioner logging in, please refer to http://fhir.cerner.com/authorization/openid-connect/

Bo Yuan

unread,
Dec 16, 2021, 1:59:50 PM12/16/21
to Cerner FHIR Developers
I see that there is the information I needed in the json below, but in the document, it did not mention which api returns it. Can you take a look?

The claims of the identity token in the above example are as follows:

Fenil Desani (Cerner)

unread,
Dec 16, 2021, 3:17:00 PM12/16/21
to Cerner FHIR Developers

Bo Yuan

unread,
Dec 16, 2021, 3:36:07 PM12/16/21
to Cerner FHIR Developers
Then from where may I get the 12742069?

Fenil Desani (Cerner)

unread,
Dec 16, 2021, 3:41:25 PM12/16/21
to Cerner FHIR Developers

Bo Yuan

unread,
Dec 16, 2021, 4:37:17 PM12/16/21
to Cerner FHIR Developers
The id_token is not part of the response from access token. I do have the scope openid included. What would be the solution?

Fenil Desani (Cerner)

unread,
Dec 16, 2021, 4:41:04 PM12/16/21
to Cerner FHIR Developers
Please share your client Id of the App.

Bo Yuan

unread,
Dec 16, 2021, 4:41:37 PM12/16/21
to Cerner FHIR Developers
41d4cd61-d64c-475c-b7af-be376bf7ce71

Fenil Desani (Cerner)

unread,
Dec 16, 2021, 5:16:35 PM12/16/21
to Cerner FHIR Developers
I do see the id_token being passed back to your App successfully. Please check on your side again.

Bo Yuan

unread,
Dec 16, 2021, 5:17:24 PM12/16/21
to Cerner FHIR Developers
can you send me which api you called?

Bo Yuan

unread,
Dec 16, 2021, 6:22:23 PM12/16/21
to Cerner FHIR Developers

Hi Fenil,
I was able to obtain the id_token. With the id_token, how may I use it to get more information?

Bo Yuan

unread,
Dec 16, 2021, 9:16:51 PM12/16/21
to Cerner FHIR Developers
I was able to decode the id_token and get the information I needed. However, how may I find the secret to verify the token?
Reply all
Reply to author
Forward
0 new messages