Reports - Dental Days

Dental Day Status Report

Path/dental-day-status
Statustodo
Drill-down pages—
Pop-ups(+1 inline)
Tabs—
API routes/api/data/offices
/api/reports/dental-day-status
/api/reports/dental-day-status${qs

Business rules

Written when this page is worked on (docs/BUSINESS-RULES.md).

Database tables & columns

TableColumns used
bookingsapp, calendar_id, date, patient_id, status
calendarscalendar_name, dentrix_office_id, hubspot_id, short_code, status
companieshubspot_id, name
dental_day_status_notesbenefit_breakdown, calendar_id, date, id, insurance, lyric_addons_walkins, plan_notes, ppo_booking, tatiana_verified, updated_at
dentrix_officesapp, dentrix_id, name
dh_patientsdentrix_id, insurance_eligible
patientsdentrix_patient_id, has_insurance, id, insurance_encrypted
schedulescalendar_id, date

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • DentalDayStatusReport.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/
          • forms/
            • DatePicker.tsx
          • reports/
            • HowItWorksNote.tsx
            • TableLoading.tsx
          • TablePagination.tsx
        • hooks/
          • useApi.ts
    • worker/
      • src/
        • db/
          • index.ts
        • routes/
          • data.ts
          • reports.ts
        • services/
          • phi-read.ts
        • utils/
          • booking-status.ts
          • crypto.ts
          • office.ts
          • phi-access.ts
          • phi-crypto.ts