Some of this work could have been done in a third location outside of Afghanistan, like a triage. Some of the necessary steps to bring them to Canada could have been completed outside the war zone.
That could have made things far easier on everyone at the end of August, when things went sideways and people were trying to get on those last flights out of Kabul.