Searches for a specific ICD-10 code across different releases and returns the editions of those releases in which the code appears.
Usage
icd10_code_search_release(
token,
code,
language = "en",
validate_code = TRUE,
auto_update = TRUE
)
Arguments
- token
(
list
) Access token to the API obtained fromget_token()
- code
ICD-10 code (can be 3 or 4 digit) to search.
- 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"
).- validate_code
Check that value seems a valid ICD-10 code before querying the API.
- auto_update
Attempts to update token automatically
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_code_search_release(token, "I70")
}
#> [1] "2019" "2016" "2010" "2008"