Repository navigation
x12sdk 2.2.0
Added
- Provider-level adjustments on generated 835s.
generate_835takes
provider_adjustments: a count to invent,ProviderAdjustmentSpecs to
follow (provider_adjustment("WO", "25.00", "PCN000099")), or the default,
which invents one when the claims are invented and none when they are
specified. Rendered as one PLB segment naming the payee, up to six pairs;
BPR02 is derived as the claim payments less the adjustments, and a
specification that would make it negative is rejected.x12sdk-generate 835 --provider-adjustments N. - Employers and disability periods on generated 834s.
EnrolleeSpectakes
employers(up to threeEmployerSpecs, loop 2100D) anddisabilities
(DisabilitySpecs with type, dates and diagnosis, loop 2200). Invented
rosters give every subscriber an employer, a quarter of them a second, and a
fifth of all members a disability period, so the two repeating loops the
audit suite found mis-parsed in 1.1.0 now have generated coverage. X12ModelWriter, the mirror image ofX12ModelReader: a context manager
that collects transaction models and writes them as one interchange when the
block exits, throughwrite_transactions, so envelopes and control numbers
follow the same rules. The destination is a path, an open text stream, or
nothing (the result stays onwriter.interchange). If the block raises,
nothing is written.write()rejects a non-transaction model at the call,
not at the close.x12sdk-generate, a second console script:x12sdk-generate 835 --seed 7 --claims 2 [--out FILE], one subcommand per transaction set. Every option is
a keyword argument of the matchinggenerate_*function, so the command and
the library call produce the same bytes; the README's opening example is now
a command you can paste. The parsing CLI,x12sdk, is unchanged.- Python 3.14 is tested in CI and declared in the package classifiers. The
suite passes unchanged; nothing in the package needed to move.
Changed
- Invented files differ from 2.1.0 for the same seed. A default 835 now
carries a PLB, a default 834 carries employers and disability periods, and
the payee NPI is drawn earlier, so counts-based output (claims=5,
enrollees=5) is not byte-identical to what 2.1.0 produced. Specified
scenarios are unchanged except where they now ask for the new loops. Pin the
x12sdk version where byte-stable fixtures matter.
pip install --upgrade x12sdk
x12sdk-generate 835 --seed 7 --claims 2
Full changelog: https://github.com/owgreen-dev/x12sdk/blob/main/CHANGELOG.md