Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Cannabis Use Documentation within the Electronic Health Record: A Use Case for Natural Language Processing Methods

Apoorva M. Pradhan, Vishal A. Shetty, Christina M. Gregor, Jove H. Graham, Lorraine Tusing, Annemarie G. Hirsch, Eric Hall, View ORCID ProfileVanessa Troiani, Mellar P. Davis, Donielle L. Beiler, Katrina M. Romagnoli, Chadd K. Kraus, Brian J. Piper, Eric A. Wright
doi: https://doi.org/10.64898/2026.02.27.26347207
Apoorva M. Pradhan
aCenter for Pharmacy Innovation and Outcomes, Geisinger College of Health Sciences, Danville, PA, US
bDepartment of Pharmacy, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • For correspondence: apradhan1{at}geisinger.edu
Vishal A. Shetty
aCenter for Pharmacy Innovation and Outcomes, Geisinger College of Health Sciences, Danville, PA, US
cDepartment of Health Promotion & Policy, University of Massachusetts, Amherst, MA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Christina M. Gregor
aCenter for Pharmacy Innovation and Outcomes, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Jove H. Graham
aCenter for Pharmacy Innovation and Outcomes, Geisinger College of Health Sciences, Danville, PA, US
bDepartment of Pharmacy, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Lorraine Tusing
aCenter for Pharmacy Innovation and Outcomes, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Annemarie G. Hirsch
dDepartment of Population Health Sciences, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Eric Hall
eBiomedical Research Informatics Center, Nemours Children’s Health, Wilmington, DE, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Vanessa Troiani
fDepartment of Developmental Medicine, Geisinger College of Health Sciences, Danville, PA, US
gCenter for Substance Use Research and Education, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Vanessa Troiani
Mellar P. Davis
hSection Chief of Palliative Medicine, Department of Supportive Oncology, Levine Cancer Institute, Charlotte, NC, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Donielle L. Beiler
fDepartment of Developmental Medicine, Geisinger College of Health Sciences, Danville, PA, US
gCenter for Substance Use Research and Education, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Katrina M. Romagnoli
aCenter for Pharmacy Innovation and Outcomes, Geisinger College of Health Sciences, Danville, PA, US
dDepartment of Population Health Sciences, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Chadd K. Kraus
iDepartment of Emergency and Hospital Medicine, Jefferson Health-Lehigh Valley, Allentown, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Brian J. Piper
aCenter for Pharmacy Innovation and Outcomes, Geisinger College of Health Sciences, Danville, PA, US
jDepartment of Medical Education, Geisinger College of Health Sciences, Scranton, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Eric A. Wright
aCenter for Pharmacy Innovation and Outcomes, Geisinger College of Health Sciences, Danville, PA, US
bDepartment of Pharmacy, Geisinger College of Health Sciences, Danville, PA, US
kDepartment of Investigational Medicine, Geisinger College of Health Sciences, Danville, PA, US
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Supplementary material
  • Data/Code
  • Preview PDF
Loading

Abstract

Introduction Recreational and medical cannabis use (CU) information is often available within the electronic health record (EHR) in a format that is impractical for health care provider use. Transformation of free-text EHR documentation in notes to discrete elements is possible using natural language processing (NLP) and has the potential to characterize CU efficiently. The objective of this study was to develop an NLP algorithm to identify documentation of CU within EHR unstructured clinical notes.

Methods We identified EHR notes with cannabis-related terminologies through a keyword search among all Geisinger patients with at least one encounter between 1/1/2013 and 6/30/2022. We trained four NLP models to classify notes into six categories based on time, context, and reliability of CU documentation identified through manual annotation. We compared the demographic characteristics of patients with positive classification for CU using the best-performing model to those of the overall population.

Results Of the over 1.7 million eligible patients, 150,726 (8.6%) were flagged as cannabis users. The Bio-ClinicalBERT, a transformer-based NLP model, achieved close to human performance in classifying CU (weighted Precision=91.4, Recall=93.3, F-score=92.4). Cannabis users had higher BMI and were at least nine-fold more likely to use tobacco, alcohol, and illicit substances.

Conclusion Our study evaluated the prevalence of CU documentation across the entire corpus of EHR notes data without population segmentation. The NLP methodologies used achieved performance close to that of human annotation and laid the foundation for identifying and classifying CU within unstructured data sources, with future applications in research and patient care.

Plain Language Summary Marijuana, also known as cannabis, may impact the health of patients, yet it is not routinely captured in medical records, and when documented, it is often found in unstructured formats (e.g., progress notes) rather than in discrete fields. Incomplete and unstructured capture limits many functional capabilities within the EHR that enhance patient care (e.g., drug interactions, notifications) and limit researchers from identifying patients routinely exposed to marijuana use. The transformation of free-text documentation of cannabis use (CU) into discrete elements can be performed using natural language processing (NLP). The objective of this study was to develop an NLP model to identify CU in unstructured clinical notes in the EHR. We examined the EHRs of Geisinger patients in Pennsylvania over a 10-year period. Among 1.7 million patients, 9% were identified as CU. One of the NLP models tested, Bio-ClinicalBERT, achieved the highest performance. Cannabis users had a higher BMI and were ten-fold more likely to be tobacco users, ten-fold more likely to use alcohol, and nine-fold more likely to use illicit substances. NLP can be used to better understand the risks and benefits of CU at a population level and may improve patient identification to assist clinical decision-making. Future CU epidemiological research should continue to explore other avenues to automate and improve CU documentation by leveraging rapidly evolving technologies, such as artificial intelligence-driven tools.

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

The study is funded by Ascend Wellness Holdings, Clinical Registrant through the Geisinger Academic Clinical Research Center. The funder was not involved in the study or the decision to submit for publication.

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

This study protocol was reviewed and approved by the Geisinger Institutional Review Board, IRB (approval number 2022-0498).

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data Availability Statement

Data and models may be shared upon reasonable request in the future, contingent on IRB approval. Specific requests for access to the data should be directed to the corresponding author, who will facilitate the process, contingent upon approval and adherence to the necessary ethical and institutional guidelines.

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC 4.0 International license.
Back to top
PreviousNext
Posted March 02, 2026.
Download PDF

Supplementary Material

Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Cannabis Use Documentation within the Electronic Health Record: A Use Case for Natural Language Processing Methods
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Cannabis Use Documentation within the Electronic Health Record: A Use Case for Natural Language Processing Methods
Apoorva M. Pradhan, Vishal A. Shetty, Christina M. Gregor, Jove H. Graham, Lorraine Tusing, Annemarie G. Hirsch, Eric Hall, Vanessa Troiani, Mellar P. Davis, Donielle L. Beiler, Katrina M. Romagnoli, Chadd K. Kraus, Brian J. Piper, Eric A. Wright
medRxiv 2026.02.27.26347207; doi: https://doi.org/10.64898/2026.02.27.26347207
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Cannabis Use Documentation within the Electronic Health Record: A Use Case for Natural Language Processing Methods
Apoorva M. Pradhan, Vishal A. Shetty, Christina M. Gregor, Jove H. Graham, Lorraine Tusing, Annemarie G. Hirsch, Eric Hall, Vanessa Troiani, Mellar P. Davis, Donielle L. Beiler, Katrina M. Romagnoli, Chadd K. Kraus, Brian J. Piper, Eric A. Wright
medRxiv 2026.02.27.26347207; doi: https://doi.org/10.64898/2026.02.27.26347207

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Addiction Medicine
Subject Areas
All Articles
  • Addiction Medicine (576)
  • Allergy and Immunology (868)
  • Anesthesia (306)
  • Cardiovascular Medicine (4483)
  • Dentistry and Oral Medicine (449)
  • Dermatology (385)
  • Emergency Medicine (615)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1528)
  • Epidemiology (15283)
  • Forensic Medicine (31)
  • Gastroenterology (1134)
  • Genetic and Genomic Medicine (6651)
  • Geriatric Medicine (671)
  • Health Economics (1006)
  • Health Informatics (4606)
  • Health Policy (1378)
  • Health Systems and Quality Improvement (1624)
  • Hematology (545)
  • HIV/AIDS (1276)
  • Infectious Diseases (except HIV/AIDS) (15965)
  • Intensive Care and Critical Care Medicine (1111)
  • Medical Education (626)
  • Medical Ethics (147)
  • Nephrology (675)
  • Neurology (6699)
  • Nursing (346)
  • Nutrition (1006)
  • Obstetrics and Gynecology (1153)
  • Occupational and Environmental Health (961)
  • Oncology (3370)
  • Ophthalmology (989)
  • Orthopedics (370)
  • Otolaryngology (421)
  • Pain Medicine (437)
  • Palliative Medicine (131)
  • Pathology (670)
  • Pediatrics (1704)
  • Pharmacology and Therapeutics (700)
  • Primary Care Research (717)
  • Psychiatry and Clinical Psychology (5497)
  • Public and Global Health (9288)
  • Radiology and Imaging (2225)
  • Rehabilitation Medicine and Physical Therapy (1375)
  • Respiratory Medicine (1202)
  • Rheumatology (598)
  • Sexual and Reproductive Health (721)
  • Sports Medicine (536)
  • Surgery (722)
  • Toxicology (100)
  • Transplantation (290)
  • Urology (267)