get_ndc_from_terms: Get NDC code from medication name

View source: R/redbook_funcs.R

get_ndc_from_termsR Documentation

Get NDC code from medication name

Description

'get_ndc_from_name' returns the ndc code, or the corresponding redbook entries, for medications of a given name. The name provided is matched to the variables "genme" and "prodnme" in the redbook file.

Usage

get_ndc_from_terms(
  terms,
  return_all = FALSE,
  redbook_path = "~/Data/redbook.csv"
)

Arguments

terms

A vector of medication names

return_all

A logical indicator of whether to return all values. Default value is set to FALSE (if FALSE only ndc codes are returned)

redbook_path

The path to the redbook file.


aarmiller/codeBuildr documentation built on April 14, 2025, 1:59 p.m.