Skip to content

RxCUI by NDC

Looks up RxNorm Concept Unique Identifiers (RxCUIs) using a National Drug Code (NDC). It queries the RxNorm service and returns the raw response plus a parsed list of RxCUIs, along with a status message. Designed to help bridge NDCs to their standardized RxNorm concepts.
Preview

Usage

Use this node when you have an NDC and need to map it to one or more RxCUIs for downstream medication normalization, enrichment, or interoperability tasks. Commonly placed early in workflows that start from pharmacy data or claims and need standardized drug identifiers for subsequent analysis.

Inputs

FieldRequiredTypeDescriptionExample
ndcTrueSTRINGThe National Drug Code to resolve to RxCUI(s). Accepts a numeric string without separators.00071015527

Outputs

FieldTypeDescriptionExample
rxcui_infoSTRINGJSON string containing the full API response enriched with the input NDC. Structure: {"ndc": "", "rxcui_data": }.{"ndc": "00071015527", "rxcui_data": {"idGroup": {"rxnormId": ["12345","67890"]}}}
rxcuiSTRINGJSON string array of RxCUI identifiers extracted from the response. Empty array if none found.["12345","67890"]
statusSTRINGHuman-readable status of the operation, including success or error context.Successfully retrieved RxCUI for NDC 00071015527

Important Notes

  • Input validation: An empty or whitespace-only NDC returns an error status with empty outputs.
  • Output formats: Both rxcui_info and rxcui are JSON strings. Parse them if you need native objects.
  • Multiple matches: A single NDC may map to multiple RxCUIs; the rxcui output will contain an array.
  • No matches: If no RxCUIs are found, rxcui will be an empty array ("[]").
  • Error handling: Upstream API errors are surfaced in the status and the rxcui_info payload may include an error object.
  • Connectivity: Requires network access to the RxNorm API. Transient failures may occur under rate limits or service interruptions.

Troubleshooting

  • Empty rxcui array: Verify the NDC format (no dashes/spaces) and ensure the code is active/valid.
  • API Error in status: Retry after a short delay; check network connectivity and potential rate limiting.
  • Unexpected JSON format: Inspect rxcui_info to see the exact API payload for structure changes or error details.
  • Whitespace or blank input rejected: Ensure ndc is a non-empty string of digits.