get_all_inpatient_dx_visits: Collect all inpatient diagnosis visits

View source: R/pull_tables_get.R

get_all_inpatient_dx_visitsR Documentation

Collect all inpatient diagnosis visits

Description

Collect all inpatient visits along with the diagnosis order

Usage

get_all_inpatient_dx_visits(
  source,
  year,
  dx_num = TRUE,
  db_con,
  collect_n = Inf,
  keys
)

Arguments

source

ccae, mdcr or medicaid

year

year (as integer value)

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

keys

what keys to return diagnoses for

Value

A tibble of variables from the respective table


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