Skip to content
Back to skills

Cadec

ASecurity

Query the CADEC (CSIRO Adverse Drug Event Corpus). Use whenever the user asks about adverse drug event mentions in consumer health text, entity annotations from patient forum posts, MedDRA/SNOMED-CT normalised ADR spans, or wants to look up drugs, symptoms, or coded entities in the CADEC corpus.

  • 230 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 6, 2026
ai-agentsreactgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill cadec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cadec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cadec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-cadec/badge)](https://www.skillsdirectory.com/skills/biotender-max-cadec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cadec-query
description: >
  Query the CADEC (CSIRO Adverse Drug Event Corpus). Use whenever the user asks
  about adverse drug event mentions in consumer health text, entity annotations
  from patient forum posts, MedDRA/SNOMED-CT normalised ADR spans, or wants to
  look up drugs, symptoms, or coded entities in the CADEC corpus.
---

# CADEC Query Skill

Search CADEC annotated patient forum posts by any entity. Auto-detects type:

| Input Pattern | Detected As | Match Logic |
|---|---|---|
| `10019211` (8 digits) | MedDRA code | exact on normalizations.code |
| `22253000` (6-18 digits) | SNOMED CT code | exact on normalizations.code |
| anything else | free text | substring on entity text, type, or doc_id |

## API

| Function | Input | Returns |
|---|---|---|
| `load_cadec(path)` | JSON path | list[dict] (cached) |
| `search(entity)` | single entity string | list[dict] |
| `search_batch(entities)` | list of entity strings | dict[str, list[dict]] |
| `summarize(hits, entity)` | hits + label | compact text |
| `to_json(hits)` | list[dict] | same list (JSON-ready) |

## Entity Types in Corpus

| Type | Description |
|---|---|
| ADR | Adverse Drug Reaction |
| Drug | Medication mention |
| Disease | Pre-existing condition |
| Symptom | Patient-reported symptom |
| Finding | Clinical finding |

## Usage

See `if __name__ == "__main__"` block in `34_CADEC.py` for runnable examples:
drug name search, ADR text search, MedDRA code lookup, batch search, JSON output.

## Data

- **Source**: CADEC v2, CSIRO (AskaPatient.com forum posts)
- **Local file**: `cadec_combined.json` built from BRAT `.txt` + `.ann` files
- **Annotations**: Original spans + MedDRA + SNOMED CT normalisations
- **Stats**: ~1,250 documents, ~7,600 entity annotations
- **Path**: `DATA_PATH` variable in `34_CADEC.py`
- **Citation**: Karimi et al., 2015. *J Biomed Inform* 55:73–81

Files in this skill

  • README.md1.5 KB
  • SKILL.md1.8 KB
  • __init__.py126 B
  • cadec_skill.py4.4 KB
  • example.py6.1 KB
  • retrieve.py776 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.