Endocytoscopy assists in the intraoperative diagnosis of carcinoma in a patient with chronic pancreatitis.