tidy_icd: Tidy ICD9/10 diagnosis codes

Description Usage Arguments Details Value

Description

tidy_icd determines which patients have the desired ICD9/10 diagnosis

Usage

1
tidy_icd(raw.data, ref.data, icd10 = FALSE, patients = NULL)

Arguments

raw.data

A data frame with all patient diagnosis codes

ref.data

A data frame with the desired diagnosis codes

icd10

A logical indicating whether to use ICD-10 codes (default) or ICD-9 codes

patients

An optional data frame with a column pie.id including all patients in study

Details

This function takes a data frame with reference diagnosis codes and a data frame with all patient diagnosis codes, and returns a data frame with a logical for each disease state for each patient.

Value

A data frame


bgulbis/BGTools documentation built on May 12, 2019, 8:21 p.m.