Reports - Dental Days
Dental Day Patients
| Path | /dental-day-patients |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+2 inline) |
| Tabs | — |
| API routes | /api/data/dental-day-patients/api/data/offices/api/dentrix/sync/dd-bookings-all |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
bookings | app, calendar_id, created_at, date, dentrix_appointment_id, dentrix_office_id, hour, hubspot_id, id, operatory_id, patient_id, source, status |
calendars | calendar_name, city, dentrix_office_id, hubspot_id, short_code, state, status, street_address, zip_code |
companies | hubspot_id, name, slug |
dentrix_offices | app, dentrix_id, name, timezone |
dh_patients | dentrix_id, insurance_eligible |
operatories | app, dentrix_id, short_name |
patients | app, dentrix_patient_id, dob_encrypted, email_encrypted, first_name_encrypted, has_insurance, hubspot_id, id, last_name_encrypted, legal_sex, patient_type, phone_encrypted, source |
schedules | calendar_id, capacity, date, end_hour, start_hour |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- DentalDayPatients.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/
- DentrixSourceNote.tsx
- HowItWorksNote.tsx
- ReportHeader.tsx
- TableLoading.tsx
- LastSynced.tsx
- TablePagination.tsx
- reports/
- hooks/
- useApi.ts
- useDebounce.ts
- lib/
- booking-status.ts
- services/
- api.ts
- components/
- src/
- worker/
- src/
- routes/
- data.ts
- dentrix.ts
- services/
- phi-read.ts
- utils/
- booking-status.ts
- crypto.ts
- office.ts
- phi-access.ts
- phi-crypto.ts
- routes/
- src/
- web/