API Reference

The pyx12 public API is organized into the following thematic groups. For an exhaustive auto-generated tree of every module, attribute, and class, see the full pyx12.

Reading and writing X12

Segments and paths

  • pyx12.segment — segment, composite, and element model

  • pyx12.path — X12 path parser (XPath-style references into a transaction)

Validation

  • pyx12.validation — data element type validation (numeric, ID, AN, DT, TM, …)

  • pyx12.codes — external code list lookup (place-of-service, claim status, …)

  • pyx12.dataele — normalized data element catalog

Map interface

  • pyx12.map_if — load and traverse an X12N implementation guide map

  • pyx12.map_index — locate the correct map XML for a given transaction

  • pyx12.map_walker — walk a map tree to find the node matching the next segment

XML rendering

Errors and reporting

Top-level driver