Retrieving encounterId after launch authorization

24 views
Skip to first unread message

Sathish Gopalan

unread,
Jun 21, 2017, 2:35:49 PM6/21/17
to Cerner FHIR Developers

I would like to retrieve the encounterID after the launch authorization
The documentation indicates that encounterID is returned as json after access token response call.

Is this data returned as POST parameter and how is encounterID retrieved after authorization ?.

Thanks
Sathish

Jenni Syed (Cerner)

unread,
Jun 21, 2017, 3:11:22 PM6/21/17
to cerner-fhir...@googlegroups.com
Sathish,

See the example for the token response here: http://fhir.cerner.com/authorization/#processing-the-authorization-grant-response

encounter and patient fields are returned per the SMART spec you referenced when the app is launched from the EHR. They're returned in the same JSON object as the access_token and other OAuth fields.

You can also see a more full example in the SMART docs here: http://docs.smarthealthit.org/authorization/#for-example-4

You would take the FHIR id for encounter and read the Encounter resource (eg: /Encounter/123abc), similar to what your app may do to read patient already using the context passed back.

~ Jenni
Reply all
Reply to author
Forward
0 new messages