@@ -328,6 +328,7 @@ setMethod("nbt", "Date", function(x, y) {
328328# ' Function to create age attribute
329329# ' @param op an opAttribute object that is either numeric or integer that defines the logical
330330# ' operation used to determine eligible patient age
331+ # ' @return An age attribute that can be used in a cohort definition
331332# ' @export
332333age <- function (op ) {
333334
@@ -349,6 +350,7 @@ age <- function(op) {
349350# ' the op logic.
350351# ' @param op an opAttribute object that is either numeric or integer that defines the logical
351352# ' operation used to determine eligible number of days of supply
353+ # ' @return An attribute that can be used in a cohort definition
352354# ' @export
353355daysOfSupply <- function (op ) {
354356
@@ -368,6 +370,7 @@ daysOfSupply <- function(op) {
368370# ' op logic.
369371# ' @param op an opAttribute object that is either numeric or integer that defines the logical
370372# ' operation used to determine eligible number of refills
373+ # ' @return An attribute that can be used in a cohort definition
371374# ' @export
372375drugRefills <- function (op ) {
373376
@@ -391,6 +394,7 @@ drugRefills <- function(op) {
391394# ' determined by the op logic.
392395# ' @param op an opAttribute object that is either numeric or integer that defines the logical
393396# ' operation used to determine eligible patient age
397+ # ' @return An attribute that can be used in a cohort definition
394398# ' @export
395399valueAsNumber <- function (op ) {
396400
@@ -412,6 +416,7 @@ valueAsNumber <- function(op) {
412416# ' determined by the op logic.
413417# ' @param op an opAttribute object that is either numeric or integer that defines the logical
414418# ' operation used to determine eligible range high
419+ # ' @return An attribute that can be used in a cohort definition
415420# ' @export
416421rangeHigh <- function (op ) {
417422
@@ -433,6 +438,7 @@ rangeHigh <- function(op) {
433438# ' determined by the op logic.
434439# ' @param op an opAttribute object that is either numeric or integer that defines the logical
435440# ' operation used to determine eligible range low
441+ # ' @return An attribute that can be used in a cohort definition
436442# ' @export
437443rangeLow <- function (op ) {
438444
@@ -456,6 +462,7 @@ rangeLow <- function(op) {
456462# ' op logic.
457463# ' @param op an opAttribute object that is either numeric or integer that defines the logical
458464# ' operation used to determine eligible quantity
465+ # ' @return An attribute that can be used in a cohort definition
459466# ' @export
460467drugQuantity <- function (op ) {
461468
@@ -478,6 +485,7 @@ drugQuantity <- function(op) {
478485# ' Function that creates a start date attribute
479486# ' @param op an opAttribute object must be a date that defines the logical operation used to
480487# ' determine eligible start dates
488+ # ' @return An attribute that can be used in a cohort definition
481489# ' @export
482490startDate <- function (op ) {
483491
@@ -487,7 +495,7 @@ startDate <- function(op) {
487495 }
488496
489497 methods :: new(" opAttributeDate" ,
490- name = " StartDate " ,
498+ name = " OccurrenceStartDate " ,
491499 op = op @ op ,
492500 value = op @ value ,
493501 extent = op @ extent )
@@ -496,6 +504,7 @@ startDate <- function(op) {
496504# ' Function that creates a end date attribute
497505# ' @param op an opAttribute object must be a date that defines the logical operation used to
498506# ' determine eligible end dates
507+ # ' @return An attribute that can be used in a cohort definition
499508# ' @export
500509endDate <- function (op ) {
501510
@@ -505,7 +514,7 @@ endDate <- function(op) {
505514 }
506515
507516 methods :: new(" opAttributeDate" ,
508- name = " EndDate " ,
517+ name = " OccurrenceEndDate " ,
509518 op = op @ op ,
510519 value = op @ value ,
511520 extent = op @ extent )
0 commit comments