Reports - Dental Days

Request Cancel/Reschedule

Path/request-cancel-reschedule-dd
Statustodo
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

TableColumns used
bookingsapp, 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_splitscalendar_id, date, operatory_dentrix_id
calendarsapproved_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
companieshubspot_id, id, name, slug
dd_cancel_requestsaction, calendar_id, calendar_name, company_name, created_at, id, new_date, reason, requested_by
dentrix_officesapp, dentrix_id, id, timezone
dh_providersdentrix_id, hubspot_label, short_name
email_recipientsactive, email, email_type, notify_types, phone
email_sendsapp, error, lang, provider, recipients, ref, sent_by, status, subject, subject_encrypted, template_key, to_email, to_email_encrypted, to_email_hash
email_templatesactive, bcc_emails, body_en, body_es, from_email, key, reply_to, subject_en, subject_es, to_emails
operatoriesactive, app, dentrix_id, office_id, use_for_booking
patientsdentrix_patient_id, id
schedulescalendar_id, capacity, date, end_hour, hubspot_id, primary_dentist, start_hour

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • DDCancelReschedule.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/
            • DentrixSourceNote.tsx
            • HowItWorksNote.tsx
            • ReportHeader.tsx
            • sortable-grid.tsx
          • LastSynced.tsx
        • contexts/
          • AuthContext.tsx
        • hooks/
          • useApi.ts
    • 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