get_dx9_dates: Get Diagnosis Dates for List of ICD-9 diagnoses

View source: R/build_db_functions.R

get_dx9_datesR Documentation

Get Diagnosis Dates for List of ICD-9 diagnoses

Description

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

Usage

get_dx9_dates(setting, source, year, dx_list, con, collect_n = 10)

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

dx_list

vector of diagnoses to pull visits for

con

a database connection

collect_n

number of rows to collect

Value

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


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