As all the test element details are different…you need to indicate each seprately and based on the test value you can use if activity to check if test matches then click those tests…
So basically inside the loop use all these if conditions
Inside the unique for each…use another for each for filtereddt
Inside that use if condition eith index = 0 …and index is the property in for eqch of filtereddt
And on else side use the intial patient level details like name date etc
After if use all the other ifs to make clicks based on tests that are written
Cheers