Reports - Marketing

Landing Page Leads

Path/landing-page-leads
Statustodo
Drill-down pagesโ€”
Pop-ups(+2 inline)
Tabs1
API routes/api/leads/landing-page

Business rules

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

Database tables & columns

TableColumns used
dh_procedures_current viewamount, patient_id, service_date, status
dh_next_appointmentsnext_date, patient_id
dh_patient_proceduresread through the view dh_procedures_current
dh_patientsdentrix_id, email_hash, phone_hash
website_inquiriesarchived_at, created_at, email, id, phone, source
website_patient_requestsarchived_at, archived_by, created_at, email_encrypted, email_status, full_name_encrypted, gclid, id, insurance_status, interest, landing_page_url, lead_notes, lead_notes_by, lead_status, lead_status_at, lead_status_by, page_choice, page_name, phone_encrypted, preferred_office, source, utm_campaign

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • LandingPageLeads.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
            • ReportHeader.tsx
        • hooks/
          • useApi.ts
        • services/
          • api.ts
    • worker/
      • src/
        • routes/
          • leads.ts
        • services/
          • phi-read-contacts.ts
          • phi-read.ts
          • website-lead-labels.ts
        • utils/
          • crypto.ts
          • phi-access.ts
          • phi-crypto.ts