Skip to contents

Reads the clinically assured Read V2 ↔ CTV3 ↔ SNOMED CT mapping tables from the NHS Data Migration release (TRUD item 9).

Usage

read_nhs_data_migration(
  path,
  tables = c("ctv3sctmap2", "rcsctmap2", "read2_ctv3", "ctv3_read2"),
  version = NULL,
  source =
    "https://isd.digital.nhs.uk/trud/users/guest/filters/0/categories/9/items/9/releases"
)

Arguments

path

Path to the NHS Data Migration release. Can be:

tables

Character vector of table names to read. Available tables:

  • "ctv3sctmap2" — CTV3 (Read 3) to SNOMED CT clinically assured mapping

  • "rcsctmap2" — Read V2 to SNOMED CT clinically assured mapping

  • "read2_ctv3" — Read V2 to CTV3 (Read 3) cross-mapping

  • "ctv3_read2" — CTV3 (Read 3) to Read V2 cross-mapping

By default, all tables are read.

version

Character string for the version label. If NULL (default), derived from the zip file or directory name.

source

Character string for the data source URL or description.

Value

A named list with elements corresponding to requested tables, each containing:

  • mapping: a list with table (data.table) and metadata (list)

Examples

if (FALSE) { # \dontrun{
path <- get_nhs_data_migration()
result <- read_nhs_data_migration(path)
result$ctv3sctmap2$mapping$table
result$rcsctmap2$mapping$table
result$read2_ctv3$mapping$table
result$ctv3_read2$mapping$table
} # }