Reports - Dental Days

Dental Day Patients

Path/dental-day-patients
Statustodo
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

TableColumns used
bookingsapp, calendar_id, created_at, date, dentrix_appointment_id, dentrix_office_id, hour, hubspot_id, id, operatory_id, patient_id, source, status
calendarscalendar_name, city, dentrix_office_id, hubspot_id, short_code, state, status, street_address, zip_code
companieshubspot_id, name, slug
dentrix_officesapp, dentrix_id, name, timezone
dh_patientsdentrix_id, insurance_eligible
operatoriesapp, dentrix_id, short_name
patientsapp, 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
schedulescalendar_id, capacity, date, end_hour, start_hour

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • DentalDayPatients.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
        • lib/
          • booking-status.ts
        • services/
          • api.ts
    • 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