Patient consent simplifier

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

Patient consent simplifier is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Simplifies informed consent documents into patient-friendly language while maintaining regulatory compliance. Readability assessment targeting 6th-8th grade level, risk/benefit clarification in table format, and FDA 21CFR50/ICH-GCP/HIPAA compliance validation.

How to use this skill

Skill file

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

Patient Consent Simplifier

Transform complex informed consent documents into patient-friendly language while maintaining regulatory compliance and ethical standards.

Quick Check

Use this command to verify that the packaged script entry point can be parsed before deeper execution.

python -m py_compile scripts/main.py

Audit-Ready Commands

Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.

python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/main.py --text "Audit validation sample with explicit methods, findings, and conclusion."

When to Use

Workflow

  1. Receive document and target: Collect the consent document text and confirm target reading level (default: 8th grade for general population; 6th grade for vulnerable populations; 4th-5th grade for health literacy challenges).
  2. Extract legal elements: Catalog all required regulatory elements: purpose, procedures, risks, benefits, alternatives, confidentiality, compensation, contacts, voluntary participation statement.
  3. Checkpoint: Verify with user that all required legal elements are captured before simplification begins. If elements are missing, list them explicitly.
  4. Simplify each section: Break sentences >20 words; replace jargon with common terms (use active voice, "you/your"); add visual aid placeholders.
  5. Clarify risks and benefits: Present risk/benefit information in table format with likelihood and severity. Use emoji or color scales for accessibility.
  6. Checkpoint: User confirms that risk/benefit balance is accurately preserved after simplification. If risk is downplayed, revise.
  7. Assess readability: Run readability assessment. If target grade not met, iterate on complex sections.
  8. Check compliance: Validate against FDA 21CFR50, ICH-GCP, HIPAA. Flag any missing elements.
  9. Output: Deliver simplified document with readability metrics (grade level, suggestions) and compliance status.
  10. Fallback: If source document is too fragmentary to simplify, return a structured checklist of missing elements and a partial simplification of available sections.

Quick Start

from scripts.consent_simplifier import ConsentSimplifier

simplifier = ConsentSimplifier()

# Simplify consent form
simplified = simplifier.simplify(
    document="clinical_trial_consent.pdf",
    reading_level="8th_grade",
    preserve_legal=True
)

Core Capabilities

1. Document Simplification

result = simplifier.simplify_section(
    section="procedure_description",
    text="Lumbar puncture will be performed under sterile conditions...",
    max_sentences=3
)

Simplification Rules:

2. Risk/Benefit Clarification

risks = simplifier.clarify_risks(
    original_text="Potential adverse events include...",
    format="table",
    severity_scale="emoji"  # or "color", "text"
)

Risk Presentation:

| Risk | Likelihood | Severity |

|------|-----------|----------|

| Headache | Common (1 in 10) | Mild 😊 |

| Infection | Rare (1 in 1000) | Serious ⚠️ |

3. Reading Level Assessment

metrics = simplifier.assess_readability(document)
print(f"Current grade level: {metrics.grade_level}")
print(f"Suggested improvements: {metrics.suggestions}")

Target Levels:

4. Regulatory Compliance Check

compliance = simplifier.check_compliance(
    simplified_document,
    regulations=["FDA_21CFR50", "ICH-GCP", "HIPAA"]
)

Required Elements:

CLI Usage

# Simplify PDF
python scripts/consent_simplifier.py \
  --input consent_form.pdf \
  --output simplified_consent.pdf \
  --grade-level 8

# Check compliance only
python scripts/consent_simplifier.py \
  --check compliance \
  --input document.pdf

Best Practices

Do:

Don't:


Skill ID: 208 | Version: 1.0 | License: MIT

Output Requirements

Every final response should make these items explicit when they are relevant:

Error Handling

Input Validation

This skill accepts requests that match the documented purpose of patient-consent-simplifier and include enough context to complete the workflow safely.

Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:

patient-consent-simplifier only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.

Response Template

Use the following fixed structure for non-trivial requests:

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Deliverable
  6. Risks and Limits
  7. Next Checks

If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.

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.