Compose patient, appointment, and coverage context from the EHR and payer systems into a Service Cloud agent desktop in under two seconds — so calls resolve on first contact instead of transferring to clinic staff.
Tags: healthcare, provider, contact-center, salesforce, fhir, scheduling, eligibility
Contact Center Modernization
Objective: An agent answering a patient call has a phone system on one screen, an EHR they can barely navigate on another, and no view of coverage at all — so the call gets transferred to the clinic, which is busy seeing patients. This plan composes patient, appointment, coverage, and balance context into a single agent view at screen pop, and lets the agent complete the common tasks without leaving it.
What's Getting Built
- Agent Context (Experience API) — purpose-built endpoint shaped to the Service Cloud agent desktop that returns composed patient, appointment, coverage, and balance context at screen pop and triggers agent actions ·
GET /agent-context/{patientId}, POST /agent-context/actions/book, POST /agent-context/actions/verify
- Context Composition (Process API) — fans source calls out in parallel, enforces identity verification and per-source degradation, and orchestrates write-back, case routing, and Health Cloud event publication ·
GET /compose/{patientId}, POST /verify, POST /case, PUBLISH call-outcome-event
- EHR System API (System API) — thin FHIR wrapper over the EHR for patient, appointment, and encounter reads, independently monitored ·
GET /Patient/{id}, GET /Appointment, GET /Encounter
- Coverage System API (System API) — thin wrapper over the payer eligibility service with its own timeout and circuit breaker ·
GET /Coverage/{memberId}
- Scheduling System API (System API) — thin wrapper for booking, rescheduling, cancelling, and demographic write-back through the same path the patient portal uses ·
POST /Appointment, PUT /Appointment/{id}, PATCH /Patient/{id}
- Billing System API (System API) — thin wrapper over the billing system for the outstanding balance shown in the agent view, fetched live with its own timeout so a stale amount is never read aloud ·
GET /Account/{patientId}/balance
It builds on two existing plans rather than duplicating them: Appointment Scheduling: Patient Engagement to EHR for booking actions, and Benefits and Eligibility Verification for coverage checks.
Prerequisites
- Anypoint Platform org with API Manager and a latency budget agreed with the contact center team.
- MuleSoft Accelerator for Healthcare assets imported from Exchange, including the scheduling and eligibility use cases this plan composes.
- Salesforce Service Cloud with Health Cloud, plus the CTI or contact center platform that raises the screen pop.
- Epic or Cerner FHIR read access for patient, appointment, and encounter context.
- Agreed identity verification policy — what an agent must confirm before disclosing what.
Choose your path
- Real-time composition — Choose when source systems can meet the latency budget. Always current, nothing to reconcile, and no stale-cache incidents — but every source outage is visible to the agent.
- Pre-synced cache with live overlay — Choose when the EHR cannot answer inside the screen-pop budget or restricts read volume. Cache slow-changing context (demographics, coverage) and fetch volatile items (today's appointments, balance) live. Faster and more resilient, at the cost of a freshness contract you must display.
EHR vendor notes
Epic
- Compose from FHIR Patient, Appointment, Coverage, and Encounter reads on
https://{hostname}/api/FHIR/R4 using backend services OAuth.
- Watch read volume: a contact center at scale generates far more FHIR reads than a portal, and Epic API limits are negotiated, not infinite.
- Screen pop should key on a caller-provided identifier resolved to the Epic MRN, never on phone number alone — households share numbers.
Cerner (Oracle Health)
- Read from
https://fhir-{tenant}.cerner.com/r4/{tenant-id}/; confirm which resources are licensed in your Oracle Health tier before designing the agent view around them.
- Millennium appointment and encounter reads vary in latency by tenant — measure before committing to a real-time composition path.
- Map the Millennium MRN system URI explicitly so agent search returns the same patient the clinic sees.
Architecture
1. Business requirements
- Present patient identity, upcoming and recent appointments, coverage status, and outstanding balance at screen pop.
- Let the agent book, reschedule, or cancel and update demographics without leaving Service Cloud.
- Verify caller identity to policy before any clinical or financial detail is displayed.
- Create a case with full context when the call must go to a clinician, so the patient does not repeat themselves.
- Keep the agent view usable when a source system is down.
2. Agent context composition and the latency budget
- Set an explicit budget — screen pop context in under two seconds — and design to it rather than discovering it in production.
- Fetch sources in parallel, never in sequence, and render progressively so the agent sees identity immediately and coverage a moment later.
- Give every source call its own timeout and circuit breaker; one slow payer API must not hold the whole view.
- Cache only what tolerates being slightly stale, and label it in the UI with its as-of time. An agent reading a stale balance aloud is worse than an agent seeing nothing.
3. Identity verification
- Drive verification from policy configuration, not agent judgment, and record which method was used on every call.
- Resolve the caller to a patient before disclosure — phone number is a hint for the pop, never proof of identity.
- Handle authorized representatives, parents of minors, and proxy access explicitly; these calls are common and the failure mode is a privacy incident.
- Log every context view against the call, because a HIPAA access audit will ask what the agent saw.
4. API design
- Experience API: one purpose-built agent-context endpoint shaped exactly to the desktop — not a generic patient API the UI has to assemble.
- Process API: parallel composition, verification, degradation, and action orchestration.
- System APIs: thin wrappers over EHR, coverage, scheduling, and billing, each independently monitored.
- Reuse the existing scheduling and eligibility Process APIs rather than reimplementing them behind the desktop.
5. Action write-back and case routing
- Write scheduling and demographic changes through the same APIs the patient portal uses, so both channels behave identically.
- Route clinical questions to a case with the composed context attached — the agent's summary plus what they were looking at.
- Make every action idempotent per call so a double-click cannot double-book.
- Publish call outcome and case events back to Health Cloud for the care team's timeline.
6. Degradation and error handling
- Degrade per source rather than failing the view: show what resolved, mark what did not, and never render an empty screen.
- Tell the agent plainly when data is unavailable versus genuinely absent — "coverage unavailable" and "no coverage on file" lead to opposite conversations.
- Retry transient source failures with bounded backoff inside the budget; beyond it, fail fast and show the gap.
- Alert on composition latency at P95, per-source error rate, and circuit-breaker trips — these predict handle-time spikes before the floor reports them.
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 — Composed agent context (Experience API response)
{
"patient": {
"id": "Patient/eXampleMRN",
"name": "Jane M Doe",
"birthDate": "1985-03-15",
"preferredLanguage": "en",
"verificationRequired": ["dateOfBirth", "addressLine1"]
},
"appointments": {
"status": "ok",
"asOf": "2026-02-11T15:04:02Z",
"upcoming": [{
"id": "Appointment/appt-88213",
"start": "2026-02-18T16:00:00Z",
"type": "Cardiology follow-up",
"location": "North Clinic",
"modality": "in-person"
}]
},
"coverage": {
"status": "degraded",
"message": "Payer eligibility service unavailable — last known coverage shown",
"asOf": "2026-02-10T22:15:00Z",
"planName": "Example Health Plan PPO"
},
"balance": { "status": "ok", "amountDue": 42.5, "currency": "USD" }
}
Testing and validation
- Trigger a screen pop for a test patient and confirm identity renders inside the latency budget with appointments and coverage following.
- Take the payer eligibility service offline and confirm the view degrades to a labeled last-known value rather than blanking or erroring.
- Attempt to view clinical detail before completing verification and confirm the policy blocks it and the attempt is logged.
- Book an appointment from the agent desktop and confirm it appears identically in the patient portal — same API, same result.
- Double-submit a booking action and confirm idempotency prevents a duplicate appointment.
Phased rollout
Phase 1 — Connect
- Deploy the agent-context Experience API and connect the EHR and scheduling System APIs in a non-production environment.
- Instrument latency per source from the first day and establish the real budget against measured numbers.
Phase 2 — Map and test
- Pilot with one agent team on read-only context; measure handle time and transfer rate against their own baseline.
- Add scheduling and demographic write-back once read composition holds its latency budget under pilot load.
Phase 3 — Production
- Roll out by team, monitoring P95 composition latency, per-source error rates, and circuit-breaker trips.
- Hand the degradation runbook and source-outage communication path to contact center operations.
Success metrics
- Screen-pop context delivered within the agreed budget at P95 — measure it, do not assume it.
- Transfer rate to clinic staff reduced against the team's pre-integration baseline.
- Average handle time reduced, reported alongside first-contact resolution so speed is not bought with unresolved calls.
- Zero clinical or financial disclosures logged without a completed identity verification.
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 assets on Anypoint Exchange and compose the existing scheduling and eligibility Process APIs rather than writing new ones.
Build the Experience API shaped to the agent desktop — a generic patient API pushes assembly into the UI and the latency budget dies there.
Instrument per-source latency from day one; the composition budget is the design constraint everything else follows from.
Implement degradation before rollout, not after the first outage. The agent view must always render something honest.
Troubleshooting
- Screen pop takes six seconds — Likely cause: source calls are running in sequence, or one slow source has no timeout. Fix: Compose in parallel with a per-source timeout and circuit breaker, and render progressively rather than waiting for the slowest.
- Agent reads out a stale balance — Likely cause: cached financial data rendered without an as-of label. Fix: Fetch volatile values live, and where cached, display the as-of time and mark the field degraded.
- Wrong patient popped — Likely cause: identity resolved from caller phone number, which households and employers share. Fix: Use the phone number to shortlist only, and require verification against policy before any disclosure.
- Duplicate appointments booked from the desktop — Likely cause: no idempotency key on the agent action, so a retried click booked twice. Fix: Key booking actions per call and action, and reuse the portal's booking Process API which already handles holds.
Deliverable: A Service Cloud agent desktop composing patient, appointment, coverage, and balance context inside a measured latency budget, with verification, honest degradation, and write-back through the same APIs the patient portal uses.