Sleep 'Collect Data' Event
Why is a sleep 'Collect Data' event different than a pedometer, pill bottle, or scale set up?
A sleep device is unique in that the event window for capturing sleep data is different than other devices. Â For a device like a Fitbit, the event window will be all day from 12 am -11:59 pm. Â However, if you think about the typical time that a participant will sleep, it won't be all day and then start over at midnight. Â Instead part of their sleep time will begin on day 0 and the rest of the sleep will end in the morning of day 1. Â This is why we need to set up the event window differently than other devices. Â
How do I set up a 'Collect Data' event for a sleep device?Â
- After you add your device to the study, select 'Study Arms' from the Manage Study drop-down list. Then select 'Manage Event Schedule' for the arm where you want to add the 'Collect Data' event. Â
-  Not sure how to add a device? See 'Collect Data' Event for instructions.
-  Not sure how to add a device? See 'Collect Data' Event for instructions.
- Click the blue 'Add New event' button and select 'Collect Data' as the event type. The devices can be viewed by navigating to the Devices section in Manage Study.
- Select the device from the options in the drop-down list. This will auto-populate all of the devices that you have set up in Way to Health.  Choose your sleep device.Â
- Name the event.Â
 - Choose the day when the event should start and the event window.  The event window is the time that the participant has to complete sync their sleep device. Â
- Â Tip! For sleep 'Collect Data' events, typically, participants are asked to start syncing their devices on Day 0 or Day 1 and they have the entire day to do so. HOWEVER, as noted above, the window for sleep is different than the window for a typical device. Â Therefore it is suggested setting up the window as seen in the screenshot below to capture the sleep data on Day 0 starting at 3 pm and ending on Day 1 at 2:59 pm.Â
- Â Tip! For sleep 'Collect Data' events, typically, participants are asked to start syncing their devices on Day 0 or Day 1 and they have the entire day to do so. HOWEVER, as noted above, the window for sleep is different than the window for a typical device. Â Therefore it is suggested setting up the window as seen in the screenshot below to capture the sleep data on Day 0 starting at 3 pm and ending on Day 1 at 2:59 pm.Â
- Indicate how many times the event should repeat.Â
- Tip! For sleep device upload events, typically, participants are asked to sync their device every day for the entire duration of the study.Â
- Tip! For sleep device upload events, typically, participants are asked to sync their device every day for the entire duration of the study.Â
- For daily data collection, typically you don't want to send a message on the Collect Data event itself since it will occur at the frequency selected.Â
- Â Tip! To inform the participant that they should sync their Fitbit or weigh in on their scale every day, create a 'Send a Message' event with instructions or welcome to study message.
- Â Tip! To inform the participant that they should sync their Fitbit or weigh in on their scale every day, create a 'Send a Message' event with instructions or welcome to study message.
- Often times studies will just passively collect sleep data. Â If that is the case for your study, you are done! Click the blue 'Add' button. If you want to set up a compliance logic or send the participant a message on how they slept, you are ready to do so. Â Click the 'Save and Define Logic' button.Â
- Inside the 'Collect Data' logic, name the Logic Set and then select 'This event's data'.Â
- Choose the device field (i.e total_sleep_duration) and the operator (i.e >). Â Then select either amount or target.
- Amount: a set number for all study participants. For example, 7 hours
- Target:Â an individualized sleep goal for each study participantÂ
-  Note: In order to use a target for compliance, a target generator must be set up from the 'Target Configurations' page. See Targets for guidance.Â
-  Note: In order to use a target for compliance, a target generator must be set up from the 'Target Configurations' page. See Targets for guidance.Â
- Click 'Select Action' and select ' Mark as compliant'. Â You can also send a participant a message about their sleep from the previous night. Â For a non-sleep device we suggest doing this as an 'Add Logic' event since the message will go as soon as the event closes, but one benefit of a sleep device upload is that the event closes at 11:59 AM so sending the participant a message at noon is ok! Once you add 'Message' as a consequence, click the blue 'Save Feedback' at the bottom of the page.
- You can also send a participant a message about their sleep from the previous night.  For a non-sleep device, we suggest doing this as an 'Add Logic' event since the message will go as soon as the event closes, but one benefit of a sleep device upload is that the event closes at 2:59 PM so sending the participant a message at noon is ok! Once you add 'Message' as a consequence, click the blue 'Save Feedback' at the bottom of the page.
-  Do your participants have customized sleep targets? If you want to relay the participant's target to them in the daily message (i.e. 'You only slept X hours yesterday and your goal was Y hours.  Try harder today!') then you should use your defined Custom Variables. Â
- Create a new Logic Set and repeat steps 10-12 for 'unmet sleep goal'Â
Â
Â