3

I've an Epic App Orchard account, and trying to build a provider facing app and test it using Hyperspace Simulator using SMART on FHIR (OAuth 2.0).

I can launch my SMART on FHIR application within the simulator, and pass patient related information using Token Library. However, I couldn't find a way to pass Practitioner information (who is currently logged-in) to my application.

First I thought %EPICUSERID% token would be the one for practitioner but it's not as it doesn't match with practitioner information that comes with some patients.

Any solution or workaround would be highly appreciated. Thanks.

Amit Joshi
  • 15,448
  • 21
  • 77
  • 141
Azaz ul Haq
  • 1,635
  • 2
  • 18
  • 46

2 Answers2

2

For Epic-specific questions, you can reach out to your App Orchard TS for specific help, however if I'm understanding your question, the issue is more about the difference between the user performing the SMART launch and the patient's PCP.

If the patient is being treated by someone other than their PCP, then the token in the SMART launch will be for the practitioner currently providing treatment (or, more generally, the person doing the launch, which could be billing, registration, or other hospital staff), while the Patient.careProvider would point to the PCP. Patient.careProvider is not the encounter provider for the current encounter (that is on Encounter.participant, or on the CareTeam associated with the Encounter).

Cooper
  • 1,267
  • 11
  • 16
1

According to Epic tutorial on how to use OAuth 2.0 Authorization on SMART on FHIR. [https://open.epic.com/Tutorial/OAuth#][1] Your app can only query the FHIR server with access token.

My understanding is that currently, Epic does not support automated provisioning (they won't send you an Id token to identify the user).