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

View source: R/build_db_functions.R

add_directory_pathR Documentation

Get Diagnosis Dates for List of ICD-9 diagnoses

Description

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

Usage

add_directory_path(
  cond,
  group = "grant",
  base_path = NULL,
  years = 1:20,
  medicaid_years = 16:18,
  sources = c("ccae", "mdcr", "medicaid"),
  directory_path = NULL,
  overwrite = FALSE
)

Arguments

cond

name of the condition

group

name of group, options include 'grant', 'collab' (default is 'grant')

base_path

base path for output, if not specified will use group defined above

years

years of ccae and mdcr data to collect

medicaid_years

years of medicaid data to collect

sources

options include ccae, mdcr, and medicaid, default is all three

directory_path

path to where directory file to write to is located, if NULL the defaul location will be used

overwrite

logical indicator of whether to overwrite if 'cond' exists


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