Skip to contents

Load Rollup Engine by Scanning a Directory of CSV Files

Usage

rollup_engine_from_folder(
  folder,
  glob = "*.csv",
  class_col = "CLASS",
  code_col = "CODE",
  vocabulary_col = NULL,
  vocabulary_id = NULL,
  domain = "Drug",
  target_vocabulary = NULL,
  expand = "descendants",
  include_retired_maps_to = TRUE,
  exclude_dose_forms = NULL,
  combination_policy = "attribute_all",
  name = NULL,
  header = TRUE,
  ...
)

Arguments

folder

Path to folder containing CSV files.

glob

File glob pattern (default '*.csv').

class_col

Column name or index identifying classes.

code_col

Column name or index identifying codes.

vocabulary_col

Optional column name for vocabulary.

vocabulary_id

Default vocabulary ID.

domain

Domain ID (default 'Drug').

target_vocabulary

Target vocabulary ID (default 'RxNorm').

expand

Hierarchy expansion direction.

include_retired_maps_to

Logical. Include backward maps to.

exclude_dose_forms

Character vector of dose forms to exclude.

combination_policy

Combination policy.

name

Name of engine.

header

Logical. Whether header is present.

...

Additional arguments.

Value

A rollup_engine object.