Admin

Appointments

Path/appointments
Statustodo
Drill-down pages/create-appointment
Pop-ups(+3 inline)
Tabsโ€”
API routes/api/data/appointments
/api/data/offices

Business rules

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

Database tables & columns

TableColumns used
dentrix_officesdentrix_id, display_name, name
dh_appointmentsid, location_id, notes_encrypted, patient_id, provider_id, source, start_time, status, type
dh_patientsdentrix_id, first_name, first_name_encrypted, last_name, last_name_encrypted
dh_providersdentrix_id, first_name, last_name

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • Appointments.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-dh.ts
          • phi-read.ts
        • utils/
          • crypto.ts
          • office.ts
          • phi-access.ts
          • phi-crypto.ts