Reports - Dental Days
Request Cancel/Reschedule
| Path | /request-cancel-reschedule-dd |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+3 inline) |
| Tabs | — |
| API routes | /api/data/dental-days/cancel-requests/:x/api/data/dental-days/cancel-reschedule |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
bookings | app, appointment_type, calendar_id, date, dentrix_appointment_id, dentrix_office_id, hour, hubspot_id, id, operatory_id, patient_id, smile_concerns, smile_concerns_encrypted, source, status |
calendar_operatory_splits | calendar_id, date, operatory_dentrix_id |
calendars | approved_at, approved_by, calendar_name, city, dentrix_office_id, hubspot_id, hubspot_object_id, id, requested_by, short_code, state, status, street_address, zip_code |
companies | hubspot_id, id, name, slug |
dd_cancel_requests | action, calendar_id, calendar_name, company_name, created_at, id, new_date, reason, requested_by |
dentrix_offices | app, dentrix_id, id, timezone |
dh_providers | dentrix_id, hubspot_label, short_name |
email_recipients | active, email, email_type, notify_types, phone |
email_sends | app, error, lang, provider, recipients, ref, sent_by, status, subject, subject_encrypted, template_key, to_email, to_email_encrypted, to_email_hash |
email_templates | active, bcc_emails, body_en, body_es, from_email, key, reply_to, subject_en, subject_es, to_emails |
operatories | active, app, dentrix_id, office_id, use_for_booking |
patients | dentrix_patient_id, id |
schedules | calendar_id, capacity, date, end_hour, hubspot_id, primary_dentist, start_hour |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- DDCancelReschedule.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
- sortable-grid.tsx
- LastSynced.tsx
- reports/
- contexts/
- AuthContext.tsx
- hooks/
- useApi.ts
- components/
- src/
- worker/
- src/
- db/
- index.ts
- routes/
- data.ts
- services/
- dd-appointments.ts
- email-templates.ts
- utils/
- booking-status.ts
- email.ts
- office.ts
- sms.ts
- db/
- src/
- web/