Skip to contents

Downloads (if necessary) and reads a medical code CSV for the specified name, returning a tibble with all columns as character.

Usage

load_medcode(name)

Arguments

name

Character(1). Identifier of the medical code CSV (without the '.csv' extension), e.g. "ICD10" or "CPT".

Value

A tibble (tibble::tibble) in which every column is of type character.

Details

Internally, this function calls download_medcode() to ensure the requested CSV is present in the local cache. It then invokes readr::read_csv() with col_types = cols(.default = "c") so that all columns are imported as character.

Examples

if (FALSE) { # \dontrun{
# Load the ICD-10 mapping table
icd10_tbl <- load_medcode("ICD10")
} # }