Skip to content
Recipes

X12 270/271 eligibility

Ask a payer whether a patient's coverage is active with an X12 270 and read the 271 reply. The X12 parse and generate steps work today; real-time exchange with a payer is in progress.

In progressThis page describes what's coming, not working steps.

On this page

Before a visit, a healthcare organization checks the patient's coverage. The standard way is an X12 270 eligibility inquiry sent to a payer or clearinghouse, which answers with a 271. This recipe builds the 270 from patient and coverage data, sends it, and turns the 271 into JSON an application can use.

Source and destination

The intended flow takes an inquiry from an application or a schedule, sends a 270 and returns the parsed 271.

flowchart LR
    A[Application or schedule] -->|patient and coverage| B[MedHook engine]
    B -->|270| C[Payer or clearinghouse]
    C -->|271| B
    B -->|coverage as JSON| A
  • Source: a webhook call or a scheduled run with the patient and coverage details.
  • Destination: a payer or clearinghouse endpoint, then back to the caller.

What works today

PartToday
Build a 270Works. The X12 generate transform writes the envelope, segments and control numbers. You supply the 270 segments yourself.
Read a 271Works as a flat segment list. The X12 parse transform returns every segment; there is no loop-aware tree.
Send the 270 in real timeWorks as a building block. The SOAP adapter sends a body template holding the 270 in a SOAP envelope with a WS-Security UsernameToken over mutual TLS. The CAQH CORE envelope fields go in that body template.
A template or guideWe build the eligibility workflow with you during onboarding.

Adapters involved: x12, soap and webhook.

What's coming

  • A loop-aware 270/271 tree (2000A to 2110C loops), so a 271's benefit segments map without custom JavaScript.
  • A ready-made CAQH CORE real-time step that wraps the 270 and unwraps the 271.
  • A built-in template and a guide that returns coverage to the caller as JSON.

Status

In progress. It needs implementation-guide loop parsing and validation for X12. The SOAP transport with WS-Security is available.

Reference