Literature DB >> 34142017

An open source tool to compute measures of inpatient glycemic control: translating from healthcare analytics research to clinical quality improvement.

Ying Chen1, Yilin Ning2,3, Prem Thomas4, Mark Salloway1, Maudrene Luor Shyuan Tan5, E-Shyong Tai5,6, Shih Ling Kao5,6, Chuen Seng Tan1.   

Abstract

OBJECTIVES: The objective of this study is to facilitate monitoring of the quality of inpatient glycemic control by providing an open-source tool to compute glucometrics. To allay regulatory and privacy concerns, the tool is usable locally; no data are uploaded to the internet.
MATERIALS AND METHODS: We extended code, initially developed for healthcare analytics research, to serve the clinical need for quality monitoring of diabetes. We built an application, with a graphical interface, which can be run locally without any internet connection.
RESULTS: We verified that our code produced results identical to prior work in glucometrics. We extended the prior work by including additional metrics and by providing user customizability. The software has been used at an academic healthcare institution.
CONCLUSION: We successfully translated code used for research methods into an open source, user-friendly tool which hospitals may use to expedite quality measure computation for the management of inpatients with diabetes.
© The Author(s) 2021. Published by Oxford University Press on behalf of the American Medical Informatics Association.

Entities:  

Keywords:  blood glucose monitoring; diabetes mellitus; glycemic control; hospital; hypoglycemia; quality improvement

Year:  2021        PMID: 34142017      PMCID: PMC8206397          DOI: 10.1093/jamiaopen/ooab033

Source DB:  PubMed          Journal:  JAMIA Open        ISSN: 2574-2531


LAY SUMMARY Glucometrics is a set of measures designed to assess whether the blood glucose of patients with diabetes are effectively managed. However, it is difficult to incorporate glucometrics into routine operations in hospitals and healthcare institutes, because to compute glucometrics requires consolidation of datasets from multiple sources and extensive data manipulation, which are challenging without dedicated manpower with specific professional skills. Various software tools are currently available for generating glucometrics, but they are paid proprietary tools, and some of them pose potential data security issues by requiring data to be uploaded to a third-party server. To fill in this gap, we created an open-source tool with a user-friendly graphical interface, named QcDM Project, that allows users to: (1) consolidate and manipulate the data via a point-and-click approach, (2) compute commonly used glucometrics measures, and (3) generate the results into a report for subsequent use. After installation, our tool is able to run on a standalone workstation without the need for internet connection, minimizing the risk of data leakage. The source code of our tool is available on GitHub under a flexible open-source license, allowing professionals to modify and extend it for wider applications, e.g., integration into the electronic health records system for automated routine monitoring.

INTRODUCTION

Inpatient glycemic management is a key part of care of hospitalized patients with diabetes mellitus (DM). An association of poor clinical outcomes (including death) with hypoglycemia and hyperglycemia has been demonstrated. Despite that, inpatient glycemic control remains suboptimal with occurrence of hypoglycemia and hyperglycemia. Inpatient hyperglycemia and hypoglycemia events can be decreased through quality improvement programs. Glycemic control guidelines and strategies may differ from hospital to hospital. However, a key part of any inpatient diabetes quality control program is regular surveillance for adverse events such as hypoglycemia and hyperglycemia. This allows programs to assess effectiveness of interventions and to detect increases in adverse events in a timely manner. Monitoring requires compiling and analyzing blood glucose (BG) results and generating regular, periodic reports of glucometrics, measures of inpatient glycemic control. This evaluation involves multiple calculations, and often, different parties. Manual evaluation is inefficient and prone to human errors. Hospitals may engage vendors to construct bespoke programs; yet these can become costly, especially when changes are needed. Given these factors, a number of software solutions have been created to assist monitoring. These tools, while useful, do have shortcomings; some require use of a proprietary point of care BG system. Others require hospital medical data to be uploaded to the cloud, for analysis. While the tools themselves are commendable, such issues may prevent the use of these solutions in some institutions. In this paper, we present a solution for glucometrics monitoring which overcomes these issues. We initially developed this code for research projects in healthcare analytics.,, During interactions with clinical staff at our institution, we became aware of operational needs and seized the opportunity to practice translational research. To improve the efficiency of the whole glucometrics reporting process and overcome the identified shortcomings in other tools, we developed an open source, graphical user interface (GUI) that is available under the MIT license. This allows users to generate their own routine report and shorten the feedback process through process automation. It empowers healthcare staff to scale up monitoring efforts and achieve American Diabetes Association monitoring recommendations at a unit or ward level with minimal additional effort. We developed this tool from R code adapted from related diabetes research projects. The open source R language is widely used in healthcare analytics. This approach gives savvy users the flexibility to easily modify and extend the code's capabilities based on the needs of the organization. Our R library, or package, Quality care for Diabetes Mellitus (QcDM), was developed as a prototype module for potential integration with electronic medical records systems. However, it has the flexibility to be deployed in either centralized (server) or decentralized (client only) use cases enabling its use in care settings of various scale. The graphical interface of QcDM (QcDMui) was developed with the R-Shiny package. The aim of the QcDMui tool is to enable healthcare staff to conduct glycemic monitoring with routinely collected electronic medical records in a flexible and approachable manner via an easy to use interface. The tool allows users to specify cut-off values used to define hyperglycemia and hypoglycemia. It can process glucose results in mg/dL or mmol/L, and users are required to specify the unit associated with the data file(s). QcDMui can be adapted to work with data from numerous sources or formats with minimal cost or effort as long as 4 data fields are present in the data. To illustrate this feature, we provide a GUI that allows users to adapt their datasets to the required format. Note that these tools do not require the internet to operate; instead, all input and output data can be kept on a workstation or local server where they are installed. All patient data are kept within the institution, an approach that removes potential legal or organizational restrictions on the use of the tool.

MATERIALS AND METHODS

During research projects in healthcare analytics,,,, we developed and applied novel analytical approaches to inpatient diabetic data. During the course of this interdisciplinary research, interactions with physicians made us aware of their need for a software tool for routine monitoring of glucometrics. This prompted us to translate our research-oriented R codes into a form that could support the needs of clinical quality monitoring. We realized that an important aspect of the translation process was to lower the barrier of entry to using the R code. The first step was to generalize code into functions and consolidate these into an R package, which we called QcDM. The package would facilitate the reproducibility of data analysis and provide the foundation for the subsequent development of a user-friendly interface. We then built a GUI tool for healthcare staff using the R-Shiny framework; we called this QcDMui. We obtained feedback from users to improve usability. Figure 1 shows the development process.
Figure 1.

Quality care for diabetes mellitus (QcDM) project timeline.

Quality care for diabetes mellitus (QcDM) project timeline. At the institution where QcDM was developed, staff use a standard glucometer, Accu-Chek Inform (Roche Diagnostics, Indianapolis, IN, USA). Only point-of-care, capillary BG values are used for glucometrics. Data are imported into the GUI tool via comma separated values (csv) file(s) with 4 data fields: (1) name of the patient-care unit (or ward) for which glucometrics will be computed, (2) identifier for the patient-encounter, (3) date and time of the BG results, and (4) the BG result, which must be exclusively in either mg/dL or mmol/L and the unit is specified when using the QcDMui. Due to differences in the glucometers and reporting conventions across institutions, BG data files can have a variety of columns or fields. To facilitate a flexible, convenient and less error-prone workflow, we developed an easy-to-use data adaptor called QcDMconverter. It allows users to specify the 4 required fields from any tabular data saved as comma, tab or semicolon separated version files and based on the specifications made, it generates the data file into the required format for import into QcDMui (see the user manual for detailed usage, available from: https://github.com/nyilin/QcDM_Project/blob/main/QcDM_Project_User_Manual.pdf). After importing the BG data, the QcDMui graphical tool uses the QcDM package to generate glucometrics according to the requirements of an inpatient DM care program in Singapore that considered: (1) the needs of healthcare workers from participating institutions in Singapore, (2) the Yale glucometrics experience, and (3) the published studies on glucometrics for assessing glucose control., The QcDM package consolidates the code for routine generation of glucometrics into 3 main functions: “FormatDate” to process the date-time stamp of BG readings, “GenEpisode” to correctly identify glucose monitoring episodes based on admission information in the input data, and “GenGluM” to compute commonly reported glucometrics measures. In the glucometrics literature, there are 3 units of analysis: patient-sample, patient-day, and patient-stay (see Table 1), which are reported by the tool because they provide information from different perspectives. Users are given the option to implement 2 exclusion criteria prior to the generation of these glucometrics. They may: (1) exclude any patient-stay with fewer BG measurements than a pre-specified number and (2) exclude any patient-stay where length of stay (inferred from the date and time of the earliest and latest BG test) is less than or equal to a pre-specified number of hours. Both exclusion criteria can be customized by the user.
Table 1.

Glucometrics definitions in quality care for diabetes mellitus (QcDM)

GlucometricsPatient-sample (pt-sample)Patient-day (pt-day)Patient-stay (pt-stay)
Glycemic control
 Percentage of hyperglycemiaa #pt-samples with hyperglycemia#pt-samples #pt-days with hyperglycemia#pt-days #pt-stays with hyperglycemia#pt-stays
 Hyperglycemia index29b (HGI)NANAHGI of glucose readings from a pt-stay
 Percentage of glucose in desired rangec #pt-samples in range#pt-samples #pt-day means in range#pt-days #pt-stay means in range#pt-stays
 Mean glucoseMean of glucose readings from a pt-sampleMean of glucose readings from a pt-dayMean of glucose readings from a pt-stay
 Average of mean glucose from pt-days within a pt-stayNANAAverage of means of glucose readings from pt-days within a pt-stay
Hypoglycemia
 Percentage of hypoglycemiad #pt-samples with hypoglycaemia#pt-samples #pt-days with hypoglycaemia#pt-days #pt-stays with hypoglycaemia#pt-stays
 Percentage of recurrent hypoglycemiaeNANA #pt-stay with 2 or more days having hypoglycaemia#pt-stays
Glycemic variability
 Standard deviation (SD)NASD of glucose readings from a pt-daySD of glucose readings from a pt-stay
 J-index33fNAJ-index of glucose readings from a pt-dayJ-index of glucose readings from a pt-stay

Hyperglycemia corresponds to blood glucose (BG) readings that are more than 14 mmol/L (or 252 mg/dL), 20 mmol/L (or 360 mg/dL), or 24 mmol/L (or 432 mg/dL) and these cut-offs are customizable in QcDMui.

Hyperglycemia index is computed where the cut-off for hyperglycemia is 14 mmol/L (or 252 mg/dL) and these cut-offs are customizable.

Desired range corresponds to blood glucose readings that are between 4 mmol/L (or 72 mg/dL) and 10 mmol/L (or 180 mg/dL) and these cut-offs are customizable.

Hypoglycemia corresponds to BG readings that are less than 4 mmol/L (or 72 mg/dL), 3 mmol/L (or 54 mg/dL) or 2.5 mmol/L (or 45 mg/dL) and these cut-offs are customizable.

Recurrent hypoglycemia corresponds to 2 or more BG readings that are less than 4 mmol/L (or 72 mg/dL) and this cut-off is customizable via the first user-specified cut-off for hypoglycemia.

J-index is computed as a factor of the square of the sum of mean and SD, which is 0.324 when unit is mmol/L and 0.001 when unit is mg/dL and these cut-offs are also customizable.

Reprinted with permission from the Refs.,,

Glucometrics definitions in quality care for diabetes mellitus (QcDM) Hyperglycemia corresponds to blood glucose (BG) readings that are more than 14 mmol/L (or 252 mg/dL), 20 mmol/L (or 360 mg/dL), or 24 mmol/L (or 432 mg/dL) and these cut-offs are customizable in QcDMui. Hyperglycemia index is computed where the cut-off for hyperglycemia is 14 mmol/L (or 252 mg/dL) and these cut-offs are customizable. Desired range corresponds to blood glucose readings that are between 4 mmol/L (or 72 mg/dL) and 10 mmol/L (or 180 mg/dL) and these cut-offs are customizable. Hypoglycemia corresponds to BG readings that are less than 4 mmol/L (or 72 mg/dL), 3 mmol/L (or 54 mg/dL) or 2.5 mmol/L (or 45 mg/dL) and these cut-offs are customizable. Recurrent hypoglycemia corresponds to 2 or more BG readings that are less than 4 mmol/L (or 72 mg/dL) and this cut-off is customizable via the first user-specified cut-off for hypoglycemia. J-index is computed as a factor of the square of the sum of mean and SD, which is 0.324 when unit is mmol/L and 0.001 when unit is mg/dL and these cut-offs are also customizable. Reprinted with permission from the Refs.,,

RESULTS

To launch the QcDMui tool, a user needs to double click a file called “Launch QcDMui.RData,” which will initially display a brief tutorial in the user interface. When the user clicks on the “Data” tab they will be asked to select a directory which contains the input BG data files and the eventual output generated by the tool. The user must create this parent folder, which also contains 3 child folders: “new_data”, “processed_data” and “glucometrics_output”. The user can place 1 or more BG files for concurrent processing in “new_data”; as the software processes the data, it will move these to “processed_data”. The generated glucometrics output will be placed under “glucometrics_output” and will be organized by Ward, Year and then, Month. Data passed to the system should be 1 month per file and can contain any number of columns but must contain ADMISSION.ID (unique patient-encounter identifier), RESULT.DATE (date and time of the glucose reading), RESULT (glucose reading in mg/dL or mmol/L), and LOCATION (ward). This was the format of the BG data files in our research projects; the QcDMconverter was developed so that BG data files with other formats could be easily transformed, and the parent and child folders could be automatically generated with a user-friendly interface. Once the data are loaded into the tool, the GUI that allows a user to specify various cut-off values is displayed (see Figure 2).
Figure 2.

Quality care for diabetes mellitus (QcDM) graphical interface.

Quality care for diabetes mellitus (QcDM) graphical interface. Then the user is able to configure the tool with cut-off values for mild, moderate and severe hyperglycemia and hypoglycemia, as well as an upper and lower cut-offs for target range in mg/dL or mmol/L. This allows much flexibility to adapt glucometrics output for multiple institutions as cut-offs are customizable. The user may also specify exclusion criteria which excludes inpatient stays below a specified number of hours or with too few glucose readings. Once the user has chosen these values, they need to confirm their choices (see Figure 2, the GUI section with the grey background). To generate a glucometrics report, the user must specify the period and the wards to be analyzed. Once the user confirms these specifications, a preview of the data matching the specifications is shown. The user may then click the “Glucometrics” tab to view the summarized results of glucometric readings as well as an exclusion summary and data quality indicators (see Figure 3).
Figure 3.

Summary of data quality and glucometrics.

Summary of data quality and glucometrics. The glucometrics report generated from this tool was validated against a published tool by analyzing a test data set provided by the authors of the published tool. By applying the same cut-off values and exclusion criterion (i.e., patient stays that have only 1 BG measurement were excluded) from the published tool to our tool, we were able to reproduce the number of patient-samples, patient-days and patient-stays, and the summary statistics concerning adverse events (i.e., hypoglycemia and hyperglycemia) and the target range of BG levels, reported in the glucometrics report generated by the published tool. Detailed parameter configuration of our tool when analyzing this test data and the resulting glucometrics report from both tools are available in a supplementary material (available from: https://github.com/nyilin/QcDM_Project/blob/main/Supplementary_material.pdf).

DISCUSSION

Glucometrics, a set of measures for monitoring the quality of glycemic management in inpatients with DM, was proposed more than a decade ago, but its uptake in healthcare institutions has been limited by the lack of an easy-to-access software to handle the extensive data consolidation and manipulation. This paper presents an open-source tool for glucometrics calculation. We developed an R package that implements a variety of commonly used glucometrics measures, and subsequently developed 2 user-friendly GUIs that simplify the data processing and configuration steps, and automatically generate a report of consolidated glucometrics measures computed by the functions in the R package. The development of this software enabled translational research by taking research methods in healthcare analytics and successfully implementing them in a framework for routine operations in an academic healthcare setting. This demonstrates the essence of multidisciplinary work. The software has been used for regular glycemic monitoring within an academic healthcare institution to generate monthly, quarterly and yearly glycemic control reports. Using the same set of parameters as input, it has enabled the direct comparison of reports across different time points. These automated reports have also reduced the work of healthcare staff who are managing the glycemic program, allowing them more time in clinical work. By using masked identifiers and deploying the tool in a local, secured server or encrypted USB storage device, data privacy can also be ensured. The vendor agnosticism in the design of the tool resulted in a flexible architecture which may be extended through the use of other open-source R libraries. Successful deployment of this software does require close cooperation between healthcare practitioners and information technology staff. Although the current software was specifically designed for a glycemic control program, this work can be easily adapted to other inpatient situations requiring routine glucometrics evaluations. For example, although we designed the software to work on point-of-care, capillary BG data, it can also be used directly to generate basic glucometrics from continuous glucose monitoring (CGM) data that conforms to the required data format. However, given the granularity of the CGM data, glucometrics specific to CGM data and the potential difference in the patient care settings,, future work should adapt and extend the tool for CGM data. We developed the QcDM software to be run manually on a workstation using BG data extracts. Yet with moderate local technical effort, it can be automated and integrated with other electronic health records (EHR) reports. The QcDM package can be used with an R script to securely query a local database which contains the input data, extracted from warehouses via a scheduled SQL procedure. Once the QcDM script ingests these data and calculates glucometrics, the output can be displayed using R-Shiny or displayed on a local reporting server; a document link can be placed in the EHR. To facilitate more seamless integration, future work could consider leveraging Fast Healthcare Interoperability Resources for data exchange in the context of developing glucometrics as an electronic clinical quality measure. The QcDM package could be adapted and called as a calculation system for expression logical model and clinical quality language documents.

CONCLUSION

We illustrate the development of a GUI reporting tool for inpatient glycemic control that facilitates both research and healthcare operations by transforming electronic medical data into actionable insights for healthcare staff.
  30 in total

1.  The projected health care burden of Type 2 diabetes in the UK from 2000 to 2060.

Authors:  A Bagust; P K Hopkinson; L Maslove; C J Currie
Journal:  Diabet Med       Date:  2002-07       Impact factor: 4.359

2.  An internet service supporting quality assessment of inpatient glycemic control.

Authors:  Prem Thomas; Silvio E Inzucchi
Journal:  J Diabetes Sci Technol       Date:  2008-05

3.  Handling ties in continuous outcomes for confounder adjustment with rank-ordered logit and its application to ordinal outcomes.

Authors:  Yilin Ning; Chuen Seng Tan; Angeliki Maraki; Peh Joo Ho; Sheilagh Hodgins; Erika Comasco; Kent W Nilsson; Philippe Wagner; Eric Yh Khoo; E-Shyong Tai; Shih Ling Kao; Mikael Hartman; Marie Reilly; Nathalie C Støer
Journal:  Stat Methods Med Res       Date:  2019-04-03       Impact factor: 3.021

4.  Hyperglycemia: an independent marker of in-hospital mortality in patients with undiagnosed diabetes.

Authors:  Guillermo E Umpierrez; Scott D Isaacs; Niloofar Bazargan; Xiangdong You; Leonard M Thaler; Abbas E Kitabchi
Journal:  J Clin Endocrinol Metab       Date:  2002-03       Impact factor: 5.958

Review 5.  Continuous Glucose Monitoring Integration in Clinical Practice: A Stepped Guide to Data Review and Interpretation.

Authors:  Grazia Aleppo; Kimberly Webb
Journal:  J Diabetes Sci Technol       Date:  2018-11-19

6.  Using marginal standardisation to estimate relative risk without dichotomising continuous outcomes.

Authors:  Ying Chen; Yilin Ning; Shih Ling Kao; Nathalie C Støer; Falk Müller-Riemenschneider; Kavita Venkataraman; Eric Yin Hao Khoo; E-Shyong Tai; Chuen Seng Tan
Journal:  BMC Med Res Methodol       Date:  2019-07-29       Impact factor: 4.615

7.  Robust estimation of the effect of an exposure on the change in a continuous outcome.

Authors:  Yilin Ning; Nathalie C Støer; Peh Joo Ho; Shih Ling Kao; Kee Yuan Ngiam; Eric Yin Hao Khoo; Soo Chin Lee; E-Shyong Tai; Mikael Hartman; Marie Reilly; Chuen Seng Tan
Journal:  BMC Med Res Methodol       Date:  2020-06-06       Impact factor: 4.615

8.  American Association of Clinical Endocrinologists and American Diabetes Association consensus statement on inpatient glycemic control.

Authors:  Etie S Moghissi; Mary T Korytkowski; Monica DiNardo; Daniel Einhorn; Richard Hellman; Irl B Hirsch; Silvio E Inzucchi; Faramarz Ismail-Beigi; M Sue Kirkman; Guillermo E Umpierrez
Journal:  Diabetes Care       Date:  2009-05-08       Impact factor: 19.112

9.  Hyperglycaemic index as a tool to assess glucose control: a retrospective study.

Authors:  Mathijs Vogelzang; Iwan C C van der Horst; Maarten W N Nijsten
Journal:  Crit Care       Date:  2004-03-15       Impact factor: 9.097

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.