The Electronic Health Record (EHR) has transformed how patient information is managed and accessed in healthcare today. EHRs, or Electronic Health Records, are comprehensive digital documents that provide real-time, patient-focused data to authorized users. They streamline the workflow of healthcare providers by consolidating a patient’s medical history, treatment plans, and test results into one easily accessible record, ultimately enhancing communication and coordination within healthcare teams.
Epic EHR, developed by Epic Systems Corporation, stands out as a leading solution in the EHR market. Known for its user-friendly interface and extensive functionality, Epic EHR supports various aspects of healthcare delivery, including patient management, clinical documentation, and billing. With its scalable design, Epic EHR caters to both large health systems and smaller practices, aiming to improve clinical workflows and patient care through effective data management and integration.
EHR, short for Electronic Health Record, is a digital patient document. An EHR is a real-time, patient-focused record. This gives authorized users immediate and secure access to data. It includes a patient’s medical history, diagnosis, medications, treatment plan, vaccination dates, allergies, radiographs, and laboratory results. EHRs are designed to improve the workflow of healthcare providers and facilitate It is convenient to communicate between them. Their goal is to improve patient care by providing comprehensive and accurate information to health professionals at the point of care.
Epic Systems Corporation is a leading provider of electronic health record (EHR) software. “Epic EHR” refers to the suite of healthcare software solutions developed by Epic Systems. The Epic EHR system is widely used in hospitals. healthcare organization and medical practices throughout the United States and abroad.
Epic EHR has various modules and functionalities to support different aspects. of healthcare delivery, such as patient management Clinical documents Entering orders Decision support Billing Revenue Cycle Management It allows healthcare providers to store and access patient information electronically. Helps to communicate effectively Collaboration and data management within healthcare organizations
Epic EHR is known for its user interface. Collaborative features and scalability This makes it ideal for large health systems as well as small practices to improve clinical workflows. Improve patient care coordination and support healthcare providers in delivering high-quality and effective products. health services and were created.
In this section we will discuss the set-by-set guide for Epic EHR Integration, to get started you will need to create a free account on Epic on FHIR.
When a developer registers an app, the website creates an app record in the Epic database and assigns the app production and non-production client IDs. The steps for a user to register an app are:
After the developer has completed development and testing, they can mark their app ready for production use. The app cannot be used in any community member environments, either production or non-production until the app has been marked ready for production. The steps for a user to activate an app are:
Applications must secure and protect the privacy of patients and their data. To help meet this objective, Epic supports using the OAuth 2.0 framework to authenticate and authorize applications.
To use OAuth 2.0 to authorize your application’s access to patient information, some information needs to be shared between the authorization server and your application:
The app can be launched by any of the following 4 methods:
The app is launched by the EHR calling a launch URL specified in the EHR’s configuration. The EHR launches the launch URL and appends a launch token and the FHIR server’s endpoint URL (ISS parameter) in the query string. The app exchanges the launch token, along with the client identification parameters to get an authorization code and eventually the access token.
Related read: Integrating FHIR Resources with Backend Services: A Comprehensive Guide
The app launches directly to the authorized endpoint outside of an EHR session and requests context from the EHR’s authorization server.
The app is not authorized by a specific person and likely does not have a user interface, and therefore calls EHR web services with system-level authorization.
The app requests access to APIs directly available on the EHR’s desktop application via a local HTTP server.
The app launches directly to the authorized endpoint outside of an EHR session and requests context from the EHR’s authorization server. The steps are as follows:
Your application would like to authenticate the user using the OAuth 2.0 workflow. To initiate this process, your app needs to link (using HTTP GET) to the authorized endpoint and append the following query string parameters:
The EHR’s authorization server reviews the request from your application, authenticates the user (sample credentials found here), and authorizes access. If approved, the authorization server redirects the browser to the redirect URL supplied in the initial request and appends the following query string parameter.
Here’s an example of what the redirect will look like if Epic’s Authorization Server accepts the request:
After receiving the authorization code, your application trades the code for a JSON object containing an access token and contextual information by sending an HTTP POST to the token endpoint using a Content-Type header with a value of “application/x-www-form-urlencoded“.
Access Token Request: If You Are Not Using a Client Secret.
The following parameters are required in the POST body:
Here’s an example of what an HTTP POST request for an access token might look like:
POST https://fhir.epic.com/interconnect-fhir-oauth/oauth2/token HTTP/1.1 Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code&code=yfNg-rSc1t5O2p6jVAZLyY00uOOte5KM1y3YUxqsJQnBKEMNsYqOPTyVqcCH3YXaPkLztO9Rvf7bhLqQTwALHcHN6raxpTbR1eVgV2QyLA_4K0HrJO92et3qRXiXPkj7&redirect_uri=https%3A%2F%2Ffhir.epic.com%2Ftest%2Fsmart&client_id=d45049c3-3441-40ef-ab4d-b9cd86a17225
The authorization server responds to the HTTP POST request with a JSON object that includes an access token. The response contains the following fields:
Note that you can pass additional parameters if needed based on the integration configuration. Here’s an example of what a JSON object including an access token might look like:
{
"access_token": "Nxfve4q3H9TKs5F5vf6kRYAZqzK7j9LHvrg1Bw7fU_07_FdV9aRzLCI1GxOn20LuO2Ahl5RkRnz-p8u1MeYWqA85T8s4Ce3LcgQqIwsTkI7wezBsMduPw_xkVtLzLU2O",
"token_type": "bearer",
"expires_in": 3240,
"scope": "Patient.read Patient.search ",
"patient": "T1wI5bk8n1YVgvWk9D05BmRV0Pi3ECImNSK8DKyKltsMB"
}
The access token obtained from the standalone launch can be now used to call Epic APIs and retrieve the data.
One can also use the “Try it” feature to check the sample response.
The integration of Epic EHR into a healthcare organization can bring about several benefits, including:
Integrating Epic EHR offers numerous benefits and features. This guide has demonstrated how to use OAuth 2.0 for implementing Epic’s authentication and authorization. It also covered various methods for launching an application through Epic and detailed how to retrieve data from Epic endpoints.
The team at Mindbowser was highly professional, patient, and collaborative throughout our engagement. They struck the right balance between offering guidance and taking direction, which made the development process smooth. Although our project wasn’t related to healthcare, we clearly benefited...
Founder, Texas Ranch Security
Mindbowser played a crucial role in helping us bring everything together into a unified, cohesive product. Their commitment to industry-standard coding practices made an enormous difference, allowing developers to seamlessly transition in and out of the project without any confusion....
CEO, MarketsAI
I'm thrilled to be partnering with Mindbowser on our journey with TravelRite. The collaboration has been exceptional, and I’m truly grateful for the dedication and expertise the team has brought to the development process. Their commitment to our mission is...
Founder & CEO, TravelRite
The Mindbowser team's professionalism consistently impressed me. Their commitment to quality shone through in every aspect of the project. They truly went the extra mile, ensuring they understood our needs perfectly and were always willing to invest the time to...
CTO, New Day Therapeutics
I collaborated with Mindbowser for several years on a complex SaaS platform project. They took over a partially completed project and successfully transformed it into a fully functional and robust platform. Throughout the entire process, the quality of their work...
President, E.B. Carlson
Mindbowser and team are professional, talented and very responsive. They got us through a challenging situation with our IOT product successfully. They will be our go to dev team going forward.
Founder, Cascada
Amazing team to work with. Very responsive and very skilled in both front and backend engineering. Looking forward to our next project together.
Co-Founder, Emerge
The team is great to work with. Very professional, on task, and efficient.
Founder, PeriopMD
I can not express enough how pleased we are with the whole team. From the first call and meeting, they took our vision and ran with it. Communication was easy and everyone was flexible to our schedule. I’m excited to...
Founder, Seeke
We had very close go live timeline and Mindbowser team got us live a month before.
CEO, BuyNow WorldWide
If you want a team of great developers, I recommend them for the next project.
Founder, Teach Reach
Mindbowser built both iOS and Android apps for Mindworks, that have stood the test of time. 5 years later they still function quite beautifully. Their team always met their objectives and I'm very happy with the end result. Thank you!
Founder, Mindworks
Mindbowser has delivered a much better quality product than our previous tech vendors. Our product is stable and passed Well Architected Framework Review from AWS.
CEO, PurpleAnt
I am happy to share that we got USD 10k in cloud credits courtesy of our friends at Mindbowser. Thank you Pravin and Ayush, this means a lot to us.
CTO, Shortlist
Mindbowser is one of the reasons that our app is successful. These guys have been a great team.
Founder & CEO, MangoMirror
Kudos for all your hard work and diligence on the Telehealth platform project. You made it possible.
CEO, ThriveHealth
Mindbowser helped us build an awesome iOS app to bring balance to people’s lives.
CEO, SMILINGMIND
They were a very responsive team! Extremely easy to communicate and work with!
Founder & CEO, TotTech
We’ve had very little-to-no hiccups at all—it’s been a really pleasurable experience.
Co-Founder, TEAM8s
Mindbowser was very helpful with explaining the development process and started quickly on the project.
Executive Director of Product Development, Innovation Lab
The greatest benefit we got from Mindbowser is the expertise. Their team has developed apps in all different industries with all types of social proofs.
Co-Founder, Vesica
Mindbowser is professional, efficient and thorough.
Consultant, XPRIZE
Very committed, they create beautiful apps and are very benevolent. They have brilliant Ideas.
Founder, S.T.A.R.S of Wellness
Mindbowser was great; they listened to us a lot and helped us hone in on the actual idea of the app. They had put together fantastic wireframes for us.
Co-Founder, Flat Earth
Ayush was responsive and paired me with the best team member possible, to complete my complex vision and project. Could not be happier.
Founder, Child Life On Call
The team from Mindbowser stayed on task, asked the right questions, and completed the required tasks in a timely fashion! Strong work team!
CEO, SDOH2Health LLC
Mindbowser was easy to work with and hit the ground running, immediately feeling like part of our team.
CEO, Stealth Startup
Mindbowser was an excellent partner in developing my fitness app. They were patient, attentive, & understood my business needs. The end product exceeded my expectations. Thrilled to share it globally.
Owner, Phalanx
Mindbowser's expertise in tech, process & mobile development made them our choice for our app. The team was dedicated to the process & delivered high-quality features on time. They also gave valuable industry advice. Highly recommend them for app development...
Co-Founder, Fox&Fork