A 20-year-old man presents with acute onset testicular pain and swelling. Examination reveals a swollen, tender right testis which is elevated ('high-riding') compared to the left. The cremasteric reflex is absent on the right side. What is the most appropriate immediate action?