Skip to main content

Track looping

When care repeats, your care flow can too

A
Written by All Awellians
Updated today

Care is rarely a straight line. Follow-ups, reassessments, and ongoing monitoring often repeat until a condition is met. With Track Looping, you can now model repeating care directly and explicitly.

Add a loop to a Track

  1. Open your care flow and navigate to the Build tab

  2. Expand the Track you want to loop

  3. Click "Edit" Track looping

  4. Configure the loop condition:

    • Define the maximum number of iterations the Track can loop

    • Define an optional stop condition when the loop should stop

  5. Save your changes

Number of iterations

When enabling looping, you must explicitly set a maximum number of iterations.

Once this maximum is reached, the Track will automatically stop looping. This ensures loops are predictable and prevents unintended infinite execution.

Infinite loops with a stop condition

Need a Track to loop until a certain condition is met? You can approximate an infinite loop by setting the maximum number of iterations to a high value (for example, 100).

In most practical scenarios, this behaves like an infinite loop while still maintaining a safe upper bound.

Stop conditions

Stop conditions allow a Track to exit the loop early when specific conditions are met.

They are based on data points and use the same conditional logic you’re familiar with elsewhere in care flows. You can add one or more conditions that, when satisfied, will end the loop immediately.

Example: loop this Track until Disposition.PatientReached is true.

In this case, the Track will continue looping until the patient is reached, or until the maximum number of iterations is reached—whichever happens first.

Did this answer your question?