Reports - Dental Days

Patient Count

Path/field-patient-count
Statustodo
Drill-down pages—
Pop-ups(+1 inline)
Tabs—
API routes/api/data/field-patient-counts
/api/data/offices

Business rules

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

Database tables & columns

TableColumns used
bookingsapp, calendar_id, date, id, patient_id, status
calendarscalendar_name, city, dentrix_office_id, hubspot_id, requested_by, requested_by_name, short_code, state, status, street_address, zip_code
companieshubspot_id, name
dentrix_officesapp, dentrix_id, name
patientsapp, has_insurance, id
schedulescalendar_id, capacity, date, end_hour, start_hour

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • FieldPatientCount.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/
            • HowItWorksNote.tsx
            • TableLoading.tsx
          • LastSynced.tsx
          • TablePagination.tsx
        • hooks/
          • useApi.ts
          • useDebounce.ts
    • worker/
      • src/
        • routes/
          • data.ts
        • utils/
          • booking-status.ts
          • office.ts