Using automatic event date

  • Published by Viedoc System 2021-11-24
  • Print

Description of the use case

Let's consider the following scenario: We conduct a trial with newborn subjects, where we need to trigger an event window deviation check if the screening event is conducted outside an event window of 14 days from the Date of Birth collected in the Demographics form.

Set up in Viedoc Designer

Demographics form

We design the Demographics form (FormID = DM) where we include a Date item - Date of birth, with the ItemID = DOB:

Study events settings

In the study design, under Study workflow, we configure the Add subject as a Study start event:

We want the event date to be automatically set to the Date of Birth. For this, the Enable automatic event date option is checked and set to Form item and the item specified is the Date of Birth within the Demographics form: $THIS.DM.DOB:

We want to ensure that a deviation check is triggered when the Screening event is outside the 14 days time window from the Date of Birth collected in the Demographics form. For this, we configure the Screening event, as a Scheduled event with a proposed date calculation based on the event date of the Add subject event, with a time window of 14 days, as illustrated below:

How it looks in Viedoc Clinic

In Viedoc Clinic, after the subject is added, the Screening event will look as illustrated below, with a proposed date within max 14 days from the Date of Birth: