Reports - Agent
Dental Day Production
| Path | /dental-day-production |
|---|---|
| Status | todo |
| Drill-down pages | — |
| Pop-ups | (+1 inline) |
| Tabs | — |
| API routes | /api/data/offices/api/reports/dental-day-production |
Business rules
Written when this page is worked on (docs/BUSINESS-RULES.md).
Database tables & columns
| Table | Columns used |
|---|---|
dh_procedures_current view | ada_code, amount, description, id, location_id, patient_id, provider_id, service_date, status |
agent_unsent_claims | carrier_name, patient_id, service_date |
bookings | calendar_id, date, dentrix_appointment_id, patient_id, status |
calendars | calendar_name, city, dental_day_location, dentrix_office_id, short_code, state, status, street_address |
dd_staff_assignments | calendar_id, position, schedule_date, staff_id |
dentrix_offices | dentrix_id, name |
dh_appointments | (columns not named in the SQL) |
dh_claim_procedures | claim_state, is_active, patient_portion, primary_insurance_portion, procedure_id, secondary_insurance_portion |
dh_ledger_distributions | applied_amount, charge_id, is_active, transaction_id |
dh_ledger_transactions | is_active, ledger_type, patient_procedure_id, transaction_id |
dh_patient_procedures | read through the view dh_procedures_current |
dh_patients | dentrix_id, insurance_eligible, is_active |
dh_providers | (columns not named in the SQL) |
patients | id, insurance_encrypted |
schedules | calendar_id, date, id |
staff | city, first_name, id, last_name, state, status |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- DentalDayProduction.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/
- HowItWorksNote.tsx
- TablePagination.tsx
- reports/
- hooks/
- useApi.ts
- lib/
- office.ts
- services/
- api.ts
- components/
- src/
- worker/
- src/
- db/
- index.ts
- routes/
- data.ts
- reports.ts
- services/
- dental-day-production.ts
- phi-read.ts
- utils/
- crypto.ts
- office.ts
- phi-access.ts
- phi-crypto.ts
- db/
- src/
- web/