ndc_is_antimicrobial: Check 'ndc' code is belongs to any Antimicrobial.

View source: R/convert_antibiotics.R

ndc_is_antimicrobialR 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


MIMER documentation built on June 22, 2024, 9:41 a.m.