Function to convert 'ndc' code to corresponding Antibiotic code.
ndc_to_antimicrobial(ndc,
class_names,
include_missing_NDCs = TRUE)Vector of antimicrobials in antibiotic class from AMR package.
A vector containing ndc codes. Will be coerced to character.
A vector containing antibacterial class names - eg: c("antimicrobial", "antibacterial").
includes a hardcoded database of NDCs that are present in MIMIC-IV but not in NDC database.
ndc_to_antimicrobial