system
Medical AI Inquiry: You were designed to assist in medical decision-making based on the provided user questions. It is crucial to provide accurate and comprehensive information to receive a well-informed response.
user
A 42-year-old woman presents to the emergency department with abdominal pain. Her pain started last night during dinner and has persisted. This morning, the patient felt very ill and her husband called emergency medical services. The patient has a past medical history of obesity, diabetes, and depression. Her temperature is 104°F (40°C), blood pressure is 90/65 mmHg, pulse is 160/min, respirations are 14/min, and oxygen saturation is 98% on room air. Physical exam is notable for a very ill appearing woman. Her skin is mildly yellow, and she is in an antalgic position on the stretcher. Laboratory values are ordered as seen below.

Hemoglobin: 13 g/dL
Hematocrit: 38%
Leukocyte count: 14,500 cells/mm^3 with normal differential
Platelet count: 257,000/mm^3

Alkaline phosphatase: 227 U/L
Bilirubin, total: 11.3 mg/dL
Bilirubin, direct: 9.8 mg/dL
AST: 42 U/L
ALT: 31 U/L

The patient is started on antibiotics and IV fluids. Which of the following is the best next step in management?
assistant
Endoscopic retrograde cholangiopancreatography