A 46-year-old man comes to the emergency department with excruciating pain in his left flank radiating to the groin. he has some blood in his urine. what is the most appropriate next step in the management of this patient?