[% count = 1 %]
[% FOREACH entry IN lab_tests.item(section); # PROCESS dumper.tt dump = entry;
NEXT IF entry.test_type != test_type OR entry.is_active.match('no');
%]
[% entry.field_label %]:
[% UNLESS loop.last OR # don't start new table unless multiple of 4:
count % 4 %]