Reports - Marketing

Patient ROI

Path/patient-roi
Statustodo
Drill-down pages—
Pop-ups(+1 inline)
Tabs—
API routes/api/data/offices
/api/reports/patient-roi:x

Business rules

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

Database tables & columns

TableColumns used
dh_procedures_current view(columns not named in the SQL)
dentrix_offices(columns not named in the SQL)
dh_appointments(columns not named in the SQL)
dh_patient_proceduresread through the view dh_procedures_current

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • PatientROI.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/
          • office.ts