{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-outcome-extraction-for-clinical-trials-a0f255b6fc36","title":"Clinical Outcome Extraction for Meta-Analysis","summary":"Extract structured binary, continuous, or survival outcomes from full-text clinical research papers for systematic review and meta-analysis. Output is in JSON format with outcome classification.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-outcome-extraction-for-clinical-trials-a0f255b6fc36","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-outcome-extraction-for-clinical-trials-a0f255b6fc36","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-outcome-extraction-for-clinical-trials-a0f255b6fc36.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-outcome-extraction-for-clinical-trials-a0f255b6fc36\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure the input is full-text paper content, not just abstracts. Confirm the output path and any required configuration values before running the script. If a PMID is provided, the script will first check a database for existing results before proceeding with LLM extraction.","instructions":"---\nname: outcome-extraction-for-clinical-trials\ndescription: 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.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Clinical Outcome Extraction\n\nExtract structured outcome data from clinical research papers for meta-analysis.\n\n## When to Use\n\n- Use this skill when you need 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 in a reproducible workflow.\n- Use this skill when a data analytics task needs a packaged method instead of ad-hoc freeform output.\n- Use this skill when the user expects a concrete deliverable, validation step, or file-based result.\n- Use this skill when `scripts\/extract_pdf.py` is the most direct path to complete the request.\n- Use this skill when you need the `outcome-extraction for clinical trials` package behavior rather than a generic answer.\n\n## Key Features\n\n- Scope-focused workflow aligned to: 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.\n- Packaged executable path(s): `scripts\/extract_pdf.py`.\n- Reference material available in `references\/` for task-specific guidance.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.\n\n## Example Usage\n\n```bash\ncd \"20260316\/scientific-skills\/Data Analytics\/outcome-extraction-for-clinical-trials\"\npython -m py_compile scripts\/extract_pdf.py\npython scripts\/extract_pdf.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/extract_pdf.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/extract_pdf.py`.\n- Reference guidance: `references\/` contains supporting rules, prompts, or checklists.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Workflow\n\n1. **Input Processing**\n   - User provides: full paper text + optional PMID\n   - If PMID provided: query database first for existing results\n   - If no PMID or no database match: proceed to LLM extraction\n\n2. **Outcome Identification** (LLM)\n   - Extract all outcome measures from the paper\n   - Determine outcome types: binary, continuous, or survival\n   - Identify measurement time points\n   - Output JSON format with outcome classification\n\n3. **Data Classification** (Code)\n   - Separate outcomes into three categories:\n     - `bi_outcomes`: Binary\/dichotomous outcomes\n     - `con_outcomes`: Continuous outcomes\n     - `sur_outcomes`: Survival outcomes\n\n4. **Data Extraction by Type**\n\n### Binary Outcomes\nExtract for each intervention group:\n- Sample size (n)\n- Number of events (event)\n\n### Continuous Outcomes\nExtract for each intervention group:\n- Sample size (n)\n- Mean (mean)\n- Standard deviation (sd)\n\n### Survival Outcomes\nExtract for each intervention group:\n- Sample size (n)\n- Hazard ratio (HR)\n- 95% Lower CI\n- 95% Upper CI\n\n5. **Output Formatting**\n   - Combine all extracted data\n   - Ensure consistent JSON structure\n   - Convert values to strings\n\n## Output Format\n\n```json\n[\n  {\n    \"outcome_name\": \"PFS\",\n    \"detection_time_point\": \"12 months\",\n    \"groups\": [\n      {\n        \"group_name\": \"Treatment A\",\n        \"sample_size\": \"100\",\n        \"outcome_type\": \"Binary|Continuous|Survival\",\n        \"data\": [\n          {\"value_type\": \"Events|Mean|SD|HR|95%Lower CI|95%Upper CI\", \"value\": \"25\"}\n        ]\n      }\n    ]\n  }\n]\n```\n\n## \u203c\ufe0f\u203c\ufe0f\u203c\ufe0fSee references (extraction-promots.md) for detailed JSON structures for each outcome type (binary, continuous, survival)\u203c\ufe0f\u203c\ufe0f\u203c\ufe0f\n\n## Requirements\n\n- Extract from full text, not just abstract\n- Consider ALL intervention groups in the paper\n- Include ALL outcome measures of interest\n- Report all data regardless of statistical significance\n- Use specific group names (intervention names in English), not generic terms like \"treatment group\"\n- Output in JSON format\n- Output language: English for all field values\n- If data not found: output blank space \"\"\n","use_cases":["Extract binary outcomes from a clinical trial paper on cancer treatment","Extract continuous outcomes for a meta-analysis on blood pressure medications","Extract survival outcomes for a systematic review on heart disease interventions"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/outcome-extraction-for-clinical-trials\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T12:17:36.000000Z","updated_at":"2026-11-24T12:17:13.000000Z","seo_title":"Clinical Outcome Extraction for Meta-Analysis","seo_description":"Extract binary, continuous, or survival outcomes from clinical trials for meta-analysis. Supports PMID lookup and LLM extraction.","seo_keywords":["clinical outcome extraction","meta-analysis data extraction","clinical trial data extraction","systematic review extraction","outcome measure extraction"]}}