During an ERCP, the patient swallows an endoscope, which is a long, flexible, lighted tube connected to a computer and TV monitor.