Reports - Marketing

D Code Counts

Path/dcode-counts
Statustodo
Drill-down pages—
Pop-ups(+1 inline)
Tabs—
API routes/api/reports/dcode-counts
/api/data/sync-status

Business rules

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

Database tables & columns

TableColumns used
dh_procedures_current viewada_code, service_date, status
dh_dcode_categoriesada_code, ada_code_range_end, ada_code_range_start, category
dh_patient_proceduresread through the view dh_procedures_current
dh_sync_stateid, last_synced_at

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • DCodeCountsReport.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/
            • HowItWorksNote.tsx
          • LastSynced.tsx
        • hooks/
          • useApi.ts
    • worker/
      • src/
        • db/
          • index.ts
        • routes/
          • data.ts
          • reports.ts
        • utils/
          • timestamps.ts