build_time_map_delay: Builds a time map for a specific database

Description Arguments Value

Description

Builds a time map for a specific database

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

db_con

The database connection

db_path

Path to the database

temporary

Logical to add outpatient_keys and inpatient_keys temporarily to the database. Default is TRUE. For big databases set this to FALSE.

overwrite

Logical to overwrite the existing outpatient_keys and inpatient_keys. Default is FALSE. For big databases set this to TRUE.

Value

A tibble with a time map containing visit level information from the database. Includes admission date, year, setting, enrolid, standard place of care, key, discharge date, and location of care (i.e. inpatient, outpatient, or ED)


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