// Schaffner OS — workflow depth: enriched queue, patients, rejections, refills
// Loaded AFTER schaffner-data.jsx; overrides window.QUEUE_RX with enriched records.

const QUEUE_RX_V2 = [
  // ---- Intake
  {
    rx: 'SW-1047221', stage: 0, patient: 'M. Tran', dob: 'Feb 9, 1962', drug: 'Atorvastatin 40 mg tab', qty: '#90', ds: 90, refills: 3,
    sig: 'Take 1 tablet by mouth once daily.', prescriber: 'Dr. K. Mossberg', clinic: 'Salish Family Medicine, Sedro-Woolley',
    store: 'SW', payer: 'Regence', wait: 4, note: 'E-script from Salish Family Medicine', flag: null, origin: 'eRx via Surescripts',
    adj: { status: 'Pending', copay: 0, reimb: 9.42, acq: 6.88 },
    timeline: [['7:41a', 'Received — eRx via Surescripts'], ['—', 'Awaiting data entry']],
  },
  {
    rx: 'SW-1047222', stage: 0, patient: 'D. Okada', dob: 'Jul 30, 1984', drug: 'Semaglutide 2.5 mg/mL inj (compound)', qty: '3 mL vial', ds: 28, refills: 2,
    sig: 'Inject 0.25 mL subcutaneously once weekly.', prescriber: 'ARNP D. Kirsch', clinic: 'Cascade Ridge Wellness, Burlington',
    store: 'SW', payer: 'Cash', wait: 6, note: 'New patient consult requested', flag: 'compound', origin: 'eRx via Surescripts',
    adj: { status: 'Cash', copay: 189, reimb: 0, acq: 45.1 },
    timeline: [['7:38a', 'Received — eRx via Surescripts'], ['—', 'Awaiting data entry · consult on pickup']],
  },
  {
    rx: 'BUR-2046118', stage: 0, patient: 'R. Castillo', dob: 'Oct 17, 1975', drug: 'Lisinopril 20 mg tab', qty: '#30', ds: 30, refills: 5,
    sig: 'Take 1 tablet by mouth once daily.', prescriber: 'Dr. E. Vargas', clinic: 'Skagit Regional Clinic, Mount Vernon',
    store: 'BUR', payer: 'Apple Health', wait: 12, note: 'Transfer in from Rite Aid, Mount Vernon', flag: null, origin: 'Transfer — phone',
    adj: { status: 'Pending', copay: 0, reimb: 9.14, acq: 7.3 },
    timeline: [['7:24a', 'Transfer received by phone — K. Tanaka, CPhT'], ['—', 'Awaiting data entry']],
  },
  // ---- Data Entry
  {
    rx: 'ANA-3045507', stage: 1, patient: 'S. Whitfield', dob: 'Jan 4, 1951', drug: 'Eliquis 5 mg tab', qty: '#60', ds: 30, refills: 4,
    sig: 'Take 1 tablet by mouth twice daily.', prescriber: 'Dr. A. Brandt', clinic: 'Fidalgo Cardiology, Anacortes',
    store: 'ANA', payer: 'Medicare D', wait: 9, note: 'Prior auth on file through Dec', flag: 'neg-margin', origin: 'eRx via Surescripts',
    adj: { status: 'Paid', copay: 47, reimb: 412.06, acq: 463.18 },
    timeline: [['7:18a', 'Received — eRx via Surescripts'], ['7:26a', 'Entered by M. Reyes, CPhT'], ['7:27a', 'Claim adjudicated — SilverScript (Part D)']],
  },
  {
    rx: 'BUR-2046121', stage: 1, patient: 'J. Petersen', dob: 'Aug 2, 1957', drug: 'Metformin ER 1000 mg tab', qty: '#60', ds: 30, refills: 2,
    sig: 'Take 1 tablet by mouth twice daily with meals.', prescriber: 'Dr. K. Mossberg', clinic: 'Salish Family Medicine, Sedro-Woolley',
    store: 'BUR', payer: 'Premera', wait: 14, note: 'Sync with Jun 24 refill batch', flag: null, origin: 'Auto-refill — med sync',
    adj: { status: 'Pending', copay: 5, reimb: 6.21, acq: 8.42 },
    timeline: [['7:05a', 'Generated — med sync batch Jun 24'], ['—', 'In data entry']],
  },
  {
    rx: 'BUR-2046123', stage: 1, patient: 'J. Petersen', dob: 'Aug 2, 1957', drug: 'Tramadol 50 mg tab', qty: '#30', ds: 10, refills: 0,
    sig: 'Take 1 tablet by mouth every 6 hours as needed for pain.', prescriber: 'Dr. M. Okafor', clinic: 'Cascade Pain & Spine, Burlington',
    store: 'BUR', payer: 'Premera', wait: 3, note: 'New Rx — post-procedure', flag: 'dur', origin: 'eRx via Surescripts',
    adj: { status: 'Pending', copay: 3.5, reimb: 4.96, acq: 5.61 },
    interaction: 'Moderate interaction: sertraline + tramadol — increased serotonergic risk. Pharmacist review required.',
    timeline: [['7:44a', 'Received — eRx via Surescripts'], ['7:49a', 'DUR screen flagged moderate interaction'], ['—', 'Held for pharmacist review']],
  },
  // ---- Verification
  {
    rx: 'SW-1047215', stage: 2, patient: 'L. Nygaard', dob: 'Mar 14, 1971', drug: 'Estradiol 0.5 mg / Prog 100 mg per gm cream (compound)', qty: '35 mL Topi-CLICK', ds: 30, refills: 2,
    sig: 'Apply 1 click (1 gram) to inner forearm nightly.', prescriber: 'Dr. P. Raghavan', clinic: 'Fidalgo Bay Women’s Health, Anacortes',
    store: 'SW', payer: 'Cash', wait: 8, note: 'RPh verify — new strength', flag: 'compound', origin: 'Fax — clinic',
    adj: { status: 'Cash', copay: 118, reimb: 0, acq: 31.2 },
    timeline: [['6:52a', 'Received — fax from Fidalgo Bay Women’s Health'], ['7:10a', 'Entered by M. Reyes, CPhT'], ['7:31a', 'Compounded — lot SW-2606-104, bench 1'], ['—', 'Awaiting pharmacist verification']],
  },
  {
    rx: 'ANA-3045502', stage: 2, patient: 'A. Bowen', dob: 'Apr 22, 2017', drug: 'Amoxicillin 500 mg cap', qty: '#21', ds: 7, refills: 0,
    sig: 'Take 1 capsule by mouth three times daily for 7 days.', prescriber: 'Dr. S. Lindqvist', clinic: 'Anacortes Pediatrics',
    store: 'ANA', payer: 'Regence', wait: 5, note: 'Pediatric weight check complete', flag: null, origin: 'eRx via Surescripts',
    adj: { status: 'Paid', copay: 8, reimb: 4.77, acq: 3.95 },
    timeline: [['7:21a', 'Received — eRx via Surescripts'], ['7:29a', 'Entered by R. Delgado, CPhT'], ['7:30a', 'Claim adjudicated — Regence'], ['—', 'Awaiting pharmacist verification']],
  },
  {
    rx: 'BUR-2046109', stage: 2, patient: 'C. Dunbar', dob: 'Nov 27, 1948', drug: 'Oxycodone 5 mg tab (C-II)', qty: '#30', ds: 15, refills: 0,
    sig: 'Take 1 tablet by mouth every 12 hours as needed for severe pain.', prescriber: 'Dr. M. Okafor', clinic: 'Cascade Pain & Spine, Burlington',
    store: 'BUR', payer: 'Medicare D', wait: 21, note: 'Hard copy required — in transit from prescriber', flag: 'cii', origin: 'eRx via Surescripts (EPCS)',
    adj: { status: 'Pending', copay: 2.4, reimb: 8.95, acq: 6.2 },
    timeline: [['6:48a', 'Received — EPCS'], ['7:02a', 'Entered by K. Tanaka, CPhT'], ['7:03a', 'PMP check complete — no flags'], ['—', 'Awaiting pharmacist verification']],
  },
  // ---- Filling
  {
    rx: 'SW-1047203', stage: 3, patient: 'H. Salvesen', dob: 'Jun 2, 1966', drug: 'Ketamine 10% PLO gel (compound)', qty: '60 g pump', ds: 30, refills: 1,
    sig: 'Apply a thin layer to affected knee twice daily.', prescriber: 'Dr. M. Okafor', clinic: 'Cascade Pain & Spine, Burlington',
    store: 'SW', payer: 'Cash', wait: 17, note: 'Lab bench 2 · lot SW-2605-097', flag: 'compound', origin: 'eRx via Surescripts',
    adj: { status: 'Cash', copay: 96, reimb: 0, acq: 29.2 },
    timeline: [['6:31a', 'Received — eRx'], ['6:50a', 'Entered by M. Reyes, CPhT'], ['7:12a', 'Verified by C. Schaffner, PharmD'], ['—', 'In filling — lab bench 2']],
  },
  {
    rx: 'ANA-3045498', stage: 3, patient: 'P. Mehta', dob: 'Sep 9, 1979', drug: 'Levothyroxine 75 mcg tab', qty: '#90', ds: 90, refills: 3,
    sig: 'Take 1 tablet by mouth daily on an empty stomach.', prescriber: 'Dr. E. Vargas', clinic: 'Skagit Regional Clinic, Mount Vernon',
    store: 'ANA', payer: 'Premera', wait: 7, note: '', flag: null, origin: 'Auto-refill',
    adj: { status: 'Paid', copay: 1.25, reimb: 5.84, acq: 4.92 },
    timeline: [['6:58a', 'Auto-refill generated'], ['7:08a', 'Entered by R. Delgado, CPhT'], ['7:22a', 'Verified by J. Okada, PharmD'], ['—', 'In filling']],
  },
  // ---- Ready for Pickup
  {
    rx: 'SW-1047188', stage: 4, patient: 'G. Albright', dob: 'May 19, 1958', drug: 'Naltrexone 4.5 mg caps (LDN, compound)', qty: '#90', ds: 90, refills: 4,
    sig: 'Take 1 capsule by mouth at bedtime.', prescriber: 'Dr. K. Mossberg', clinic: 'Salish Family Medicine, Sedro-Woolley',
    store: 'SW', payer: 'Cash', wait: 0, note: 'Will pick up after 4p — texted', flag: 'compound', origin: 'Refill — patient app', bin: 'W-14', copayDue: 64,
    adj: { status: 'Cash', copay: 64, reimb: 0, acq: 16.3 },
    timeline: [['Tue 3:12p', 'Refill requested — patient app'], ['Wed 9:40a', 'Compounded — lot SW-2606-101'], ['Wed 11:05a', 'Verified by C. Schaffner, PharmD'], ['Wed 11:20a', 'Bagged — will-call bin W-14']],
  },
  {
    rx: 'BUR-2046095', stage: 4, patient: 'T. Vasquez', dob: 'Dec 3, 1969', drug: 'Rosuvastatin 10 mg tab', qty: '#90', ds: 90, refills: 2,
    sig: 'Take 1 tablet by mouth daily in the evening.', prescriber: 'Dr. E. Vargas', clinic: 'Skagit Regional Clinic, Mount Vernon',
    store: 'BUR', payer: 'Regence', wait: 0, note: 'Delivery route 2, Thursday', flag: null, origin: 'Auto-refill', bin: 'C-03', copayDue: 15,
    adj: { status: 'Paid', copay: 15, reimb: 2.84, acq: 14.1 },
    timeline: [['Wed 8:10a', 'Auto-refill generated'], ['Wed 9:02a', 'Verified by J. Okada, PharmD'], ['Wed 9:15a', 'Bagged — will-call bin C-03']],
  },
  {
    rx: 'BUR-2046096', stage: 4, patient: 'T. Vasquez', dob: 'Dec 3, 1969', drug: 'Amlodipine 10 mg tab', qty: '#90', ds: 90, refills: 2,
    sig: 'Take 1 tablet by mouth once daily.', prescriber: 'Dr. E. Vargas', clinic: 'Skagit Regional Clinic, Mount Vernon',
    store: 'BUR', payer: 'Regence', wait: 0, note: 'Bag with Rx BUR-2046095', flag: null, origin: 'Auto-refill', bin: 'C-03', copayDue: 10,
    adj: { status: 'Paid', copay: 10, reimb: 1.92, acq: 8.04 },
    timeline: [['Wed 8:10a', 'Auto-refill generated'], ['Wed 9:03a', 'Verified by J. Okada, PharmD'], ['Wed 9:15a', 'Bagged — will-call bin C-03']],
  },
  {
    rx: 'SW-1047191', stage: 4, patient: 'Mochi Trujillo (feline)', dob: 'DSH · 7 yr', drug: 'Methimazole 5 mg/0.1 mL transdermal (vet compound)', qty: '3 mL syringes ×3', ds: 30, refills: 3,
    sig: 'Apply 0.1 mL to inner ear pinna twice daily; alternate ears.', prescriber: 'Dr. T. Reilly, DVM', clinic: 'Chuckanut Valley Veterinary',
    store: 'SW', payer: 'Cash', wait: 0, note: 'Owner notified — Rosa Trujillo', flag: 'compound', origin: 'Fax — clinic', bin: 'V-02', copayDue: 52,
    adj: { status: 'Cash', copay: 52, reimb: 0, acq: 13.9 },
    timeline: [['Tue 2:20p', 'Received — fax from Chuckanut Valley Veterinary'], ['Wed 10:15a', 'Compounded — lot SW-2606-110'], ['Wed 10:48a', 'Verified by C. Schaffner, PharmD'], ['Wed 10:55a', 'Bagged — will-call bin V-02']],
  },
];

// ---- Patients ----------------------------------------------------------

const PATIENTS = {
  nygaard: {
    id: 'nygaard', name: 'Lena Nygaard', dob: 'Mar 14, 1971 (55)', phone: '(360) 855-0142', store: 'Sedro-Woolley',
    sync: false, ar: 0, allergies: ['Sulfamethoxazole — rash (2019)'],
    meds: [
      { drug: 'Estradiol 0.5 mg / Prog 100 mg per gm cream', sig: '1 click to inner forearm nightly', refills: 2, last: 'May 12', due: 'Jun 11', status: 'due' },
      { drug: 'Naltrexone 4.5 mg caps (LDN)', sig: '1 capsule at bedtime', refills: 4, last: 'May 28', due: 'Jun 25', status: 'active' },
      { drug: 'Levothyroxine 50 mcg tab', sig: '1 tablet daily, empty stomach', refills: 0, last: 'Apr 30', due: 'Jun 13', status: 'expired' },
    ],
    fills: [
      ['Jun 11', 'Estradiol/Prog cream 35 mL', 'SW', '$118.00', 'In verification'],
      ['May 28', 'Naltrexone 4.5 mg caps #90', 'SW', '$64.00', 'Picked up'],
      ['May 12', 'Estradiol/Prog cream 35 mL', 'SW', '$118.00', 'Picked up'],
      ['Apr 30', 'Levothyroxine 50 mcg #30', 'SW', '$1.25', 'Picked up'],
      ['Apr 14', 'Estradiol/Prog cream 35 mL', 'SW', '$118.00', 'Picked up'],
      ['Mar 30', 'Naltrexone 4.5 mg caps #90', 'SW', '$64.00', 'Picked up'],
      ['Mar 17', 'Estradiol/Prog cream 35 mL', 'SW', '$118.00', 'Picked up'],
      ['Mar 1', 'Levothyroxine 50 mcg #30', 'SW', '$1.25', 'Picked up'],
    ],
    notes: [
      { date: 'May 22', by: 'C. Schaffner, PharmD', text: 'Counseled on transdermal application — rotate sites, wash hands after applying.' },
      { date: 'May 12', by: 'M. Reyes, CPhT', text: 'Prefers text when compounds are ready. Usually picks up Thursdays after 3p.' },
      { date: 'Apr 3', by: 'K. Tanaka, CPhT', text: 'Levothyroxine renewal faxed to Salish Family Medicine — no response yet, re-faxed.' },
    ],
  },
  petersen: {
    id: 'petersen', name: 'Janet Petersen', dob: 'Aug 2, 1957 (68)', phone: '(360) 757-4418', store: 'Burlington',
    sync: true, syncDate: 'Jun 24', ar: 0, allergies: [],
    meds: [
      { drug: 'Metformin ER 1000 mg tab', sig: '1 tablet twice daily with meals', refills: 2, last: 'May 25', due: 'Jun 24', status: 'active' },
      { drug: 'Lisinopril 10 mg tab', sig: '1 tablet daily', refills: 3, last: 'May 25', due: 'Jun 24', status: 'active' },
      { drug: 'Atorvastatin 40 mg tab', sig: '1 tablet daily', refills: 1, last: 'May 25', due: 'Jun 24', status: 'active' },
      { drug: 'Sertraline 50 mg tab', sig: '1 tablet every morning', refills: 2, last: 'May 25', due: 'Jun 24', status: 'active' },
      { drug: 'Omeprazole 20 mg cap', sig: '1 capsule daily before breakfast', refills: 0, last: 'May 25', due: 'Jun 24', status: 'expired' },
      { drug: 'Tramadol 50 mg tab', sig: '1 tablet q6h prn pain (new)', refills: 0, last: '—', due: '—', status: 'due' },
    ],
    fills: [
      ['Jun 11', 'Tramadol 50 mg #30', 'BUR', '$3.50', 'DUR hold'],
      ['Jun 11', 'Metformin ER 1000 mg #60', 'BUR', '$5.00', 'In process'],
      ['May 25', 'Med sync batch — 5 fills', 'BUR', '$21.25', 'Picked up'],
      ['Apr 25', 'Med sync batch — 5 fills', 'BUR', '$21.25', 'Picked up'],
      ['Mar 25', 'Med sync batch — 5 fills', 'BUR', '$21.25', 'Picked up'],
      ['Feb 25', 'Med sync batch — 5 fills', 'BUR', '$21.25', 'Delivered'],
      ['Jan 25', 'Med sync batch — 4 fills', 'BUR', '$16.25', 'Picked up'],
      ['Dec 26', 'Med sync batch — 4 fills', 'BUR', '$16.25', 'Picked up'],
    ],
    notes: [
      { date: 'Jun 11', by: 'System', text: 'Omeprazole expired — renewal request sent to Salish Family Medicine.' },
      { date: 'May 25', by: 'K. Tanaka, CPhT', text: 'Daughter (Anne) may pick up sync batch. ID on file.' },
      { date: 'Apr 25', by: 'J. Okada, PharmD', text: 'Enrolled in med sync, anchor date 24th. Counseled on alignment fills.' },
    ],
  },
  mochi: {
    id: 'mochi', name: 'Mochi Trujillo (feline)', dob: 'DSH · 7 yr · 4.1 kg', phone: 'Owner: Rosa Trujillo · (360) 757-0331', store: 'Sedro-Woolley',
    sync: false, ar: 0, allergies: [], vet: true,
    meds: [
      { drug: 'Methimazole 5 mg/0.1 mL transdermal', sig: '0.1 mL to inner ear pinna twice daily', refills: 3, last: 'May 30', due: 'Jun 13', status: 'due' },
      { drug: 'Gabapentin 20 mg/mL oral susp', sig: '1 mL by mouth 2h before travel, prn', refills: 1, last: 'Apr 18', due: 'prn', status: 'active' },
    ],
    fills: [
      ['Jun 11', 'Methimazole transdermal ×3 syringes', 'SW', '$52.00', 'Ready — bin V-02'],
      ['May 30', 'Methimazole transdermal ×3 syringes', 'SW', '$52.00', 'Picked up'],
      ['Apr 30', 'Methimazole transdermal ×3 syringes', 'SW', '$52.00', 'Picked up'],
      ['Apr 18', 'Gabapentin susp 60 mL (chicken)', 'SW', '$44.00', 'Picked up'],
      ['Mar 29', 'Methimazole transdermal ×3 syringes', 'SW', '$52.00', 'Picked up'],
    ],
    notes: [
      { date: 'May 30', by: 'C. Schaffner, PharmD', text: 'Owner counseled: wear finger cot, alternate ears, wipe residue weekly. T4 recheck due July at Chuckanut Valley Vet.' },
      { date: 'Apr 18', by: 'M. Reyes, CPhT', text: 'Chicken flavor confirmed for gabapentin — Mochi refused fish flavor.' },
      { date: 'Mar 29', by: 'K. Tanaka, CPhT', text: 'Owner prefers evening pickup after 5p.' },
    ],
  },
  dunbar: {
    id: 'dunbar', name: 'Curtis Dunbar', dob: 'Nov 27, 1948 (77)', phone: '(360) 707-2218', store: 'Burlington',
    sync: false, ar: 86.4, allergies: ['Codeine — nausea/vomiting'],
    meds: [
      { drug: 'Oxycodone 5 mg tab (C-II)', sig: '1 tablet q12h prn severe pain', refills: 0, last: 'May 28', due: 'Jun 11', status: 'due' },
      { drug: 'Amlodipine 5 mg tab', sig: '1 tablet daily', refills: 4, last: 'May 14', due: 'Jun 13', status: 'active' },
      { drug: 'Naproxen 500 mg tab', sig: '1 tablet twice daily with food', refills: 2, last: 'May 14', due: 'Jun 13', status: 'active' },
    ],
    fills: [
      ['Jun 11', 'Oxycodone 5 mg #30 (C-II)', 'BUR', '$2.40', 'In verification'],
      ['May 28', 'Oxycodone 5 mg #30 (C-II)', 'BUR', '$2.40', 'Picked up'],
      ['May 14', 'Amlodipine 5 mg #30', 'BUR', '$8.00', 'Delivered — on account'],
      ['May 14', 'Naproxen 500 mg #60', 'BUR', '$10.00', 'Delivered — on account'],
      ['Apr 29', 'Oxycodone 5 mg #30 (C-II)', 'BUR', '$2.40', 'Picked up'],
      ['Apr 14', 'Amlodipine 5 mg #30', 'BUR', '$8.00', 'Delivered — on account'],
      ['Apr 14', 'Naproxen 500 mg #60', 'BUR', '$10.00', 'Delivered — on account'],
      ['Mar 30', 'Oxycodone 5 mg #30 (C-II)', 'BUR', '$2.40', 'Picked up'],
    ],
    notes: [
      { date: 'Jun 1', by: 'K. Tanaka, CPhT', text: 'A/R statement mailed — $86.40 outstanding from delivery copays (Apr–May).' },
      { date: 'May 28', by: 'J. Okada, PharmD', text: 'C-II hard copy filed. PMP reviewed — single prescriber, consistent intervals.' },
      { date: 'Apr 14', by: 'M. Reyes, CPhT', text: 'Homebound Tue/Wed — route 2 delivery. Daughter handles billing questions.' },
    ],
  },
};

const PATIENT_ALIAS = {
  'L. Nygaard': 'nygaard', 'Lena Nygaard': 'nygaard', 'G. Albright': 'nygaard', 'D. Okada': 'nygaard', 'H. Salvesen': 'nygaard',
  'K. Soriano': 'nygaard', 'D. Marsh': 'nygaard', 'B. Ellingsen': 'nygaard',
  'J. Petersen': 'petersen', 'Janet Petersen': 'petersen', 'M. Tran': 'petersen', 'S. Whitfield': 'petersen', 'A. Bowen': 'petersen', 'P. Mehta': 'petersen',
  'Mochi Trujillo (feline)': 'mochi',
  'C. Dunbar': 'dunbar', 'Curtis Dunbar': 'dunbar', 'R. Castillo': 'dunbar', 'T. Vasquez': 'dunbar',
};
function routePatient(name) { return PATIENT_ALIAS[name] || 'petersen'; }

// ---- Rejection workbench -----------------------------------------------

const REJECTIONS = [
  { id: 'rj1', patient: 'L. Nygaard', drug: 'Estradiol 0.5/Prog 100 cream 35 mL', payer: 'Premera', code: '75', meaning: 'Prior Authorization Required', fix: 'Generate PA via CoverMyMeds', value: '$118.00' },
  { id: 'rj2', patient: 'K. Soriano', drug: 'Estradiol 0.5/Prog 100 cream 35 mL', payer: 'Premera', code: '75', meaning: 'Prior Authorization Required', fix: 'Generate PA via CoverMyMeds', value: '$118.00' },
  { id: 'rj3', patient: 'D. Marsh', drug: 'Testosterone 100 mg/mL cream 30 mL', payer: 'Premera', code: '75', meaning: 'Prior Authorization Required', fix: 'Generate PA via CoverMyMeds', value: '$71.00' },
  { id: 'rj4', patient: 'B. Ellingsen', drug: 'Progesterone 200 mg SR caps #30', payer: 'Premera', code: '75', meaning: 'Prior Authorization Required', fix: 'Generate PA via CoverMyMeds', value: '$84.00' },
  { id: 'rj5', patient: 'J. Petersen', drug: 'Atorvastatin 40 mg #90', payer: 'Regence', code: '79', meaning: 'Refill Too Soon', fix: 'Eligible 6/14 — schedule auto-rebill', value: '$9.42' },
  { id: 'rj6', patient: 'M. Tran', drug: 'Esomeprazole 40 mg DR #30', payer: 'Apple Health', code: '70', meaning: 'Product Not Covered', fix: 'Omeprazole 20 mg covered — suggest switch, or cash price $48', value: '$48.00' },
];

// ---- Refills due -------------------------------------------------------

const REFILLS_DUE = [
  { patient: 'L. Nygaard', drug: 'Estradiol/Prog cream 35 mL', last: 'May 12', due: 'Today', auto: false, status: 'due' },
  { patient: 'J. Petersen', drug: 'Sertraline 50 mg #30', last: 'May 25', due: 'Tomorrow', auto: true, status: 'due' },
  { patient: 'J. Petersen', drug: 'Omeprazole 20 mg #30', last: 'May 25', due: 'Jun 24', auto: true, status: 'renewal' },
  { patient: 'C. Dunbar', drug: 'Amlodipine 5 mg #30', last: 'May 14', due: 'Jun 13', auto: true, status: 'due' },
  { patient: 'Mochi Trujillo (feline)', drug: 'Methimazole transdermal ×3', last: 'May 30', due: 'Jun 13', auto: false, status: 'due' },
  { patient: 'M. Tran', drug: 'Atorvastatin 40 mg #90', last: 'Mar 15', due: 'Jun 13', auto: false, status: 'renewal' },
  { patient: 'P. Mehta', drug: 'Levothyroxine 75 mcg #90', last: 'Mar 16', due: 'Jun 14', auto: true, status: 'due' },
  { patient: 'T. Vasquez', drug: 'Metoprolol 25 mg #60', last: 'May 15', due: 'Jun 14', auto: true, status: 'due' },
  { patient: 'S. Whitfield', drug: 'Eliquis 5 mg #60', last: 'May 16', due: 'Jun 15', auto: false, status: 'due' },
  { patient: 'G. Albright', drug: 'Naltrexone 4.5 mg caps #90', last: 'May 28', due: 'Jun 26', auto: true, status: 'due' },
];

Object.assign(window, {
  QUEUE_RX: QUEUE_RX_V2, PATIENTS, routePatient, REJECTIONS, REFILLS_DUE,
});
