OpenParable
Skip to content
← Back to skills

Cadec Query

Research
cadec-query

Cadec Query is an Agent Skill for research published in the BioTender-max/awesome-bio-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/cadec/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cadec-query, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

CADEC Query Skill

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

Input PatternDetected AsMatch Logic
10019211 (8 digits)MedDRA codeexact on normalizations.code
22253000 (6-18 digits)SNOMED CT codeexact on normalizations.code
anything elsefree textsubstring on entity text, type, or doc_id

API

FunctionInputReturns
load_cadec(path)JSON pathlist[dict] (cached)
search(entity)single entity stringlist[dict]
search_batch(entities)list of entity stringsdict[str, list[dict]]
summarize(hits, entity)hits + labelcompact text
to_json(hits)list[dict]same list (JSON-ready)

Entity Types in Corpus

TypeDescription
ADRAdverse Drug Reaction
DrugMedication mention
DiseasePre-existing condition
SymptomPatient-reported symptom
FindingClinical 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