code wiki / (root) / nx_medbill_charity.nx

nx_medbill_charity.nx

buildroot/runtime/nx_medbill_charity.nx

6001 B112 linesdepth 4pulls 4 transitivereach 4 importersview sourcekind librarytopic medbill
docsdependenciesstructsconstsfunctions

about

nx_medbill_charity.nx -- M-ADV1 of the MEDICAL BILLING & PATIENT ADVOCACY ladder: CHARITY-CARE / FINANCIAL-ASSISTANCE screening + request letter. Tax-exempt hospitals MUST maintain a written Financial Assistance Policy under IRC section 501(r); most FAPs key eligibility to a percentage of the HHS poverty guidelines. This organ screens a household against the CURRENT guidelines (a DATA pack, knowledge/medbill/fpl.list, grounded against the sovereignly-banked aspe.hhs.gov page -- the gate proves pack==source) and renders a FAP application-request letter. FAIL-SAFE: letter goes to a caller buffer only, placeholders keep the patient's identity out of the tool, nothing is ever sent. Thresholds (200/300/400 percent FPL) vary PER HOSPITAL -> the threshold is the caller's data, never hardcoded (#6/#11). Integer math only. license_tier: ORIGINAL

dependencies 2 imports · 3 importers

nx_syscalls.nx nx_medbill_codes.nx nx_medbill_charity.nx nx_healthhelp_site.nx nx_medbill_advocacy_gate.nx nx_medbill_cli.nx

imports: nx_syscalls.nxnx_medbill_codes.nx

imported by: nx_healthhelp_site.nxnx_medbill_advocacy_gate.nxnx_medbill_cli.nx

structs

none

consts

none

functions

15func mbch_fpl(listpath: *u8, region: *u8, household: i64) -> i64
65func mbr10(c: i64) -> i64 { if c >= 48 { if c <= 57 { return 1 } } return 0 }
called by 1: mbch_fpl
68func mbch_pct(income: i64, fpl: i64) -> i64
called by 2: maincli_charity
74func mbch_cat(out: *u8, off: i64, s: *u8) -> i64
called by 1: mbch_letter
80func mbch_n(out: *u8, off: i64, v0: i64) -> i64
called by 1: mbch_letter calls 1: sys_mmap
94func mbch_letter(income: i64, household: i64, pct: i64, out: *u8) -> i64