Reports - Agent

Dental Day Production

Path/dental-day-production
Statustodo
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

TableColumns used
dh_procedures_current viewada_code, amount, description, id, location_id, patient_id, provider_id, service_date, status
agent_unsent_claimscarrier_name, patient_id, service_date
bookingscalendar_id, date, dentrix_appointment_id, patient_id, status
calendarscalendar_name, city, dental_day_location, dentrix_office_id, short_code, state, status, street_address
dd_staff_assignmentscalendar_id, position, schedule_date, staff_id
dentrix_officesdentrix_id, name
dh_appointments(columns not named in the SQL)
dh_claim_proceduresclaim_state, is_active, patient_portion, primary_insurance_portion, procedure_id, secondary_insurance_portion
dh_ledger_distributionsapplied_amount, charge_id, is_active, transaction_id
dh_ledger_transactionsis_active, ledger_type, patient_procedure_id, transaction_id
dh_patient_proceduresread through the view dh_procedures_current
dh_patientsdentrix_id, insurance_eligible, is_active
dh_providers(columns not named in the SQL)
patientsid, insurance_encrypted
schedulescalendar_id, date, id
staffcity, first_name, id, last_name, state, status

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • DentalDayProduction.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/
            • HowItWorksNote.tsx
          • TablePagination.tsx
        • hooks/
          • useApi.ts
        • lib/
          • office.ts
        • services/
          • api.ts
    • 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