Ultrasonography is the first-line diagnostic imaging test for cholestasis, but most patients require magnetic resonance cholangiopancreatography, ERCP, or both to rule out other causes such as cholelithiasis or cholangiocarcinoma (see Imaging Tests of the Liver and Gallbladder).