Obtain the title of an ICD-10 chapter, block or code
Usage
icd10_title(
token,
search_val,
release = 2019,
language = "en",
auto_update = TRUE,
as_data_frame = TRUE
)
Arguments
- token
(
list
) Access token to the API obtained fromget_token()
- search_val
(
character
) ICD-10 chapter, block or code for searching.- release
(
character
) ICD-10 release (default = 2019
). Useicd10_releases()
to get all available releases.- language
(
character
) Language for the request. Available languages are listed in https://icd.who.int/docs/icd-api/SupportedClassifications/ the default is English (language = "en"
).- auto_update
Attempts to update token automatically
- as_data_frame
Whether to return the result as a
data.frame
or as a vector.
Examples
#Assuming that the CLIENT ID and CLIENT SECRET are set up. Substitute accordingly
if (exists("CLIENT_ID") & exists("CLIENT_SECRET")) {
#Generated token
token <- get_token(CLIENT_ID, CLIENT_SECRET)
# Get title and url for release
icd10_title(token, "XII")
#Do multiple at once
icd10_title(token, c("XII","IX","XII","II","D50","D50.1"))
}
#> searched title
#> 1 XII Diseases of the skin and subcutaneous tissue
#> 2 XII Diseases of the skin and subcutaneous tissue
#> 3 IX Diseases of the circulatory system
#> 4 II Neoplasms
#> 5 D50 Iron deficiency anaemia
#> 6 D50.1 Sideropenic dysphagia