Reports - CandidPro

Candid Case Tracker – Field

Path/ortho-tracker-field
Statustodo
Drill-down pages—
Pop-ups(+2 inline)
Tabs—
API routes/api/candid/field-tracker

Business rules

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

Database tables & columns

TableColumns used
dh_procedures_current viewada_code, amount, id, location_id, patient_id, service_date
agent_deposit_slips(columns not named in the SQL)
agent_outstanding_claims(columns not named in the SQL)
agent_unsent_claims(columns not named in the SQL)
bookingscalendar_id, dentrix_appointment_id, patient_id
calendarscalendar_name, dentrix_office_id, short_code
candid_ortho_exclusionsexcluded_at, excluded_by, reason, row_key
candid_patientscandid_id, case_active, case_ref, case_status, case_type, mon_current_step, mon_est_end, mon_last_scan_at, mon_last_scan_outcome, mon_next_scan_due, mon_status, mon_steps, mon_stop_date, monitoring, order_status, plan_state, plan_steps, tracking_carrier, tracking_delivered_at, tracking_eta, tracking_id, tracking_ship_date, tracking_status, tracking_url
candid_template_sends(columns not named in the SQL)
dh_appointmentspatient_id, source_id, start_time
dh_claim_notes(columns not named in the SQL)
dh_claim_proceduresclaim_id, claim_last_modified, claim_state, is_active, patient_portion, primary_insurance_portion, procedure_id, secondary_insurance_portion
dh_claimsclaim_id, claim_last_modified, claim_state, is_active, patient_id, service_date, total_charges
dh_ledger_transactionsamount, is_active, ledger_type, patient_id, transaction_date, transaction_id
dh_patient_balancesbalance, fetched_at, insurance_portion, patient_id, patient_portion
dh_patient_proceduresread through the view dh_procedures_current
dh_patientsdentrix_id, name_hash
dh_sync_state(columns not named in the SQL)
ortho_tracker_cachebuilt_at, data_encrypted, id, row_count
ortho_tracker_manualnotes_encrypted, notes_updated_at, notes_updated_by, row_key, tray_status, treatment_status, updated_at, updated_by
schedulescalendar_id, date

File structure

Its own files

  • apps/
    • web/
      • src/
        • pages/
          • FieldOrthoTracker.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/
          • forms/
            • DatePicker.tsx
          • reports/
            • DentrixSourceNote.tsx
            • HowItWorksNote.tsx
            • TableLoading.tsx
          • LastSynced.tsx
          • TablePagination.tsx
        • services/
          • api.ts
    • worker/
      • src/
        • db/
          • index.ts
        • routes/
          • candid.ts
        • services/
          • candid-ortho.ts
          • ortho-tracker.ts
          • phi-read.ts
        • utils/
          • crypto.ts
          • phi-access.ts
          • phi-crypto.ts