Reports - Marketing

Online Bookings

Path/online-bookings
Statustodo
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

TableColumns used
bookingsapp, appointment_for, appointment_type, created_at, date, dentrix_appointment_id, dentrix_office_id, hour, id, patient_id, smile_concerns, source, status
dentrix_officesactive, app, dentrix_id, display_name, name
dh_patientsdentrix_id, insurance_eligible
operatoriesactive, app, office_id, use_for_booking
patientsaddress_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

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
        • hooks/
          • useApi.ts
          • useDebounce.ts
    • worker/
      • src/
        • routes/
          • data.ts
        • services/
          • phi-read.ts
        • utils/
          • crypto.ts
          • office.ts
          • phi-access.ts
          • phi-crypto.ts