gether_rx_keys: Gather (gether) rx data from all tables defined in a...

View source: R/pull_tables_gether.R

gether_rx_keysR Documentation

Gather (gether) rx data from all tables defined in a collection tab

Description

Gather (gether) rx data from all tables defined in a collection tab

Usage

gether_rx_keys(
  collect_tab = collect_table(),
  ndc_codes,
  rx_vars = c("enrolid", "ndcnum", "svcdate"),
  db_con,
  collect_n = Inf,
  ignore_keys = FALSE
)

Arguments

collect_tab

a collection table

ndc_codes

a vector of ndc_codes to lookup

rx_vars

variables to collect. Default is rx_vars = c("enrolid","ndcnum","svcdate")

db_con

a connection to a database,

collect_n

the number of rows to collect

ignore_keys

a logical indicator of whether to ignore RX keys when returning the data


aarmiller/smallDB documentation built on March 29, 2024, 9:37 a.m.