Reports - Marketing
Online Bookings
| Path | /online-bookings |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+3 inline) |
| Tabs | — |
| API routes | /api/data/appointment-bookings/api/data/appointment-bookings/:x/status/api/data/appointment-offices/api/data/offices |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
bookings | app, appointment_for, appointment_type, created_at, date, dentrix_appointment_id, dentrix_office_id, hour, id, patient_id, smile_concerns, source, status |
dentrix_offices | active, app, dentrix_id, display_name, name |
dh_patients | dentrix_id, insurance_eligible |
operatories | active, app, office_id, use_for_booking |
patients | address_encrypted, city_encrypted, dentrix_patient_id, dob_encrypted, email_encrypted, first_name_encrypted, guardian_dob_encrypted, guardian_first_name_encrypted, guardian_last_name_encrypted, guardian_legal_sex, has_insurance, id, insurance_carrier_id, insurance_encrypted, insurance_id_encrypted, insurance_plan_id, last_name_encrypted, legal_sex, patient_type, phone_encrypted, ssn_encrypted, state_encrypted, zip_code |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- OfficeBookings.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
- components/
- src/
- worker/
- src/
- routes/
- data.ts
- services/
- phi-read.ts
- utils/
- crypto.ts
- office.ts
- phi-access.ts
- phi-crypto.ts
- routes/
- src/
- web/