Click here to Skip to main content
15,891,633 members
Articles / Saleforce

Salesforce Apex API Connection to FHIR Server

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
13 Mar 2023CPOL7 min read 6.5K   2  
How to make an API connection (GET, POST) using Salesforce Apex language (very like Java) to a FHIR (Electronic Medical Records) Server
I was asked to make an API for Salesforce (SAS) to replace an expensive API Bus software component that is usually used. I used Lightning Web Components for the UI. That uses JavaScript to call Apex (the Salesforce language derived from Java). The Apex code calls the FHIR (Electronic Health Records) API using a library very like RESTSharp. Since it seemed unusual, I am posting the description and working code here. Unfortunately, this needs some background as well because Salesforce is large and seems poorly known. This code is being put here because for all the Salesforce resources out there, code like this wasn't. The learning curve is nasty, but this code is what you get at the end.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Magellan Health Services
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions