decode: Show term descriptions for ICD, OPCS or Read codes

Description Usage Arguments Value Examples

View source: R/decode.R

Description

Decodes Read, OPCS, ICD-9 or ICD-10 codes, returning a vector of terms.

Usage

1
decode(codes, dictionary)

Arguments

codes

either a numeric vector of medcodes or a character vector of ICD-9, ICD-10, OPCS or Read codes.

dictionary

either a single dictionary (if all codes are in the same dictionary) or a vector of dictionaries, 'icd9', 'icd10', 'opcs' or 'read'.

Value

a character vector of terms

Examples

1
2
3
decode('I210', 'icd10')
decode(c(31421, 11347), 'read')
decode(c('E282', 'C165.00'), c('opcs', 'read'))

CALIBERcodelists documentation built on Feb. 28, 2020, 3:01 a.m.