med.groups: Example of medication groups.

med.groupsR Documentation

Example of medication groups.

Description

An example defining 6 medication groups for med.events.ATC. It is a named character vector, where the names are the medication group unique names (e.g., "Vitamines") and the elements are the medication group definitions (e.g., "(CATEGORY_L2 == 'VITAMINS')"). The definitions are R logical expressions using column names and values that appear in the dataset, as well as references to other medication groups using the construction "NAME".

Usage

med.groups

Format

An object of class character of length 6.

Details

In the above example, "CATEGORY_L2" is a column name in the med.events.ATC dataset, and 'VITAMINS' one of its possible values, and which selects all events that have prescribed ATC codes "A11" (aka "VITAMINS"). Another example is "NotVita" defined as "(!Vitamines)", which selects all events that do not have Vitamines prescribed.

For more details, please see the acompanying vignette.


AdhereR documentation built on July 5, 2022, 5:08 p.m.