Skip to contents

Obtains publishing information on the International Classification of Diseases ICD-11.

Usage

icd11_release_info(
  token,
  release = "2024-01",
  language = "en",
  auto_update = TRUE
)

Arguments

token

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

release

(character) ICD-11 release (default = 2024-01). See all releases in the WHO's website https://icd.who.int/docs/icd-api/SupportedClassifications/

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

list with information on the publishing date and title

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
  icd11_release_info(token, release = "2023-01")
}
#> $`@context`
#> [1] "http://id.who.int/icd/contexts/contextForTopLevel.json"
#> 
#> $`@id`
#> [1] "http://id.who.int/icd/entity"
#> 
#> $title
#> $title$`@language`
#> [1] "en"
#> 
#> $title$`@value`
#> [1] "International Classification of Diseases 11th Revision"
#> 
#> 
#> $releaseId
#> [1] "2023-01"
#> 
#> $availableLanguages
#> $availableLanguages[[1]]
#> [1] "ar"
#> 
#> $availableLanguages[[2]]
#> [1] "en"
#> 
#> $availableLanguages[[3]]
#> [1] "es"
#> 
#> $availableLanguages[[4]]
#> [1] "fr"
#> 
#> $availableLanguages[[5]]
#> [1] "ru"
#> 
#> $availableLanguages[[6]]
#> [1] "tr"
#> 
#> $availableLanguages[[7]]
#> [1] "zh"
#> 
#> 
#> $releaseDate
#> [1] "2023-01-23"
#> 
#> $child
#> $child[[1]]
#> [1] "http://id.who.int/icd/entity/448895267"
#> 
#> 
#> $browserUrl
#> [1] "https://icd.who.int/browse/2023-01/foundation/en"
#>