Drive joiner, mover, and leaver events from Workday, UKG, or PeopleSoft into the EHR provider record, directory, ServiceNow, and Salesforce — so a new clinician is productive on day one and a departure removes access the same day.
Tags: healthcare, provider, workforce, workday, servicenow, onboarding, salesforce
Employee and Practitioner Data: Workday to EHR and Salesforce
Objective: A new clinician starts on Monday and spends the week without an EHR login, while someone who left in March still has access in August. Every downstream system is provisioned by a ticket, a spreadsheet, or a favor. This plan makes the HR system the trigger: one joiner, mover, leaver event stream from Workday drives the EHR provider record, directory and access, ServiceNow, and Salesforce, with an auditable trail of who was granted what and when.
What's Getting Built
- HR worker source (System API) — exposes Workday worker events or the nightly RaaS extract as the lifecycle trigger ·
GET /workers, GET /worker-events
- Joiner, Mover, Leaver (Process API) — owns the lifecycle state machine and role-to-entitlement mapping and publishes worker lifecycle events ·
POST /provision, POST /revoke, POST /worker-lifecycle-events
- EHR provider master (System API) — stages and updates the clinical provider record idempotently on worker ID ·
PUT /provider/{workerId}, GET /provider/{workerId}
- Directory and ServiceNow access (System API) — grants and revokes identity-provider and ServiceNow entitlements per role ·
POST /access/{workerId}, DELETE /access/{workerId}
- Salesforce worker (System API) — provisions and disables the Salesforce user and reassigns owned records ·
PUT /user/{workerId}, DELETE /user/{workerId}
- Effective-date and reconciliation (Scheduler) — queues future-dated actions against effective date and runs nightly HR-to-target drift reconciliation ·
SCHEDULER effective-date, SCHEDULER nightly reconcile
Provider-facing attributes published from here feed the Provider and Directory Management golden record — build this one to supply employment truth, not to become a second directory.
Prerequisites
- Anypoint Platform org with a CloudHub, Runtime Fabric, or hybrid deployment target.
- MuleSoft Accelerator for Healthcare API-led project structure imported from Exchange as the starting layout.
- Workday integration system user with RaaS report or outbound subscription access — or the UKG Pro, PeopleSoft, Oracle Cloud, or Infor equivalent.
- Target system credentials: EHR provider master, identity provider or directory, ServiceNow, and Salesforce.
- An agreed access matrix — which role gets which entitlement in which system — signed off before the first flow is built.
Choose your path
- Event-driven — Choose when the HR system can publish worker events as they happen (Workday outbound subscriptions, or a change-detection report on a short interval). Same-day provisioning and same-day revocation, which is the whole point.
- Scheduled full extract — Choose when the HR platform only supports a nightly report, or when you need a reconciliation baseline alongside events. Simpler and more forgiving, but termination-day access removal becomes termination-plus-one.
Architecture
1. Business requirements
- Provision access to every in-scope system before the worker's start date, driven by role rather than by ticket.
- Reflect a transfer, role change, or supervisor change in downstream entitlements without a manual review.
- Revoke access on the termination effective date — same day, every system, no exceptions.
- Keep clinical staff attributes (NPI, license, specialty, department) flowing to the provider record.
- Produce evidence for audit: who had access to what, granted by which event, and when it was removed.
2. Source of truth and record scope
- Workday owns employment: status, job profile, cost center, supervisor, start and end dates.
- Credentialing owns licensure and privileges; HR is not authoritative for either, even when it stores a copy.
- Decide explicitly how contractors, locums, students, and volunteers are represented — they are the population that gets missed, and they are the population with the messiest access.
- Model one worker identity that survives rehire and job change, and keep the cross-reference to every downstream system ID.
3. Joiner, mover, leaver lifecycle
- Joiner: create the identity, provision role-based entitlements, and stage the EHR provider record ahead of the start date so day one is not lost to setup.
- Mover: grant the new role's access and remove the old role's access in the same transaction. Accumulated access from unremoved prior roles is the most common audit finding in any health system.
- Leaver: revoke on the effective date, disable rather than delete for the retention period, and reassign owned records — open cases, patient panels, in-flight approvals.
- Handle the awkward cases deliberately: future-dated hires, rescinded offers, leave of absence, and rehire inside the retention window.
4. API design
- System APIs: one per target — EHR provider master, identity provider, ServiceNow, Salesforce — each idempotent on worker ID.
- Process API: owns the lifecycle state machine and the role-to-entitlement mapping; the only component that decides what someone should have.
- Keep the access matrix in externalized configuration, versioned and reviewable, so a change is a config diff rather than a code change.
- Publish worker lifecycle events for consumers you have not built yet — badge systems, parking, on-call scheduling all eventually ask.
5. Credentialing, licensure, and clinical privileges
- Join HR employment data to credentialing license and privilege data before writing a clinical provider record; neither source alone is sufficient.
- Track expiry dates and drive suspension on lapse — an expired license must remove clinical access without waiting for someone to notice.
- Never let HR data overwrite credentialing-owned fields, and never the reverse. Precedence per field, declared once.
- Log the join decisions, because "why did this clinician have privileges" is a question that gets asked under pressure.
6. Error handling and operations
- Make every provisioning call idempotent on worker ID — replays are routine and must not create duplicate accounts.
- Queue and retry a target system that is down, but never skip a revocation: failed revocations escalate rather than retry silently.
- Reconcile nightly between HR and each target and report drift as a defect with an owner.
- Alert on termination events not confirmed by every system inside the SLA window.
7. Security and compliance
- Encrypt PHI in transit and at rest.
- Audit-log every access to and modification of patient data.
- Enforce minimum-necessary access for integration operators and support users.
For additional HIPAA controls, API policies, and reference security patterns, see the MuleSoft Accelerator for Healthcare on Anypoint Exchange.
Sample payload — Normalized worker lifecycle event (Workday to Process API)
{
"eventType": "worker.transfer",
"eventId": "wd-evt-2026-02-11-004412",
"effectiveDate": "2026-02-16",
"worker": {
"workerId": "W0104432",
"enterpriseId": "jdoe2",
"legalName": { "given": "Jordan", "family": "Doe" },
"workerType": "employee",
"npi": "1234567893"
},
"previousAssignment": {
"jobProfile": "RN II",
"department": "3-North Medical",
"location": "North Campus"
},
"newAssignment": {
"jobProfile": "Nurse Manager",
"department": "Cardiology Clinic",
"location": "North Clinic",
"supervisorWorkerId": "W0100118"
}
}
Testing and validation
- Hire a test worker with a future start date and confirm every in-scope system is provisioned before that date, not on it.
- Transfer the worker between departments and confirm the prior role's entitlements are removed in the same run that grants the new ones.
- Terminate the worker and confirm access is revoked in every system on the effective date, with owned records reassigned.
- Replay the same lifecycle event twice and confirm no duplicate accounts or provider records are created.
- Expire a license date in credentialing and confirm clinical access suspends without an HR event.
Phased rollout
Phase 1 — Connect
- Stand up the HR System API and prove worker events or the nightly extract against a non-production Workday tenant.
- Load the role-to-entitlement matrix for one department and connect a single low-risk target system.
Phase 2 — Map and test
- Run joiner, mover, and leaver in parallel with the existing manual process for a pilot department and compare outcomes case by case.
- Add the EHR provider record and identity provider once the pilot reconciles clean for a full cycle.
Phase 3 — Production
- Expand department by department; monitor same-day revocation and provisioning-before-start-date rates daily during ramp.
- Hand the access matrix change process, drift report, and failed-revocation escalation to IT operations and compliance.
Success metrics
- Access revoked on the termination effective date for 100% of leavers — this is an audit finding, not a target.
- New hires fully provisioned before start date ≥ 98%, measured against the HR start date rather than the ticket date.
- Access-related service desk tickets reduced against the pre-integration baseline.
- Nightly drift between HR and each target system under an agreed threshold, with drift aging tracked.
Configuration checklist
Before first sandbox deploy, complete the shared Healthcare integration configuration checklist — secure property keys, TLS, OAuth, and credential naming conventions are documented once for all Exchange use cases.
8. Implementation starting point
Start from the MuleSoft Accelerator for Healthcare project structure on Anypoint Exchange and keep the System, Process, and Experience separation.
Build the leaver path first. It is the one with audit consequences, and it is the one manual processes handle worst.
Keep the role-to-entitlement matrix in externalized, version-controlled configuration — treat a change to it as a reviewable artifact.
Add a nightly reconciliation between HR and every target from day one; events alone will drift and you want to know by how much.
Troubleshooting
- Terminated worker still has EHR access — Likely cause: the termination event was consumed but the EHR call failed and was retried silently into a dead queue. Fix: Escalate failed revocations immediately rather than retrying quietly, and confirm revocation per system before closing the event.
- Transferred staff accumulate entitlements — Likely cause: the mover path grants new access without removing the previous role's. Fix: Compute the target entitlement set from the new role and reconcile to it, rather than applying grants incrementally.
- Duplicate provider record after rehire — Likely cause: the rehire created a new worker identity instead of reactivating the retained one. Fix: Match on enterprise worker ID and NPI before create, and keep terminated identities disabled through the retention window.
- Future-dated hire provisioned immediately — Likely cause: the event was processed on receipt rather than scheduled against the effective date. Fix: Queue lifecycle actions against effective date and process them on a scheduler, not on arrival.
Deliverable: An event-driven joiner, mover, leaver pipeline from the HR system to the EHR, directory, ServiceNow, and Salesforce, with a versioned access matrix and audit evidence for every grant and revocation.