tidy_meds_cont: Tidy continuous medications

Description Usage Arguments Details Value

Description

tidy_meds_cont determines which patients have the desired continuous medications

Usage

1
tidy_meds_cont(raw.data, ref.data, sched.data)

Arguments

raw.data

A data frame with all medications

ref.data

A data frame with three columns: name, type, and group

sched.data

A data frame with all intermittent medications

Details

This function takes a data frame with reference medications or medication classes and data frames with all continuous and scheduled medications, and returns a data frame with only the desired medications for each patient. The data frame passed to ref.data should contain three columns: name, type, and group. The name column should contain either generic medication names or medication classes. The type column should specify whether the value in name is a "class" or "med". The group column should specify whether the medication is a continous or scheduled medication.

Value

A data frame


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