get_inpatient_dx_visits: Collect inpatient diagnosis visits

View source: R/pull_tables_get.R

get_inpatient_dx_visitsR Documentation

Collect inpatient diagnosis visits

Description

Collect inpatient visits for a particular diagnosis along with the diagnosis order

Usage

get_inpatient_dx_visits(
  source,
  year,
  dx_list,
  dx_num = TRUE,
  db_con,
  collect_n = Inf
)

Arguments

source

ccae, mdcr or medicaid

year

year (as integer value)

dx_list

A named list of icd9 and icd10 codes, with names of "icd9_codes" and "icd10_codes", respectively

dx_num

a logical indicator of whether to collect diagnosis number. Default is TRUE.

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.