Abstract
Managing data from continuous glucose monitoring (CGM) systems presents challenges to health care provider teams that rely on the electronic health record (EHR) during patient visits. A method of integrating CGM data with the EHR that relies on the Dexcom API was developed by Northwestern Medicine and Dexcom to address these challenges. Here, we describe the data management steps and user interface of the integrated system. Providers can access patients’ historical and latest daily CGM data in the form of modal day plots and stacked columns showing time in various glucose concentration ranges. The integration facilitates the acquisition, storage, analysis, and display of CGM data within an EHR system and may be appropriate for deployment in other health care facilities.
Keywords: continuous glucose monitoring, diabetes, digital health, electronic health record
Introduction
Continuous glucose monitoring (CGM) systems are a centerpiece of modern diabetes management. Continuous glucose monitoring–generated data are used to assess glycemic status, guide insulin delivery systems, and prompt timely therapeutic interventions. Retrospective analysis of CGM data can assist clinicians to make appropriate therapy modifications to achieve glucose targets and prevent diabetes-related complications. 1 Continuous glucose monitoring use has been expanding to different areas of health care, including primary care 2 and telemedicine.3,4 However, despite the benefits of CGM and its expanded uses, CGM data are not easily accessible to clinicians primarily because they are not widely integrated with electronic health records (EHRs).
Growing adoption of CGM, combined with an undersupply of endocrinologists, suggests that primary care teams will increasingly need to familiarize themselves with and analyze CGM data during routine care. For clinicians and patients, accessing CGM data in outpatient settings involves multiple processes to retrieve data from several manufacturer-specific portals. Clinical staff bear the additional burden of manually importing data into the patient’s EHR. There are also institutional and financial barriers such as contracting needs, software costs, and liability considerations. 2 Such barriers hinder the expansion of CGM technology use in outpatient settings. A survey of 21 pediatric and adult diabetes clinics reported using seven different web-based portals to access patient data yet only one clinic reported CGM-EHR integration. 3
With a large majority of office-based clinicians using an EHR system, 5 there is an urgent need to integrate CGM data directly into clinician workflows. Making CGM data available in the EHR may vastly improve diabetes care in outpatient settings by allowing clinicians to access and interpret data more efficiently and provide their patients with more relevant education. 6 We integrated CGM (G6, Dexcom, Inc., San Diego, California) data with the Epic (Epic Systems, Verona, Wisconsin) EHR using the Dexcom API (developer.dexcom.com).
Methods
The Northwestern Medicine CGM Remote Physiologic Monitoring (CGM-RPM) Project aimed to simplify access to CGM data within Epic. The Dexcom API utilizes the OAuth 2.0 standard, allowing individuals to securely authorize sharing of their CGM data with third-party applications. This solution eliminates the need for third-party EHR integration companies, simplifies the clinician workflow by not requiring repeated orders within their EHR system, and provides greater flexibility in interpretation and display.
A team from the health center’s Information Services department developed the integration solution, including building the patient-facing enrollment platform and the data management workflow from the Dexcom API to Epic. The development team embedded a custom web application called My Home Devices into the MyNM portal, a branded version of Epic MyChart (MyChart, Epic Systems), which allows patients to integrate device data from external vendors. Once patients completed authentication and authorization steps, Dexcom provided an API token to allow data retrieval through the Dexcom API. The development team created custom web services to manage each patient’s API token using Epic Interconnect, an API gateway that allows custom applications to retrieve and store EHR data. Every morning at 4:00 am, a Microsoft Azure Function accessed each patient’s EHR to obtain the API token, used the token to fetch the Dexcom CGM data, and stored the data to flowsheets in the EHR using Epic Interconnect. The data are extracted nightly to Northwestern Medicine’s Enterprise Data Warehouse. The Azure Function being invoked at 4:00 am ensured that all data from the previous calendar day were available from the Dexcom server. Northwestern Medicine adapted the Ambulatory Glucose Profile 7 to create a proprietary CGM dashboard version within Tableau (Tableau Software, Seattle, Washington), a platform that constructs visual analytics using patient data accessed from the Enterprise Data Warehouse. A dedicated tab in Epic displays the CGM dashboard in a separate web browser window. Data validation was conducted by comparing the values produced in the EHR dashboard to data in Dexcom’s customer CGM portal.
In preparation for launch of the integration, provider education was conducted with live demonstrations of the workflow. Clinicians were also provided with step-by-step workflow tip sheets. Patient education was provided through flyers available in the clinic and automated MyNM messages with enrollment instructions.
Results
After a clinician places a one-time order for CGM data integration in Epic, patients receive a message in MyNM that explains how to link their EHR and Dexcom CGM account through the My Home Devices application. Clicking the “Link Account” button redirects patients to a Dexcom login page to enter their credentials, authorizing MyNM to access their data. After completing the login process, CGM data are integrated with the patient’s EHR, whereupon clinicians can interact with the data in Epic. The initial setup tasks for clinicians and patients to link Dexcom data to the EHR are outlined in the process map depicted in Figure 1a. Similarly, Figure 1b shows how uploaded data are requested every day through the Dexcom API. The integration solution produces custom data visualizations in the EHR that allows clinicians to view single-point data or data trends across a date range. Figure 2 shows the CGM dashboard as displayed to Northwestern Medicine providers. Hovering the cursor over the graph lines reveals the underlying numerical values.
Figure 1.
(a) Setup tasks for clinicians and patients to initiate CGM-EHR integration. (b) The daily token-based retrieval of CGM data via the Dexcom API.
Abbreviation: CGM-EHR, continuous glucose monitoring-electronic health record.
Figure 2.
A dashboard providing CGM data during a modal day and as a stacked column showing time in various glucose concentration ranges.
Abbreviations: NM, Northwestern Medicine; CGM, continuous glucose monitoring; GMI, Glucose management indicator.
Discussion
Continuous glucose monitoring technology has become standard of care for people with diabetes and is supported by major professional societies.8-10 Continuous glucose monitoring use is an integral tool in clinical practice to reduce therapeutic inertia and optimize diabetes care, whether in the endocrinology setting or primary care. 1 Nevertheless, accessing data can be time-consuming and requires the use of multiple software programs. 2 The integration solution with Epic using the Dexcom API that we report offers a method for clinicians to easily interact with CGM data without additional manual entry and order requests in the EHR. Early solutions that integrated CGM data used third-party smartphone applications 11 and physician computer request modules to send data directly to the EHR server. 12 However, these solutions raise concerns about data accessibility. A previous solution using Dexcom data could only provide one-time snapshot reports which had to be requested at each patient appointment. 12 The solution also required a separate EHR order to obtain patient consent to allow data sharing before clinicians could submit a CGM data request. The current solution utilizes a no-cost, public API that does not require a high-commitment partnership with the manufacturer or a cumbersome patient consent process, making this solution more replicable in other institutions. Another integration solution with a different CGM manufacturer used a physician computer request system mediated by a third-party API. 13 The integration described here builds on this work by eliminating the need for repetitive EHR orders and contracting with a third-party API company.
The Integration of Continuous Glucose Monitoring Data into the Electronic Health Record (iCoDE) Project 2 is a consortium that developed consensus recommendations outlining best practices for CGM-EHR integration. The solution we describe utilizes the iCoDE consensus recommendations, including a data pull strategy, a CGM account linkage strategy that simultaneously establishes patient identity and acquires consent, and data readily displayed in a dedicated space in the EHR. The solution builds on iCoDE recommendations by providing a platform through the EHR to view interactive data visualizations and a pathway for patients to self-authenticate their identity and allow data sharing using their Dexcom account credentials.
Additional benefits of CGM-EHR integration include more consistent EHR documentation, 14 possible capacity for remote patient monitoring, and time savings. One example of time savings is seen in a glucose monitoring dashboard that switched from an early version requiring accessing a separate CGM data portal to direct data integration. 15 This update reduced the estimated time spent reviewing data per patient by 37% and increased the estimated clinic patient capacity by 58%. 15 Although the current implementation did not measure appointment or staff time savings, we anticipate that it may serve this goal by eliminating the need to manually access software portals during patient appointments.
Strengths of the current solution include the no-cost access to the Dexcom API, minimal technical requirements to establish data sharing connection with the API, and CGM values that are not restricted by proprietary reporting software. The integration supports meaningful use criteria of Certified Electronic Health Record Technology 16 and documentation for insurance billing.2,17 While the API integration described here is specific to Northwestern Medicine’s instance of Epic, it was built on open web standards and technologies that are amenable to wider use with most EHR vendors in the United States. Future studies are needed to monitor the implementation of this CGM-EHR integration model in clinical practice and its impact on ongoing care of the individual with diabetes.
Footnotes
Abbreviations: CGM, continuous glucose monitoring; CGM-RPM, CGM remote physiologic monitoring; EHR, electronic health record; iCoDE, integration of continuous glucose monitoring data into the electronic health record project.
The author(s) declared the following potential conflicts of interest with respect to the research, authorship, and/or publication of this article: GA has received research support to her institution Northwestern University from Fractyl Health, Insulet, Tandem Diabetes, and Welldoc. GA has received consulting fees from Dexcom and Insulet. RC, RB, PC, and NN have nothing to disclose. AZ, SBA, JW, and AH are employees of Dexcom.
Funding: The author(s) received no financial support for the research, authorship, and/or publication of this article.
ORCID iDs: Grazia Aleppo
https://orcid.org/0000-0003-1644-5947
Sarah B. Andrade
https://orcid.org/0000-0003-4646-433X
Alexis Hauptman
https://orcid.org/0009-0004-9115-5370
References
- 1. Martens TW, Parkin CG. How use of continuous glucose monitoring can address therapeutic inertia in primary care. Postgrad Med. 2022;134(6):576-588. doi: 10.1080/00325481.2022.2080419. [DOI] [PubMed] [Google Scholar]
- 2. Espinoza JC, Klonoff DC, Vidmar AP, et al. 2022 iCoDE Report: CGM-EHR Integration Standards and Recommendations. Burlingame, CA: Diabetes Technology Society; 2022. https://www.diabetestechnology.org/icode/. Accessed March 20, 2023. [Google Scholar]
- 3. Lee JM, Carlson E, Albanese-O’Neill A, et al. Adoption of telemedicine for type 1 diabetes care during the COVID-19 pandemic. Diabetes Technol Ther. 2021;23(9):642-651. doi: 10.1089/dia.2021.0080. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4. Aleppo G, Gal RL, Raghinaru D, et al. Virtual diabetes specialty care—individualized telemedicine and technology support. Diabetes Technol Ther. 2023;25(S2):A75-A76. [Google Scholar]
- 5. Office of the National Coordinator for Health Information Technology. National Trends in Hospital and Physician Adoption of Electronic Health Records. Health IT Quick-Stat #61; 2022. https://www.healthit.gov/data/quickstats/national-trends-hospital-and-physician-adoption-electronic-health-records. Accessed December 20, 2022. [Google Scholar]
- 6. Mullen DM, Bergenstal R, Criego A, Arnold KC, Goland R, Richter S. Time savings using a standardized glucose reporting system and ambulatory glucose profile. J Diabetes Sci Technol. 2018;12(3):614-621. doi: 10.1177/1932296817740592. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7. Bergenstal RM, Ahmann AJ, Bailey T, et al. Recommendations for standardizing glucose reporting and analysis to optimize clinical decision making in diabetes: the Ambulatory Glucose Profile (AGP). Diabetes Technol Ther. 2013;15(3):198-211. doi: 10.1089/dia.2013.0051. [DOI] [PubMed] [Google Scholar]
- 8. ElSayed NA, Aleppo G, Aroda VR, et al. 7. Diabetes Technology: Standards of Care in Diabetes-2023. Diabetes Care. 2023;46(suppl 1):S111-S127. doi: 10.2337/dc23-S007. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9. Grunberger G, Sherr J, Allende M, et al. American association of clinical endocrinology clinical practice guideline: the use of advanced technology in the management of persons with diabetes mellitus. Endocr Pract. 2021;27(6):505-537. doi: 10.1016/j.eprac.2021.04.008. [DOI] [PubMed] [Google Scholar]
- 10. Peters AL, Ahmann AJ, Battelino T, et al. Diabetes technology-continuous subcutaneous insulin infusion therapy and continuous glucose monitoring in adults: an endocrine society clinical practice guideline. J Clin Endocrinol Metab. 2016;101(11):3922-3937. doi: 10.1210/jc.2016-2534. [DOI] [PubMed] [Google Scholar]
- 11. Kumar RB, Goren ND, Stark DE, Wall DP, Longhurst CA. Automated integration of continuous glucose monitor data in the electronic health record using consumer technology. J Am Med Inform Assoc. 2016;23(3):532-537. doi: 10.1093/jamia/ocv206. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Espinoza J, Shah P, Raymond J. Integrating continuous glucose monitor data directly into the electronic health record: proof of concept. Diabetes Technol Ther. 2020;22(8):570-576. doi: 10.1089/dia.2019.0377 [DOI] [PubMed] [Google Scholar]
- 13. Criego A. Improved Data Collection: Moving CGM Rep orts from the Patient Directly to the EMR (#IS069). presented at: Advanced Technologies & Treatments for Diabetes Conference 22-25; February 2023; 2023; Berlin & Online. https://www.liebertpub.com/doi/full/10.1089/dia.2023.2525.abstracts. [Google Scholar]
- 14. Faulds ER, Jones L, McNett M, et al. Facilitators and barriers to nursing implementation of continuous glucose monitoring (CGM) in critically ill patients with COVID-19. Endocr Pract. 2021;27(4):354-361. doi: 10.1016/j.eprac.2021.01.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. Ferstad JO, Vallon JJ, Jun D, et al. Population-level management of type 1 diabetes via continuous glucose monitoring and algorithm-enabled patient prioritization: precision health meets population health. Pediatr Diabetes. 2021;22(7):982-991. doi: 10.1111/pedi.13256. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16. Medicare Promoting Interoperability Program. Frequently Asked Questions (FAQs); 2022. https://www.cms.gov/files/document/medicare-pi-program-faqs-2023-06-13.pdf. Accessed August 11, 2023.
- 17. Dexcom Inc. 2023 Continuous Glucose Monitoring (CGM) CPT Coding Reference Chart; 2023. https://provider.dexcom.com/coding#:~:text=However%2C%20only%20providers%20such%20as,associated%20with%20CPT%20code%2095251. Accessed March 27, 2023.


