OUP user menu

Interventions to Regulate Ordering of Serum Magnesium Levels: Report of an Unintended Consequence of Decision Support

S. Trent Rosenbloom MD, MPH, Kou-Wei Chiu MD, Daniel W. Byrne MS, Doug A. Talbert PhD, Eric G. Neilson MD, Randolph A. Miller MD
DOI: http://dx.doi.org/10.1197/jamia.M1811 546-553 First published online: 1 September 2005

Abstract

Background: Unintended consequences of computerized patient care system interventions may increase resource use, foster clinical errors, and reduce users' confidence.

Objective: To evaluate three successive interventions designed to reduce serum magnesium test ordering through a care provider order entry system (CPOE). The second, modeled after a previously successful intervention, caused paradoxical increases in magnesium test ordering rates.

Design: A time-series analysis modeled weekly rates of magnesium test ordering, underlying trends, the impact of the three successive interventions, and the impact of potential covariates. The first intervention exhorted users to discontinue unnecessary tests recurring more than 72 hours into the future. The second displayed recent magnesium, calcium, and phosphorus test results, limited testing to one test instance per order, and provided education regarding appropriate indications for testing. The third targeted only magnesium ordering, displayed recent results, limited testing to one instance per order, summarized indications for testing, and required users to select an indication.

Participants: Clinicians at Vanderbilt University Hospital, a 609-bed academic inpatient tertiary care facility, from 1998 through 2003.

Measurements: Weekly rates of new serum magnesium test orders, instances, and results.

Results: At baseline, there were 539 magnesium tests ordered per week. This decreased to 380 (p = 0.001) per week after the first intervention, increased to 491 per week (p < 0.001) after the second, and decreased to 276 per week (p < 0.001) after the third.

Conclusion: A clinical decision support intervention intended to regulate testing increased test order rates as an unintended result of decision support. CPOE implementers must carefully design resource-related interventions and monitor their impact over time.

Clinical decision support (CDS) systems are computerized tools developed to assist clinical decision making by presenting to health care providers relevant patient-, disease-, or institution-specific evidence.1 When integrated into workflows that include care provider order entry (CPOE), CDS systems increase adherence to guidelines and protocols.19 For example, decision support tools described in the medical literature have improved compliance with testing guidelines,1019 primary care and preventive medicine guidelines,2026 and disease-specific management protocols.2740

Despite their potential utility, a growing body of evidence has demonstrated that computerized patient care information systems (PCISs), such as CDS and CPOE systems, may cause unintended consequences.41 Unintended consequences of PCISs and CDS tools can lead to workflow inefficiency, excessive resource use, reduced confidence in such systems, and actual clinical errors. Studies investigating the factors leading to unintended consequences of decision support remain uncommon.

The current study evaluates an unintended consequence fostered by a decision support intervention designed to regulate inpatient serum magnesium testing at Vanderbilt University Medical Center (VUMC). The intervention was one of three developed at the request of the VUMC Resource Utilization Committee (RUC), which has periodically requested modifications in the institutional CPOE system to deliver targeted decision support interventions to reduce excessive or variable resource consumption.19 A similar project had previously decreased rates of serum chemistry test ordering (e.g., sodium, potassium, chloride, bicarbonate, blood urea nitrogen, creatinine, and glucose) at Vanderbilt University Hospital (VUH) by 51% below baseline.19 Between 1999 and 2002, the RUC commissioned development of three sequential interventions to regulate serum magnesium test ordering via the CPOE system. According to the RUC, the impetus for managing serum magnesium testing was twofold: (1) Analysis of CPOE system log files and laboratory results indicated that over 99% of the magnesium test results fell into a clinically acceptable “normal” range; 77% of tests represented repeat tests on individual patients, and patients' serum magnesium levels, when checked, were tested an average 4.2 times per admission. (2) The RUC knew of evidence in the literature indicating poor correlation of serum magnesium levels with total body magnesium stores42 and that improved clinical outcomes rarely resulted from magnesium screening.43

Design

Study Setting and Participants

At the time of the study, from 1998 through 2003, VUH was a 609-bed inpatient tertiary care facility with large local and regional primary referral bases, cared for 31,000 inpatients annually, was staffed by approximately 900 attending physicians, and annually trained more than 650 house staff and fellows in over 50 subspecialty areas. Vanderbilt University Medical Center (VUMC), through its Department of Biomedical Informatics, Informatics Center, and clinical infrastructure,44 has developed and implemented clinical information systems, including CPOE45 and clinical data repository46 systems. At the start of the study period, the CPOE system was implemented on 30 of 33 inpatient wards, and over 12, 000 orders were entered into the system daily. On active CPOE units, nearly 100% of orders were entered into the CPOE system. All hospital units using the CPOE system at the beginning of the study period were included in the study; this excluded only the pediatric and neonatal intensive care units, the Emergency Department, and the General Clinical Research Center (GCRC).

Using the standard Vanderbilt CPOE system prior to any of the current study interventions, health care providers could freely order laboratory testing on inpatients; there were no system-imposed requirements that users know appropriate indications for the tests, that they review the patient's prior results, or that they limit test frequency and duration. Certain hospital units also had protocols for nonphysicians to order recurring magnesium testing: testing on the hematology/oncology care unit was driven primarily by disease-specific standard protocols for bone marrow transplantation (e.g., one order set protocol allowed magnesium testing every Monday and Thursday, regardless of the patients' clinical status). On the trauma surgical unit, nursing protocols permit testing triggered from clinical conditions (e.g., magnesium was tested whenever patients had certain cardiac arrhythmias).

Decision Support Interventions Targeting Magnesium Ordering

In developing an approach to determining whether some of the orders for serum magnesium tests were excessive or inappropriate, the RUC identified two “normal” ranges for serum magnesium results. One represented the institutional laboratory's statistically based normal range, 1.5–2.5 mg/dL. The other represented a “physiologically appropriate” range (i.e., the serum magnesium was unlikely directly to cause clinical sequelae if within this range since the body's magnesium stores are primarily intracellular rather than in the serum). The RUC defined the physiologically appropriate serum magnesium range as 1.0–3.9 mg/dL.

Three decision support interventions were designed and implemented to regulate serum magnesium test ordering (Table 1). The study's decision support interventions were displayed to all physicians, nurse practitioners, and medical students entering orders for any patient receiving care on VUH hospital units where CPOE was implemented. The first intervention, active from December 5, 1999 through March 21, 2000, globally targeted all open-ended laboratory and radiology orders. Intervention-generated feedback to CPOE system users indicated daily when any test order was scheduled to recur more than 72 hours into the future (e.g., twice daily serum magnesium levels for five days), prompting users to consider discontinuing the order.

View this table:
Table 1

Decision support interventions designed to implement an institutional magnesium testing protocol*

InterventionDatesTarget and Description
Baseline1/1/98 – 12/4/99No protocols restricting the frequency, context, or volume of magnesium testing
First intervention12/5/99 – 3/21/00Targeted all laboratory testing instances. Instances scheduled for more than 72 hours into the future flagged; users prompted to discontinue them.
Second intervention6/20/00 – 11/30/01Targeted magnesium, calcium, & phosphorus testing instances. Included a graphical display of recent serum magnesium, calcium, and phosphorus results; educational material outlining indications for magnesium testing and interpretation; and restrictions on the volume of magnesium, calcium, and phosphorus testing
Third intervention12/1/01 – 12/31/03Targeted magnesium testing orders. Included the most recent serum magnesium result; graphical display of a calculated corrected magnesium value; restriction testing volume to one test per order; and requirement to select a magnesium testing indication
  • * For the purpose of this study, orders are finalized interactions with the CPOE system that lead to one or more actions on patients (such as laboratory testing). Instances are the individual actions that occur on patients as the result of an order (e.g., one order for twice-daily magnesium testing to occur over 5 days leads to 10 magnesium testing instances).

  • Broad-based tools, globally addressing multiple laboratory tests simultaneously.

  • Focused tool targeting only serum magnesium testing orders.

The second study-related intervention (Fig. 1), active from June 20, 2000 through November 30, 2001, emulated a previously successful technique used to regulate serum chemistry testing (e.g., sodium, potassium, chloride, bicarbonate, blood urea nitrogen, creatinine, and glucose).19 The second intervention forced any care provider who ordered a serum magnesium, calcium, or phosphorus level to view a common Web page that displayed the patient's previous results for those tests and included a link to a list of testing guidelines (Table 2). This intervention also limited orders to one test per order (i.e., no recurrent testing was possible). System users could bypass the second intervention only by ordering magnesium testing from disease-specific order sets or by specifically ordering a single magnesium test (rather than recurrent testing) from the standard CPOE system user interface.

Figure 1

The second decision support tool was designed to reduce unnecessary magnesium, calcium, and phosphorus testing. The tool's interface included graphical displays of any magnesium, calcium, and phosphorus testing results from the previous seven days. Albumin results were also included to allow the user to “correct” the measured magnesium and calcium values. The interface included additional educational material and a link to testing guidelines under “Notes.” At the bottom of the tool, the user was prompted to enter the timing of tests, and orders are restricted to one-time testing (for magnesium and phosphorus) or to repeat testing to occur only within the following 24-hour period (for calcium and albumin).

View this table:
Table 2

Institutional Guidelines for Serum Magnesium Testing*

  1. Routine or repeated magnesium testing is not indicated unless evidence from the clinical evaluation of the patient suggests magnesium deficiency.

  2. If magnesium is thought to have therapeutic value and the patient does not have renal failure, then simply give it, since serum magnesium levels are not sensitive enough to guide this kind of empirical replacement therapy.

  3. Healthy-eating persons generally do not require any magnesium supplementation unless their levels are less than 1.0 mg/dL, and repeated magnesium testing is not needed in such individuals, unless new indications arise.

  4. Almost never give magnesium to someone with significant renal impairment.

  5. Correct any serum magnesium level for albumin before treating an asymptomatic patient.

  • * Links to these guidelines were available from the second and third decision support tools described in this article.

The third study-related intervention (Fig. 2), active from December 1, 2001 (two years after introduction of the first intervention and 1½ years after the second) onward, was designed solely to reduce orders for magnesium testing and did not address calcium or phosphorus testing. Like the second intervention, the third displayed the patient's recent results, limited orders to one test per order, and summarized guidelines for testing. The third intervention also added a requirement for the user to enter a reason for testing after reviewing indications (Fig. 2). CPOE users could only bypass the third intervention by ordering magnesium tests from a disease-specific order set.

Figure 2

The third decision support tool specifically targeted magnesium testing. The interface included graphical and tabular display of the most recent results for magnesium, albumin, and a corrected magnesium, if available. Blood urea nitrogen and creatinine were also displayed to indicate the patient's renal function. Users were also required to select or enter an indication for testing. All magnesium orders entered through this tool were for single test instances.

Data Sources

After Institutional Review Board approval was obtained for this study, a computer program extracted from CPOE system log files all new orders for serum magnesium, calcium, and phosphorus testing and all related test order “instances” (e.g., one order for twice-daily magnesium testing to occur over five days would lead to ten magnesium testing instances). Net instances were calculated by excluding any previously scheduled instances that did not occur due to an intercurrent “discontinue” order (e.g., an order for twice-daily magnesium testing over five days might be discontinued after two days, leading to a net four magnesium testing instances). All inpatient serum magnesium, calcium, and phosphorus test results from July 25, 1999 (when the current VUH laboratory system was implemented) to December 31, 2003 were extracted from the institutional clinical data repository. Patient data, including age, gender, mortality, hospital length of stay, and disease complexity (as measured by diagnosis-related group weight, assigned at discharge) were extracted from institutional demographic databases to include in the analyses as covariates.

Statistical Analysis

The primary outcomes were weekly rates of new serum magnesium test orders, net serum magnesium order instances, and reported magnesium results. Secondary outcomes included rates of concurrent orders for serum magnesium and calcium or phosphorus tests, and weekly rates of serum magnesium orders on units with a high proportion of nurse-entered or protocol-driven orders. Interrupted time-series analysis allows the evaluation of an outcome of interest in a single population to determine whether changes were coincident with a specific point in time4749 and may be especially useful for studying decision support interventions deployed in academic teaching hospitals.50 Outcomes were modeled using an interrupted time-series analysis that included moving averages, auto regressive terms, and structural variables corresponding with each intervention. The structural variables in our analysis included components to model the preintervention period and the immediate change (i.e., the intercept change) and trend change (i.e., the slope change) in ordering rates following each intervention. The analysis accounted for potential confounding by including demographic covariates, including weekly admission rates and mean patient age.51 Outcomes were considered statistically significant if p-values were below 0.050. All statistical analyses were performed using Stata SE version 8.0 (Stata Corp, College Station, TX).

Results

Patient Characteristics

During the six-year study period, VUH admitted a total of 194,192 patients as inpatients, increasing from an initial rate of 548 patients admitted per week to a final 720 per week (an upward trend of 0.6 patients every week; p = 0.035). Mean patient age, proportional admissions by gender, proportional hospital deaths, and patient complexity did not appreciably change throughout the study period.

Decision Support Impact on Ordering Rates and Reported Results

System users ordered a baseline mean 0.87 magnesium net instances per admitted patient on all study units. This decreased to 0.59 net instances per patient (p < 0.001) with the first intervention, increased to 0.87 per patient (p = 0.001) after the second intervention, and decreased to 0.39 per patient after the third intervention (p = 0.003). There were no significant trend changes in net instances per patient with any of the interventions. At the end of the study period, the expected rate of magnesium testing had dropped to 0.41 instances per patient. Overall, magnesium testing was ordered on 21% of all admitted patients at the start of the study period, dropping to 14% at the end of the study period.

Figure 3 shows the impact of each of the three interventions on the order and instance rates for serum magnesium test orders. Table 3 reports the weekly rates for serum magnesium, phosphorus, and calcium test ordering during the baseline period and after each intervention. Weekly rates of serum magnesium tests performed on inpatient study units had no underlying trends, dropped 29% with the first intervention (p < 0.001), increased 30% with the second intervention (p = 0.001), and dropped 46% with the third intervention (p < 0.001). During all periods of the study, 14% of serum magnesium results fell outside the laboratory normal range, and 0.4% of results fell outside the physiologically acceptable range; there was no change with any of the interventions.

Figure 3

Weekly rates of magnesium orders (top) and net instances (bottom) over the entire study period. Rates of instances and results track closely together and have an overall correlation coefficient of 0.87. Study-related events affecting ordering rates included implementation of the first decision support tool (A), removal of the first decision support tool (B), implementation of the second decision support tool (C), and replacement of the second decision support tool with the third (D). The change in rates at C brings net instances and results back to the preinterventions baseline. When corrected for increasing hospital admission rates, the apparent upward trend following D remains significant for net instances.

View this table:
Table 3

Changes in Test Order Rates Associated With Decision Support Interventions

Orders*Instances*
TestsValuep ValueValuep Value
Magnesium
   Mean weekly tests during baseline period234539
   Baseline trend in weekly tests0.10.845−0.50.163
   Weekly test rate after the first intervention2190.6403780.001
   Weekly test rate after the second intervention485<0.0014910.022
   Trend change in the weekly test rate after the second intervention0.60.3151.50.050
   Weekly test rate after the third intervention230<0.001277<0.001
   Trend change in the weekly test rate related the third intervention0.90.0761.60.007
   Mean weekly test rate at the end of study period320379
Calcium
   Mean weekly tests during baseline period200400
   Baseline trend in weekly tests0.10.924−0.50.361
   Weekly test rate after the first intervention1900.8223360.643
   Weekly test rate after the second intervention3680.1134520.541
   Trend change in the weekly test rate after the second intervention2.50.0123.60.003
   Weekly test rate after the third intervention4620.0456210.001
   Trend change in the weekly test rate related the third intervention7.6< 0.0018.0< 0.001
   Mean weekly test rate at the end of study period12591417
Phosphorus
   Mean weekly tests during baseline period108282
   Baseline trend in weekly tests0.10.6620.10.777
   Weekly test rate after the first intervention1070.8232270.056
   Weekly test rate after the second intervention292< 0.0013130.011
   Trend change in the weekly test rate after the second intervention1.10.0081.50.015
   Weekly test rate after the third intervention2290.0082890.189
   Trend change in the weekly test rate related the third intervention0.70.0540.80.057
   Mean weekly test rate at the end of study period309363
  • * All outcomes are corrected for changes in weekly admission rates.

  • p Values for “weekly test rate” tests the hypothesis that the current rate is the same as the preceding rate. p Values for “trend change” tests the hypothesis that the current trend is equal to zero.

  • Trends during the period when the first tool was implemented could not be tested due to inadequate sample.

During the baseline period, 33% of orders for calcium testing were entered simultaneously with orders for magnesium testing. Simultaneous calcium and magnesium test orders did not immediately change with implementation of the first intervention, but dropped over time to 23% (p < 0.001) prior to implementation of the second intervention. Concurrent magnesium and calcium ordering increased to 37% (p < 0.001) after implementation of the second intervention and dropped to 25% (p < 0.001) following the third intervention. During the baseline period, 48% of phosphorus test orders were entered simultaneously with orders for magnesium tests. Simultaneous phosphorus and magnesium test orders increased to 80% (p < 0.001) with the second decision support intervention and decreased to 47% (p < 0.001) with the third.

Decision Support Impact on Nurse-Entered or Protocol-Driven Ordering Rates

The analysis was repeated excluding the hematology/oncology and trauma surgical units, where magnesium orders were often placed by protocol. Excluding these units, 194 orders were placed per week for 423 net magnesium testing instances. The order rate increased to 362 per week after the second decision support intervention (p < 0.001) and decreased to 212 per week after the third (p < 0.001), while net instances dropped to 281 after the first intervention (p = 0.092), increased to 357 instances per week with the second (p = 0.011), and dropped to 310 instances per week with the third (p = 0.012). Excluding the hematology/oncology and trauma surgical units, magnesium testing was obtained 3.3 times per admitted patient when ordered at all, compared to 4.9 times per patient on those units (p < 0.001).

On the hematology/oncology care unit, there were at baseline 59 net instances weekly, decreasing by five tests every 20 weeks (p = 0.003). After the third intervention, net instances increased by eight tests every 20 weeks (p = 0.006) over baseline, leading to a final expected mean rate of 48 net instances per week. On the trauma surgical units alone, there were 34 orders for 82 net instances per week at baseline. After the third intervention, orders dropped from 114 per week to 43 per week (p = 0.006), and net instances dropped from 121 per week to 37 per week (p = 0.002). There were no other changes in new order or net instance rates in these units.

Discussion

The current study evaluated the impact of three sequential CDS interventions implemented through a CPOE system to regulate magnesium test ordering rates. Despite emulating a previously successful decision support intervention, the second intervention caused several unintended consequences, increasing testing rates to before the first-intervention baseline and doubling the rates at which users placed study test orders into the CPOE system. These results ultimately required development of a third intervention. The paradoxically increased rates of magnesium testing following the second intervention were observed across multiple analyses, whether measured as CPOE system orders, individual tests requested per week, tests performed per week, or per-patient test rates. The increases were not observed on hospital units with relatively high proportions of protocol-driven rather than physician-driven orders for magnesium testing but were pronounced when these units were excluded from the analysis. The second intervention was also associated with increased rates of simultaneously entered orders for magnesium and calcium or phosphorus testing.

Patient care information systems and CDS interventions can lead to unintended consequences and paradoxical effects. Such consequences can cause clinical errors, fragment health care providers' workflow, increase resource use for testing and medication prescribing, and reduce users' confidence in PCISs.41 The paradoxical increase in order rates described in this study likely resulted from an unintended consequence, inadvertent prompting by the decision support system that led users to increase ordering. System developers placed together in the same user interface page (for the second intervention) measures meant individually to limit serum magnesium, calcium, and phosphorus testing. In such a setting, placing the ability to order three tests from a single CPOE user interface may have unintentionally suggested that the tests should be ordered together, thereby prompting users to order them without originally planning to do so.

Inadvertent prompting results when a decision support system unexpectedly stimulates system user to perform an action that was not anticipated by the system developers. This may occur when system users, such as health care providers, make decisions based on habitual patterns or complex reasoning52 that were not obvious to system developers. For example, a health care provider might routinely request (often unnecessary) tests such as a serum magnesium and phosphorus levels when ordering serum calcium tests; system developers unaware of this clinical approach would not plan to avert such behaviors.

In addition to inadvertent prompting, combining the three tests on a single Web page created a workflow convenience. The intervention's developers had placed the measures together because serum magnesium testing is often ordered concurrently with serum calcium and phosphorus testing. The standard CPOE system interface required that users enter individual orders for each; magnesium, calcium, and phosphorus tests were previously ordered separately, with unique test frequency, urgency, and timing for each. The second study intervention allowed system users to order magnesium, calcium, and phosphorus simultaneously, specifying frequency, urgency, and timing once for all three tests. The intervention did not balance the increased ease of ordering that it provided with any rational constraints on ordering (such as requiring that users review the graphical presentation of previous magnesium results and that users become familiar with local guidelines and educational material about magnesium testing or provide reasons for test ordering). The result of the imbalanced second intervention was a paradoxical increase in magnesium test ordering rates. The third study intervention addressed the imbalance and lowered magnesium test ordering rates.

Limitations

The current investigation has limitations that merit discussion. First, as is the case for all time-series analyses, it is possible that unmeasured events occurring coincident with the CDS interventions caused the observed outcomes rather than the interventions themselves. Second, because the second decision support intervention was removed from the CPOE system at the same time that the third was introduced, the study could not determine which event led to the drop in testing rates occurring in the transition between them. Rates of serum phosphorus testing did not change in the transition between the second and third interventions and therefore served as a partial “control”; it is reasonable to postulate that the third intervention caused the drop in magnesium testing. The study also did not include an analysis of other unintended consequences of decision support interventions, including adverse clinical impact or poor cost-effectiveness of implementation. While this study could not directly evaluate whether system users ordered serum magnesium testing more or less appropriately with any of the interventions, it did include an analysis of rates of abnormal results. It is likely that had the interventions improved appropriateness of test ordering, they would have reduced the proportion of normal results. Fourth, the results may not generalize to other health care settings. This study was performed in a teaching hospital where the majority of order entry was performed by house staff physicians and may not be representative of smaller community hospitals.

Conclusion

Combining ordering interventions aimed at decreasing testing for multiple tests into a single user interface Web page inadvertently caused health care providers to order more tests than prior to the interventions. The increase in testing occurred because the intervention inadvertently prompted users who might otherwise have ordered only a serum calcium or phosphorus test also to order serum magnesium tests and inadvertently made it efficient for them to do so. Designers of CDS interventions should take into account the paradoxical prompting that such interventions might generate. Upon deploying decision support interventions, developers should also monitor their impact and assess any unintended consequences.

Footnotes

  • The project was supported by United States National Library of Medicine Grants (5 T15 LM007450-02 and 5 R01 LM 06226), the Vanderbilt General Clinical Research Center (M01-RR00095), the Vanderbilt Physician Scientist Development Program, and Vanderbilt University Medical Center Funds.

  • The WizOrder Care Provider Order Entry (CPOE) system described in this manuscript was developed by Vanderbilt University Medical Center faculty and staff within the School of Medicine and Informatics Center beginning in 1994. In May 2001, Vanderbilt University licensed the product to a commercial vendor, who is modifying the software. The system as described represents the Vanderbilt noncommercialized software code. Dr. Rosenbloom, the manuscript's lead author, has been paid by the commercial vendor in the past to demonstrate to potential clients the noncommercialized product. Drs. Miller and Talbert have been recognized by Vanderbilt as contributing to the authorship of the WizOrder software and have received and will continue to receive royalties from Vanderbilt under the University's intellectual property policies. While these involvements could potentially be viewed as a conflict of interest with respect to the submitted manuscript, the authors have taken a number of concerted steps to avoid an actual conflict, specifically by including additional authors and a statistician not involved in development or commercialization of the CPOE system.

References

View Abstract