Related Experiment Video
Updated: Apr 12, 2026

Robotic Left Hepatectomy using Indocyanine Green Fluorescence Imaging for an Intrahepatic Complex Biliary Cyst
Published on: June 24, 2022
Identification of primary sclerosing cholangitis: ICD-10 code validation and comparison with a large language model
Melinda Wang1, Mai Dao1, Molly Delk2
1University of California-San Francisco.
Background:
Retrospective studies investigating primary sclerosing cholangitis (PSC) have been limited by the absence of a PSC-specific diagnostic code. In 2018, a new PSC-specific ICD-10 code was introduced.
Aims:
We aimed to validate the new ICD-10 code and compare it to other methods of identifying patients with PSC.
Methods:
All gastroenterology/hepatology and primary clinic notes and discharge summaries were extracted from UCSF Epic Clarity database and potential PSC patients were identified using natural language processing (NLP). PSC diagnosis was determined by physician adjudication through chart review. LASSO regression was used to develop and internally validate a PSC prediction model. Separately, we tested large language model's (LLM) ability to distinguish PSC from non-PSC patients.
Results:
Among 867 patients identified using NLP, 226 (26%) patients were adjudicated to have a true PSC diagnosis. The LASSO model selected ICD-10 code, alkaline phosphatase > 120 IU/L, ursodiol use, inflammatory bowel disease, and history of cholangitis. ICD-10 code alone had a c-statistic of 0.87, sensitivity 87.6%, and PPV 68.8%. The LASSO model had a c-statistic of 0.92, sensitivity 87.4%, and PPV 70.7%. LLM had a c-statistic 0.77, sensitivity 91.7%, and PPV 51.0%.
Conclusions:
The PSC-specific ICD-10 code had excellent discriminatory capacity for identifying patients with PSC. While an optimized PSC prediction algorithm had slightly improved test characteristics, ICD-10 code alone was sufficient in identifying patients with PSC, supporting the use of the ICD-10 code in future database studies of PSC. In contrast, LLM had inferior discrimination compared to either ICD-10 code or the prediction model.
More Related Videos
07:13Comparison of Predictive Performance of Three Lymph Node Staging Systems in Colorectal Signet Ring Cell Carcinoma Based on Machine Learning Model
Published on: April 18, 2025
05:22Intraoperative Strategy under Complex Vascular Adhesion for Laparoscopic Radical Resection of Bismuth-Corlette Type IIIb Perihilar Cholangiocarcinoma
Published on: February 13, 2026