import type { Investigation } from '@/types/pmr'

export const investigations: Investigation[] = [
  {
    id: 'inv-pharmetrics',
    name: 'PharMetrics Interactive Platform',
    requestedYear: 2024,
    reportedYear: 2024,
    status: 'Live',
    resultSummary: 'Live at medicines.charlwood.xyz',
    requestingClinician: 'A. Charlwood',
    methodology: 'Real-time medicines expenditure dashboard providing actionable analytics for NHS decision-makers. Built with Power BI and SQL, tracking expenditure across the £220M prescribing budget.',
    results: [
      'Real-time tracking of medicines expenditure',
      'Actionable analytics for budget holders',
      'Self-serve model for wider team',
    ],
    techStack: ['Power BI', 'SQL', 'DAX'],
    externalUrl: 'https://medicines.charlwood.xyz',
  },
  {
    id: 'inv-switching-algorithm',
    name: 'Patient Switching Algorithm',
    requestedYear: 2025,
    reportedYear: 2025,
    status: 'Complete',
    resultSummary: '14,000 patients identified',
    requestingClinician: 'A. Charlwood',
    methodology: 'Python-based algorithm using real-world GP prescribing data to automatically identify patients on expensive drugs suitable for cost-effective alternatives. Compressed months of manual analysis into 3 days.',
    results: [
      '14,000 patients identified for cost-effective alternatives',
      '£2.6M annual savings potential identified',
      '£2M on target for delivery this financial year',
      'Novel GP payment system linking rewards to savings',
    ],
    techStack: ['Python', 'Pandas', 'SQL'],
  },
  {
    id: 'inv-blueteq-gen',
    name: 'Blueteq Generator',
    requestedYear: 2023,
    reportedYear: 2023,
    status: 'Complete',
    resultSummary: '70% reduction in forms',
    requestingClinician: 'A. Charlwood',
    methodology: 'Software automation of Blueteq prior approval form creation, reducing manual data entry and standardising form generation across high-cost drug pathways.',
    results: [
      '70% reduction in required Blueteq forms',
      '200 hours immediate savings',
      '7–8 hours ongoing weekly efficiency gains',
      'Integrated with secondary care activity databases',
    ],
    techStack: ['Python', 'SQL'],
  },
  {
    id: 'inv-cd-monitoring',
    name: 'CD Monitoring System',
    requestedYear: 2024,
    reportedYear: 2024,
    status: 'Complete',
    resultSummary: 'Population-scale OME tracking',
    requestingClinician: 'A. Charlwood',
    methodology: 'Python-based controlled drug monitoring system calculating oral morphine equivalents (OME) across all opioid prescriptions to track patient-level exposure over time.',
    results: [
      'Patient-level OME tracking over time',
      'High-risk patient identification',
      'Potential diversion detection',
      'Previously impossible population-scale analysis',
    ],
    techStack: ['Python', 'SQL'],
  },
  {
    id: 'inv-sankey-tool',
    name: 'Sankey Chart Analysis Tool',
    requestedYear: 2023,
    reportedYear: 2023,
    status: 'Complete',
    resultSummary: 'Pathway audit capability',
    requestingClinician: 'A. Charlwood',
    methodology: 'Python-based visualisation tool for patient journey mapping through high-cost drug pathways, enabling trust-level compliance auditing.',
    results: [
      'Visual patient pathway representation',
      'Trust compliance auditing capability',
      'Improvement opportunity identification',
      'Multi-specialty pathway coverage',
    ],
    techStack: ['Python', 'Matplotlib', 'SQL'],
  },
]
