ndc_to_antimicrobial: Convert 'ndc' code to corresponding Antibiotic code.

View source: R/convert_antibiotics.R

ndc_to_antimicrobialR 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.


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