get_index_dx_visits: Collect all diagnoses that occur in proximity to an index...

View source: R/pull_tables_index_get.R

get_index_dx_visitsR Documentation

Collect all diagnoses that occur in proximity to an index date

Description

Collect all inpatient visits along with the diagnosis order

Usage

get_index_dx_visits(
  source,
  year,
  enrolid_table,
  days_before,
  days_after,
  db_con,
  collect_n = Inf
)

Arguments

source

ccae, mdcr or medicaid

year

year (as integer value)

enrolid_table

a table containing enrolid and index_date

days_before

an integer for number of days before index date to look

days_after

an integer for number of days after index date to look

db_con

a connection to a database,

collect_n

the number of rows to collect

Value

A tibble of variables from the respective table


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