ndc_to_antimicrobial {MIMER}R Documentation

Convert 'ndc' code to corresponding Antibiotic code.

Description

Function to convert 'ndc' code to corresponding Antibiotic code.

Usage

ndc_to_antimicrobial(ndc,
 class_names,
 include_missing_NDCs = TRUE)

Arguments

ndc

A vector containing ndc codes. Will be coerced to character.

class_names

A vector containing antibacterial class names - eg: c("antimicrobial", "antibacterial").

include_missing_NDCs

includes a hardcoded database of NDCs that are present in MIMIC-IV but not in NDC database.

Details

ndc_to_antimicrobial

Value

Vector of antimicrobials in antibiotic class from AMR package.


[Package MIMER version 1.0.3 Index]