Skip to main content

2.9 EDI trading partners and submission routing

Outcome

Outbound 837s are correctly enveloped (ISA/GS/ST), routed to the right trading partner, and inbound 277CA / 835 / 271 files are picked up and posted.

Prerequisites

  • 2.8 Ingestion complete.
  • The customer has provided their submitter ID and credentials with each clearinghouse / payer.

EDI envelope hierarchy

Steps

  1. Register the trading partner (master DB, platform action)

    Most clearinghouses are already in the master rcm_master.trading_partner table. If the customer uses one not yet registered, add it:

    Admin → Trading partners → Add

    FieldExample
    NameAvaility
    Partner codeAVAILITY
    Connection config{ "protocol": "SFTP", "host": "ftp.availity.com", "port": 22, … }
    Inbound path/inbound
    Outbound path/outbound

    Credentials live in Key Vault, not in this row.

  2. Configure the customer's submitter ID with each partner

    Impersonate the tenant → Admin → EDI → Submitter IDs → Add

    FieldExample
    Trading partnerAvaility
    Submitter IDACME001 (provided by the customer)
    Submitter nameAcme Behavioral Health
    Receiver IDsone row per payer routed through this partner
  3. Set the X12 envelope defaults (per partner + tx type)

    Admin → EDI → Envelopes → Add

    FieldExample
    PartnerAvaility
    Tx type837P
    ISA sender IDACME001
    ISA sender qualifierZZ
    ISA receiver ID030240928 (Availity prod)
    GS application senderACME001
    GS version005010X222A1
    Acknowledgment requestedyes
    Test indicatorT (test) or P (production)

    The platform uses these to build the envelope; never hand-edit X12 in the database.

  4. Define submission routing rules

    Admin → EDI → Submission routing → Add rule

    FieldExample
    Matchpayer.electronic_payer_id = 'OH054'
    Route viaAvaility
    Tx type837P
    Effective2026-01-01
    Priority100

    Routing rules pick the cheapest valid route at submission time. Multiple rules can match — priority breaks ties.

  5. Optional: configure companion-guide overrides

    For payers with their own quirks (Ohio MITS, Indiana Medicaid, etc.), the master DB ships companion-guide rules. Override only if the customer has a non-standard contract.

  6. Run a partner test cycle

    Most clearinghouses require a test certification before flipping to production:

    1. Set the envelope Test indicator = T in step 3.
    2. Submit a small test claim batch (3–5 claims).
    3. Wait for the partner's TA1/999/277CA acknowledgments.
    4. Iterate until clean.
    5. Get partner approval (email confirmation typically).
    6. Flip envelope Test indicator = P and re-test with one claim.

Validation

CheckExpected
rcm_master.trading_partner rowexists for every partner the customer uses
Tenant edi.envelope_config rowsone per (partner, tx type)
Submission routingdry-run shows correct partner for each payer
Test partner cyclepartner-issued go-live approval

Troubleshooting

SymptomLikely causeFix
Outbound 837 rejected with TA1 errorISA segment misformattedInspect the file in Admin → EDI → Outbound batches → <batch> → Raw; compare to companion guide.
999 with status RFunctional ack rejectedRead the AK3/AK4 segments — they identify the offending segment + element.
277CA A2 — Acknowledged for some, A6 — Rejected for othersPer-claim issues, not envelopeDrill into the rejected claim's STC segment for the reason code.
Inbound 835 sits in Receivables → UncategorizedPayer ID mismatch on paymentConfirm the BPR06 payer identifier matches rcm_master.payer.electronic_payer_id.

Next

2.10 — Users and RBAC