tidy_diagnosis: Tidy diagnosis codes

Description Usage Arguments Details Value

Description

tidy_diagnosis determines which patients have the desired diagnosis

Usage

1
tidy_diagnosis(raw.data, ref.data, patients = NULL)

Arguments

raw.data

A data frame with all patient diagnosis codes

ref.data

A data frame with the desired diagnosis codes

patients

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

Details

Deprecated function, use tidy_icd instead.

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.