map_infections_abx_indications: Map ICD-10 to common infections and antibiotic indications

View source: R/metadata.R

map_infections_abx_indicationsR Documentation

Map ICD-10 to common infections and antibiotic indications

Description

Map ICD-10 or ICD-10-CM codes by infection types and whether antibiotics are commonly indicated based on definitions set by \insertCiteHashimoto2020;textualRamses.

Usage

map_infections_abx_indications(df, icd_column)

Arguments

df

a data frame containing ICD-10 codes

icd_column

a variable name or column number in df containing ICD-10 codes.

Details

For more detail on infection categories and indications for antibiotic therapy, see antibiotic_icd_indications.

This function is designed to be compatible with both ICD-10 and ICD-10-CM versions.

Value

The input data frame x with additional variables describing infection type and whether antibiotics are indicated.

See Also

antibiotic_icd_indications

Examples

mock_icd_data <- data.frame(
   list(icd10_code = c("J15", "J15X", "J150")), 
   stringsAsFactors = FALSE)
mock_icd_data <- map_infections_abx_indications(
  mock_icd_data, "icd10_code")
mock_icd_data

ramses-antibiotics/ramses-package documentation built on Feb. 13, 2024, 1:01 p.m.