get_dx_dates: Get Diagnosis Dates for List of ICD-9 and ICD-10 diagnoses

View source: R/build_db_functions.R

get_dx_datesR Documentation

Get Diagnosis Dates for List of ICD-9 and ICD-10 diagnoses

Description

This function is a wrapper around 'get_dx9_dates()' and 'get_dx10_dates()'

Usage

get_dx_dates(setting, source, year, dx9_list, dx10_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

dx9_list

vector of ICD-9 diagnoses to pull visits for

dx10_list

vector of ICD-10 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.