Reports - Marketing
Procedure ROI
| Path | /procedure-roi |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+1 inline) |
| Tabs | — |
| API routes | /api/data/offices/api/reports/procedure-roi:x |
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, amount, location_id, patient_id, service_date, status |
dentrix_offices | (columns not named in the SQL) |
dh_dcode_categories | ada_code, ada_code_range_end, ada_code_range_start, category |
dh_patient_procedures | read through the view dh_procedures_current |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- ProcedureROI.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/
- office.ts
- db/
- src/
- web/