P-288. From Dialogue to Documentation and Back: A Rule-Based NLP Algorithm to Detect PrEP Discussions and Identify Eligible Patients in the Emergency Department

Abstract Background Despite decreasing HIV incidence in the U.S., disparities persist among minoritized populations. Pre-exposure prophylaxis (PrEP), a highly effective prevention strategy remains underutilized. Emergency departments (EDs) offer a key opportunity to expand access, especially for individuals facing systemic barriers. While EDs have implemented HIV screening and linkage programs, many PrEP-eligible patients remain unrecognized. This highlights the need for scalable tools to identify candidates and prompt PrEP discussions. Natural language processing (NLP) can extract relevant information from unstructured electronic health records and has been used to identify clinical concepts. This study aims to develop a rule-based NLP algorithm to detect PrEP-related discussions and identify PrEP-eligible patients using EHR data. Methods This is a retrospective cohort study of ED encounters from April 2022-April 2025. The NLP pipeline is divided into two phases. Phase I: inclusion and exclusion phrase sets were iteratively refined using regular expressions and manual review to enhance classification accuracy. Phase II (currently underway), the algorithm will be applied to a manually annotated dataset. Performance will be evaluated using sensitivity, specificity, and precision. For identifying PrEP-eligible patients, NLP results will be compared to structured data (ICD-10 codes, labs). Results Refinement improved the algorithm’s accuracy in detecting PrEP discussions, reducing the number of sentences manually reviewed from 12,016 to 7,255. True positives (TP) increased from 8% in Round 1 to 53.7% in Round 3, while false positives (FP) decreased from 77% to 45.6%; remaining cases were classified as unclear due to insufficient context. Common FP stemmed from unrelated uses of “prep”, for example, “short prep with oral contrast prior to CT” As for PrEP eligibility, 53,175 sentences were initially extracted using 70 phrases, yielding 32.3% TP. In Round 2, refined rules improved performance to 75.6% TP with only 1.2% FP. A representative FP included, “In ambulance she was given IV fentanyl” flagged due to opioid use outside the setting of substance use disorder. Conclusion Rule-based NLP shows promise for advancing HIV prevention in the ED. Disclosures All Authors: No reported disclosures

Authors

Institutions

Publication Details

Journal
Open Forum Infectious Diseases
Published
2026-01-01
DOI
https://doi.org/10.1093/ofid/ofaf695.509
Primary Topic
Data-Driven Disease Surveillance
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

P-288. From Dialogue to Documentation and Back: A Rule-Based NLP Algorithm to Detect PrEP Discussions and Identify Eligible Patients in the Emergency Department

Rahma Aldhaheri, Alysse Wurcel
Open Forum Infectious Diseases
Data-Driven Disease Surveillance
article

P-288. From Dialogue to Documentation and Back: A Rule-Based NLP Algorithm to Detect PrEP Discussions and Identify Eligible Patients in the Emergency Department

Rahma Aldhaheri, Alysse Wurcel
article en

Abstract

Abstract Background Despite decreasing HIV incidence in the U.S., disparities persist among minoritized populations. Pre-exposure prophylaxis (PrEP), a highly effective prevention strategy remains underutilized. Emergency departments (EDs) offer a key opportunity to expand access, especially for individuals facing systemic barriers. While EDs have implemented HIV screening and linkage programs, many PrEP-eligible patients remain unrecognized. This highlights the need for scalable tools to identify candidates and prompt PrEP discussions. Natural language processing (NLP) can extract relevant information from unstructured electronic health records and has been used to identify clinical concepts. This study aims to develop a rule-based NLP algorithm to detect PrEP-related discussions and identify PrEP-eligible patients using EHR data. Methods This is a retrospective cohort study of ED encounters from April 2022-April 2025. The NLP pipeline is divided into two phases. Phase I: inclusion and exclusion phrase sets were iteratively refined using regular expressions and manual review to enhance classification accuracy. Phase II (currently underway), the algorithm will be applied to a manually annotated dataset. Performance will be evaluated using sensitivity, specificity, and precision. For identifying PrEP-eligible patients, NLP results will be compared to structured data (ICD-10 codes, labs). Results Refinement improved the algorithm’s accuracy in detecting PrEP discussions, reducing the number of sentences manually reviewed from 12,016 to 7,255. True positives (TP) increased from 8% in Round 1 to 53.7% in Round 3, while false positives (FP) decreased from 77% to 45.6%; remaining cases were classified as unclear due to insufficient context. Common FP stemmed from unrelated uses of “prep”, for example, “short prep with oral contrast prior to CT” As for PrEP eligibility, 53,175 sentences were initially extracted using 70 phrases, yielding 32.3% TP. In Round 2, refined rules improved performance to 75.6% TP with only 1.2% FP. A representative FP included, “In ambulance she was given IV fentanyl” flagged due to opioid use outside the setting of substance use disorder. Conclusion Rule-based NLP shows promise for advancing HIV prevention in the ED. Disclosures All Authors: No reported disclosures

Open Forum Infectious DiseasesVol. 13(Supplement_1)
Boston Medical Center (US), Tufts Medical Center (US)
Reduced inequalities
Openalex Percentile: Top 91%
Data-Driven Disease Surveillance
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.