Search the ICD-10 using the WHO API for information on blocks, chapters or codes.
Arguments
- token
(
list
) Access token to the API obtained fromget_token()
- search_vals
Either
codes
,blocks
orchapter
values to search.- 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
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 multiple titles
dbf <- icd10_search(token, c("D50.1","I14","XII","D50","D60","D50-D53"))
}
#> Warning: Request not found. Possibly any of release, chapter/block/code or language is not available or incorrectly specified.
#> Warning: Request not found. Possibly any of release, chapter/block/code or language is not available or incorrectly specified.