get_linked_visits_all: Get Linked Visits (All)

View source: R/build_db_functions.R

get_linked_visits_allR Documentation

Get Linked Visits (All)

Description

This function goes to the main database and pulls...

Usage

get_linked_visits_all(
  setting,
  source,
  year,
  enrolid_table,
  con,
  collect_n = 10,
  HCUP = FALSE
)

Arguments

setting

"inpatient", "outpatient", "rx"

source

"ccae" or "mdcr" or c("ccae","mdcr")

year

vector of years to collect. Note: if no argument is provided all years will be selected

enrolid_table

a table containing enrolids to pull data for

con

a database connection

collect_n

number of rows to collect

HCUP

a logical indicator of whether collecting data from HCUP (vs Truven)

Value

A list containing three tibbles (timemap, outpatient keys, and inpatient keys)


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