Verify patient insurance coverage in real time inside Salesforce Health Cloud — X12 270/271 eligibility checks mapped to FHIR CoverageEligibilityResponse so front-desk staff know benefits before the visit.
Benefits and Eligibility Verification
Objective: Perform real-time benefits and eligibility verification so staff can confirm a patient's insurance coverage for medical treatment directly within Salesforce Health Cloud — eliminating phone calls to payers during check-in.
What's Getting Built
- Eligibility Check (Experience API) — eligibility check endpoint invoked from Health Cloud check-in and scheduling flows ·
POST /eligibility/check
- Payer Routing and Normalization (Process API) — routes to the right payer, retries transient failures, and normalizes the 271 into a canonical eligibility model with optional X12-to-FHIR conversion ·
POST /verify, POST /convert/coverage-eligibility-response
- Clearinghouse Connectivity (System API) — terminates clearinghouse or direct-payer X12 transport and exchanges 270/271 ·
POST /270, AS2 SEND 270, RECEIVE 271
- eligibility-cache (Object Store) — recent verifications held with a same-day TTL to cut repeat payer calls at check-in ·
OS retrieve {patient-payer}, OS store {patient-payer}, OS remove {patient-payer}
- Clearinghouse / Payer (target) — adjudicates the X12 270 inquiry and returns the 271 eligibility response ·
270 eligibility inquiry, 271 response
Prerequisites
- Anypoint Platform org with secure properties for payer and clearinghouse credentials.
- MuleSoft Accelerator for Healthcare Benefits and eligibility verification assets imported from Exchange.
- Clearinghouse or direct-payer X12 connectivity (AS2, REST, or VPN as required).
- Salesforce Health Cloud org wired to trigger eligibility checks at scheduling or check-in.
Choose your path
- Clearinghouse connectivity — Choose when you route 270/271 through a clearinghouse (Change Healthcare, Availity, etc.) — one AS2 or REST connection covers many payers with standard companion guides.
- Direct payer connectivity — Choose when a high-volume payer offers direct X12 or REST eligibility — fewer intermediaries and faster dispute resolution, but one System API endpoint per payer.
- X12-only response to Health Cloud — Choose when check-in staff only need normalized copay, deductible, and coverage flags inside Health Cloud — persist the parsed 271 on the encounter record.
- X12 with FHIR CoverageEligibilityResponse downstream — Choose when SMART apps, patient portals, or other FHIR consumers also need eligibility results — use the accelerator's X12-to-FHIR converter on the 271 response.
EHR vendor notes
Epic
- Member ID and group number for the 270 typically come from Epic registration Coverage and guarantor records — map
Coverage.identifier to the 270 subscriber loop.
- Trigger eligibility from PowerChart check-in or MyChart pre-visit flows; persist parsed 271 on the Epic encounter or Health Cloud record per your architecture.
- Epic financial class and payer table IDs must align with clearinghouse payer IDs in your routing table.
Cerner (Oracle Health)
- Pull subscriber and dependent data from Millennium registration Coverage resources — Cerner payer and plan codes differ from Epic and need separate 270 loop mappings.
- Eligibility is commonly triggered at PowerChart check-in; wire the Experience API to the same event Health Cloud or staff workflow uses.
- Validate provider NPI and service location against Cerner billing master — AAA rejections often trace to missing rendering-provider loop fields.
Architecture
1. Business requirements
- Submit eligibility inquiries at scheduling and check-in.
- Return coverage status, copay, deductible, and plan details within seconds.
- Support multiple payers and clearinghouses from one integration layer.
- Store verification results on the patient encounter for audit and billing.
- Re-verify when the date of service crosses plan-year boundaries.
2. Standards and protocols
- Generate X12 270 eligibility inquiry transactions from patient and coverage data.
- Parse X12 271 responses into a canonical eligibility model.
- Optionally expose results as FHIR CoverageEligibilityRequest/Response for SMART apps.
- Use the accelerator's X12 to FHIR converter where FHIR-native consumers exist.
3. API-led connectivity
- Experience API: Eligibility check endpoint invoked from Health Cloud flows.
- Process API: Payer routing, retry logic, and response normalization.
- System API: Clearinghouse or direct-payer connectivity (REST, SOAP, or X12 AS2).
- Cache recent verifications with TTL aligned to check-in workflow (typically same-day).
4. Data mapping
- Map Health Cloud Coverage and Patient records to 270 loop structures.
- Translate 271 benefit types (copay, coinsurance, deductible remaining) to display fields.
- Handle payer-specific extensions and rejection codes with human-readable messages.
- Persist raw 271 alongside the normalized response for billing dispute evidence.
5. Error handling and operations
- Distinguish payer timeouts, invalid member ID, and inactive coverage in responses.
- Retry transient clearinghouse failures; route persistent failures to staff workflow.
- Monitor verification latency and success rate by payer.
- Alert when a major payer endpoint degrades.
6. 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 — X12 270 eligibility inquiry (270/005010X279A1)
ST*270*0001*005010X279A1~
BHT*0022*13*REF123*20260101*1200~
HL*1**20*1~
NM1*PR*2*EXAMPLE PAYER*****PI*PAYERID~
HL*2*1*21*1~
NM1*1P*2*CLINIC*****XX*1234567890~
HL*3*2*22*0~
TRN*1*TRACE001*SUBMITTER~
NM1*IL*1*DOE*JANE****MI*MEMBER123~
DMG*D8*19850315~
EQ*30~
SE*11*0001~
Testing and validation
- Submit a 270 for a known-active member ID; confirm a parsed 271 with copay, deductible, and coverage status returns within the check-in SLA.
- Submit a 270 with an invalid member ID and verify a human-readable rejection message reaches Health Cloud — not a raw X12 segment dump.
- Replay the same patient-payer pair within the configured TTL and confirm cache hit behavior; expire TTL and confirm a fresh 271 is retrieved.
- If FHIR downstream is enabled, verify CoverageEligibilityResponse validates against US Core profiles after X12-to-FHIR conversion.
Phased rollout
Phase 1 — Connect
- Deploy eligibility Process and System APIs; configure clearinghouse or direct-payer sandbox credentials and AS2/TLS transport.
- Wire Health Cloud check-in flow to trigger verification for one pilot clinic.
Phase 2 — Map and test
- Onboard top three payers by volume; map 271 benefit types to Health Cloud display fields and complete Testing and validation.
- Tune same-day cache TTL and human-readable rejection messages with front-desk staff.
Phase 3 — Production
- Add remaining payers and enable scheduling-time verification alongside check-in.
- Monitor latency and success rate by payer; alert when a major endpoint degrades.
Success metrics
- Eligibility verification completes within 5 seconds at P95 during check-in.
- Successful 271 parse rate ≥ 98% for onboarded payers (excluding known inactive coverage).
- Front-desk phone calls to payers for eligibility reduced ≥ 50% versus pre-integration baseline.
- Same-day cache hit rate tuned to balance freshness and payer load — target 40–60% for repeat visits.
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.
7. Implementation starting point
Download the Benefits and eligibility verification assets from the MuleSoft Accelerator for Healthcare on Anypoint Exchange.
Configure clearinghouse or payer credentials in secure properties.
Connect the System API to your X12 transport (AS2 listener/sender or REST gateway).
Wire the Experience API trigger to Salesforce Health Cloud check-in flows.
Use the accelerator's X12-to-FHIR templates if downstream apps require FHIR CoverageEligibilityResponse.
Troubleshooting
- 271 returns inactive coverage for known-good member — Likely cause: wrong payer ID, stale group number, or date-of-service outside plan year. Fix: Verify 270 loop mappings against Health Cloud Coverage and re-run with corrected payer identifiers.
- AAA segment rejection in 271 — Likely cause: invalid member ID format for the payer or missing required provider NPI. Fix: Map AAA codes to staff-readable messages and fix subscriber/dependent loop population.
- Verification times out at check-in — Likely cause: clearinghouse or payer endpoint slow/down. Fix: Retry with bounded backoff; route to manual verification queue and alert payer ops.
- Cached eligibility shows outdated deductible — Likely cause: TTL too long for same-day re-verification needs. Fix: Reduce cache TTL for check-in path or bypass cache when date of service crosses plan-year boundary.
Deliverable: An end-to-end Mule application performing X12 270/271 eligibility verification from Salesforce Health Cloud and persisting the normalized 271 on the patient record.