code wiki / (root) / nx_medbill_civic.nx

nx_medbill_civic.nx

buildroot/runtime/nx_medbill_civic.nx

11517 B222 linesdepth 4pulls 5 transitivereach 4 importersview sourcekind librarytopic medbill
docsdependenciesstructsconstsfunctions

about

nx_medbill_civic.nx -- ADV5 of the MEDICAL BILLING & PATIENT ADVOCACY ladder: CIVIC ESCALATION with MEASURED ACCOUNTABILITY. When the direct tools (dispute/appeal/charity/NSA) hit a wall, the patient can CHOOSE to escalate to the oversight body that owns the problem. This organ (1) routes an issue to its channel, (2) renders the complaint/pattern letter, (3) keeps an additive CASE LEDGER of what the user actually sent, and (4) computes a per-channel ACCOUNTABILITY SCORECARD -- responded/resolved/ OVERDUE against each channel's expected-response window -- so "are they moving to fix this" is a MEASURED verdict, never an assertion. STRICTLY OPT-IN + FAIL-SAFE: letters are placeholder text in a caller buffer, the ledger records only what the user says they sent, nothing is ever transmitted. NEUTRALITY: letters state facts and request action/answers; they push no narrative and no party. Issues: 1=insurer claim-handling/denial misconduct -> DOI · 2=surprise-billing protection violation -> CMS-NSA · 3=charity-care/501(r) obligations not honored -> IRS 13909 · 4=abusive collection or credit reporting on disputed debt -> CFPB · 5=suspected billing fraud (duplicates/unbundling/upcoding) -> HHS-OIG · 6=systemic-reform story to an elected representative -> REP. Channels + expected-response windows are DATA (knowledge/medbill/civic_channels.list, #11). Case records live on the sovereign seg-store (additive, latest-wins; segid=now_us). Deadlines reuse the shared leap-safe calendar (DRY). license_tier: ORIGINAL

dependencies 4 imports · 3 importers

nx_syscalls.nx nx_seg_store.nx nx_medbill_codes.nx nx_medbill_appeal.nx nx_medbill_civic.nx nx_healthhelp_site.nx nx_medbill_civic_gate.nx nx_medbill_cli.nx

imports: nx_syscalls.nxnx_seg_store.nxnx_medbill_codes.nxnx_medbill_appeal.nx

imported by: nx_healthhelp_site.nxnx_medbill_civic_gate.nxnx_medbill_cli.nx

structs

none

consts

none

functions

23func cv_route(issue: i64) -> i64
34func cv_expect(listpath: *u8, channel: i64) -> i64
68func cv_key(id: *u8, out: *u8) -> i64
called by 2: cv_wcv_get calls 1: mbc_app
75func cv_w(prefix: *u8, id: *u8, rec: *u8) -> i64
84func cv_get(prefix: *u8, id: *u8, out: *u8, cap: i64) -> i64
100func cv_num(out: *u8, off: i64, v0: i64) -> i64
called by 2: cv_case_opencv_case_set calls 1: sys_mmap
111func cv_case_open(prefix: *u8, id: *u8, issue: i64, sent_ymd: i64) -> i64
133func cv_f(rec: *u8, idx: i64) -> i64
153func cv_case_set(prefix: *u8, id: *u8, status: i64, ymd: i64) -> i64
175func cv_followup(sent_ymd: i64, expect_days: i64) -> i64 { return mba_add_days(sent_ymd, expect_days) }
179func cv_verdict(status: i64, sent_ymd: i64, expect_days: i64, today: i64) -> i64
called by 2: maincli_civic_board calls 1: cv_followup
187func cv_letter(issue: i64, out: *u8) -> i64
called by 3: hh_pagemaincli_civic_route calls 1: mba_cat