Admin
Patients
| Path | /patients |
|---|---|
| Status | todo |
| 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
| Table | Columns used |
|---|---|
dentrix_offices | dentrix_id, display_name, name |
dh_appointments | id, patient_id, start_time, status |
dh_patients | chart_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
- pages/
- src/
- web/
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
- reports/
- hooks/
- useApi.ts
- useDebounce.ts
- components/
- src/
- worker/
- src/
- routes/
- data.ts
- services/
- phi-read.ts
- utils/
- crypto.ts
- office.ts
- phi-access.ts
- phi-crypto.ts
- routes/
- src/
- web/