extract_icd_codes extracts ICD codes for calculating Elixhauser comorbidity scores.

extract_icd_codes(
  drug_concept_id,
  biomarker_concept_id,
  table_name,
  table_type,
  elix_icds
)

Arguments

drug_concept_id

A string

biomarker_concept_id

A string

table_name

A string

table_type

A string, either c("covariates", "drugs", "biomarkers", "icds")

elix_icds

A string

Details

This function extracts ICD codes for calculating Elixhauser comorbidity scores.

Updated: 2021-10-05