What is the syntax of the _SavetoDB function?
The _SavetoDB function is called in rules that determine whether to send data to the InForm Publisher queue.
Syntax: _SaveToDB(<Message>,<Trialname>);
Where:
- Message (string)—Parameter that triggers InForm Publisher to do one of the actions listed below. The rule expression loads the message parameter with a value based on the value of specific items in the form.
The text of the message parameter is fixed. The library in the InForm to Argus Safety integration package includes the following constants defining enumerations for the required strings. We recommend that you use these SafetyConstants enumerations to specify the required strings.
- IsReadyToSend¾If the site never completes the item, it will be sent to Argus within after a time interval configured in InForm Publisher.
- IsReportableOrSerious¾Marks the safety event as serious and sends it to Argus Safety after a time interval configured in InForm Publisher.
- Trialname (string)¾Name of the study, populated by the GetTrialName() predefined function.
Sample call to _SaveToDB:
_SaveToDB('SafetyConstants.IsReportableOrSerious',GetTrialName());