The diagnosis of SOD often involves a combination of clinical evaluation, imaging studies, and manometric testing. Endoscopic Retrograde Cholangiopancreatography (ERCP) is a key diagnostic tool that allows for direct visualization and pressure measurement within the bile and pancreatic ducts. Histological examination of biopsy samples taken during ERCP can provide insights into the cellular and tissue changes associated with SOD.