Function to create age attribute

age(op)

Arguments

op

an opAttribute object that is either numeric or integer that defines the logical operation used to determine eligible patient age

Value

An age attribute that can be used in a cohort definition