Example--Methods for non-repeating study objects

The following example is for a rule named rulDemoReviewDM that runs when the Demographics form is submitted. If data is entered or modified for the Date of Birth item on the Demographics form, the rule sets the Data Management Review stage to the following:

Current value Value after the rule runs

Initial

Follow Up

Follow Up

Final

Final

Follow Up

Rule summary

evaluate on Form Submission
value = !this.sctDM.itmDOB.Empty ?
this.HasReviewState(this.DataManagmentReview.InitialReview)
?
0
:
this.HasReviewState(this.DataManagmentReview.FollowUp)
?
1
:
this.HasReviewState(this.DataManagmentReview.FinalReview)
?
2
:
99
:
99
when value == 0
this.SetReviewState(DataManagmentReview.FollowUp,"")
when value == 1
this.SetReviewState(DataManagmentReview.FinalReview,"")
when value == 2
this.SetReviewState(DataManagmentReview.FollowUp,"")