Switch to unified view

a b/archives/RadETL/man/RadDB.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/RadiologyDB.R
3
\docType{data}
4
\name{RadDB}
5
\alias{RadDB}
6
\title{RadDB Class}
7
\format{An object of class \code{R6ClassGenerator} of length 24.}
8
\usage{
9
RadDB
10
}
11
\arguments{
12
\item{core}{Number of cores to use}
13
}
14
\description{
15
This is a class that creates an RCDM using an extracted RDS file.
16
Parallel processing is supported only in the current Occurrence table,
17
and it is recommended that the image table not be processed in parallel
18
because of the computer science problem that the number of images in the image table does not match.
19
Even if you set Pararell through the constructor, it is not supported by the Image method.
20
}
21
\examples{
22
############################# Example Code: Convert Radiology CDM  ###################################
23
24
# Create Radiology_Occurrence table for rds Path
25
rdsPath <- "~/Radiology/rds_test"
26
27
# Create RadDB object,,
28
# If using pararell, require pararell package
29
RDB <- RadDB$new(core = parallel::detectCores() - 1)
30
31
# Get Radiology_Occurrence table
32
occur <- RDB$createRadiologyOccurrence(path = rdsPath)
33
34
# Create Radiology_Image table for read RDS file
35
rdsFile <- list.files(path = rdsPath, pattern = "\\\\.rds$", full.names = T, recursive = T)
36
data <- readRDS(file = rdsFile[2])
37
38
# Get Radiology_Image table
39
img <- RDB$createRadiologyImage(data = data)
40
41
# Detach core
42
RDB$finalize()
43
44
######################################## Example Code: END ##########################################
45
}
46
\seealso{
47
https://github.com/OHDSI/Radiology-CDM/wiki
48
}
49
\author{
50
Neon K.I.D
51
}
52
\keyword{datasets}