code wiki / (root) / nx_fin_dispute.nx

nx_fin_dispute.nx

buildroot/runtime/nx_fin_dispute.nx

6255 B95 linesdepth 3pulls 3 transitivereach 4 importersview sourcekind librarytopic fin
docsdependenciesstructsconstsfunctions

about

nx_fin_dispute.nx -- R8 (fail-safe execute) of THE NISHI FINANCIAL ECOSYSTEM: turn audit findings into a filled, ready-to-send MEDICAL-BILL DISPUTE LETTER. This is the "executing -> reducing costs" verb for the operator's cancer-billing crisis: the engine renders the artifact, the OPERATOR reviews and sends it. NEVER-BRICK / FAIL-SAFE BY CONSTRUCTION (#26): disp_build writes ONLY into a caller buffer -- it has no socket, no file send, no transmit. It can NEVER auto-send a dispute, mail a letter, or take an irreversible action. It produces text; a human decides what to do with it. Amounts are exact no-float cents (nx_money). Reasons are cited to standard billing-integrity grounds (duplicate / NCCI unbundling / Medically Unlikely Edits / reasonable-charge benchmark) + FDCPA dispute + No Surprises Act, grounded on the fetched corpus (fin_r3_no_surprises_act, fin_r6_fdcpa, fin_r10_cpt/medicare). PRIVACY: patient/ provider/account are caller-supplied (operator's specifics stay LOCAL; never enter web queries). reason codes: 1=duplicate, 2=unbundling, 3=MUE over-units, 4=fair-price. license_tier: ORIGINAL

dependencies 2 imports · 3 importers

nx_syscalls.nx nx_money.nx nx_fin_dispute.nx nx_fin_dispute_gate.nx nx_healthhelp_site.nx nx_medbill_cli.nx

imports: nx_syscalls.nxnx_money.nx

imported by: nx_fin_dispute_gate.nxnx_healthhelp_site.nxnx_medbill_cli.nx

structs

none

consts

15const K_MAGIC_10000: i64 = 10000

functions

17func d_cat(out: *u8, off: i64, s: *u8) -> i64
called by 2: d_reasondisp_build
22func d_n(out: *u8, off: i64, v: i64) -> i64
called by 3: d_moneyd_datedisp_build calls 1: sys_mmap
30func d_n2(out: *u8, off: i64, v: i64) -> i64
called by 2: d_moneyd_date
35func d_money(out: *u8, off: i64, cents: i64) -> i64
called by 1: disp_build calls 2: d_nd_n2
47func d_date(out: *u8, off: i64, ymd: i64) -> i64
called by 1: disp_build calls 2: d_nd_n2
58func d_reason(out: *u8, off: i64, code: i64) -> i64
called by 1: disp_build calls 1: d_cat
72func disp_build(patient: *u8, provider: *u8, account: *u8, reasons: *i64, cpts: *i64, fdates: *i64, amounts: *i64, nf: i64, out: *u8) -> i64