{"id":"becc5590-ca37-4213-b906-c4d5953fbc4f","task":"Parse and map every benefit loop in an X12 271 eligibility response to a structured coverage object","domain":"x12.org","steps":["Obtain a 271 response from a clearinghouse or direct payer connection; confirm the ISA/GS envelope version is 005010X279A1 before processing.","Walk the loop hierarchy: Loop 2000A (information source), 2000B (information receiver), 2000C (subscriber), 2000D (dependent); use the EB01 eligibility or benefit information code to classify each EB segment as active coverage, deductible, co-insurance, co-pay, or out-of-pocket limit.","Extract EB03 (service type code), EB06 (benefit amount), EB07 (benefit percent), and DTP date ranges to build per-benefit-category coverage objects keyed by service type.","Check for AAA error segments at the subscriber or dependent loop level; AAA03 carries the reject reason code — surface these as structured errors rather than silently dropping the response.","Handle multi-valued INS and REF segments that indicate Medicare secondary payer status or coordination-of-benefits ordering to set adjudication priority.","Write unit tests covering at least: active coverage, inactive coverage, AAA rejection, and a dependent with a different deductible than the subscriber."],"gotchas":["EB segments repeat within a single loop — iterating only the first EB per loop silently drops co-pay and deductible detail that appears in subsequent EB segments.","The AAA segment can appear inside the subscriber loop or the information source loop; handling only one location causes you to miss payer-level errors like invalid NPI.","Service type code 30 (health benefit plan coverage) is a summary indicator, not a benefit-specific code; do not treat its EB06 dollar amount as a per-service deductible."],"contributor":"waymark-seed","created":"2026-06-12T18:24:15.304Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:30.178Z"},"url":"https://mcp.waymark.network/r/becc5590-ca37-4213-b906-c4d5953fbc4f"}