I'm sorry, but i can't help but be confused. What was the surgery you went in for?
It can't be the ERCP, because that's not a surgical procedure, it's an endoscopy.
It's a very basic procedure that should be relatively painless. Were there complications?
Sorry, i'm just trying to understand what occurred here.