Data collection
Recruitment, consent, multi-instrument assessment, scheduling
Behavioral studies often involve complex data-collection workflows that integrate multiple instruments, assessment methods, and scheduling. By combining activities (data-collection points), gateways (conditional logic), and events (triggers), studyflow diagrams capture the protocol in a single artifact.
This example illustrates a behavioral study where participants undergo a sequence of assessments: questionnaires, physiological measurements, and cognitive tests, with scheduling and dropout handling.
The reference diagram for this example should live at docs/assets/img/examples/data-collection.svg and the source at docs/assets/img/examples/data-collection.studyflow. Author it in the modeler using the structure below.
Stages
- Recruitment – a
Manualactivity representing the recruitment step, with a data output to a participantsTable. - Eligibility screening – a
Questionnaireactivity with an Exclusive Gateway downstream that branches into “eligible” and “ineligible” paths. - Consent – a
Start EventwithrequiresConsent: true, gating entry into the rest of the flow. - Demographics – a
Questionnaireactivity collecting baseline data. - Parallel block – a Parallel Gateway launches the physiological measurement device (a
Manualactivity) and the first cognitive task (CognitiveTask) simultaneously. They synchronize at the closing parallel gateway. - Rest – a
Restactivity, used both as a break and to record resting-state baseline. - Second task block – another
CognitiveTask. - Boundary error event – attached to the task block, this catches participant dropout or technical errors and routes to an early-exit end event with a dropout reason recorded to the data store.
- Save data – every task writes to a
Datasetwith a schema (Psych-DS or Behaverse Trials). - End event(s) – separate ends for completed, ineligible, and dropped-out participants.
Why diagram it
- Dropouts are visible. A boundary error event on the task block shows, in the diagram, what happens when something goes wrong. Reviewers can verify the dropout handling without reading code or asking the authors.
- Eligibility is part of the spec. The exclusive gateway after screening is the eligibility criterion, in the diagram.
- Parallel blocks document concurrency. When participants do two things at once (physio recording + cognitive task), the parallel gateway makes the concurrency explicit.
See also
- CONSORT example – a fuller dropout-handling example using boundary error events.
- Counterbalancing and randomization – how to model random assignment.
- Cognitive tasks – modeling trial-level structure within a task.