Organise a pipeline into groups and phases
How-to · CohortDAG 0.2.9
Select the nodes that belong together
A group gives a few nodes one name that says what they do. Click the patients table, then hold Ctrl and click the visits table and the join.

Group them
Press Ctrl+G. A frame named Group 1 now surrounds the three nodes.

Name the group by its purpose
Click the group's title and choose Edit group. Type a name that says what these nodes do, add a short description, and save.

Put the group in a phase
A phase gathers groups into one stage of the analysis. Click the group's title again and choose Put in a new phase.

Name the phase
Click the phase's title, choose Edit phase, name the stage, and save.

Collapse a group
To hide the detail, click the group's title and choose Collapse. Its three nodes become one card with the group's name and its node count.

Read the plan in the Outline
The Outline tab on the left lists each phase and its groups with their node counts, so the plan of the analysis reads at a glance. Groups do not change the SQL or the results.
