gether_dx_keys_delay: Gather all visit keys containing specific diagnosis codes

Description Arguments Value

Description

Gather all visit keys containing specific diagnosis codes

Arguments

collect_tab

A tibble with the specific setting (i.e. inpatient or outpatient), source (i.e. ccae or mdcr), and year to access. Default is all possible combinations of setting, source, and year

dx_list

A list of specific diagnosis codes that are of interest. The diagnosis codes need to be seperated into into ICD 9 and ICD 10 specific codes. The list elements need to be labled as icd9_codes and icd10_codes

db_path

Path to the database

inpatient_keys

An object containing all the inpatient keys in the database

outpatient_keys

An object containing all the outpatient keys in the database

Value

A tibble with all the specified diagnosis codes and the corresponding visit key where the diagnosis codes appeared


aarmiller/delayDX documentation built on July 11, 2021, 4:01 p.m.