Can large language models unlock discrete data in ophthalmic diagnostic reports?
This study addresses the inefficiency and limited accuracy of structured information extraction from ophthalmic diagnostic reports. Leveraging GPT-4o, we compare JSON Schema-constrained generation with pure prompting strategies for automated information extraction across four categories of ophthalmology reports. A Python-based post-processing pipeline is integrated, and performance is evaluated against manual annotation baselines in terms of accuracy and processing time. Results demonstrate that the proposed approach achieves near-perfect accuracy while reducing extraction time by approximately 92% compared to manual annotation. Furthermore, the analysis reveals complementary strengths between the two strategies regarding numerical precision and formatting consistency. Overall, this work validates the efficiency and application potential of general-purpose large language models in processing domain-specific medical documents.