Secure Patient Messaging in Ophthalmology: Retrospective Natural Language Processing Study
Open Access
- 28 October 2026
- journal article
- Published by JMIR Publications Inc. in JMIR Medical Informatics
- Vol. 14, e96026
Abstract
Background: The rapid rise of secure patient messaging has transformed ophthalmic communication, with text volumes now exceeding prepandemic levels across health care systems. Our study uses a natural language processing (NLP) model to explore patterns in over 30,000 secure messages and identify common ocular complaints and differences by patient demographics. Objective: The objective of this study is to characterize the clinical and administrative concerns communicated through secure ophthalmology messaging and to assess differences in message content across patient sociodemographic groups. Methods: We conducted a cross-sectional study of deidentified, patient-initiated secure messages sent between June 2014 and July 2024. Patients with ophthalmic conditions who initiated secure electronic health record (EHR) portal messages were included. Of the 52,388 extracted message threads, 30,390 (58%) patient medical advice request (PMAR) messages routed solely to the Department of Ophthalmology from 4817 unique patients were assessed after the exclusion of questionnaires, courtesy messages, clinician responses, and messages routed to other health care departments. Of these unique patients, 2673 (55.5%) were female, 2740 (56.9%) were aged 50 years or older, 2346 (48.7%) were White, 4392 (91.2%) were non-Hispanic, and 2774 (57.6%) were married. NLP and large language model (LLM)–assisted topic classification were used to categorize message content. The distribution of message topics and frequency of clinical concerns were assessed and stratified by age, sex, race, ethnicity, and marital status. Differences in message frequency by demographic subgroup were assessed using 2-proportion z-tests. Results: Following preprocessing and topic modeling, 14,284 (47%) of the 30,390 messages could be predefined in relation to a topic cluster and were included in the final analysis. Nearly half of all 14,284 predefined messages addressed administrative issues, including 4166 (29.2%) scheduling-related inquiries, 1352 (9.5%) pharmacy and medication refill requests, and 581 (4.1%) insurance document issues. Among clinical concerns, of the total 14,284 predefined messages, 2975 (20.8%) messages involved vision disturbances, 1241 (8.7%) involved glaucoma-related symptoms, 1074 (7.5%) involved tumor-related questions, and 1064 (7.4%) involved surgery-relevant concerns. Message content differed significantly by demographic characteristics. Non-White patients more frequently raised issues related to pharmacy refills, insurance, glaucoma, and disability documentation, whereas White patients more often reported surgical concerns. Older patients more frequently messaged about glaucoma, surgery, and tumor-related issues, while female patients more often reported complications and swelling or infection. Conclusions: Secure patient messages frequently include clinically relevant symptoms with potential triage implications and demonstrate demographic differences in care-seeking behavior. Systematic analysis of message content may support safer triage, improved workflow efficiency, and more equitable delivery of ophthalmic care.Keywords
This publication has 26 references indexed in Scilit:
- Natural language processing techniques applied to the electronic health record in clinical research and practice - an introduction to methodologiesComputers in Biology and Medicine, 2025
- Natural Language Processing of Clinical Documentation to Assess Functional Status in Patients With Heart FailureJAMA Network Open, 2024
- Perspectives on Artificial Intelligence–Generated Responses to Patient MessagesJAMA Network Open, 2024
- Comparison of Ophthalmologist and Large Language Model Chatbot Responses to Online Patient Eye Care QuestionsJAMA Network Open, 2023
- Use of Natural Language Processing of Patient-Initiated Electronic Health Record Messages to Identify Patients With COVID-19 InfectionJAMA Network Open, 2023
- Outcomes of a Hybrid Ophthalmology Telemedicine Model for Outpatient Eye Care During COVID-19JAMA Network Open, 2022
- Racial, Ethnic, and Socioeconomic Disparities Drive Appointment No-Show in Patients with Chronic Eye DiseaseJournal of Racial and Ethnic Health Disparities, 2022
- Demographic and Socioeconomic Differences in Outpatient Ophthalmology Utilization in the United StatesAmerican Journal of Ophthalmology, 2020
- Supply and Perceived Demand for Teleophthalmology in Triage and Consultations in California Emergency DepartmentsJAMA Ophthalmology, 2016
- Epidemiology of Eye-Related Emergency Department VisitsJAMA Ophthalmology, 2016