Description Usage Arguments Details Value
tidy_meds_sched
determines which patients have the desired medications
1 | tidy_meds_sched(raw.data, ref.data)
|
raw.data |
A data frame with all scheduled medications |
ref.data |
A data frame with three columns: name, type, and group |
This function takes a data frame with reference medications or medication classes and a data frames with all 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.
A data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.