Reports - CandidPro
Candid Case Tracker – Field
| Path | /ortho-tracker-field |
|---|---|
| Status | todo |
| 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
| Table | Columns used |
|---|---|
dh_procedures_current view | ada_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) |
bookings | calendar_id, dentrix_appointment_id, patient_id |
calendars | calendar_name, dentrix_office_id, short_code |
candid_ortho_exclusions | excluded_at, excluded_by, reason, row_key |
candid_patients | candid_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_appointments | patient_id, source_id, start_time |
dh_claim_notes | (columns not named in the SQL) |
dh_claim_procedures | claim_id, claim_last_modified, claim_state, is_active, patient_portion, primary_insurance_portion, procedure_id, secondary_insurance_portion |
dh_claims | claim_id, claim_last_modified, claim_state, is_active, patient_id, service_date, total_charges |
dh_ledger_transactions | amount, is_active, ledger_type, patient_id, transaction_date, transaction_id |
dh_patient_balances | balance, fetched_at, insurance_portion, patient_id, patient_portion |
dh_patient_procedures | read through the view dh_procedures_current |
dh_patients | dentrix_id, name_hash |
dh_sync_state | (columns not named in the SQL) |
ortho_tracker_cache | built_at, data_encrypted, id, row_count |
ortho_tracker_manual | notes_encrypted, notes_updated_at, notes_updated_by, row_key, tray_status, treatment_status, updated_at, updated_by |
schedules | calendar_id, date |
File structure
Its own files
- apps/
- web/
- src/
- pages/
- FieldOrthoTracker.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/
- forms/
- DatePicker.tsx
- reports/
- DentrixSourceNote.tsx
- HowItWorksNote.tsx
- TableLoading.tsx
- LastSynced.tsx
- TablePagination.tsx
- forms/
- services/
- api.ts
- components/
- src/
- 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
- db/
- src/
- web/