Skip to content

TA1: generate Interchange Acknowledgement when ISA envelope errors detected #121

Description

@azoner

Background

pyx12 generates 997/999 transaction-level acknowledgements but does not currently generate TA1 — the X12 Interchange Acknowledgement that responds to ISA-level (envelope) problems. TA1 is sent in response to issues with the interchange itself (sender/receiver IDs, control numbers, envelope structure) rather than transaction-set content.

Specifics

Two TODO comments flagged this gap:

These comments date from 2003 (~22 years ago) — they predate most of the project's modern history. No user has ever filed for them, so HIPAA-flow users (the project's primary audience) clearly don't need TA1. May matter for non-HIPAA X12 EDI use cases.

Scope

  • Track interchange-level errors (envelope structure, ISA/IEA mismatches, control-number issues) separately from transaction errors
  • On IEA close, if interchange errors were collected, emit a TA1 segment per X12 spec
  • TA1 has its own envelope rules — implementer should consult the X12 standard (or 5010 implementation guide if scoping to HIPAA-adjacent flows)

Priority

Low — no user has requested this in 22 years. Tracking for completeness; close as wontfix if no demand surfaces.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions