gether_dx_keys_parallel: Gather all visit keys containing specific diagnosis codes (in...

gether_dx_keys_parallelR Documentation

Gather all visit keys containing specific diagnosis codes (in parallel)

Description

Gather all visit keys containing specific diagnosis codes (in parallel)

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/smallDB documentation built on March 29, 2024, 9:37 a.m.