fix(sp41): test all 6 disposition constants + document pipe separator choice

This commit is contained in:
Nora
2026-07-07 21:53:39 -06:00
parent 543422c343
commit 13dd240328
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def write_summary_csv(rows: list[SummaryRow], out_path: Path) -> int:
str(r.visit.billed), str(r.visit.billed),
r.disposition, r.disposition,
str(r.unpaid), str(r.unpaid),
"|".join(r.cas_reasons), "|".join(r.cas_reasons), # pipe-separated; no collision with J-prefixed member IDs or relative file paths
r.file_path, r.file_path,
]) ])
return len(rows) return len(rows)
+2
View File
@@ -39,4 +39,6 @@ def test_disposition_constants():
assert REBILLED_A == "REBILLED_A" assert REBILLED_A == "REBILLED_A"
assert REBILLED_B == "REBILLED_B" assert REBILLED_B == "REBILLED_B"
assert EXCLUDED_CARC == "EXCLUDED_CARC" assert EXCLUDED_CARC == "EXCLUDED_CARC"
assert EXCLUDED_PAYER == "EXCLUDED_PAYER"
assert EXCLUDED_NO_EVV == "EXCLUDED_NO_EVV"
assert EXCLUDED_TIMELY_FILING == "EXCLUDED_TIMELY_FILING" assert EXCLUDED_TIMELY_FILING == "EXCLUDED_TIMELY_FILING"