Get NHS Data Migration mapping tables from NHS TRUD
Source:R/get_nhs_data_migration.R
get_nhs_data_migration.RdDownloads the NHS Data Migration release (TRUD item 9), which contains clinically assured Read V2 and CTV3 to SNOMED CT mapping tables.
Usage
get_nhs_data_migration(
dir_path = tempdir(),
release = "latest",
overwrite = FALSE,
quiet = FALSE
)Arguments
- dir_path
Directory path to download to. Defaults to
tempdir().- release
Character string specifying which release to download. Can be:
"latest"(default) — downloads the most recent releaseA specific release identifier string
- overwrite
Logical. If
TRUE, re-downloads and overwrites existing files. Default isFALSE.- quiet
Logical. If
TRUE, suppresses informational messages. Default isFALSE.
Details
This function requires a valid NHS TRUD API key set as the environment
variable TRUD_API_KEY. You must also be subscribed to item 9 on the NHS
TRUD website.
Examples
if (FALSE) { # \dontrun{
path <- get_nhs_data_migration()
read_nhs_data_migration(path)
} # }