Medications that Regulate Gastrointestinal Transit Influence Inpatient Blood Glucose ==================================================================================== * Amanda Momenzadeh * Caleb Cranney * So Yung Choi * Catherine Bresee * Mourad Tighiouart * Roma Gianchandani * Joshua Pevnick * Jason H. Moore * Jesse G. Meyer ## Abstract **Objective** A multitude of factors affect a hospitalized individual’s blood glucose (BG), making BG difficult to predict and manage. Beyond medications well established to alter BG, such as beta-blockers, there are likely many medications with undiscovered effects on BG variability. Identification of these medications and the strength and timing of these relationships has potential to improve glycemic management and patient safety. **Materials and Methods** EHR data from 103,871 inpatient encounters over 8 years within a large, urban health system was used to extract over 500 medications, laboratory measurements, and clinical predictors of BG. Feature selection was performed using an optimized Lasso model with repeated 5-fold cross-validation on the 80% training set, followed by a linear mixed regression model to evaluate statistical significance. Significant medication predictors were then evaluated for novelty against a comprehensive adverse drug event database. **Results** We found 29 statistically significant features associated with BG; 24 were medications including 10 medications not previously documented to alter BG. The remaining five factors were Black/African American race, history of type 2 diabetes mellitus, prior BG (mean and last) and creatinine. **Discussion** The unexpected medications, including several agents involved in gastrointestinal motility, found to affect BG were supported by available studies. This study may bring to light medications to use with caution in individuals with hyper- or hypoglycemia. Further investigation of these potential candidates is needed to enhance clinical utility of these findings. **Conclusion** This study uniquely identifies medications involved in gastrointestinal transit to be predictors of BG that may not well established and recognized in clinical practice. Keywords * electronic health records * medication systems, hospital * regression analysis * endocrinology * pharmacology ## Background and Significance Individuals with diabetes are at a significantly increased risk of hospital admission, with rates ranging from two to six times higher than those without diabetes1–4. Uncontrolled blood glucose (BG) in the hospital is associated with increased morbidity and mortality.5 Inpatient hypoglycemia, or BG<70mg/dL6,7 that occurs during hospitalization, has been reported in 20% of hospitalized insulin-treated patients8 and is the most common adverse event associated with inpatient treatment of diabetes5,9,10. Hypoglycemia can cause troublesome acute symptoms such as confusion, impaired vision and seizures, but can also increase the risk of chronic complications, length of stay and all-cause mortality11–17. Inpatient hyperglycemia, defined as a BG>140mg/dL in hospitalized patients5, can cause acute (e.g., diabetic ketoacidosis) and long term (e.g. retinopathy, nephropathy, cardiovascular disease) complications, both of which are associated with an increased risk of mortality18. The dangers associated with dysglycemia highlight the importance of researching mechanisms involved in glucose homeostasis. Numerous pharmacologic agents are well established to cause hyperglycemia, including steroids and beta-blockers19, through a variety of mechanisms such as impaired insulin secretion or direct effects on beta cell proliferation20. However, many of the mechanisms underlying glucose alterations due to drugs are not well understood20. Drug package inserts may not be a reliable source for adverse events as they may present data from studies limited by small sample size and incidental findings21. Confounding is present between patient risk factors and BG22. For example, a drug administered to an individual with diabetes may be reported to cause hyperglycemia, but this correlation may be due to the disease and not actually the drug21.The management of BG in hospitals is further complicated by the dynamic nature of medication prescribing and patients’ unpredictable responses to these medication changes23. Approved medications may have unexpected effects. In some cases, positive developments have been made in drug re-purposing research. For example, bumetanide, a diuretic, has been suggested as a potential therapy for Alzheimer’s disease24. Attempts have been made to identify drugs that may be repurposed for diabetes treatment. A computational pipeline using a large type 2 diabetes mellitus (T2DM) genome-wide association study combined with outpatient electronic health records (EHR) found angiotensin-converting enzyme inhibitors and calcium channel blockers to affect BG25. Another study created an open source repository with drug targets and genes specific to diabetes. Investigators screened around 1500 drugs on 20 proteins and identified five drugs with potential for repurposing to treat diabetes26. A data-guided approach and the wealth of information stored in the EHR may provide an initial step in uncovering drugs not previously established to cause BG alterations. To address this challenge, we extracted a large, comprehensive EHR dataset including hospitalized patients who had received at least one anti-diabetic medication. The 500 most frequently prescribed inpatient medications were combined with relevant past medical history, demographics, social history, and labs available in the EHR. A least absolute shrinkage and selection operator (Lasso) linear regression model optimized using a training set allowed for filtering those initial variables using the highest model coefficients27. A linear mixed model (LMM) was fit and tested on the selected features from Lasso. LMM accommodates inter-patient variability and allows the interpretability through statistical significance testing that is lacking with machine learning models. This study aimed to use a computationally driven strategy and a large dataset to reveal associations between medications and point of care blood glucose (POC BG). To our knowledge, this is the first study to evaluate the predictive performance of several hundred medications without filtering based on prior knowledge of medications known to effect BG. ## Materials and Methods ### Data Source Available retrospective EHR data was extracted for patients admitted to the hospital between May 2014 and September 2022 within the Cedars-Sinai Health System, which includes a tertiary medical center, Cedars Sinai Medical Center (CSMC), and community hospitals, Marina Del Rey Hospital and Huntington Hospital. Inclusion criteria consisted of adult inpatients (>/= 18 years old) who received at least one anti-hyperglycemic medication during their admission. Encounters to Labor & Delivery, Emergency Department, or with a length of stay less than 24 hours were excluded. The following EHR datasets were extracted for each encounter: past medical history, demographics, social history, labs, and inpatient medications. Cedars-Sinai IRB approval was obtained for this study. ### Model Design Model inputs were static and time-dependent variables (**Figure 1A**). Static variables, or baseline characteristics that do not change during an inpatient stay, included demographic data, past medical history, and social history, and were collected from a single point during the admission (**Table 1**). Time-dependent variables, or variables that are changing during an admission, included labs and medications and were collected during a 12-, 24- or 48-hour lookback window preceding a prediction horizon. Given POC BG is checked typically four to six times per day in the hospital, a 4-hour prediction horizon was used to mimic a realistic next POC BG check. An output POC BG was selected for each encounter if there was another POC BG recorded between 16 and 4 hours prior to it to ensure maximal number of patients included in the analysis. View this table: [Table 1.](http://medrxiv.org/content/early/2024/08/02/2024.07.31.24311287/T1) Table 1. EHR datasets, number of variables per dataset, and variables extracted from each dataset that were included in the study. The combination of numbers and letters in parentheses in the past medical history row are international classification of diseases, tenth revision (ICD-10) codes. ![Figure 1.](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2024/08/02/2024.07.31.24311287/F1.medium.gif) [Figure 1.](http://medrxiv.org/content/early/2024/08/02/2024.07.31.24311287/F1) Figure 1. Project Overview. **(A)** Collection of model inputs (baseline characteristics, medications, and labs) and output POC BG variables over course of patient admission. **(B)** Data analysis pipeline demonstrating extraction of most important variables through Lasso, assessment of statistical significance using LMM and evaluation of novelty of medication-induced BG variability using Micromedex. ### Model Inputs Medications were filtered to the 500 most commonly administered out of the total list of 5,267 medications. To ensure inclusion of common anti-hyperglycemic medications in the model, all subcutaneous (SQ) insulins (lispro, regular, glargine and NPH/Regular 70-30), intravenous (IV) regular insulin and all dosage forms of commonly prescribed oral anti-hyperglycemic medications (sitagliptin, glimepiride, glipizide, glipizide XR, glyburide and pioglitazone, nateglinide) were added to the top 500 if they had not already been included in the top 500 list. Total parenteral nutrition (TPN) was also added to the list of medications. All irrigation, flush, and iohexol orders were excluded due to inconsistency in recording of administered doses. This resulted in 516 unique medications. POC BG and creatinine were selected as input labs as they were recorded reliably during lookback windows and are shown to be predictive of BG alterations9,23. Past medical history and admission diagnoses were filtered for co-morbidities previously described to be predictive of BG variability28–31. Past medical history was obtained from international classification of diseases, tenth revision (ICD-10) codes, which were obtained from all available sources in the EHR (e.g., physician billing, problem list). **Table 1** lists all static and time-dependent variables selected for downstream analysis. ### Data Pre-processing Missing data was dealt with in one of two ways. Lab values and medication doses that were missing in the dataset were removed. Categorical variables that were recorded as declined, missing or unknown were retained and re-coded as missing. Medications that were not administered during a lookback window were assigned a zero value. These five parent datasets (medications, laboratory, demographics, social history, and past medical history) were merged on shared unique patient encounter numbers, resulting in 87,256 encounters (49,095 patients) using a 48-hour lookback, 78,001 encounters (45,819 patients) using a 24-hour lookback, and 53,576 encounters (35,459 patients) using a 12-hour lookback. Categorical variables were dichotomized. The sum of all doses for each medication was calculated during the lookback window and were used as inputs to the model. Mean, minimum, maximum and last value of POC BG and mean of creatinine were calculated over each lookback window and used as inputs to the models. ### Statistical Analysis Feature selection was performed due to lack of convergence of the LMM when attempting to use all features. Eighty percent of the encounters were used for training and the remaining 20% for testing. Feature selection was performed using the 80% training set, which was further split into 80% train and 20% validation sets to avoid data leak into the test set during feature selection. Lasso regression, a linear model with a regularization term, was selected to perform feature selection since we expected that out of the many predictors to the model, only a subset of predictors had a non-zero effect. The regularization parameter of Lasso drives less informative variables to have coefficients of zero and helps identify features most predictive of the outcome27. Lasso models were constructed using input variables collected over lookback windows of 12h, 24h, and 48h. Lasso 5-fold cross-validation determined the best regularization parameter (alpha) among one hundred alpha values between 0.0001 to 10,000 based on the lowest mean squared error (MSE) mean over each fold. Using this best alpha, the trained model was then used to predict BG in the validation set and performance was evaluated by comparing the predicted BG with the true value using R2 (coefficient of determination) and root mean squared error (RMSE). To ensure robustness and reproducibility in coefficient ranking, the Lasso model with the optimized alpha was run using repeated k-fold cross-validation with 5 splits, 5 repeats and a maximum iteration limit of 10,000 on the training data. The mean absolute value of the extracted coefficients (25 total coefficients per variable) was then calculated for each variable and sorted to identify the 50 variables with the highest mean absolute coefficient values. The top 50 ranked predictors of BG from Lasso were inputted to a multivariate LMM to assess their statistical significance.22 Due to repeated encounters present per patient, we used LMM to predict an output BG. The random effects’ covariance structure was the variance component’s structure, where each group has its own random intercept. Variables with a Benjamini-Hochberg (B-H) adjusted p value <0.05 were considered to have statistically significant associations with BG. While not feasible to include every potential interaction term, we re-fit the LMM with clinically relevant interaction terms including history of congestive heart failure, acute pain, and whether the patient was admitted to the peri-operative setting. Variables that retained statistical significance using 12, 24, and 48h lookback windows were compared to understand differences in medications predictive of BG over different lookback time courses. The ‘Adverse Effects In-Depth Answers’ section of Micromedex, a comprehensive evidence-based resource used by clinicians32, was reviewed for documentation of BG alteration properties of statistically significant medications. In addition to adverse events reported in package inserts and clinical trials, Micromedex includes up to date post-marketing surveillance data and case studies. Statistical analysis was performed in Python version 3.9.12 using the following packages (versions): sklearn (1.4.2), statsmodels (0.13.5), scipy (1.11.4), and seaborn (0.12.2). ## Results ### Descriptive Statistics **Figure 1A** depicts the timeline over which the model input and output variables are collected during a patient admission. A POC BG was selected as the output for an encounter there was another POC BG recorded between 4 and 16h prior to it. Input variables that do not change over the course of the hospital stay (demographics, past medical history and social history) were collected at the time of admission. We then collected input variables that change during an admission (medications and labs) over 12, 24, and 48h lookback windows ending 4 hours before the output BG was collected. **Figure 1B** demonstrates the data analysis pipeline, beginning with several hundred variables across datasets, the top 50 variables after Lasso, and finally only those with a B-H adjusted p-value less than 0.05 from the LMM. These variables were evaluated for prior documentation of affecting BG in Micromedex. Baseline characteristics of the encounters from patients across three hospitals in a large urban health system collected over 8 years (2014 to 2022) used for model training and evaluation is summarized in **Table 2**. The median encounter age was 68.8 years, 63.3% were Caucasian, 18.8% Black or African American, and Hispanic ethnic group comprised 19.3% of encounters. 44.5% of all encounters were female and the median body mass index (BMI) was 27.0 kg/m2. Most encounters had diabetes; 10.3% had type 1 diabetes mellitus (T1DM) and 70.3% had T2DM. Nearly half of encounters had chronic kidney disease (CKD; 41.3%) and 8.8% had hypoglycemia listed as a past medical history prior to the encounter. The median and inter-quartile range (IQR) of the mean input POC BGs collected for each encounter during the 48h lookback window were 154.8 mg/dL and 127.0-194.2 mg/dL, respectively. 7.6% of encounters were admitted to the ICU and 1.13% were admitted to perioperative setting. View this table: [Table 2.](http://medrxiv.org/content/early/2024/08/02/2024.07.31.24311287/T2) Table 2. Summary statistics across patient encounters. Continuous variables are shown as median and IQR. Categorical variables are shown as counts and percent. The top 10 administered medications out of the filtered 516 medications are displayed in **Figure 2A**. Three out of the ten medications were antihyperglycemics (insulin lispro SQ, insulin glargine SQ and insulin regular IV). Overlayed distributions of the input and output BGs are shown in **Figure 2B** with a Spearman correlation coefficient of 0.58, indicating that prior recorded BGs are correlated with the next BG. ![Figure 2.](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2024/08/02/2024.07.31.24311287/F2.medium.gif) [Figure 2.](http://medrxiv.org/content/early/2024/08/02/2024.07.31.24311287/F2) Figure 2. Overview of medications and BG data. **(A)** Top 10 most commonly administered medications. **(B)** Linear relationship between mean input BG over 48hr lookback window and output BG. ### Lasso-based feature selection Performance for the Lasso model with a 48h lookback window was highest (R2=0.352) compared to 12h (R2=0.325) and 24h (R2=0.344) windows, and thus was used for the primary analysis presented. The 80% set (69,804 encounters) from the original dataset was further split to 80% training (55,843 encounters) and 20% validation sets (13,961 encounters). Lasso 5-fold cross-validation on the training set was used to fit a Lasso model. This model was then used to predict on the validation set, yielding R2 score 0.352 and RMSE 53. The alpha with the lowest mean MSE over the five folds using the training set was 0.36 (**Figure 3A**). Actual validation vs predicted output BG were linearly correlated (**Figure 3B)**. Lasso L1 regularization prioritized the most informative features while setting the coefficients of less important predictors to zero (**Figure 3C**). To ensure reproducibility in selection of top ranked coefficients, the Lasso model with the optimized alpha was run using repeated k-fold cross validation where the data was split into 5 folds and the process was repeated 5 times on the training data. Distribution of coefficient values calculated across folds/spits for the top 25 variables were stable (**Figure 3D**). The full list of 50 selected variables and their mean absolute value coefficient scores are shown in **STable 1**. The intercept of the Lasso model is the output value when all input variables are zero; the mean intercept across all folds was 52. ![Figure 3.](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2024/08/02/2024.07.31.24311287/F3.medium.gif) [Figure 3.](http://medrxiv.org/content/early/2024/08/02/2024.07.31.24311287/F3) Figure 3. Overview of Lasso model optimization and feature selection results using 48h lookback window. **(A)** MSE vs log10(alpha) for each of 5 Lasso cross validation folds. (**B)** Actual validation vs Lasso-predicted output BG. **(C)** Variable coefficients assigned by Lasso. **(D)** Mean absolute coefficient score of top 25 Lasso variables. ### LMM and Micromedex To address potential confounders, control for variability between each patient, and assess statistical significance of coefficients, a LMM was employed that expressed the output BG as a linear function of the 50 Lasso-selected input variables with a random intercept for each patient. The LMM was used to predict on the held-out 20% test set (i.e., not used for feature selection) with resultant performance metrics R2 0.342 and RMSE 53. The variance of the random intercepts, a representation of the between-group variability in output BG, was 57.6 (mg/dL)2. B-H adjusted p-values, coefficient, standard error, and 95% confidence interval (CI) for the 50 variables, intercept and group variable are shown in **STable 2**. Twenty-one variables that had been ranked in the top 50 variables by Lasso predictive of output BG did not meet the B-H adjusted p-value cut off 0.05. Of the remaining 29 variables (**Table 3**), 24 were medications and 5 were a combination of labs, demographics, and past medical history. More than half of the medications were documented in Micromedex as having a direct effect on BG, including insulins, glucocorticoids, lactulose, lisinopril, rosuvastatin and pioglitazone. All glucocorticoids, dexamethasone, methylprednisolone, and prednisone, were positively correlated with BG, as expected. The coefficient indicates the change in the output BG for a one unit increase in the input assuming all other factors influencing BG remain constant. For example, a coefficient of 0.78 for prednisone 5mg tablet indicates that, on average, taking an additional dose of prednisone is associated with an increase in BG by 3.9 mg/dL. Insulin lispro, aspart and regular SQ were positively correlated with a predicted BG measured at 4h while insulin glargine was negatively correlated with output BG. Mean input BG was positively correlated and had a stronger effect compared to last prior input BG. Mean creatinine was negatively correlated with BG. History of T2DM had a strong positive association with BG and was associated with an increase in BG by 10.66 mg/dL given all other variables are held constant. View this table: [Table 3.](http://medrxiv.org/content/early/2024/08/02/2024.07.31.24311287/T3) Table 3. Twenty-nine variables with an adjusted p-value <0.05 according to LMM. EHR dataset, whether the medication was documented in Micromedex as having an effect on BG, the drug class, B-H adjusted p-value, coefficient, and 95% CI are listed. *denotes variable was significant across 12h, 24h, and 48h lookback windows. Black/African American race was strongly negatively correlated, and was associated with a decrease in BG by 3.37mg/dL. Ten variables met the adjusted p-value cut-off of <0.05 and were not recorded as causing alterations in BG in Micromedex. Of those ten, medications negatively correlated with BG included magnesium sulfate, sennosides, loperamide and bisacodyl. Positively correlated were metoclopramide, lidocaine, hydromorphone, morphine, amlodipine, and furosemide. The LMM was fit with the same 50 variables plus the inclusion of interaction terms to differentiate the effects of the underlying disease processes known to cause dysglycemia from the medication. Interactions assessed were known risk factors for hyperglycemia, including: (1) acute pain3 with morphine and hydromorphone, (2) history of congestive heart failure34 with furosemide, and (3) surgery35 with bisacodyl, lidocaine, loperamide, metoclopramide, and sennosides. No interaction term had an adjusted p-value less than 0.05, and each medication alone retained significance after inclusion of the eight interaction terms in the model. This indicates presence of the potential confounding factor did not differentiate the effect of the medication on the outcome (**STable 3**). **SFigure 1** allows visualization of the relationship between mean medication doses over the 48-hour lookback window and output BG across patient encounters. Lastly, we observed differences in variables that were statistically significant based on the length of lookback window used (**Figure 4**). Adjusted p-value, coefficient, standard error, and 95% CI for 12h lookback window (**STable 4)** and 24h lookback window (**STable 5**) are presented in supplementary summary tables. Eleven variables of the significant variables using the 12h lookback window were unique to that window, five were unique to the 24h lookback window, and five were unique to the 48h lookback window. Trends were observed in varying statistical significance based on duration over which mean medication doses were collected. For example, pioglitazone, an antihyperglycemic with a half-life of 3-7 hours36, was significant only when a 48h lookback window was used while nateglinide, an antihyperglycemic with a half-life of 1.5h37, was significant only when a 12h lookback window was used. ![Figure 4.](http://medrxiv.org/https://www.medrxiv.org/content/medrxiv/early/2024/08/02/2024.07.31.24311287/F4.medium.gif) [Figure 4.](http://medrxiv.org/content/early/2024/08/02/2024.07.31.24311287/F4) Figure 4. Significant variables that are unique to each lookback window. ^ denotes medication was not recorded in Micromedex as having the potential to affect BG. ## Discussion To our knowledge, this is the first study that identifies medication predictors of BG alterations using a large EHR dataset. Mean and last input BG were positively correlated with output BG, and retained significance across lookback windows. Studies show that prior BG is important in predicting future BG38. Additionally, history of T2DM was strongly positively correlated with output BG across all three lookback windows. We found that Black/African American race was also strongly negatively correlated with output BG. Similar trends in BG among races have been demonstrated; after a glucose tolerance test, African Americans had a lower glucose area under the curve compared to Caucasians39. Several diabetes medications were statistically significant according to the LMM. We also observed several other non-diabetes medications well established to affect BG, including statins, carvedilol, dextrose 50% IV and TPN20. Interestingly, short and medium-acting insulins (regular SQ, insulin lispro, insulin aspart) were positively correlated with BG. These medications are often given prior to meals in response to elevated BG and have a peak response within 30-90 minutes40, duration of 3-4 hours41 and elimination half-life of approximately 1 hour42, so their BG lowering effect may be diminished at the four hour mark. Several drugs involved in gastrointestinal (GI) motility, including sennosides, metoclopramide, loperamide, bisacodyl, lactulose and opioids, were statistically significant. The effect of gastric emptying on glycemic control is poorly understood. Colonic motility is slowed in the majority of individuals with diabetes,43 and retention of GI contents has been associated with hyperglycemia44–46. Studies indicate an initial hypoglycemia due to delayed carbohydrate delivery to the small intestine, followed by hyperglycemia;44 two hours after a meal, T1DM individuals with slowed gastric emptying had lower insulin requirements47, and use of a prokinetic agent led to increased insulin requirements48. We found that metoclopramide (a prokinetic agent) was associated with a higher BG at 4 hours while sennosides and bisacodyl were associated with a lower BG. Sennosides A, the active ingredient in sennosides, demonstrated the ability to stimulate intestinal cells to secrete GLP-1 and alter the gut microbiota49, leading to improved insulin sensitivity in mice50,51. Sennosides A was also shown to have similar potency as acarbose in alpha-glucoamylase inhibition.52 We found loperamide, which slows GI transit, to also lower BG. Loperamide may lower BG in insulin-deficient rats through increase of glucose transporter 4 (GLUT-4) expression and inhibition of hepatic gluconeogenesis53. Activation of mu-receptors by loperamide has also been linked to reduction of IL-6 induced insulin resistance54 and increase in insulin secretion by countering forkhead box protein O1 inhibition55. Lastly, we found morphine and hydromorphone to be associated with increases in BG. Opioids increase BG via direct effects on insulin secretion through opioid receptors in the pancreas and centrally, and activation of the sympathetic nervous system56. Opioids additionally reduce colonic transit time and lead to dysregulation of GI motility by binding the mu receptor and toll-like receptors in the GI tract.57 Overall, GI transit plays a large role in glycemic control, and we identified several digestive process regulating agents to be statistically important in predicting BG. There was strong evidence in support of IV magnesium and diuretics. Magnesium intake has been shown to be inversely associated with T2DM risk58,59. Intravenous magnesium sulfate administration during surgery led to significantly lower BG and insulin requirements 60,61. A potential mechanism for improvement of insulin sensitivity is upregulation of GUT-4 gene expression, leading to increase in glucose utilization in peripheral tissues62–64. There is also strong evidence linking diuretics to insulin resistance with an association independent of confounders65. Strengths of our study included an unbiased, rigorously test approach in finding medication predictors of BG. Rather than hand-picking known BG predictors, we allowed the Lasso model to perform feature selection. Training data was used for feature selection to avoid test leak, and LMM performance was evaluated on a held-out test set. We also included both critically and non-critically ill patients as well as all types of insulin. We used a mixed effects model, which can handle repeated measures by accounting for the correlation between encounters of the same patient. Our model had comparable performance to a linear model that used a 24 hour moving average of inpatient BG measurements collected from EHRs to predict the next BG; R2 was 0.45 using all observations, and performance varied based on glycemic variability category (very high glycemic variability R2=0.14 to low glycemic variability R2=0.65)38. The focus of our study was to identify potentially undiscovered medication predictors of BG, rather development of a high-performing clinical model. Limitations of our study included inability to control for the many confounders that may affect a patient’s BG. We did not include drug interactions that may be causing an alteration in BG. EHR data has several limitations, including missing data, erroneous entries, and lack of documentation of relevant variables. Diet and tube feed orders were not used due to lack of consistent recording, however TPN was included. There was a possibility for encounters from a single patient to be split across training and test sets. The dataset is large so even predictors that have small effect can be statistically significant. The linear regression method employed did not use time series data. However, a study using linear, cubist, random forest and K-nearest neighbors models to predict the next BG using previous BGs over various moving average and rolling regression windows found no difference in performance (R2 CI’s overlapped)38. Future directions include inclusion of more patient encounters to the model and assessment of its generalizability. ## Supporting information Supplemental Table 1 [[supplements/311287_file02.xlsx]](pending:yes) Supplemental Table 2 [[supplements/311287_file03.xlsx]](pending:yes) Supplemental Table 3 [[supplements/311287_file04.xlsx]](pending:yes) Supplemental Table 4 [[supplements/311287_file05.xlsx]](pending:yes) Supplemental Table 5 [[supplements/311287_file06.xlsx]](pending:yes) Supplementary Information [[supplements/311287_file07.docx]](pending:yes) ## Data Availability Clinical data used for this study is not available. ## Code Availability All JupyterLab notebooks can be found at xomicsdatascience/Medication-BG-alteration ([github.com](http://github.com)). ## Competing Interests None ## Funding and all other required statements This research was supported by NIH National Center for Advancing Translational Science (NCATS), UCLA CTSI Grant Number UL1TR001881. ## Acknowledgments We thank Edward Kowalewski and the Honest Enterprise Research Broker for EHR data extraction services and Somi Hwang for graphic design assistance. * Received July 31, 2024. * Revision received July 31, 2024. * Accepted August 2, 2024. * © 2024, Posted by Cold Spring Harbor Laboratory This pre-print is available under a Creative Commons License (Attribution-NonCommercial-NoDerivs 4.0 International), CC BY-NC-ND 4.0, as described at [http://creativecommons.org/licenses/by-nc-nd/4.0/](http://creativecommons.org/licenses/by-nc-nd/4.0/) ## Reference list 1. 1.Donnan PT, Leese GP, Morris AD, Diabetes Audit and Research in Tayside, Scotland/Medicine Monitoring Unit Collaboration. Hospitalizations for people with type 1 and type 2 diabetes compared with the nondiabetic population of Tayside, Scotland: a retrospective cohort study of resource use. Diabetes Care. 2000;23(12):1774–1779. doi:10.2337/diacare.23.12.1774 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czoxMDoiMjMvMTIvMTc3NCI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDI0LzA4LzAyLzIwMjQuMDcuMzEuMjQzMTEyODcuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 2. 2.Aro S, Kangas T, Reunanen A, Salinto M, Koivisto V. Hospital Use Among Diabetic Patients and the General Population. Diabetes Care. 1994;17(11):1320–1329. doi:10.2337/diacare.17.11.1320 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czoxMDoiMTcvMTEvMTMyMCI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDI0LzA4LzAyLzIwMjQuMDcuMzEuMjQzMTEyODcuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 3. 3.De Berardis G, D’Ettorre A, Graziano G, et al. The burden of hospitalization related to diabetes mellitus: A population-based study. Nutrition, Metabolism and Cardiovascular Diseases. 2012;22(7):605–612. doi:10.1016/j.numecd.2010.10.016 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.numecd.2010.10.016&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=21333508&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) 4. 4.Carral F, Olveira G, Salas J, Garciá L, Sillero Á, Aguilar M. Care resource utilization and direct costs incurred by people with diabetes in a Spanish hospital. Diabetes Research and Clinical Practice. 2002;56(1):27–34. doi:10.1016/S0168-8227(01)00342-4 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/S0168-8227(01)00342-4&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=11879718&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) 5. 5.American Diabetes Association Professional Practice Committee. 16. Diabetes Care in the Hospital: Standards of Medical Care in Diabetes—2022. Diabetes Care. 2022;45(Supplement_1):S244–S253. doi:10.2337/dc22-S016 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.2337/dc22-S016&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=http://www.n&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) 6. 6.American Diabetes Association. 15. Diabetes Care in the Hospital: Standards of Medical Care in Diabetes—2019. Diabetes Care. 2019;42(Supplement_1):S173–S181. doi:10.2337/dc19-S015 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czoyMDoiNDIvU3VwcGxlbWVudF8xL1MxNzMiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyNC8wOC8wMi8yMDI0LjA3LjMxLjI0MzExMjg3LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 7. 7.Cryer PE, Axelrod L, Grossman AB, et al. Evaluation and Management of Adult Hypoglycemic Disorders: An Endocrine Society Clinical Practice Guideline. The Journal of Clinical Endocrinology & Metabolism. 2009;94(3):709–728. doi:10.1210/jc.2008-1410 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1210/jc.2008-1410&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=19088155&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000264020700003&link_type=ISI) 8. 8.Brodovicz KG, Mehta V, Zhang Q, et al. Association between hypoglycemia and inpatient mortality and length of hospital stay in hospitalized, insulin-treated patients. Current Medical Research and Opinion. 2013;29(2):101–107. doi:10.1185/03007995.2012.754744 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1185/03007995.2012.754744&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=23198978&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) 9. 9.1. Feingold KR, 2. Anawalt B, 3. Blackman MR, et al. Dhatariya K, Corsino L, Umpierrez GE. Management of Diabetes and Hyperglycemia in Hospitalized Patients. In: Feingold KR, Anawalt B, Blackman MR, et al., eds. Endotext. MDText.com, Inc.; 2000. accessed February 14, 2024. [http://www.ncbi.nlm.nih.gov/books/NBK279093/](http://www.ncbi.nlm.nih.gov/books/NBK279093/) 10. 10.Gómez-Huelgas R, Guijarro-Merino R, Zapatero A, et al. The frequency and impact of hypoglycemia among hospitalized patients with diabetes: A population-based study. Journal of Diabetes and its Complications. 2015;29(8):1050–1055. doi:10.1016/j.jdiacomp.2015.07.018 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.jdiacomp.2015.07.018&link_type=DOI) 11. 11.Gold AE, Marshall SM. Cortical Blindness and Cerebral Infarction Associated with Severe Hypoglycemia. Diabetes Care. 1996;19(9):1001–1003. doi:10.2337/diacare.19.9.1001 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czo5OiIxOS85LzEwMDEiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyNC8wOC8wMi8yMDI0LjA3LjMxLjI0MzExMjg3LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 12. 12.Desouza C, Salazar H, Cheong B, Murgo J, Fonseca V. Association of Hypoglycemia and Cardiac Ischemia. Diabetes Care. 2003;26(5):1485–1489. doi:10.2337/diacare.26.5.1485 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czo5OiIyNi81LzE0ODUiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyNC8wOC8wMi8yMDI0LjA3LjMxLjI0MzExMjg3LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 13. 13.Wei M, Gibbons LW, Mitchell TL, Kampert JB, Stern MP, Blair SN. Low Fasting Plasma Glucose Level as a Predictor of Cardiovascular Disease and All-Cause Mortality. Circulation. 2000;101(17):2047–2052. doi:10.1161/01.CIR.101.17.2047 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6MTQ6ImNpcmN1bGF0aW9uYWhhIjtzOjU6InJlc2lkIjtzOjExOiIxMDEvMTcvMjA0NyI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDI0LzA4LzAyLzIwMjQuMDcuMzEuMjQzMTEyODcuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 14. 14.National Diabetes In-patient Audit-Harms. NHS Digital. accessed February 16, 2024. [https://digital.nhs.uk/data-and-information/clinical-audits-and-registries/national-diabetes-in-patient-audit-nadia-harms](https://digital.nhs.uk/data-and-information/clinical-audits-and-registries/national-diabetes-in-patient-audit-nadia-harms) 15. 15.Amiel SA, Aschner P, Childs B, et al. Hypoglycaemia, cardiovascular disease, and mortality in diabetes: epidemiology, pathogenesis, and management. The Lancet Diabetes & Endocrinology. 2019;7(5):385–396. doi:10.1016/S2213-8587(18)30315-2 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/S2213-8587(18)30315-2&link_type=DOI) 16. 16.Petersen KG, Schlüter KJ, Kerp L. Regulation of Serum Potassium During Insulin-induced Hypoglycemia. Diabetes. 1982;31(7):615–617. doi:10.2337/diab.31.7.615 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6ODoiZGlhYmV0ZXMiO3M6NToicmVzaWQiO3M6ODoiMzEvNy82MTUiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyNC8wOC8wMi8yMDI0LjA3LjMxLjI0MzExMjg3LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 17. 17.Lake A, Arthur A, Byrne C, Davenport K, Yamamoto JM, Murphy HR. The effect of hypoglycaemia during hospital admission on health-related outcomes for people with diabetes: a systematic review and meta-analysis. Diabet Med. 2019;36(11):1349–1359. doi:10.1111/dme.14115 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1111/dme.14115&link_type=DOI) 18. 18.Marcovecchio ML, University of Cambridge, Cambridge, UK. Complications of Acute and Chronic Hyperglycemia. US Endocrinology. 2017;13(01):17. doi:10.17925/USE.2017.13.01.17 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.17925/USE.2017.13.01.17&link_type=DOI) 19. 19.Rehman A, Setter SM, Vue MH. Drug-Induced Glucose Alterations Part 2: Drug-Induced Hyperglycemia. Diabetes Spectrum. 2011;24(4):234–238. doi:10.2337/diaspect.24.4.234 [FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiRlVMTCI7czoxMToiam91cm5hbENvZGUiO3M6ODoiZGlhc3BlY3QiO3M6NToicmVzaWQiO3M6ODoiMjQvNC8yMzQiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyNC8wOC8wMi8yMDI0LjA3LjMxLjI0MzExMjg3LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 20. 20.Tosur M, Viau-Colindres J, Astudillo M, Redondo MJ, Lyons SK. Medication-induced hyperglycemia: pediatric perspective. BMJ Open Diab Res Care. 2020;8(1):e000801. doi:10.1136/bmjdrc-2019-000801 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NjoiYm1qZHJjIjtzOjU6InJlc2lkIjtzOjExOiI4LzEvZTAwMDgwMSI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDI0LzA4LzAyLzIwMjQuMDcuMzEuMjQzMTEyODcuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 21. 21.Tatonetti NP, Ye PP, Daneshjou R, Altman RB. Data-Driven Prediction of Drug Effects and Interactions. Sci Transl Med. 2012;4(125). doi:10.1126/scitranslmed.3003377 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6MTE6InNjaXRyYW5zbWVkIjtzOjU6InJlc2lkIjtzOjEzOiI0LzEyNS8xMjVyYTMxIjtzOjQ6ImF0b20iO3M6NTA6Ii9tZWRyeGl2L2Vhcmx5LzIwMjQvMDgvMDIvMjAyNC4wNy4zMS4yNDMxMTI4Ny5hdG9tIjt9czo4OiJmcmFnbWVudCI7czowOiIiO30=) 22. 22.Pourhoseingholi MA, Baghestani AR, Vahedi M. How to control confounding effects by statistical analysis. Gastroenterol Hepatol Bed Bench. 2012;5(2):79–83. [PubMed](http://medrxiv.org/lookup/external-ref?access_num=24834204&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) 23. 23.Pratiwi C, Mokoagow MI, Made Kshanti IA, Soewondo P. The risk factors of inpatient hypoglycemia: A systematic review. Heliyon. 2020;6(5):e03913. doi:10.1016/j.heliyon.2020.e03913 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.heliyon.2020.e03913&link_type=DOI) 24. 24.Boyarko B, Podvin S, Greenberg B, et al. Evaluation of bumetanide as a potential therapeutic agent for Alzheimer’s disease. Front Pharmacol. 2023;14:1190402. doi:10.3389/fphar.2023.1190402 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.3389/fphar.2023.1190402&link_type=DOI) 25. 25.Shuey MM, Lee KM, Keaton J, et al. A genetically supported drug repurposing pipeline for diabetes treatment using electronic health records. eBioMedicine. 2023;94:104674. doi:10.1016/j.ebiom.2023.104674 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.ebiom.2023.104674&link_type=DOI) 26. 26.Gaur AS, Nagamani S, Tanneeru K, et al. Molecular property diagnostic suite for diabetes mellitus (MPDSDM): An integrated web portal for drug discovery and drug repurposing. Journal of Biomedical Informatics. 2018;85:114–125. doi:10.1016/j.jbi.2018.08.003 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.jbi.2018.08.003&link_type=DOI) 27. 27.Tibshirani R. Regression Shrinkage and Selection Via the Lasso. Journal of the Royal Statistical Society Series B: Statistical Methodology. 1996;58(1):267–288. doi:10.1111/j.2517-6161.1996.tb02080.x [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1111/j.2517-6161.1996.tb02080.x&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=WOS:A1996TU3&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=A1996TU31400017&link_type=ISI) 28. 28.Carey M, Boucai L, Zonszein J. Impact of Hypoglycemia in Hospitalized Patients. Curr Diab Rep. 2013;13(1):107–113. doi:10.1007/s11892-012-0336-x [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1007/s11892-012-0336-x&link_type=DOI) 29. 29.Rubin DJ, Golden SH. Hypoglycemia in Non-Critically Ill, Hospitalized Patients With Diabetes: Evaluation, Prevention, and Management. Hospital Practice. 2013;41(1):109–116. doi:10.3810/hp.2013.02.1016 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.3810/hp.2013.02.1016&link_type=DOI) 30. 30.Maynard GA, Huynh MP, Renvall M. Iatrogenic Inpatient Hypoglycemia: Risk Factors, Treatment, and Prevention. Diabetes Spectrum. 2008;21(4):241–247. doi:10.2337/diaspect.21.4.241 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6ODoiZGlhc3BlY3QiO3M6NToicmVzaWQiO3M6ODoiMjEvNC8yNDEiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyNC8wOC8wMi8yMDI0LjA3LjMxLjI0MzExMjg3LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 31. 31.Hulkower RD, Pollack RM, Zonszein J. Understanding hypoglycemia in hospitalized patients. Diabetes Manag (Lond). 2014;4(2):165–176. doi:10.2217/DMT.13.73 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.2217/DMT.13.73&link_type=DOI) 32. 32.Home - MICROMEDEX. accessed June 27, 2024. [https://www-micromedexsolutions-com.mlprox.csmc.edu/micromedex2/librarian](https://www-micromedexsolutions-com.mlprox.csmc.edu/micromedex2/librarian) 33. 33.Greisen J, Juhl CB, Grøfte T, Vilstrup H, Jensen TS, Schmitz O. Acute Pain Induces Insulin Resistance in Humans. Anesthesiology. 2001;95(3):578–584. doi:10.1097/00000542-200109000-00007 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1097/00000542-200109000-00007&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=11575527&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000170872900003&link_type=ISI) 34. 34.Tenenbaum A, Fisman EZ. Impaired Glucose Metabolism in Patients with Heart Failure: Pathophysiology and Possible Treatment Strategies. American Journal of Cardiovascular Drugs. 2004;4(5):269–280. doi:10.2165/00129784-200404050-00001 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.2165/00129784-200404050-00001&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=15449970&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) 35. 35.E. Duncan A. Hyperglycemia and Perioperative Glucose Management. CPD. 2012;18(38):6195–6203. doi:10.2174/138161212803832236 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.2174/138161212803832236&link_type=DOI) 36. 36.Pioglitazone. accessed July 23, 2024. [https://go.drugbank.com/drugs/DB01132](https://go.drugbank.com/drugs/DB01132) 37. 37.Halas CJ. Nateglinide. American Journal of Health-System Pharmacy. 2001;58(13):1200–1205. doi:10.1093/ajhp/58.13.1200 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NDoiYWpocCI7czo1OiJyZXNpZCI7czoxMDoiNTgvMTMvMTIwMCI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDI0LzA4LzAyLzIwMjQuMDcuMzEuMjQzMTEyODcuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 38. 38.Zale AD, Abusamaan MS, McGready J, Mathioudakis N. Prediction of Next Glucose Measurement in Hospitalized Patients by Comparing Various Regression Methods: Retrospective Cohort Study. JMIR Form Res. 2023;7:e41577. doi:10.2196/41577 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.2196/41577&link_type=DOI) 39. 39.Herman WH, Ma Y, Uwaifo G, et al. Differences in A1C by Race and Ethnicity Among Patients With Impaired Glucose Tolerance in the Diabetes Prevention Program. Diabetes Care. 2007;30(10):2453–2457. doi:10.2337/dc06-2003 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czoxMDoiMzAvMTAvMjQ1MyI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDI0LzA4LzAyLzIwMjQuMDcuMzEuMjQzMTEyODcuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 40. 40.Howey DC, Bowsher RR, Brunelle RL, Woodworth JR. [Lys(B28), Pro(B29)]-Human Insulin: A Rapidly Absorbed Analogue of Human Insulin. Diabetes. 1994;43(3):396–402. doi:10.2337/diab.43.3.396 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6ODoiZGlhYmV0ZXMiO3M6NToicmVzaWQiO3M6ODoiNDMvMy8zOTYiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyNC8wOC8wMi8yMDI0LjA3LjMxLjI0MzExMjg3LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 41. 41.Trautmann M. Effect of the Insulin Analogue [LYS(B28),PRO(B29)] on Blood Glucose Control. Horm Metab Res. 1994;26(12):588–590. doi:10.1055/s-2007-1001765 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1055/s-2007-1001765&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=7705764&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) 42. 42.INSULIN LISPRO injection, solution. Package insert. Eli Lilly and Company. Published September 21, 2023. accessed June 25, 2024. [https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=97d5e596-aae1-42c9-ae89-c3780959c467](https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=97d5e596-aae1-42c9-ae89-c3780959c467) 43. 43.Wei L, Ji L, Miao Y, et al. Constipation in DM are associated with both poor glycemic control and diabetic complications: Current status and future directions. Biomedicine & Pharmacotherapy. 2023;165:115202. doi:10.1016/j.biopha.2023.115202 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.biopha.2023.115202&link_type=DOI) 44. 44.Kong MF, Horowitz M. Gastric Emptying in Diabetes Mellitus: Relationship to Blood-Glucose Control. Clinics in Geriatric Medicine. 1999;15(2):321–338. doi:10.1016/S0749-0690(18)30062-4 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/S0749-0690(18)30062-4&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=10339636&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000080214400009&link_type=ISI) 45. 45.The Writing Team For The Diabetes Control and Complications Trial/Epidemiology Of Diabetes Interventions and Complications Research Group. Effect of Intensive Therapy on the Microvascular Complications of Type 1 Diabetes Mellitus. JAMA: The Journal of the American Medical Association. 2002;287(19):2563–2569. doi:10.1001/jama.287.19.2563 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1001/jama.287.19.2563&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=12020338&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000175566200026&link_type=ISI) 46. 46.Bharucha AE, Batey-Schaefer B, Cleary PA, et al. Delayed Gastric Emptying Is Associated With Early and Long-term Hyperglycemia in Type 1 Diabetes Mellitus. Gastroenterology. 2015;149(2):330–339. doi:10.1053/j.gastro.2015.05.007 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1053/j.gastro.2015.05.007&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=25980755&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) 47. 47.Ishii M, Nakamura T, Kasai F, Onuma T, Baba T, Takebe K. Altered Postprandial Insulin Requirement in IDDM Patients With Gastroparesis. Diabetes Care. 1994;17(8):901–903. doi:10.2337/diacare.17.8.901 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czo4OiIxNy84LzkwMSI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDI0LzA4LzAyLzIwMjQuMDcuMzEuMjQzMTEyODcuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 48. 48.Ishii M, Nakamura T, Kasai F, Baba T, Takebe K. Erythromycin Derivative Improves Gastric Emptying and Insulin Requirement in Diabetic Patients With Gastroparesis. Diabetes Care. 1997;20(7):1134–1137. doi:10.2337/diacare.20.7.1134 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czo5OiIyMC83LzExMzQiO3M6NDoiYXRvbSI7czo1MDoiL21lZHJ4aXYvZWFybHkvMjAyNC8wOC8wMi8yMDI0LjA3LjMxLjI0MzExMjg3LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 49. 49.Wei Z, Shen P, Cheng P, Lu Y, Wang A, Sun Z. Gut Bacteria Selectively Altered by Sennoside A Alleviate Type 2 Diabetes and Obesity Traits. Oxidative Medicine and Cellular Longevity. 2020;2020:1–16. doi:10.1155/2020/2375676 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1155/2020/2375676&link_type=DOI) 50. 50.Ma L, Cao X, Ye X, Ye J, Sun Y. Sennoside A Induces GLP-1 Secretion Through Activation of the ERK1/2 Pathway in L-Cells. DMSO. 2020;Volume 13:1407–1415. doi:10.2147/DMSO.S247251 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.2147/DMSO.S247251&link_type=DOI) 51. 51.Le J, Zhang X, Jia W, et al. Regulation of microbiota–GLP1 axis by sennoside A in diet-induced obese mice. Acta Pharmaceutica Sinica B. 2019;9(4):758–768. doi:10.1016/j.apsb.2019.01.014 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.apsb.2019.01.014&link_type=DOI) 52. 52.Choi SB, Ko BS, Park SK, Jang JS, Park S. Insulin sensitizing and α-glucoamylase inhibitory action of sennosides, rheins and rhaponticin in Rhei Rhizoma. Life Sciences. 2006;78(9):934–942. doi:10.1016/j.lfs.2005.05.101 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.lfs.2005.05.101&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=16182318&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000235105700004&link_type=ISI) 53. 53.Tzeng T, Liu I, Lai T, Tsai C, Chang W, Cheng J. Loperamide increases glucose ultilization in streptozotocin-induced diabetic rats. Clin Exp Pharma Physio. 2003;30(10):734–738. doi:10.1046/j.1440-1681.2003.03903.x [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1046/j.1440-1681.2003.03903.x&link_type=DOI) 54. 54.Tzeng TF, Liu IM, Cheng JT. Activation of opioid μ-receptors by loperamide to improve interleukin-6-induced inhibition of insulin signals in myoblast C2C12 cells. Diabetologia. 2005;48(7):1386–1392. doi:10.1007/s00125-005-1791-6 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1007/s00125-005-1791-6&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=15959754&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000230651500023&link_type=ISI) 55. 55.Casteels T, Zhang Y, Frogne T, et al. An inhibitor-mediated beta-cell dedifferentiation model reveals distinct roles for FoxO1 in glucagon repression and insulin maturation. Molecular Metabolism. 2021;54:101329. doi:10.1016/j.molmet.2021.101329 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.molmet.2021.101329&link_type=DOI) 56. 56.Koekkoek LL, Van Der Gun LL, Serlie MJ, La Fleur SE. The Clash of Two Epidemics: the Relationship Between Opioids and Glucose Metabolism. Curr Diab Rep. 2022;22(7):301–310. doi:10.1007/s11892-022-01473-0 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1007/s11892-022-01473-0&link_type=DOI) 57. 57.Beckett EAH, Staikopoulos V, Hutchinson MR. Differential effect of morphine on gastrointestinal transit, colonic contractions and nerve-evoked relaxations in Toll-Like Receptor deficient mice. Sci Rep. 2018;8(1):5923. doi:10.1038/s41598-018-23717-4 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1038/s41598-018-23717-4&link_type=DOI) 58. 58.Larsson SC, Wolk A. Magnesium intake and risk of type 2 diabetes: a meta-analysis. Journal of Internal Medicine. 2007;262(2):208–214. doi:10.1111/j.1365-2796.2007.01840.x [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1111/j.1365-2796.2007.01840.x&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=17645588&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom) [Web of Science](http://medrxiv.org/lookup/external-ref?access_num=000248851600007&link_type=ISI) 59. 59.Kim DJ, Xun P, Liu K, et al. Magnesium Intake in Relation to Systemic Inflammation, Insulin Resistance, and the Incidence of Diabetes. Diabetes Care. 2010;33(12):2604–2610. doi:10.2337/dc10-0994 [Abstract/FREE Full Text](http://medrxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NzoiZGlhY2FyZSI7czo1OiJyZXNpZCI7czoxMDoiMzMvMTIvMjYwNCI7czo0OiJhdG9tIjtzOjUwOiIvbWVkcnhpdi9lYXJseS8yMDI0LzA4LzAyLzIwMjQuMDcuMzEuMjQzMTEyODcuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 60. 60.Soliman R, Nofal H. The effect of perioperative magnesium sulfate on blood sugar in patients with diabetes mellitus undergoing cardiac surgery: A double-blinded randomized study. Ann Card Anaesth. 2019;22(2):151. doi:10.4103/aca.ACA\_32\_18 [CrossRef](http://medrxiv.org/lookup/external-ref?access\_num=10.4103/aca.ACA_32_18&link_type=DOI) 61. 61.Park JW, Kim EK, Lee J, Chung SH, Boo G, Do SH. Effect of Intraoperative Magnesium Sulfate Administration on Blood Glucose Control following Total Joint Arthroplasty in Patients with Diabetes. JCM. 2022;11(11):3040. doi:10.3390/jcm11113040 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.3390/jcm11113040&link_type=DOI) 62. 62.Rezazadeh H, Sharifi MR, Sharifi M, Soltani N. Magnesium sulfate improves insulin resistance in high fat diet induced diabetic parents and their offspring. European Journal of Pharmacology. 2021;909:174418. doi:10.1016/j.ejphar.2021.174418 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1016/j.ejphar.2021.174418&link_type=DOI) 63. 63.Sohrabipour S, Sharifi MR, Sharifi M, Talebi A, Soltani N. Effect of magnesium sulfate administration to improve insulin resistance in type 2 diabetes animal model: using the hyperinsulinemic-euglycemic clamp technique. Fundamemntal Clinical Pharma. 2018;32(6):603–616. doi:10.1111/fcp.12387 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1111/fcp.12387&link_type=DOI) 64. 64.Touliat MV, Rezazadeh H, Beyki M, et al. Impact of magnesium sulfate therapy in improvement of renal functions in high fat diet-induced diabetic rats and their offspring. Sci Rep. 2023;13(1):2273. doi:10.1038/s41598-023-29540-w [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1038/s41598-023-29540-w&link_type=DOI) 65. 65.Buscemi S, Nicolucci A, Lucisano G, et al. Impact of chronic diuretic treatment on glucose homeostasis. Diabetol Metab Syndr. 2013;5(1):80. doi:10.1186/1758-5996-5-80 [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1186/1758-5996-5-80&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=24330854&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2024%2F08%2F02%2F2024.07.31.24311287.atom)