If I have understood this correctly, your Portuguese medical is valid in the UK at least until Brexit. But you have to have your medical with the same state as your license, so as soon as you apply for a license you must transfer the medical to UK CAA. The tansfer of license will take some time, so be prepared for it as well.