Introduction
ESGE guidelines recommend standardized reporting for upper-GI endoscopy, and the recent STAR initiative reinforces that core data fields, classifications, and image documentation should be captured for every procedure. In routine practice, however, “standardization” is often delivered as free-text narrative, leaving inclusion of required classifications to individual habit. Without prior experience in application development, we used a commercially available large language model (LLM) to build a structured-reporting application that guides the endoscopist through hierarchical, conditional prompts covering all upper-GI pathology and automatically generates both a narrative report for the patient and structured data for research; the runtime contains no AI inference. We hypothesized that this design forces strict compliance with pathology classifications, including premalignant lesions - a prerequisite for appropriate surveillance under MAPS III.
Aims & Methods
In this proof-of-concept two-period crossover study at a tertiary centre, ten endoscopists (5 seniors, 5 trainees) reported 30 prerecorded upper-GI procedures. Raters were randomized to write first in free-text (FT) or in the structured application (ST); after a 14-day washout each rater crossed over so every case was reported under both forms. Six raters completed both study periods, while four contributed only first-period data. The primary outcome was report completeness, scored item-by-item (1 = fully reported, 0.5 = detected-not-classified [DNC], 0 = missing) across three domains: (1) anatomical landmarks, (2) classification use (LA, Hill, Paris, Forrest, etc.), and (3) premalignant lesions (atrophy, intestinal metaplasia including segmental distribution). Secondary outcome was writing time. Paired comparisons (Wilcoxon signed-rank for continuous and McNemar’s exact test for binary outcomes) were restricted to reports available as FT and ST by the same rater. All available reports were analyzed in mixed-effects models with form, round, and rater level as fixed effects and random intercepts for rater and case. We tested carry-over via the form × round interaction.
Results
A total of 505 reports were analyzed (240 FT, 265 ST). Structured reporting increased completeness across all domains. Mixed-effects models showed higher adjusted mean completeness under ST for every domain (anatomy +0.08, classification +0.05, premalignant +0.39, overall +0.13); all 95% CIs excluded zero; all p < 0.001. In matched-pair analyses the proportion of fully complete reports rose from 24.8% to 97.1% overall and from 26.7% to 100% for premalignant lesions (paired comparisons p < 0.001), the latter driven by consistent segmental documentation and Kimura-Takemoto staging required by MAPS III. Writing time was shorter with ST (median 2.12 vs 2.66 min across all reports; adjusted mean difference −0.60 min, 95% CI −0.98 to −0.21; p = 0.002). No significant form × round interaction was detected, supporting an adequate washout.
Conclusion
A clinician-built structured-reporting application developed with LLM coding assistance rather than LLM-driven generation produces upper-GI endoscopy reports substantially more complete than free-text reports, most strikingly for premalignant lesions, where the form architecturally enforces segmental documentation and Kimura-Takemoto staging required by MAPS III. Such clinician-authored tools offer a low-cost route to closing the reporting-quality gap, particularly in resource-limited settings.