Reports - Marketing
D Code Counts
| Path | /dcode-counts |
|---|---|
| Status | todo |
| 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
| Table | Columns used |
|---|---|
dh_procedures_current view | ada_code, service_date, status |
dh_dcode_categories | ada_code, ada_code_range_end, ada_code_range_start, category |
dh_patient_procedures | read through the view dh_procedures_current |
dh_sync_state | id, last_synced_at |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- DCodeCountsReport.tsx
- pages/
- src/
- web/
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
- reports/
- hooks/
- useApi.ts
- components/
- src/
- worker/
- src/
- db/
- index.ts
- routes/
- data.ts
- reports.ts
- utils/
- timestamps.ts
- db/
- src/
- web/