Ebony Reports

Patient Checkout / Billing

Path/patient-checkout-billing
Statustodo
Drill-down pages—
Pop-ups(+2 inline)
Tabs—
API routes/api/data/offices
/api/data/patient-checkout-warnings

Business rules

Written when this page is worked on (docs/BUSINESS-RULES.md).

Database tables & columns

TableColumns used
dh_procedures_current viewamount, bill_to_insurance, id, patient_id, service_date, status
agent_unsent_claims(columns not named in the SQL)
bookingsapp, calendar_id, date, patient_id, status
calendarscalendar_name, dentrix_office_id, hubspot_id, short_code
companieshubspot_id, name
dentrix_officesapp, dentrix_id, name
dh_claim_proceduresis_active, patient_id, patient_portion, primary_insurance_portion, secondary_insurance_portion
dh_patient_proceduresread through the view dh_procedures_current
dh_patientsdentrix_id, first_name, last_name
patientsdentrix_patient_id, id

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • PatientCheckoutWarnings.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
            • TableLoading.tsx
          • TablePagination.tsx
        • hooks/
          • useApi.ts
          • useDebounce.ts
        • services/
          • api.ts
    • worker/
      • src/
        • routes/
          • data.ts
        • services/
          • phi-read-dh.ts
          • phi-read.ts
        • utils/
          • booking-status.ts
          • crypto.ts
          • office.ts
          • phi-access.ts
          • phi-crypto.ts