marmar-context / web / context / server / cases.ts
cases.ts
Raw
import type { Scenario } from "../src/types";

export const CASES: Scenario[] = [
  {
    id: "renal-context",
    name: "Ada Okafor",
    initials: "AO",
    subtitle: "Renal function across care settings",
    description:
      "A familiar prescription. A new result from another clinic. See the medication check change when the missing context arrives.",
    focus: "Kidney function",
    sources: [
      {
        id: "ada-prescription",
        title: "Current prescription",
        kind: "Clinic record",
        date: "2026-10-10",
        text: "Patient: Ada Okafor\nAge: 62\nMedication: Metformin; strength: 500 mg; form: tablet; dose: 1 tablet; frequency: 2/day; origin: prescribed\nCondition: Type 2 diabetes\nAllergies: Unknown",
      },
      {
        id: "ada-laboratory",
        title: "Renal function report",
        kind: "Laboratory",
        date: "2026-10-12",
        text: "Patient: Ada Okafor\nLab: eGFR; value: 38; unit: mL/min/1.73m2; date: 2026-10-12",
      },
    ],
  },
  {
    id: "allergy-context",
    name: "Daniel Mensah",
    initials: "DM",
    subtitle: "An allergy recorded somewhere else",
    description:
      "A new prescription meets an allergy in a separate record. Keep the original evidence visible through the review.",
    focus: "Allergy history",
    sources: [
      {
        id: "daniel-prescription",
        title: "New prescription",
        kind: "Clinic record",
        date: "2026-10-13",
        text: "Patient: Daniel Mensah\nAge: 34\nMedication: Amoxicillin; strength: 500 mg; form: capsule; dose: 1 capsule; frequency: 3/day; origin: prescribed",
      },
      {
        id: "daniel-history",
        title: "Previous care summary",
        kind: "Patient history",
        date: "2026-10-01",
        text: "Patient: Daniel Mensah\nAllergies: Penicillin\nCondition: Unknown",
      },
    ],
  },
  {
    id: "conflicting-records",
    name: "Fatima Bello",
    initials: "FB",
    subtitle: "Two records. One unresolved dose.",
    description:
      "Medication records disagree. Resolve the discrepancy before running the check, with a visible record of what you included and excluded.",
    focus: "Reconciliation",
    sources: [
      {
        id: "fatima-clinic",
        title: "Clinic medication list",
        kind: "Clinic record",
        date: "2026-10-11",
        text: "Patient: Fatima Bello\nAge: 58\nMedication: Metformin; strength: 500 mg; form: tablet; dose: 1 tablet; frequency: 2/day; origin: prescribed\nAllergies: Unknown",
      },
      {
        id: "fatima-summary",
        title: "Discharge medication list",
        kind: "Hospital record",
        date: "2026-10-12",
        text: "Patient: Fatima Bello\nMedication: Metformin; strength: 1000 mg; form: tablet; dose: 1 tablet; frequency: 2/day; origin: prescribed\nLab: eGFR; value: 38; unit: mL/min/1.73m2; date: 2026-10-12",
      },
    ],
  },
  {
    id: "narrative-context",
    name: "Nadia Bello",
    initials: "NB",
    subtitle: "Ordinary notes, traceable context",
    description:
      "Extract a prescription and kidney result from narrative notes, review their original wording, then compare the medication check.",
    focus: "Narrative extraction",
    sources: [
      {
        id: "nadia-note",
        title: "Consultation note",
        kind: "Synthetic clinical note",
        date: "2026-10-10",
        text: "Nadia Bello is a 62-year-old patient.\nShe is prescribed Metformin 500 mg tablets, one tablet twice daily.\nHer condition is Type 2 diabetes.\nHer allergies are unknown.",
      },
      {
        id: "nadia-lab",
        title: "Laboratory note",
        kind: "Synthetic laboratory note",
        date: "2026-10-12",
        text: "Patient: Nadia Bello\nOn 2026-10-12, her eGFR was 38 mL/min/1.73m2.",
      },
    ],
  },
  {
    id: "personal-factors",
    name: "Grace Achieng",
    initials: "GA",
    subtitle: "Same medicines, a different person",
    description:
      "Three ordinary medicines. Her age, weight and latest potassium result change what the check finds, medicine by medicine.",
    focus: "Personal factors",
    sources: [
      {
        id: "grace-prescription",
        title: "Repeat prescription",
        kind: "Clinic record",
        date: "2026-10-15",
        text: "Patient: Grace Achieng\nAge: 78\nMedication: Lisinopril; strength: 10 mg; form: tablet; dose: 1 tablet; frequency: 1/day; origin: prescribed\nMedication: Glibenclamide; strength: 5 mg; form: tablet; dose: 1 tablet; frequency: 1/day; origin: prescribed\nMedication: Paracetamol; strength: 500 mg; form: tablet; dose: 2 tablet; frequency: 4/day; origin: over_the_counter\nAllergies: No known allergies",
      },
      {
        id: "grace-nursing",
        title: "Nursing assessment",
        kind: "Community nursing",
        date: "2026-10-18",
        text: "Patient: Grace Achieng\nSex: female\nWeight: 46 kg\nCondition: Type 2 diabetes\nCondition: Hypertension",
      },
      {
        id: "grace-laboratory",
        title: "Blood chemistry",
        kind: "Laboratory",
        date: "2026-10-20",
        text: "Patient: Grace Achieng\nLab: Potassium; value: 5.8; unit: mmol/L; date: 2026-10-20\nLab: eGFR; value: 52; unit: mL/min/1.73m2; date: 2026-10-20",
      },
    ],
  },
];