gether_inpatient_dx_keys: Gather visit keys associated with a set of visits for a...

View source: R/pull_tables_gether.R

gether_inpatient_dx_keysR Documentation

Gather visit keys associated with a set of visits for a particular inpatient diagnosis

Description

This function return a tibble of

Usage

gether_inpatient_dx_keys(
  collect_tab = collect_table(),
  dx_list,
  dx_num = TRUE,
  db_con
)

Arguments

collect_tab

A collection table

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 the database


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