Summarize core safety information from Investigator's Brochures for clinical researchers
Summarize core safety information from Investigator's Brochures (IB), helping clinical researchers quickly obtain key drug safety data.
python scripts/main.py <input_file> [options]
| Parameter | Type | Default |
|---|
| Required |
|---|
| Description |
|---|
input_file | string | - | Yes | IB document path (PDF/Word/TXT) |
-o, --output | string | stdout | No | Output file path |
-f, --format | string | markdown | No | Output format (json, markdown, text) |
-l, --language | string | zh | No | Output language (zh, en) |
# Basic usage
python scripts/main.py /path/to/IB.pdf
# Output to JSON file
python scripts/main.py /path/to/IB.pdf -o summary.json -f json
# English output
python scripts/main.py /path/to/IB.docx -l en -o summary.md
# IB Safety Information Summary
## Basic Drug Information
- **Drug Name**: XXX
- **Version**: X.X
- **Date**: YYYY-MM-DD
## Core Safety Information
### Known Adverse Reactions
| System Organ Class | Adverse Reaction | Incidence | Severity |
|-------------|---------|--------|---------|
| ... | ... | ... | ... |
### Contraindications
- ...
### Warnings and Precautions
- ...
### Drug Interactions
- ...
### Special Populations
| Population | Precautions |
|-----|---------|
| Pregnant women | ... |
| Lactating women | ... |
| Children | ... |
| Elderly | ... |
| Hepatic/renal impairment | ... |
### Overdose
- Symptoms: ...
- Management: ...
### Safety Update History
| Version | Date | Update Content |
|-----|------|---------|
| ... | ... | ... |
{
"drug_info": {
"name": "Drug Name",
"version": "Version Number",
"date": "Date"
},
"core_safety_info": {
"adverse_reactions": [...],
"contraindications": [...],
"warnings": [...],
"drug_interactions": [...],
"special_populations": {...},
"overdose": {...},
"safety_updates": [...]
}
}
pip install -r requirements.txt
| Risk Indicator | Assessment | Level |
|---|---|---|
| Code Execution | Python/R scripts executed locally | Medium |
| Network Access | No external API calls | Low |
| File System Access | Read input files, write output files | Medium |
| Instruction Tampering | Standard prompt guidelines | Low |
| Data Exposure | Output files saved to workspace | Low |
# Python dependencies
pip install -r requirements.txt