nx_medbill_cli.nx
buildroot/runtime/nx_medbill_cli.nx
about
nx_medbill_cli.nx -- M1 front door: drive the medical-billing code-pack store from the command line
(features-must-be-frontend-testable). Two verbs over the DURABLE store knowledge/store/medbill-:
nx_medbill_cli ingest -- load knowledge/medbill/codes_seed.list (data): 3-field rows
ingest official NLM responses, 4-field rows store curated
entries with visible provenance. Idempotent (latest-wins).
nx_medbill_cli lookup <code> -- decode one code: CODE (SYSTEM): descriptor [source: cite]
unknown code prints UNKNOWN and exits 1 (never fabricates).
license_tier: ORIGINAL
dependencies 11 imports · 0 importers
diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_itoa_lib.nxnx_medbill_codes.nxnx_medbill_recon.nxnx_fin_audit.nxnx_fin_dispute.nxnx_medbill_charity.nxnx_medbill_appeal.nxnx_medbill_nsa.nxnx_medbill_civic.nxnx_healthhelp_site.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 20 | const K_MAGIC_262144: i64 = 262144 |
| 21 | const K_MAGIC_1024: i64 = 1024 |
| 22 | const K_MAGIC_4096: i64 = 4096 |
| 23 | const K_MAGIC_10000: i64 = 10000 |
| 24 | const K_MAGIC_2048: i64 = 2048 |
| 25 | const K_MAGIC_16384: i64 = 16384 |
| 26 | const K_MAGIC_19000101: i64 = 19000101 |
| 27 | const K_MAGIC_40000: i64 = 40000 |
| 28 | const K_MAGIC_65536: i64 = 65536 |
functions
| 30 | func c_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 35 | func c_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 38 | func cli_split(line: *u8, ln: i64, f0: *u8, f1: *u8, f2: *u8, f3: *u8) -> i64 called by 1: cli_ingest |
| 65 | func cli_ingest(prefix: *u8) -> i64 |
| 117 | func c_money(v: i64) -> i64 |
| 127 | func c_date(d: i64) -> i64 |
| 140 | func c_codenum(s: *u8) -> i64 |
| 148 | func cli_rline(prefix: *u8, ctx: *i64, i: i64, rec: *u8) -> i64 |
| 169 | func cli_review(prefix: *u8, billpath: *u8, eobpath: *u8, haveeob: i64) -> i64 |
| 260 | func cli_letter(billpath: *u8, eobpath: *u8) -> i64 |
| 339 | func c_atoi(s: *u8) -> i64 |
| 347 | func cli_charity(income: i64, household: i64, region: *u8) -> i64 |
| 371 | func cli_appeal(reason: i64, denial: i64) -> i64 |
| 384 | func cli_nsa(flags: *i64, over: i64, bill: i64) -> i64 |
| 401 | func cli_civic_route(issue: i64) -> i64 |
| 417 | func cli_civic_open(prefix: *u8, id: *u8, issue: i64, sent: i64) -> i64 |
| 437 | func cli_civic_board(prefix: *u8, today: i64) -> i64 |
| 503 | func cli_deadline(kind: *u8, base: i64, channel: i64) -> i64 |
| 543 | func cli_lookup(prefix: *u8, code: *u8) -> i64 |
| 566 | func main(argc: i64, argv: *i64) -> i64 |