Avari Staffing Reports · Schedule
Provider Schedule
| Path | /avari/provsched |
|---|---|
| Status | todo |
| Drill-down pages | /staffing-schedule |
| Pop-ups | (+5 inline) |
| Tabs | 10 |
| API routes | /api/avari/audit/api/avari/candidates/api/avari/candidates/:x/api/avari/month/api/avari/payroll/api/avari/payroll/check/api/avari/payroll/finalize/api/avari/staff/:x/api/avari/time-off/:x/logged/api/staff-portal/admin/time-off-requests/:x |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
audit_logs | action, created_at, entity_id, entity_type, new_data, new_data_encrypted, user_name |
avari_candidates | created_at, created_by, docs, email, first_name, id, interview_date, interview_notes, interviewer, last_name, phone, position, preferred_office, recommendation, scorecard, stage, tryout_date, tryout_feedback, tryout_manager, tryout_office, updated_at, updated_by |
avari_payroll_checks | checked_at, checked_by, note, staff_id, status, work_date |
avari_payroll_periods | finalized_at, finalized_by, period |
calendars | calendar_name, city, dental_day_location, dentrix_office_id, dentrix_office_name, hubspot_id, short_code, state, status, street_address, zip_code |
companies | hubspot_id, name |
dd_staff_assignments | calendar_id, position, published_at, schedule_date, staff_id |
dentrix_offices | app, dentrix_id, id, name |
dh_users | email, id, name, staff_id |
email_recipient_notify_types | notify_type, recipient_id |
email_recipients | active, created_at, email, email_type, id, name |
email_sends | app, error, lang, provider, recipients, ref, sent_by, status, subject, subject_encrypted, template_key, to_email, to_email_encrypted, to_email_hash |
email_templates | active, bcc_emails, body_en, body_es, from_email, key, reply_to, subject_en, subject_es, to_emails |
schedules | calendar_id, date, end_hour, start_hour |
staff | cell_phone, employment_type, first_name, id, last_name, mobile_phone, onboarding_completed_at, personal_email, position, status, work_email |
staff_benefits | employment_type, flag_override, min_days, notes, staff_id, updated_at, updated_by |
staff_performance_scores | clinical, notes, patient_experience, patient_flow, period, production, reliability, score, scored_at, scored_by, staff_id, teamwork |
staff_time_off | end_date, reason, request_id, staff_id, start_date |
staff_time_off_requests | created_at, decided_at, decided_by, end_date, id, reason, requester_email, requester_name, requester_phone, staff_id, start_date, status |
time_off_approval_tokens | approver_email, approver_name, expires_at, request_id, token_hash, used_at |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- AvariStaffing.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/
- avari/
- Audit.tsx
- Availability.tsx
- Coverage.tsx
- Dashboard.tsx
- Offices.tsx
- Payroll.tsx
- Performance.tsx
- Providers.tsx
- ProviderSchedule.tsx
- Recruitment.tsx
- Reports.tsx
- Schedule.tsx
- shared.tsx
- forms/
- DatePicker.tsx
- reports/
- DentrixSourceNote.tsx
- HowItWorksNote.tsx
- ReportHeader.tsx
- TablePagination.tsx
- avari/
- lib/
- avari.ts
- services/
- api.ts
- components/
- src/
- worker/
- src/
- db/
- audit.ts
- index.ts
- features/
- staff-portal/
- decide.ts
- queries.ts
- routes.ts
- service.ts
- staff-portal/
- lib/
- list-query.ts
- routes/
- avari.ts
- services/
- email-templates.ts
- notify-recipients.ts
- phi-read.ts
- staff-onboarding.ts
- utils/
- crypto.ts
- email.ts
- phi-access.ts
- phi-crypto.ts
- db/
- src/
- web/