Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/OHDSI/Capr into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlavallee92 committed Sep 6, 2023
2 parents 4670b9b + 0873887 commit e941e7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/attributes-op.R
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ age <- function(op) {
#' the op logic.
#' @param op an opAttribute object that is either numeric or integer that defines the logical
#' operation used to determine eligible number of days of supply
#' @return An attribute that can be used in a cohort definition
#' @export
daysOfSupply <- function(op) {

Expand All @@ -369,6 +370,7 @@ daysOfSupply <- function(op) {
#' op logic.
#' @param op an opAttribute object that is either numeric or integer that defines the logical
#' operation used to determine eligible number of refills
#' @return An attribute that can be used in a cohort definition
#' @export
drugRefills <- function(op) {

Expand All @@ -392,6 +394,7 @@ drugRefills <- function(op) {
#' determined by the op logic.
#' @param op an opAttribute object that is either numeric or integer that defines the logical
#' operation used to determine eligible patient age
#' @return An attribute that can be used in a cohort definition
#' @export
valueAsNumber <- function(op) {

Expand All @@ -413,6 +416,7 @@ valueAsNumber <- function(op) {
#' determined by the op logic.
#' @param op an opAttribute object that is either numeric or integer that defines the logical
#' operation used to determine eligible range high
#' @return An attribute that can be used in a cohort definition
#' @export
rangeHigh <- function(op) {

Expand All @@ -434,6 +438,7 @@ rangeHigh <- function(op) {
#' determined by the op logic.
#' @param op an opAttribute object that is either numeric or integer that defines the logical
#' operation used to determine eligible range low
#' @return An attribute that can be used in a cohort definition
#' @export
rangeLow <- function(op) {

Expand All @@ -457,6 +462,7 @@ rangeLow <- function(op) {
#' op logic.
#' @param op an opAttribute object that is either numeric or integer that defines the logical
#' operation used to determine eligible quantity
#' @return An attribute that can be used in a cohort definition
#' @export
drugQuantity <- function(op) {

Expand All @@ -479,6 +485,7 @@ drugQuantity <- function(op) {
#' Function that creates a start date attribute
#' @param op an opAttribute object must be a date that defines the logical operation used to
#' determine eligible start dates
#' @return An attribute that can be used in a cohort definition
#' @export
startDate <- function(op) {

Expand All @@ -497,6 +504,7 @@ startDate <- function(op) {
#' Function that creates a end date attribute
#' @param op an opAttribute object must be a date that defines the logical operation used to
#' determine eligible end dates
#' @return An attribute that can be used in a cohort definition
#' @export
endDate <- function(op) {

Expand Down

0 comments on commit e941e7f

Please sign in to comment.