Reports - Dental Days
Patient Count
| Path | /field-patient-count |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+1 inline) |
| Tabs | — |
| API routes | /api/data/field-patient-counts/api/data/offices |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
bookings | app, calendar_id, date, id, patient_id, status |
calendars | calendar_name, city, dentrix_office_id, hubspot_id, requested_by, requested_by_name, short_code, state, status, street_address, zip_code |
companies | hubspot_id, name |
dentrix_offices | app, dentrix_id, name |
patients | app, has_insurance, id |
schedules | calendar_id, capacity, date, end_hour, start_hour |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- FieldPatientCount.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
- TableLoading.tsx
- LastSynced.tsx
- TablePagination.tsx
- reports/
- hooks/
- useApi.ts
- useDebounce.ts
- components/
- src/
- worker/
- src/
- routes/
- data.ts
- utils/
- booking-status.ts
- office.ts
- routes/
- src/
- web/