Legal aspects of the safety of healthcare professionals working with migrants