gather_proc_data: Return inpatient and outpatient core information for a...

Description Usage Arguments Value

Description

Return inpatient and outpatient core information for a specific list of cpt codes over multiple core tables (in parallel)

Usage

1
2
3
4
5
6
7
8
gather_proc_data(
  collect_tab = collect_table(),
  cpt_codes,
  proc_vars = c("enrolid", "proc1", "svcdate", "admdate", "proc", "disdate"),
  db_path,
  collect_n = Inf,
  num_cores = NULL
)

Arguments

collect_tab

A tibble with the specific setting (i.e. inpatient or outpatient), source (i.e. ccae or mdcr), and year to access. Default is all possible combinations of setting, source, and year

cpt_codes

The cpt codes of interest

proc_vars

List of variables to return

db_path

Path to the database

collect_n

The number of observations to return

num_cores

The number of worker cores to use. If not specified will determined the number of cores based on the which ever is the smallest value between number of rows in for collect_tab or detected number of cores - 1

Value

A tibble with cpt code of interest for the specified list of variables


aarmiller/delayDX documentation built on July 11, 2021, 4:01 p.m.