Accounts Receivable

Outstanding Claims

Path/outstanding-claims
Statustodo
Drill-down pages—
Pop-ups(+2 inline)
Tabs—
API routes/api/auth/users
/api/data/agent-outstanding-claims
/api/data/agent-outstanding-claims/${encodeURIComponent
/api/data/offices

Business rules

Written when this page is worked on (docs/BUSINESS-RULES.md).

Database tables & columns

TableColumns used
agent_outstanding_claimsaging_bucket, as_of_date, billed, carrier_name, carrier_phone, claim_key, created_date, expected, group_plan, office_name, patient_dob, patient_name, plan_phone, service_date, subscriber_dob, subscriber_name, subscriber_number, subscriber_number_encrypted
agent_outstanding_claims_totalsas_of_date, billed, expected, office_name
dentrix_offices(columns not named in the SQL)
dh_claim_notesclaim_id, note_date, note_id, note_text, note_text_encrypted, source
dh_claimsclaim_id, claim_last_modified, claim_state, last_note_at, last_note_source, last_note_text, last_note_text_encrypted, service_date, subscriber_number, subscriber_number_encrypted, total_charges
dh_ledger_transactions(columns not named in the SQL)
dh_sync_stateid, last_id
outstanding_claim_trackingassigned_to, call_reference, claim_key, claim_status, insurance_paid, last_followup_date, next_followup_date, notes, payer_contact, resolution_date, updated_at, updated_by, write_off

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • OutstandingClaimsReport.tsx

Shared code it uses (followed through its imports and the helpers its API calls; sign-in/access plumbing and UI primitives left out)

  • apps/
    • web/
      • src/
        • components/
          • forms/
            • DatePicker.tsx
          • reports/
            • DentrixSourceNote.tsx
            • HowItWorksNote.tsx
            • ReportHeader.tsx
        • hooks/
          • useApi.ts
    • worker/
      • src/
        • routes/
          • data.ts
        • services/
          • phi-read-dh.ts
          • phi-read.ts
        • utils/
          • crypto.ts
          • office.ts
          • timestamps.ts