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

Value

Boolean vector for whether input ndc code corresponds to an antimicrobial


[Package MIMER version 1.0.3 Index]