Drug name resolver

From vitaclaw/vitaclaw · View interactive version

Drug name resolver is an AI agent skill from the GitHub repository vitaclaw/vitaclaw. Resolves drug names (generic, brand, or development codes) to standardized RxNorm RxCUI identifiers and retrieves drug classification information. Use when the user needs to normalize a medication name or look up its drug class.

How to use this skill

Skill file

Drug Name Resolver

Overview

This skill uses the RxNorm REST API to resolve drug names (generic names, brand names, development codes, etc.) to standardized RxCUI (RxNorm Concept Unique Identifier) values and retrieves drug classification information.

Supported input formats:

Usage

As a Python Module

from drug_name_resolver import DrugNameResolver

resolver = DrugNameResolver()

# Shortcut method: get complete info in one step
result = resolver.resolve("osimertinib")
print(result)
# {
#     "rxcui": "1860477",
#     "name": "osimertinib",
#     "properties": { ... },
#     "drug_class": ["Protein Kinase Inhibitors", ...]
# }

# Step-by-step calls
rxcui = resolver.get_rxcui("Tagrisso")
info = resolver.get_drug_info("Tagrisso")
classes = resolver.get_drug_class(rxcui)

Command Line

python drug_name_resolver.py osimertinib
python drug_name_resolver.py Tagrisso
python drug_name_resolver.py      # defaults to querying osimertinib

Return Structure

The resolve() method returns a dictionary with the following structure:

| Field | Type | Description |

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

| rxcui | str | RxNorm unique identifier |

| name | str | Input drug name |

| properties | dict | Drug properties (name-related) |

| drug_class | list[str] | List of drug classifications |

If the drug is not found, a dictionary containing only name and error fields is returned.

Notes

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.