
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.
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.
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.
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.
Health Cloud and athenahealth integration architecture
- Contact centre users
- Patient records
- Appointment console
- Experience API
- Patient process API
- Scheduling process API
- Salesforce system API
- athenahealth system API
- DataWeave mapping
- FHIR resources
- Scheduling APIs
- Patient record (master)
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.


