// Documents shown in the hero inbox + workflow examples section.
// Each has: a "preview" (rendered as styled HTML, not a real image),
// extracted fields, destination/route, and confidence.

const DOCS = [
  {
    id: "lab",
    label: "Lab requisition",
    sender: "Dr. M. Patel — Northshore Family",
    received: "9:41 AM",
    pages: 1,
    type: "Handwritten",
    pillClass: "pill-amber",
    confidence: 0.94,
    destination: "LIMS · Order Intake",
    summary: "Routine CBC + CMP order, fasting noted.",
    fields: [
      ["patient_name", "Maria Alvarez"],
      ["dob", "1978-04-12"],
      ["mrn", "458-22-1109"],
      ["ordering_npi", "1487291023"],
      ["tests_ordered", "[CBC, CMP, TSH]"],
      ["icd10", "E11.9, R73.09"],
      ["specimen", "Serum, fasting"],
      ["priority", "Routine"],
    ],
    flags: [],
    preview: "lab",
  },
  {
    id: "ref",
    label: "Referral",
    sender: "fax: (305) 555-0188",
    received: "9:38 AM",
    pages: 3,
    type: "Faxed PDF",
    pillClass: "pill-blue",
    confidence: 0.91,
    destination: "Referral queue · Cardiology",
    summary: "PCP referral to cardiology — chest pain w/u.",
    fields: [
      ["patient_name", "James O'Connor"],
      ["dob", "1962-09-30"],
      ["referring_provider", "Dr. R. Hayes"],
      ["referred_to", "Cardiology"],
      ["reason", "R07.9 Chest pain, unspecified"],
      ["urgency", "Routine (2 wk)"],
      ["insurance", "BCBS PPO"],
      ["attachments", "EKG, lipid panel"],
    ],
    flags: [],
    preview: "ref",
  },
  {
    id: "pa",
    label: "Prior auth packet",
    sender: "United Healthcare — eFax",
    received: "9:32 AM",
    pages: 12,
    type: "Multi-page PDF",
    pillClass: "pill-blue",
    confidence: 0.88,
    destination: "PA workqueue · Pending review",
    summary: "PA for Humira, missing weight on pg 4.",
    fields: [
      ["patient_name", "Linda Park"],
      ["member_id", "UHC-882-441-09"],
      ["medication", "Adalimumab 40mg"],
      ["diagnosis", "M06.9 RA"],
      ["prescriber", "Dr. K. Owens"],
      ["pages_detected", "12 (4 forms, 8 clinical)"],
      ["missing", "Weight, recent labs"],
      ["status", "Needs review"],
    ],
    flags: [{ key: "missing", text: "Weight missing on pg 4" }],
    preview: "pa",
  },
  {
    id: "intake",
    label: "Patient intake",
    sender: "Email — patient upload",
    received: "9:24 AM",
    pages: 4,
    type: "Scanned PDF",
    pillClass: "pill-green",
    confidence: 0.96,
    destination: "EHR · New patient",
    summary: "New patient packet, signed consent included.",
    fields: [
      ["patient_name", "Devon Reyes"],
      ["dob", "1991-02-17"],
      ["address", "212 Bay St, Miami FL 33139"],
      ["phone", "+1 305 555 0142"],
      ["pcp", "—"],
      ["allergies", "Penicillin"],
      ["medications", "Lisinopril 10mg"],
      ["consent_signed", "true · 2026-05-04"],
    ],
    flags: [],
    preview: "intake",
  },
  {
    id: "ins",
    label: "Insurance card",
    sender: "Front desk · iPad capture",
    received: "9:19 AM",
    pages: 2,
    type: "Photo",
    pillClass: "pill-green",
    confidence: 0.97,
    destination: "Eligibility check",
    summary: "Front + back, BCBS PPO, group active.",
    fields: [
      ["payer", "Blue Cross Blue Shield"],
      ["plan", "PPO Choice Plus"],
      ["member_id", "XOJ883441229"],
      ["group", "100482"],
      ["rx_bin", "610014"],
      ["effective", "2026-01-01"],
      ["dependent_code", "01"],
      ["payer_phone", "+1 800 555 0190"],
    ],
    flags: [],
    preview: "ins",
  },
  {
    id: "fax",
    label: "Faxed order",
    sender: "fax: (954) 555-0233",
    received: "9:11 AM",
    pages: 2,
    type: "Faxed PDF",
    pillClass: "pill-blue",
    confidence: 0.86,
    destination: "Order intake · Imaging",
    summary: "MRI lumbar w/o contrast, low signal page 1.",
    fields: [
      ["patient_name", "Robert Chen"],
      ["dob", "1955-12-04"],
      ["study_ordered", "MRI Lumbar w/o contrast"],
      ["clinical_indication", "M54.5 Low back pain"],
      ["ordering_provider", "Dr. S. Whitfield"],
      ["npi", "1902837465"],
      ["scheduling_pref", "AM, post-Tuesday"],
      ["fax_quality", "low — pg 1"],
    ],
    flags: [{ key: "quality", text: "Low fax resolution, pg 1" }],
    preview: "fax",
  },
  {
    id: "records",
    label: "Records request",
    sender: "Memorial Health — ROI",
    received: "8:58 AM",
    pages: 2,
    type: "Scanned PDF",
    pillClass: "pill-green",
    confidence: 0.93,
    destination: "ROI workqueue",
    summary: "Authorization for release, valid through 2026-11.",
    fields: [
      ["requestor", "Memorial Health ROI"],
      ["patient_name", "Aisha Banks"],
      ["dob", "1988-07-22"],
      ["records_range", "2024-01 → 2026-04"],
      ["purpose", "Continuing care"],
      ["auth_signed", "true"],
      ["valid_through", "2026-11-15"],
      ["delivery", "Secure email"],
    ],
    flags: [],
    preview: "records",
  },
  {
    id: "enroll",
    label: "Enrollment form",
    sender: "Email — HR upload",
    received: "8:42 AM",
    pages: 3,
    type: "Mixed handwriting",
    pillClass: "pill-amber",
    confidence: 0.9,
    destination: "Enrollment · Roster",
    summary: "Group enrollment, 2 dependents added.",
    fields: [
      ["employer", "Bayfront Logistics"],
      ["employee_name", "Tomás Herrera"],
      ["dob", "1984-06-18"],
      ["plan_selected", "PPO 2000"],
      ["dependents", "2 (spouse, child)"],
      ["effective_date", "2026-06-01"],
      ["signature", "true"],
      ["payroll_id", "BFL-44219"],
    ],
    flags: [],
    preview: "enroll",
  },
];

window.DOCS = DOCS;
