marmar-context / web / context / test / fixtures / extraction-heldout.json
extraction-heldout.json
Raw
[
  {
    "id": "heldout-qhs",
    "text": "Patient: Mina Brook\nAge: 67\nPrescribed Amlodipine 2.5 mg tab, one tab QHS.",
    "required": [
      ["patient", "Mina Brook"],
      ["age", "67 years"],
      ["medicine", "Amlodipine", "2.5 mg", "1 tablet", "1/day"]
    ]
  },
  {
    "id": "heldout-negated-condition",
    "text": "Patient: Nia Brook\nAge: 39\nMedication: Amlodipine; strength: 5 mg\nShe denies asthma.\nHer father has diabetes.",
    "required": [
      ["patient", "Nia Brook"],
      ["age", "39 years"],
      ["medicine", "Amlodipine", "5 mg"]
    ],
    "withheld": [
      ["condition", "asthma"],
      ["condition", "diabetes"]
    ]
  },
  {
    "id": "heldout-two-quantities",
    "text": "Patient: Lami Brook\nAge: 60\nShe takes Metformin 500 mg tablets, two tablets twice daily and Amlodipine 2.5 mg tablets, one tablet once daily.",
    "required": [
      ["patient", "Lami Brook"],
      ["age", "60 years"],
      ["medicine", "Metformin", "500 mg", "2 tablet", "2/day"],
      ["medicine", "Amlodipine", "2.5 mg", "1 tablet", "1/day"]
    ]
  },
  {
    "id": "heldout-ambiguous-date",
    "text": "Patient: Nuru Brook\nAge: 64\nMedication: Metformin; strength: 500 mg\nHer eGFR was 38 mL/min/1.73m2 on 10/12/2026.",
    "required": [
      ["patient", "Nuru Brook"],
      ["age", "64 years"],
      ["medicine", "Metformin", "500 mg"]
    ],
    "withheld": [["lab", "eGFR 38"]],
    "absentRule": "lab-metformin-egfr-45"
  },
  {
    "id": "heldout-capsule-tid",
    "text": "Patient: Kemi Brook\nAge: 29\nRx says prescribed Amoxicillin 250mg caps, 2 caps TID.\nShe reports an allergy to Penicillin.",
    "required": [
      ["patient", "Kemi Brook"],
      ["age", "29 years"],
      ["medicine", "Amoxicillin", "250 mg", "2 capsule", "3/day"],
      ["allergy", "Penicillin"]
    ],
    "rule": "allergy-penicillin"
  },
  {
    "id": "heldout-paragraph",
    "text": "Sola Brook is a 64-year-old patient. She takes Metformin 500 mg tablets, one tablet twice daily. Her allergies are unknown. Her eGFR was 38 mL/min/1.73m2 on 2026-10-12.",
    "required": [
      ["patient", "Sola Brook"],
      ["age", "64 years"],
      ["medicine", "Metformin", "500 mg", "2/day"],
      ["allergy", "Unknown"],
      ["lab", "eGFR 38"]
    ],
    "rule": "lab-metformin-egfr-45"
  }
]