Skip to main content
  • Research note
  • Open access
  • Published:

Documenting cannabis use in primary care: a descriptive cross-sectional study using electronic medical record data in Alberta, Canada



Documenting cannabis use is important for patient care, but no formal requirements for consistent reporting exist in primary care. The objective of this study was to understand how cannabis use is documented in primary care electronic medical record (EMR) data.


This was a cross-sectional study using de-identified EMR data from over 398,000 patients and 333 primary care providers in Alberta, Canada. An automated pattern-matching algorithm was developed to identify text and ICD-9 diagnostic codes indicating cannabis use in the EMR. There was a total of 11,724 records indicating cannabis use from 4652 patients, representing approximately 1.2% of the patient sample. Commonly used terms and ICD-9 codes included cannabis, marijuana/marihuana, THC, 304.3 and 305.2. Nabilone was the most frequently prescribed cannabinoid medication. Slightly more males and those with a chronic condition had cannabis use recorded more often. Overall, very few patients have cannabis use recorded in primary care EMR data and this is not captured in a systematic way. We propose several strategies to improve the documentation of cannabis use to facilitate more effective clinical care, research, and surveillance.


Cannabis is an unusual substance as it is both the most commonly used non-medical psychoactive substance in Canada [1] and is also used medically, which can complicate interpretation of its function. A 2017 national survey reported that 15% of Canadians had used cannabis in the previous year, up from 12% in 2015 [1]. Higher rates were observed in youth aged 15–19 years (19%) and young adults aged 20–24 years (33%) compared to adults 25 years of age and older (13%) [1]. Although cannabis has been accessible in Canada for medical purposes since 2001 [2], the federal government enacted the Cannabis Act in 2018, which legalized limited non-medical possession and use of cannabis [3].

Primary care is usually the first point of entry into the Canadian healthcare system and is the setting for many preventative activities, including understanding patient use of alcohol, tobacco, and drugs. It has been suggested that primary care providers ask all patients about their use of cannabis at least once, in order to assess for potential drug interactions, provide education on the possible risks and harms, propose more effective alternative treatment if applicable, ensure safety when engaging in use, and screen for unhealthy use [4,5,6,7]. Unfortunately, many electronic medical record (EMR) systems are largely ill-equipped to capture this information in structured and searchable fields. Further, there is no agreed-upon guideline for documenting cannabis use in the EMR, including the systematic collection of method, dose, and frequency. The standardized capture of cannabis use information would serve two purposes: to have a record in the EMR that can be easily referenced by primary care team members for appropriate patient care, including monitoring for misuse and possible side effects; and for secondary purposes, such as cannabis-related research and public health surveillance. The goal of this study is to understand the documentation patterns for patient cannabis use observed in primary care EMR data.

Main text

Data source

This was a cross-sectional study using EMR data from Alberta, Canada, which was collected by the Canadian Primary Care Sentinel Surveillance Network (CPCSSN). CPCSSN is comprised of 12 primary care practice-based research networks who organize the regional collection of de-identified patient-level data from the EMR systems of participating family physicians and nurse practitioners [6]. The data are extracted, cleaned, and processed twice per year and include patient demographics, diagnoses, medications, laboratory results, physical measurements (e.g. blood pressure, height, weight), behavioural risk factors, and physician billing claims [6]. Two regional networks contribute to CPCSSN in Alberta—the Northern and Southern Alberta Primary Care Research Networks (NAPCReN and SAPCReN, respectively). Between these two networks, EMR data were captured for over 430,000 patients from 333 providers in 55 clinics in 2019. This represent approximately 10% of patients and 6% of family physicians in Alberta [8, 9]. In relation to the rest of Canada, Alberta tends to have a slightly younger population (average age of 39 years compared to 41.9 in Canada) and higher median employment income in 2020 among full time workers ($70,500 in Alberta versus $63,600 in Canada) [10].

Study sample

De-identified EMR data from patients in the most recent Alberta extraction were included. Better data quality is generally found in 2010 and later; therefore, all data between January 1, 2010 and June 30, 2019 (the date of the most recent data extraction at the time of this study) were used. However, the start date of a patient record can depend on when the practice first implemented an EMR system and when a patient first attended the clinic. The sample represents a variety of patients, providers, locations, and types of EMR systems across the province. In general, the CPCSSN data over-represents older adults and females, as is common in primary care contexts [11].

Search strategy & analysis

The initial list of search terms related to cannabis use (including text words, International Classification of Diseases 9th Revision [ICD-9] codes, medication names, and medication codes using the Anatomical Therapeutic Chemical [ATC] Classification system) was developed by the study team, then circulated to additional primary care providers, health professionals, and researchers for further refinement. A regular expression-based approach was used to develop the search pattern based on this list, then applied to the database and reviewed for accuracy. Terms that did not generate any results or matched an unrelated entry (e.g., grass allergy or breast bud) were excluded (Additional file 2: Table S1). Specific inclusion and exclusion criteria were created according to the entries resulting from the search. This process resulted in the final, automated pattern-matching algorithm that was applied to the database.

Records that contained at least one indication of cannabis use based on the final search strategy were included. The type and frequency of records and terms were described by location in the EMR (i.e., table, field). The presence of a cannabis record was reported by patient characteristics such as gender, age group, urban or rural residence, and presence of chronic condition(s), as well as by type of EMR system. Data management and analysis were conducted using Python 3.7.3, StataSE 16.0, and R v4.2.1. This study was approved by the Conjoint Health Research Ethics Board at the University of Calgary (REB19-0429) and the Health Research Ethics Board at the University of Alberta (Pro00093062).


There were 11,724 records indicating cannabis use from a total of 4652 unique patients. Table 1 details the terms and ICD-9 codes representing cannabis use found in the EMR (additional details in Additional file 2: Table S1). In the Billing table (where codes are used for the submission of billing claims to government for payment, with ICD-9 required for diagnostic codes), ICD-9 codes 304.3x (cannabis dependence) and 305.2x (non-dependent cannabis abuse) were used to reflect a more problematic type of use. These codes were also used throughout other sections of the EMR, including Encounter Diagnosis (which consists of diagnoses, symptoms, or activities recorded during the patient visit or encounter), Family History, and Problem List (a list of the patients’ most significant health concerns). The most common text terms and variations of these terms were cannabis, marijuana/marihuana, and THC. These terms were found in all EMR tables except for Billing. Entries often included more than one term. A total of 8 different terms for non-medical cannabis were found, with an additional 5 terms identified referring to medical uses in the Medication table (Nabilone being the most common). These tables serve different purposes in the EMR; the terms/codes listed may have been recorded at any time during a routine visit, for billing purposes, or captured as part of the initial patient history.

Table 1 Cannabis-related terms and codes found in various sections of the EMR data

Table 2 describes the characteristics of patients who are in the Alberta CPCSSN data and who had at least one record of cannabis use in their EMR. Overall, there was a relatively low frequency of cannabis use recorded. Male patients (n = 2661) had slightly more total records of cannabis use compared to females (n = 1990). Youth 19 years and younger had the lowest proportion of cannabis use documented in their EMR. Among those with a record of cannabis use, over half had depression (66% in females, 51% in males), roughly a quarter had hypertension (27% in females, 25% in males), and many had osteoarthritis (23% in females, 18% in males).

Table 2 Characteristics of patients with a cannabis term recorded in their primary care electronic medical record

We examined the estimated time period between when the first cannabis record appeared in a patient’s EMR (from 2010 onward) and the number of years of information present in that patient's record (Additional file 1: Figure S1). Most patients had cannabis used documented within their first 5 years of data, either beginning at first appointment within the practice or when the EMR was implemented in the clinic. There was an observable increase in cannabis recording from late 2015 onwards, perhaps reflecting increasing public discourse around the potential legalization of cannabis in Canada.

Cannabis documentation was also examined by type of EMR system (Additional file 2: Table S2). Less than 2% of all patients had a record of cannabis use, but this varied by EMR from 1.0% to 1.7% (p < 0.001). We also investigated differences in cannabis use documentation according to provider characteristics (e.g. age, sex, urban or rural location of practice), however no differences in these characteristics were detected.


Overall a very small proportion of patients had cannabis use documented, especially compared to prevalence estimates in the general population [12]. This is consistent with other types of behavioural risk factor data, such as alcohol use or smoking, which tend to be missing often or not recorded in a structured or easily extractable way in primary care EMRs [13,14,15,16]. Relative to all patients within the Alberta CPCSSN database, patients with a record of cannabis use were more likely to have a chronic condition. These findings may suggest an informed presence bias [17], where patients seeking care more frequently tend to have more opportunities for discussions around current substance use or screening. Further, these findings may indicate the use of cannabis as an alternative, patient-initiated treatment option for chronic conditions such as depression; Rotermann et al. found that cannabis use for some self-defined medical purposes in addition to non-medical purposes was higher among Canadians who reported fair to poor physical or mental health compared to those in better general or mental health [18].

The lack of observed cannabis use records in the EMR data may be due to multiple factors—providers may not ask all patients about cannabis use, patients may be unwilling to disclose it due to persisting stigma around social acceptability, or this information may be recorded in areas of the EMR that CPCSSN is unable to extract from (e.g. narrative notes). Alternatively, perhaps a patient-provider discussion of cannabis use occurred but was not recorded, particularly prior to its legalization [6, 7, 12]. Various text terms were used but without specific information related to amount, frequency, or method, which is necessary to help clinicians evaluate potential drug-drug interactions or to monitor high-risk use. Lastly, there is insufficient information to indicate if the cannabis is medically indicated or used for non-medical purposes. While cannabinoid medications with a Drug Information Number (DIN) will be recorded similarly to other types of medication in the EMR, herbal cannabis does not have a DIN and, until 2018, was subject to additional documentation required by Health Canada and regulatory bodies (which would not be part of the CPCSSN database). After legalization in Canada, patients can now obtain cannabis from retail sources without a prescription from a healthcare provider, although many still report using it for medical purposes; this information would also not be included as medication data in the CPCSSN database unless disclosed by the patient. However, a recent Canadian survey suggests that most cannabis is purchased from either legal storefronts or a legal online source (approximately 54%) and very few respondents reported obtaining a medical document from a healthcare provider (an estimated 3% of Canadians) [19], meaning that the EMR database is likely missing most uses of cannabis apart from instances obtained through medical professionals (which appear to make up a very small proportion of cannabis use) or when elicited and recorded by physicians during clinical visits. The overall lack of cannabis use information accessible in our primary care EMR database presents challenges not only for secondary uses but may also potentially contribute to gaps in clinical care.

Suggestions to improve cannabis documentation

Strategies to improve cannabis use documentation are multi-faceted. This largely relies on having adequate resources, support and time in busy primary care practices. Nevertheless, it is important for clinicians to understand what substances (including drugs and over-the-counter medications) are being taken or used by their patients. For patients who indicate that they are using cannabis, we suggest the following additional information be collected [20]:

  1. 1.

    Age at initiation;

  2. 2.

    Current frequency of use, with quantities (e.g., once per week)

  3. 3.

    Method of use (e.g., vaporized, smoked, synthetics, oils, etc.)

  4. 4.

    How much is used or consumed (in milligrams or grams, if known; THC and CBD content, if known);

  5. 5.

    Reason for use;

  6. 6.

    Reported side effects, if any.

Another critical aspect is ensuring that EMR systems offer easy-to-use, structured fields to capture this information, as well as an area with tools available to assess unhealthy use of cannabis (e.g., Alcohol, Smoking and Substance Involvement Screening Test [ASSIST], Cannabis Use Disorder Identification Test-Revised [CUDIT-R]). Although a minimum data set for Canadian primary care EMRs has been developed, it does not include details about risk factors and only recommends capturing the date of onset and a code representing “social behaviour that increases the possibility of disease or injury” or problematic use [21]. This minimum data set is not mandatory and a wide variety of data elements and quality can be observed in multi-jurisdictional EMR data, largely due to the many different types of EMR products available in Canada [16, 22,23,24].


To our knowledge, this study was the first in Canada to examine how cannabis use is being documented in primary care EMRs. However, the analysis was limited to one province and to a subset of providers and patients contributing to CPCSSN in Alberta. Moreover, not all data in the EMR were available for analysis, as CPCSSN data in Alberta does not include narrative notes or PDF documents. There also may be additional terms or codes reflecting cannabis use that were too generic to include here (e.g., ‘substance use’).

The systematic and consistent recording of cannabis use in primary care is important for comprehensive patient care and improving our knowledge about trends in cannabis use. This study described large inconsistencies and gaps in recording this information. EMR vendors should prioritize offering a dedicated and structured area in the EMR to capture cannabis and other substance use data to assist clinicians with capturing higher quality, more consistent, and clinically meaningful EMR data for patient care and practice evaluation and improvement.

Availability of data and materials

The de-identified datasets supporting the conclusions of this article are available as two separate datasets through the respective regional networks in Alberta: NAPCReN,; SAPCReN, Data access procedures and requirements vary by network; for more information, please contact the corresponding author or visit the aforementioned websites.



Alcohol Smoking and Substance Involvement Screening Test


Anatomical Therapeutic Chemical (classification system)




Canadian Primary Care Sentinel Surveillance Network


Cannabis Use Disorder Identification Test-Revised


Drug Information Number


Electronic Medical Record


International Classification of Diseases, 9th revision


Northern Alberta Primary Care Research Network


Southern Alberta Primary Care Research Network




  1. Government of Canada. Canadian Tobacco, Alcohol and Drugs Survey (CTADS): summary of results for 2017. 2017. Accessed Nov 11 2020.

  2. Health Canada. Understanding the new access to cannabis for medical purposes regulations. 2016. Accessed Mar 4 2021.

  3. Department of Justice. Cannabis Act. 2019. Accessed 4 Nov 2020.

  4. Bertram JR, Porath A, Seitz D, Kalant H, Krishnamoorthy A, Nickerson J, et al. Canadian guidelines on cannabis use disorder among older adults. Can Geriatr J. 2020;23(1):135–42.

    Article  Google Scholar 

  5. Slawek D, Meenrajan SR, Alois MR, Comstock Barker P, Estores IM, Cook R. Medical Cannabis for the primary care physician. J Prim Care Community Heal. 2019;10:1–7.

    Google Scholar 

  6. Turner SD, Spithoff S, Kahan M. Approach to cannabis use disorder in primary care: focus on youth and other high-risk users. Can Fam Physician. 2014;60(9):801–8.

    Google Scholar 

  7. Shelley BM, Sussman AL, Williams RL, Segal AR, Crabtree BF. “They don’t ask me so I don’t tell them”: patient-clinician communication about traditional, complementary, and alternative medicine. Ann Fam Med. 2009;7(2):139–47.

    Article  Google Scholar 

  8. Statistics Canada. Table 17–10–0009–01. Population estimates, quarterly. Ottawa, Canada; 2021.

  9. Canadian Medical Association. Family Medicine Profile. 2019.

  10. Statistics Canada. Census Profile, 2021 Census of Population. Statistics Canada Catalogue no. 98–316-X2021001. 2022. Accessed 16 Dec 2022.

  11. Queenan JA, Williamson T, Khan S, Drummond N, Garies S, Morkem R, et al. Representativeness of patients and providers in the Canadian primary care sentinel surveillance network: a cross-sectional study. CMAJ Open. 2016;4(1):e28-32.

    Article  Google Scholar 

  12. Government of Canada. Canadian Cannabis Survey 2019 - Summary. 2019. Accessed Mar 9 2021.

  13. Torti J, Duerksen K, Forst B, Salvalaggio G, Jackson D, Manca D. Documenting alcohol use in primary care in Alberta. Can Fam Physician. 2013;59(10):1128.

    Google Scholar 

  14. Singer A, Kosowan L, Loewen S, Spitoff S, Greiver M, Lynch J. Who is asked about alcohol consumption? A retrospective cohort study using a national repository of electronic medical records. Prev Med Rep. 2021.

    Article  Google Scholar 

  15. Greiver M, Aliarzadeh B, Meaney C, Moineddin R, Southgate CA, Barber DTS, et al. Are we asking patients if they smoke?: missing information on tobacco use in Canadian electronic medical records. Am J Prev Med. 2015;49(2):264–8.

    Article  Google Scholar 

  16. Garies S, Jackson D, Aliarzadeh B, Keshavjee K, Martin K, Williamson T. Improving usability of smoking data in EMR systems. Can Fam Physician. 2013;59(1):108.

    Google Scholar 

  17. Phelan M, Bhavsar NA, Goldstein A. Illustrating informed presence bias in electronic health records data: how patient interactions with a health system can impact inference. EGEMS. 2017;5(1):1–14.

    Article  Google Scholar 

  18. Rotermann M, Pagé MM. Prevalence and correlates of non-medical only compared to self-defined medical and non-medical cannabis use, Canada, 2015. Health Rep. 2018;29(7):3–13.

    Google Scholar 

  19. The Government of Canada. Canadian Cannabis Survey 2020 . 2021. Accessed 16 Dec 2022.

  20. British Columbia Ministry of Health & University of British Columbia. Cannabis: clinical flowchart. 2020. Accessed 9 Mar 2021.

  21. Canadian Institute for Health Information. Pan-Canadian primary health care EMR minimum data set for performance measurement. Ottawa, ON; 2020.

  22. Terry AL, Stewart M, Cejic S, Marshall JN, de Lusignan S, Chesworth BM, et al. A basic model for assessing primary health care electronic medical record data quality. BMC Med Inform Decis Mak. 2019;19:30.

    Article  Google Scholar 

  23. Bowen M, Lau F. Defining and evaluating electronic medical record data quality within the Canadian context. Electron Healthc. 2012;11(1):5–13.

    Google Scholar 

  24. Garies S, McBrien K, Quan H, Manca D, Drummond N, Williamson T. A data quality assessment to inform hypertension surveillance using primary care electronic medical record data from Alberta. Canada BMC Public Health. 2021;21:264.

    Article  Google Scholar 

Download references


Not applicable.


No funding was received for conducting this study. The CPCSSN project, hosted by NAPCReN and SAPCReN, is funded by the Canadian Institutes of Health Research (CIHR) and Alberta Innovates through the Alberta Strategies for Patient Oriented Research (SPOR) Primary and Integrated Health Care Innovation Network, as well as the Public Health Agency of Canada. The funders had no role in the study design, data collection, analysis or interpretation of the data, or in the writing of the manuscript.

Author information

Authors and Affiliations



All authors contributed to the study conception and design. Material preparation, data collection and/or analysis were performed by ACB, BS, BF, and KD. The first draft of the manuscript was written by SG and all authors commented on previous versions of the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Stephanie Garies.

Ethics declarations

Ethics approval and consent to participate

This study was approved by the University of Calgary’s Conjoint Health Research Ethics Board (REB19-0429) and the Health Research Ethics Board at the University of Alberta (Pro00093062). A waiver of individual patient consent was granted by the Research Ethics Board at each university affiliated with participating CPCSSN practice-based research network for the collection and use of de-identified EMR data.

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Additional file 1: Figure S1.

Length of time to the first mention of cannabis in the patient record (from earliest date in the EMR).

Additional file 2: Table S1.

Search terms used in the EMR data.

Additional file 3: Table S2.

Differences in cannabis-related recording by type of EMR system.

Additional file 4: Table S3.

Characteristics of patients with a cannabis term recorded in their primary care electronic medical record, stratified by presence of record in the Medication table.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit The Creative Commons Public Domain Dedication waiver ( applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Soos, B., Garies, S., Cornect-Benoit, A. et al. Documenting cannabis use in primary care: a descriptive cross-sectional study using electronic medical record data in Alberta, Canada. BMC Res Notes 16, 9 (2023).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: