RxNorm Drug Search¶
Searches RxNorm for drug concepts by name and returns the full search response, extracted RxCUI identifiers, and a status message. Supports toggling whether to search across all terms or only active terms. Outputs are returned as JSON strings for easy downstream parsing.

Usage¶
Use this node at the start of an RxNorm workflow to look up a medication by its common or brand name. The returned RxCUI list can be passed to downstream nodes that require concept identifiers (for example, to fetch RxTerms info, related concepts, or interactions). Enable the 'search_all_terms' option to broaden results when a strict active-term search does not find a match.
Inputs¶
| Field | Required | Type | Description | Example | 
|---|---|---|---|---|
| drug_name | True | STRING | The drug name to search for in RxNorm. Can be a generic or brand name. | acetaminophen | 
| search_all_terms | True | BOOLEAN | If true, searches across all terms; if false, restricts to active terms. Use true to broaden results when needed. | false | 
Outputs¶
| Field | Type | Description | Example | 
|---|---|---|---|
| search_results | STRING | A JSON string containing the full search payload, including the original search term, the search mode, and the raw RxNorm API results. | { "search_term": "acetaminophen", "search_all_terms": false, "results": { "idGroup": { "name": "acetaminophen", "rxnormId": ["161"] } } } | 
| rxcui | STRING | A JSON string array of RxCUI identifiers extracted from the search results, suitable for input to other Rx-related nodes. | ["161"] | 
| status | STRING | A human-readable status message indicating success or describing an error. | Successfully searched for 'acetaminophen' in RxNorm | 
Important Notes¶
- Drug name is required and cannot be empty; an empty input returns an error status.
- The 'rxcui' output is a JSON string representing an array. If you need a list/array object, parse this string in your workflow.
- Searching all terms may return inactive, historical, or source-specific terms; keep this in mind for clinical or production filters.
- Network access to the RxNorm API is required; transient network/API issues will be surfaced in the status message and results payload.
- The search results payload mirrors the RxNorm API structure and may include additional metadata beyond the RxCUI list.
Troubleshooting¶
- Error: Drug name cannot be empty: Provide a non-empty drug_name value.
- Status shows 'API Error: ...': Check network connectivity and try again; if persistent, verify the RxNorm service status.
- No RxCUIs returned: Try enabling 'search_all_terms' to broaden the search or refine the drug_name (e.g., remove dosage or form).
- Downstream node cannot parse rxcui: Ensure you parse the 'rxcui' output string as JSON before using it as an array.