pull_dx_dates: Pull diagnosis dates

View source: R/query_funcs.R

pull_dx_datesR Documentation

Pull diagnosis dates

Description

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

Usage

pull_dx_dates(
  dx_codes_9,
  dx_codes_10,
  db_path,
  years,
  medicaid_years,
  cluster_size = 21,
  num_to_collect = 10
)

Arguments

dx_codes_9

icd-9 diagnosis codes to collect

dx_codes_10

icd-10 diagnosis codes to collect

db_path

a string with the path to the databases folder

years

years of data to collect for

medicaid_years

years of medicaid data to collect for

cluster_size

size of cluster to create for pulling data

num_to_collect

number of rows to collect

Value

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


aarmiller/dbBuildr documentation built on Jan. 29, 2024, 5:36 a.m.