Fourth swap of captives for prisoners comes as 50 Palestinians due to leave through Rafah crossing to hospitals abroad.