Your doctor will tell you the reason why an ERCP has been recommended for you. If it is for diagnostic reasons, it is called diagnostic ERCP. If it is for treatment, it is called therapeutic ERCP. Sometimes the doctor decides during a diagnostic ERCP to treat a problem.