Clinical study info extractor

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

Clinical study info extractor is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Batch extracts and verifies structured information (PMID, title, abstract, methodology, results, etc.) from clinical research literature using PMIDs. Use when the user wants to extract details from specific PMIDs.

How to use this skill

Skill file

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

Clinical Study Info Extractor

This skill extracts structured information from clinical study literature based on provided PMIDs. It performs a search, parses the results, and uses LLM extraction with strict quality rules to produce a consolidated Markdown table.

When to Use

Key Features

Dependencies

Example Usage

See ## Usage above for related details.

cd "20260316/scientific-skills/Evidence Insight/clinical-study-info-extractor"
python -m py_compile scripts/utils.py
python scripts/utils.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/utils.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 Normalization: Splits and cleans the input string of PMIDs.
  2. Literature Search: Queries the PubMed API directly to fetch document details.
  3. Information Extraction: Iterates through documents to extract fields (Title, Year, Journal, Abstract, DOI, Type, Population, Sample Size, Intervention, Results, Conclusion).
  4. Verification: Enforces quality rules (e.g., sample size only for research articles).
  5. Output Formatting: Aggregates results into a Chinese Markdown table.

Usage

When you have a list of PMIDs and need structured details:

  1. Normalize Input:

Use scripts/utils.py with normalize_pmids to parse the input string.

  1. Search & Process:

Use scripts/utils.py with fetch_pubmed_data to query PubMed and get a list of document JSON strings.

  1. Extract & Verify:

For each document, use the prompts defined in references/extraction_rules.md to extract and verify information.

  1. Format Output:

Use scripts/utils.py with format_table to generate the final Markdown table.

Quality Rules

See references/extraction_rules.md for detailed extraction logic and constraints.

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.