Accounts Receivable

Unsent Claims

Path/unsent-claims
Statustodo
Drill-down pages—
Pop-ups(+3 inline)
Tabs—
API routes/api/data/email-recipients
/api/data/offices
/api/reports/unsent-claims
/api/reports/unsent-claims/notes
/api/reports/unsent-claims/send
/api/reports/unsent-claims/sends

Business rules

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

Database tables & columns

TableColumns used
agent_unsent_claimsamount, carrier_name, claim_id, claim_state, claim_type, created_date, is_predetermination, location_id, location_name, patient_id, patient_name, service_date, subscriber_name, synced_at
dentrix_officesactive, dentrix_id, display_name, name
dh_claim_proceduresclaim_id, patient_id
dh_patient_balancesbalance, patient_id
email_sendsapp, error, lang, provider, recipients, ref, sent_by, status, subject, subject_encrypted, template_key, to_email, to_email_encrypted, to_email_hash
email_templatesactive, bcc_emails, body_en, body_es, from_email, key, reply_to, subject_en, subject_es, to_emails
unsent_claim_notesbiller_request, biller_request_encrypted, claim_id, office_response, office_response_encrypted, updated_at, updated_by
unsent_claim_report_sendsclaim_count, id, office_name, sent_at, sent_by, sent_to, total_amount

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • UnsentClaims.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/
          • reports/
            • DentrixSourceNote.tsx
            • HowItWorksNote.tsx
            • TableLoading.tsx
        • hooks/
          • useApi.ts
        • services/
          • api.ts
    • worker/
      • src/
        • db/
          • index.ts
        • routes/
          • data.ts
          • reports.ts
        • services/
          • email-templates.ts
          • phi-read.ts
        • utils/
          • crypto.ts
          • email.ts
          • office.ts
          • phi-access.ts
          • phi-crypto.ts
          • timestamps.ts