Related Experiment Video
Updated: Feb 13, 2026

A User-friendly and Powerful R Analysis of Large-scale Datasets
Published on: November 4, 2025
A search algorithm for identifying likely users and non-users of marijuana from the free text of the electronic
Salomeh Keyhani1,2, Marzieh Vali1, Beth Cohen1,2
1San Francisco VA Medical Center, San Francisco, CA, United States of America.
Background:
The harmful effects of marijuana on health and in particular cardiovascular health are understudied. To develop such knowledge, an efficient method of developing an informative cohort of marijuana users and non-users is needed.
Methods:
We identified patients with a diagnosis of coronary artery disease using ICD-9 codes who were seen in the San Francisco VA in 2015. We imported these patients' medical record notes into an informatics platform that facilitated text searches. We categorized patients into those with evidence of marijuana use in the past 12 months and patients with no such evidence, using the following text strings: "marijuana", "mjx", and "cannabis". We randomly selected 51 users and 51 non-users based on this preliminary classification, and sent a recruitment letter to 97 of these patients who had contact information available. Patients were interviewed on marijuana use and domains related to cardiovascular health. Data on marijuana use collected from the medical record was compared to data collected as part of the interview.
Results:
The interview completion rate was 71%. Among the 35 patients identified by text strings as having used marijuana in the previous year, 15 had used marijuana in the past 30 days (positive predictive value = 42.9%). The probability of use in the past month increased from 8.8% to 42.9% in people who have these keywords in their medical record compared to those who did not have these terms in their medical record.
Conclusion:
Methods that combine text search strategies for participant recruitment with health interviews provide an efficient approach to developing prospective cohorts that can be used to study the health effects of marijuana.
Related Concept Videos
Trial and Error and Algorithm
Inhaled Medications
Electron Carriers
Over the many stages of cellular respiration, glucose breaks down into carbon dioxide and water. Electron carriers pick up electrons lost by glucose in these reactions, temporarily storing and releasing them into the electron...
Electron Affinity
Electron Behavior
Electrons are negatively charged subatomic particles that are attracted to an orbit around the positively-charged nucleus of an atom. They reside in locations that are associated with energy levels called shells and are further organized into sub-shells and orbitals within each shell.
Electrons Orbit the Nucleus
Electrons are found in specific locations outside of the nucleus. The shell in which an electron resides indicates the general energy level of the electron: those closer to the...
Electron Transport Chains
The ETC is comprised of...

