code wiki / (root) / nx_medbill_recon_gate.nx

nx_medbill_recon_gate.nx

buildroot/runtime/nx_medbill_recon_gate.nx

5737 B113 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic medbill
docsdependenciesstructsconstsfunctions

about

nx_medbill_recon_gate.nx -- M2 GATE: proves bill/EOB TEXT parses into exact structured claim lines (prose/header lines never qualify), reconciliation flags exactly what the EOB does not support (consuming matcher: the duplicate bill line is NOT-ON-EOB; above-allowed gaps in exact cents), the parsed arrays feed the R5 duplicate audit unchanged, and a fully-supported bill yields ZERO flags (neg-control). Fixtures: knowledge/medbill/sample_bill.txt + sample_eob.txt (run from nxc2). Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_medbill_codes.nx nx_medbill_recon.nx nx_fin_audit.nx nx_medbill_recon_gate.nx

imports: nx_syscalls.nxnx_medbill_codes.nxnx_medbill_recon.nxnx_fin_audit.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ mbr_tok_money mbr_is_digit mbr_tok_date mbr_is_digit ↻ mbr_tok_units mbr_is_digit ↻ mbr_tok_code mbr_is_digit ↻ mbr_is_upper mbc_read_all sys_openat_rd sys_read sys_close mbr_ctx_new sys_mmap ↻ mbr_parse mbr_tok_money ↻ mbr_tok_date ↻ mbr_tok_units ↻ mbr_tok_code ↻ mbr_code_at mbr_code_eq mbr_code_at ↻ mbr_geti mbr_recon sys_mmap ↻ mbr_code_at ↻ mbr_geti ↻ mbr_code_eq ↻ code_num mbr_is_digit ↻ aud_duplicates

structs

none

consts

none

functions

12func g_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: chkmain calls 1: sys_write
13func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
26func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
32func code_num(s: *u8) -> i64
called by 1: main calls 1: mbr_is_digit
39func main() -> i64