-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To embed a button on athenahealth EHR #214
Comments
@viku1996chetu The attached document is a copy of a help topic from the athenaPractice/athenaFlow help file. There is a MEL function that can be linked to a button in an encounter form to launch SMART applications. |
Thank you @Torin-Shepard-athena Any pointer will be greatly appreciated. |
@viku1996chetu Follow process at https://mydata.athenahealth.com/access-the-apis to get an access token. POST request to {base_fhir_url}/session/create with valid response body POST to https://apsandbox.fhirapi.athenahealth.com/demoAPIServer/session/create {
"user": "hwinston@sboxprovtenant.com",
"ehrSystem": "cps",
"patientId": "1239620410000620",
"aud": "https://apsandbox.fhirapi.athenahealth.com/demoAPIServer/fhir"
} NOTE: 1239620410000620 = Patient.id for test patient Walter Caldwell. Sample successful response: {
"code": "launch_code_from_session_create_endpoint"
} Now you can invoke your SMART on FHIR application with this launch code. https://{SMART_App_Base_URL}/?launch={launch_code_from_session_create_endpoint}&iss=https://apsandbox.fhirapi.athenahealth.com/demoAPIServer/fhir The SMART app must perform 2 requests to FHIR Server to get access token. SMART app does GET request to FHIR Server authorize endpoint as the first step after being invoked with launch code. NOTE: {launch_code_given_to_invoke_SMART_App} is the same as {launch_code_from_session_create_endpoint} SMART_App_redirect_uri will receive form data response from API Server authorize endpoint with {auth_code_for_launch_session} and state. SMART app exchanges auth code for access token. SMART app will receive access_token that is authorized for the user and patient context specified in the launch session/create request. |
This issue has been responded and no further communication received, Marking as closed. |
Hello Team,
We want to embed a button on AthenaHealth EHR.
When this button is clicked, we would want to launch another web application.
Below are some questions:
Your quick response will be much appreciated.
The text was updated successfully, but these errors were encountered: