There are 50 patients and 10 appointment slots. Each slot can hold a maximum of 5 patients.
- I would like to assignee the patients that don’t have an appoint to an appoint slot starting with appointment slot 1 and working my way down to slot 10.
E.g. If Appoint 1 has only 2 patients, I want to assignee the first 3 available patients to that slot and then move on to appoint 2.
I have tried to make an iterative flow but I couldn’t apply the logic to allow the first available patients to be assigned to the first appoint slots.