Admin

Patients

Path/patients
Statustodo
Drill-down pages—
Pop-ups(+3 inline)
Tabs—
API routes/api/data/offices
/api/data/patients

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, patient_id, start_time, status
dh_patientschart_number, dentrix_id, email_hash, first_name, id, is_active, last_name, patient_status, phone_hash, preferred_location_id, primary_source

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • Patients.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