This template is subject to the conditions of the MuleSoft License Agreement. Review the terms of the license before downloading and using this template. You can use this template for free with the Mule Enterprise Edition, CloudHub, or as a trial in Anypoint Studio.
As a Salesforce Health Cloud user I want a service to request Clinical data from an EHR system to be updated in my Salesforce instance.
This template should serve as a foundation for implementing an API that connects Salesforce Health Cloud with the EHR FHIR System API and EHR to CRM Sync Process API that are provided as part of the Healthcare Templates Solution. The API is defined using RAML and this implementation uses APIkit. SFHC Experience API triggers clinical data migration from the underlying microservices defined in EHR FHIR System API in JSON (FHIR specification version 3.0.1 (STU)).
SFHC Experience API is part of the Healthcare Templates Solution and it is interconnected with EHR FHIR System API(used for retrieving EHR data) and EHR to CRM Sync Process API(used for migrating Clinical data in SFHC Health Cloud). However it is designed to be exposed externally and triggered by SFDC Health Cloud.
To make this Anypoint Template run, there are certain preconditions that must be considered. Failing to do so could lead to unexpected behavior of the template.
This Experience API is meant to be deployed to CloudHub and managed using the API Manager.
- Trigger using SFHC Health Cloud over HTTP
- Interconnect internally with EHR to CRM Sync Process API and EHR FHIR System API, which are deployed within CloudHub.
Simple steps to get Healthcare SFHC Experience API running.
In this section we detail the way you should run your Anypoint Template on your computer.
If you are new to Mule, download this software:
In Studio, click the Exchange X icon in the upper left of the taskbar, log in with your Anypoint Platform credentials, search for the template, and click Open.
After opening your template in Anypoint Studio, follow these steps to run it:
- Locate the properties file
mule.dev.properties
, in src/main/resources. - Complete all the properties in the "Properties to Configure" section.
- Right click the template project folder.
- Hover your mouse over
Run as
. - Click
Mule Application (configure)
. - Inside the dialog, select Environment and set the variable
mule.env
to the valuedev
. - Click
Run
.
Complete all properties in one of the property files, for example in mule.prod.properties
and run your app with the corresponding environment variable to use it. To follow the example, use mule.env=prod
.
After adding your application to Runtime Manager, go to Manage Application > Properties to set the environment variables listed in the "Properties to Configure" section.
In Studio, right click your project name in Package Explorer and select Anypoint Platform > Deploy on CloudHub.
To use this template, you need to configure properties (Credentials, configurations, etc.) either in properties file or in CloudHub as Environment Variables.
- http.port
8081
- ehr2fhir.system.api.host
api_ehr_hostname
- ehr2fhir.system.api.port
8081
- ehr2fhir.system.api.basePath
/api
- ehr2crm.process.api.host
api_ehr2crm_hostname
- ehr2crm.process.api.port
8081
- ehr2crm.process.api.basePath
/api
- ehr2crm.process.api.protocol
HTTP