ndc_is_antimicrobial {MIMER}R Documentation

Check 'ndc' code is belongs to any Antimicrobial.

Description

Function to check input 'ndc' code is belongs to any Antimicrobial or not.

Usage

ndc_is_antimicrobial(ndc,
 class_names,
 include_missing_NDCs = TRUE)

Arguments

ndc

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

class_names

A vector containing antibacterial classes

  • 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_is_antimicrobial

#' Note: Certain medications, such as Rifaximin, may not be considered antibiotics for all purposes despite their classification. Specific cases should be handled based on context and requirements.

Value

Boolean vector for whether input ndc code corresponds to an antimicrobial


[Package MIMER version 1.0.4 Index]