createCDB: Creates an environment containing CDB files

View source: R/cdb.R

createCDBR Documentation

Creates an environment containing CDB files

Description

Extracts SNOMED CT concepts from appropriate places in the hierarchy to create a set of CDB files in an environment. Uses WordNet and manual synonyms if available.

Usage

createCDB(
  SNOMED = getSNOMED(),
  TRANSITIVE = NULL,
  WN = NULL,
  MANUAL_SYNONYMS = NULL,
  noisy = TRUE,
  stopwords = c("the", "of", "by", "with", "to", "into", "and", "or", "at", "as",
    "and/or", "in")
)

Arguments

SNOMED

environment containing a SNOMED dictionary

TRANSITIVE

transitive closure table, generated by createTransitive. It is regenerated if not provided.

WN

WordNet data.table as returned by downloadWordnet containing WordNet data from appropriate categories, in the format: cat (character), wordnetId (integer64), synonyms (list), parents (list), adj (list)

MANUAL_SYNONYMS

data.table with columns term1 and term2, containing additional exact synonyms or abbreviations

noisy

whether to output status messages

stopwords

vector of stopwords

Value

environment containing the following data tables: FINDINGS, QUAL, CAUSES, BODY, OTHERCAUSE, OTHERSEARCH, OVERLAP, TRANSITIVE

See Also

exportMiADECDB, MANUAL_SYNONYMS

Other CDB functions: addComposeLookupToCDB(), addWordnet(), batchDecompose(), downloadOrphanet(), downloadWordnet()

Examples

# Not run
# data(MANUAL_SYNONYMS)
# WN <- downloadWordnet()
# MANUAL_SYNONYMS <- rbind(MANUAL_SYNONYMS, downloadOrphanet())
# CDBNEW <- createCDB(WN = WN, MANUAL_SYNONYMS = MANUAL_SYNONYMS)

anoopshah/Rdiagnosislist documentation built on March 29, 2025, 10:46 a.m.