RxClass Get Class Hierarchy
Traverse the drug-class hierarchy (ancestor chain / class tree) for a class ID in NLM RxClass via classGraph. Returns the ordered parent chain from a leaf class up to the classification root, with all nodes (classId, className, classType) and edges (child isa parent), plus a precomputed 'ancestor_path' from the requested class to the root. Default source is ATC. No API key required. Example: classId 'N02BA' ('Salicylic acid and derivatives') -> N02BA <- N02B ('OTHER ANALGESICS AND ANTIPYRETICS'…
Overview
Traverse the drug-class hierarchy (ancestor chain / class tree) for a class ID in NLM RxClass via classGraph. Returns the ordered parent chain from a leaf class up to the classification root, with all nodes (classId, className, classType) and edges (child isa parent), plus a precomputed 'ancestor_path' from the requested class to the root. Default source is ATC. No API key required. Example: classId 'N02BA' ('Salicylic acid and derivatives') -> N02BA <- N02B ('OTHER ANALGESICS AND ANTIPYRETICS') <- N02 ('ANALGESICS') <- N ('NERVOUS SYSTEM') <- 0 ('Anatomical Therapeutic Chemical' root), 5 nodes / 4 edges.
Schema
JSON Schema the agent (or your API call) must match.
Examples (1)
Default RxClass Get Class Hierarchy call
Anonymous-safe example. Rate-limited; no sign-in required.
Identifiers
- Catalog ID
- tu_RxClass_get_class_hierarchy
- Tool name
- RxClass_get_class_hierarchy
- Added
- 2026-07-29 18:13Z
- Tags
- tooluniverse