New: CodeSierra Studio turns your policies and SOPs into narrated video courses. Join the private beta →
HomeSolutions OverviewAll solutionsSalesforce ImplementationSalesforce ConsultingSalesforce DevelopmentSalesforce IntegrationSalesforce Managed ServicesAgentforce ImplementationSalesforce CustomizationSalesforce Data MigrationCPQ & Revenue CloudReports & DashboardsExperience Cloud PortalsHire a Salesforce DeveloperIndustries We ServeAll industriesHealthcareFinancial ServicesManufacturingRetail & E-commerceReal EstateLogisticsNon-ProfitEducationMoreCodeSierra StudioCase StudiesPricingCoursesBlogCareersAbout UsGet Started
Medical front-desk administrator booking an appointment on an abstract calendar
Healthcare

Health Cloud and athenahealth integrated through MuleSoft for patients and appointments

athenahealth held the patient record; the contact centre worked in Health Cloud. We connected them through MuleSoft so patients, slots and bookings stay in step without double entry.

Discuss a similar project
athenahealthEHR connected
MuleSoftIntegration layer
FHIR + proprietaryAPI mix handled
HealthcareIndustry
The client

Project overview

Our client, a healthcare organisation, runs athenahealth as its EHR and practice management system. It added Salesforce Health Cloud for patient engagement, contact centre work and administrative workflows.

Running two systems meant patients and appointments had to stay in step without double entry or conflicting updates. We built the integration through MuleSoft, using FHIR where athenahealth supports it and athenahealth's own APIs where it does not.

What was not working

The challenge

Patient data in two places

Demographics lived in athenahealth, engagement activity in Salesforce.

Appointment coordination

Contact centre staff needed live access to availability and bookings.

Mixed API standards

Some operations use FHIR; scheduling relies on athenahealth-specific APIs.

Identity and mapping

Patient identifiers and demographics had to match reliably across systems.

Reliability

Authentication, error handling and monitoring had to be production grade.

Our solution

What we built

Patient synchronisation

Each data domain has one master system, so the two never overwrite each other.

  • Patient registration from Salesforce
  • Demographic retrieval and updates
  • Patient matching to prevent duplicates
  • External patient ID mapping
  • Sync status on the record

FHIR mapping

FHIR resources such as Patient, Practitioner, Organization and Encounter map to Health Cloud's clinical data model, with transformation in the integration layer.

Appointment management

Contact centre staff book directly from Health Cloud.

  • Provider availability and open slots
  • Booking, rescheduling and cancellation
  • Appointment status sync back to Salesforce

MuleSoft API-led design

The integration follows MuleSoft's layered pattern.

  • Experience layer: Health Cloud users start patient and appointment operations
  • Process APIs: coordinate the workflow across both systems
  • System APIs: talk to Salesforce and athenahealth endpoints
  • DataWeave transformation and validation between formats

Error management

Authentication failures, invalid patient data, duplicate patients and booking conflicts are caught, logged and alerted, with retries where safe.

Security

OAuth where supported, secure credential storage, encrypted transport, minimum necessary data, role-based Salesforce permissions and full auditability.

Solution architecture

Health Cloud and athenahealth integration architecture

Health Cloud
  • Contact centre users
  • Patient records
  • Appointment console
MuleSoft process layer
  • Experience API
  • Patient process API
  • Scheduling process API
MuleSoft system layer
  • Salesforce system API
  • athenahealth system API
  • DataWeave mapping
athenahealth
  • FHIR resources
  • Scheduling APIs
  • Patient record (master)
Health Cloud calls MuleSoft Experience and Process APIs; System APIs reach athenahealth over FHIR and its proprietary scheduling APIs.
What changed

Results

  • Contact centre staff find, register and update patients from Health Cloud without re-keying into athenahealth.
  • Appointments are booked, moved and cancelled from Salesforce against live availability.
  • Each data domain has one system of record, so updates do not conflict.
  • Failed calls are logged, alerted and retried instead of failing silently.
  • New healthcare systems can plug into the same MuleSoft APIs later.
Answers

Questions about this project