Outcome extraction for clinical trials

From aipoch/medical-research-skills · View interactive version

Outcome extraction for clinical trials is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Clinical research outcome extraction for meta-analysis. Use when users need to extract outcome measures (binary, continuous, or survival data) from clinical research papers for systematic review and meta-analysis. Handles both database lookup by PMID and real-time LLM extraction.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

Clinical Outcome Extraction

Extract structured outcome data from clinical research papers for meta-analysis.

When to Use

Key Features

Dependencies

Example Usage

cd "20260316/scientific-skills/Data Analytics/outcome-extraction-for-clinical-trials"
python -m py_compile scripts/extract_pdf.py
python scripts/extract_pdf.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/extract_pdf.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

See ## Workflow above for related details.

Workflow

  1. Input Processing
  1. Outcome Identification (LLM)
  1. Data Classification (Code)
  1. Data Extraction by Type

Binary Outcomes

Extract for each intervention group:

Continuous Outcomes

Extract for each intervention group:

Survival Outcomes

Extract for each intervention group:

  1. Output Formatting

Output Format

[
  {
    "outcome_name": "PFS",
    "detection_time_point": "12 months",
    "groups": [
      {
        "group_name": "Treatment A",
        "sample_size": "100",
        "outcome_type": "Binary|Continuous|Survival",
        "data": [
          {"value_type": "Events|Mean|SD|HR|95%Lower CI|95%Upper CI", "value": "25"}
        ]
      }
    ]
  }
]

‼️‼️‼️See references (extraction-promots.md) for detailed JSON structures for each outcome type (binary, continuous, survival)‼️‼️‼️

Requirements

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.