This is a class that creates an RCDM using an extracted RDS file. Parallel processing is supported only in the current Occurrence table, and it is recommended that the image table not be processed in parallel because of the computer science problem that the number of images in the image table does not match. Even if you set Pararell through the constructor, it is not supported by the Image method.

RadDB

Arguments

core

Number of cores to use

Format

An object of class R6ClassGenerator of length 24.

See also

https://github.com/OHDSI/Radiology-CDM/wiki

Examples

# NOT RUN {
############################# Example Code: Convert Radiology CDM  ###################################

# Create Radiology_Occurrence table for rds Path
rdsPath <- "~/Radiology/rds_test"

# Create RadDB object,,
# If using pararell, require pararell package
RDB <- RadDB$new(core = parallel::detectCores() - 1)

# Get Radiology_Occurrence table
occur <- RDB$createRadiologyOccurrence(path = rdsPath)

# Create Radiology_Image table for read RDS file
rdsFile <- list.files(path = rdsPath, pattern = "\\.rds$", full.names = T, recursive = T)
data <- readRDS(file = rdsFile[2])

# Get Radiology_Image table
img <- RDB$createRadiologyImage(data = data)

# Detach core
RDB$finalize()

######################################## Example Code: END ##########################################
# }