Idk about medicine but if you want to retake a gcse exam, do it in november (you'd need to check specific examboard timetables) and you'll get your results just before the ucas deadline which you can then put on the ucas website and submit your application with your NEW grade. The unis dont need to know your previous grades