You can have your residence permit extended for the purpose of carrying out a qualification measure for the recognition of your foreign professional qualification before the expiry of its period of validity if you fulfil certain conditions for this purpose