Obtains publishing information on the International Classification of Diseases
ICD-11's linearization as the Mortality and Morbidity Statistics (MMS) or the
International Classifications of Functioning Disability and Health (ICF) . The default is mms
Usage
icd11_linearization_info(
token,
linearization = "mms",
release = "2024-01",
language = "en",
auto_update = TRUE
)
Arguments
- token
(
list
) Access token to the API obtained fromget_token()
- linearization
(
character
) ICD-11 linearization (default = "mms"
). See all linearizations in the WHO's API website https://icd.who.int/docs/icd-api/APIDoc-Version2/#the-icd11-linearizations- 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
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 linearizations for Mortality and Morbidity Statistics
icd11_linearization_info(token, release = "2023-01")
# Get linearizations for International Classifications of Functioning Disability and Health
icd11_linearization_info(token, release = "2023-01", linearization = "icf")
}
#> $`@context`
#> [1] "http://id.who.int/icd/contexts/contextForMultiVersion.json"
#>
#> $`@id`
#> [1] "http://id.who.int/icd/release/11/icf"
#>
#> $title
#> $title$`@language`
#> [1] "en"
#>
#> $title$`@value`
#> [1] "International Classification of Functioning, Disability and Health (ICF)"
#>
#>
#> $latestRelease
#> [1] "http://id.who.int/icd/release/11/2024-01/icf"
#>
#> $release
#> $release[[1]]
#> [1] "http://id.who.int/icd/release/11/2024-01/icf"
#>
#>