You should keep your NHS medical card with you when you travel so that you can quote your NHS number. Find your NHS number.
If you need medical advice in the UK you can apply to any NHS GP for services as a “temporary resident”. As long as you supply your doctor’s name and address all your records should return to us.