16 | | 1. Select all the cases for the |
| 16 | 1. Select all the cases with a type of 'Genvasc' that have a status of 'Recruited'. |
| 17 | 1. Load the activities for these cases. |
| 18 | 1. Disregard any case that does not have an activity of type 'Mark available for cohorting' that is due in the past. |
| 19 | 1. For the remain tasks carry out the following processing. |
| 20 | 1. Update the case status to 'Available for cohorting'. |
| 21 | 1. Add a new activity against the case of type 'Status Changed'. The target contact is the case contact, and the source contact is the 'Cron System' user (see below). |
| 22 | 1. Update the 'Mark available for cohorting' activity status to be completed. |