get_rxnorm_mappings_by_pharmacologic_class
Find RxNorm mappings for drugs within a specific pharmacologic class using the FDA DailyMed database to identify standardized drug codes.
Instructions
Find RxNorm mappings for drugs that belong to a specific pharmacologic class SET ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pharmaSetId | Yes | The pharmacologic class SET ID to find RxNorm mappings for |
Implementation Reference
- src/mapping-service.ts:174-207 (handler)The handler function that executes the logic to retrieve RxNorm mappings by pharmacologic class.
getRxNormMappingsByPharmacologicClass(pharmaSetId: string): { pharmaSetId: string; splSetIds: string[]; rxNormMappings: RxNormMapping[]; fdaContext: { definition: string; explanation: string; classification: string[]; }; } { const splSetIds = this.pharmaSetIdToSplSetIds.get(pharmaSetId) || []; const allRxNormMappings: RxNormMapping[] = []; for (const splSetId of splSetIds) { const rxNormMappings = this.getRxNormMappings(splSetId); allRxNormMappings.push(...rxNormMappings); } return { pharmaSetId, splSetIds, rxNormMappings: allRxNormMappings, fdaContext: { definition: "A pharmacologic class is a group of active moieties that share scientifically documented properties", explanation: "According to FDA guidelines, pharmacologic classes provide clinically meaningful and scientifically valid drug classifications based on three key attributes: Mechanism of Action (MOA), Physiologic Effect (PE), and Chemical Structure (CS)", classification: [ "Mechanism of Action (MOA): How the drug works at the molecular level", "Physiologic Effect (PE): The body's response to the drug", "Chemical Structure (CS): Structural characteristics of the active moiety", "Source: National Drug File Reference Terminology (NDF-RT)" ] } }; } - src/tools.ts:558-566 (registration)The tool definition registration for 'get_rxnorm_mappings_by_pharmacologic_class'.
{ name: "get_rxnorm_mappings_by_pharmacologic_class", description: "Find RxNorm mappings for drugs that belong to a specific pharmacologic class SET ID", inputSchema: { type: "object", properties: { pharmaSetId: { type: "string", description: "The pharmacologic class SET ID to find RxNorm mappings for",