Skip to contents

Obtains a character vector of all of the ICD-10 releases registered in the API.

Usage

icd10_releases(token, language = "en", auto_update = TRUE)

Arguments

token

(list) Access token to the API obtained from get_token()

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

Value

Character vector with the ICD-10 releases available.

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)

  # Search for ICD-10 releases
  icd10_releases(token)
}
#> [1] "2019" "2016" "2010" "2008"