ERCP is a diagnostic test or procedure that combines upper gastrointestinal (GI) endoscopy and x-rays to treat problems