Introduction

Acute appendicitis is a common acute inflammatory disease affecting the appendix, a hollow organ located at the tip of the cecum1,2,3. Obstruction of the appendiceal orifice caused by infection, lymphoid hyperplasia, fecaliths or tumor (either benign or malignant) is thought to be the likely pathophysiology leading to the acute inflammation of appendix1. Bacterial overgrowth, ischemia, necrosis and perforation can lead to acute peritonitis1. In the USA, acute appendicitis mostly occurs in youngsters aged 10–20 years with a sex ratio of male-to-female of 1.4 and the estimated lifetime risk of acute appendicitis in men was 8.6% and in women was 6.7%2. Appendectomy by surgical operation is a standard treatment, but treatment with antibiotics or endoscopic retrograde appendicitis therapy can be used in selected patients3.

Metformin is used as the first-line oral antidiabetic drug in the treatment of hyperglycemia in patients with type 2 diabetes mellitus because of its multiple pleiotropic benefits beyond glycemic control4. More than 150 million diabetes patients are taking the drug over the world5. Metformin can distribute to various tissues including the gastrointestinal tracts of stomach, small intestine, colon and appendix6. It has been demonstrated that metformin may exert anti-inflammatory, anti-microbial, anti-atherosclerotic, anti-neoplastic, anti-aging and immune modulating actions7,8. Our previous observational studies did suggest that diabetes patients who used metformin, in comparison to non-users, may have a lower risk of colorectal cancer9,10, pulmonary tuberculosis infection11, Helicobacter pylori infection12, inflammatory bowel disease13 and hemorrhoids14.

To the best of our knowledge, there has not been any previous study that investigates the effect of metformin on the risk of acute appendicitis, a common and potentially preventable disease. This study explored whether metformin could affect the risk of acute appendicitis in patients with type 2 diabetes mellitus.

Materials and methods

The National Health Insurance in Taiwan

Since March 1, 1995, Taiwan started to implement a compulsory healthcare system, the so-called National Health Insurance (NHI). More than 99% of the Taiwan’s population is covered by the NHI; and all hospitals and more than 93% of all medical settings in Taiwan provide medical care for the insurants of the NHI. Computer files that include records of disease diagnoses, drug prescriptions and clinical procedures should be submitted for the purpose of reimbursement. The database can be used for academic research if approved after ethics review. This study was approved with consent waiver by the Research Ethics Committee of the National Health Research Institutes (approval number 99274). In accordance to local regulations, all personal information needs to be de-identified before the release of the database for the protection of privacy. Therefore, informed consent is not necessary. All methods in the study were performed in accordance with the relevant guidelines and regulations.

Definitions of diabetes and appendicitis

Throughout the study period, the database used the International Classification of Diseases, Ninth Revision, Clinical Modification (ICD-9-CM) as the disease coding system. Accordingly, 250.XX were the codes used for a diagnosis of diabetes mellitus. Acute appendicitis was coded 540 and the operation code for appendectomy was 47.0.

Study population

Figure 1 is the flowchart that shows the procedures followed step-bey-step in the enrollment of metformin ever users and never users used for analyses in the study. At first, we identified from the database 423,949 patients who were newly diagnosed of diabetes from 1999 to 2005 and having been prescribed antidiabetic drugs in the outpatient clinics for at least two times. We then excluded the following ineligible patients: (1) type 1 diabetes (n = 2400), (2) missing data (n = 746), (3) patients who had a diagnosis of acute appendicitis and/or received an operation of appendectomy before the start of follow-up (n = 3994), and (4) patients aged < 15 years (n = 19,619), (5) patients aged > 80 years (n = 22,647), and (6) patients who had been followed up for < 6 months (n = 14,510). Data from patients with less than 6 months of follow-up were excluded because of the following considerations: (1) These patients followed up for a short period of time might have represented those who were not definite cases of diabetes mellitus or whose diabetes status could be handled well by non-pharmacological approaches after enrollment. (2) These patients might have a short life expectancy after diabetes diagnosis because of some other causes of mortality (e.g., cancer, accident, heart attack or stroke etc.) and the inclusion of them might have included inappropriate follow-up time in the calculation of person-years. (3) In consideration of biological plausibility in the assessment of a cause-effect relationship, there should always be a latent period for an outcome to happen after a certain exposure. Thus, the outcome, i.e., acute appendicitis, that occurred after a short period of follow-up might not be really related to the exposure under investigation, i.e., metformin or other antidiabetic drugs. In brief, the inclusion of patients followed up for a short period of time, say < 6 months, might have included inappropriate cases, violated biological plausibility and introduced inappropriate calculation of follow-up person-years. As a result, 260,033 patients (338,172 ever users of metformin and 21,861 never users of metformin) were included in the analyses of the study.

Figure 1
figure 1

The procedures followed in enrolling ever users and never users of metformin from Taiwan’s National Health Insurance database.

Covariates

Some basic data, medications used by the patients and disease diagnoses were retrieved from the database and treated as potential confounders. Basic data included age, sex, occupation and living region. Occupation was divided into four classes according to the Bureau of NHI: (1) civil servants, teachers, employees of governmental or private businesses, professionals and technicians; (2) people without a specific employer, self-employed people and seamen; (3) farmers and fishermen; and (4) low-income families supported by social welfare and veterans. The living regions of the patients were classified into the following five categories according to the locations of the branch offices of the Bureau of NHI in different geographical regions: Taipei, Northern, Central, Southern, and Kao-Ping/Eastern.

Medications used by the patients were divided into two subgroups of antidiabetic drugs and medications commonly used by diabetes patients. Antidiabetic drugs included insulin, sulfonylurea, meglitinide, acarbose, rosiglitazone and pioglitazone. Medications commonly used by diabetes patients included angiotensin-converting enzyme inhibitors/angiotensin receptor blockers, calcium channel blockers, statins, fibrates and aspirin.

Disease diagnoses were divided into the following three categories: major comorbidities of diabetes, diabetes complications, and common comorbidities and potential risk factors. These disease diagnoses were selected because they might have a potential correlation with either the exposure or the outcome or because they might affect the patients’ life expectancy, leading to a shortened follow-up duration and a biased estimate of person-years in the calculation of incidence13. Disease diagnoses that might require the long-term use of antibiotics, steroid and anti-inflammatory drugs were especially considered because these drugs might have an impact on the risk of acute appendicitis. Major comorbidities of diabetes included hypertension, dyslipidemia and obesity. Diabetes complications included nephropathy, eye diseases, diabetic polyneuropathy, stroke, ischemic heart disease and peripheral arterial disease. Common comorbidities and potential risk factors included chronic obstructive pulmonary disease (a surrogate for smoking), tobacco abuse, alcohol-related diagnoses, cancer, heart failure, Parkinson’s disease, dementia, head injury, valvular heart disease, gingival and periodontal diseases, pneumonia, osteoporosis, arthropathies and related disorders, psoriasis and similar disorders, dorsopathies, liver cirrhosis, other chronic non-alcoholic liver diseases, hepatitis B virus infection, hepatitis C virus infection, human immunodeficiency virus infection, organ transplantation, Helicobacter pylori infection (041.86), diverticula of intestine (562) and peptic ulcer site unspecified (533). Except for the last three disease diagnoses, the ICD-9-CM codes for the others can be seen in a previous paper13.

Some previous studies have assessed the accuracy of the ICD-9-CM codes labelled in the NHI database for various disease diagnoses15,16. The codes of 250.XX used for the diagnosis of diabetes mellitus have a sensitivity of 90.9% and a positive predictive value of 90.2%15. In another study, moderate to substantial Kappa values ranging from 0.55 to 0.86 were noted for the agreements between claim data and medical records16.

Statistical analyses

Statistical analyses were conducted by using version 9.4 of SAS statistical software (SAS Institute, Cary, NC). P < 0.05 was considered as having statistical significance.

Stuart argued against the use of hypothesis tests and P-values as a measure of balance assessment and recommended the use of standardized difference17. Unlike the P values of statistical tests of hypothesis that are sensitive to sample size, standardized difference is not so influenced and it allows quantitative comparison of the balance in measured baseline characteristics, either continuous or dichotomous, between the treated and untreated subjects in a sample18. Therefore, standardized difference between ever and never users of metformin calculated according to Austin and Stuart18 was used to evaluate the balance of characteristics. Although there is still no consensus on the value of a standardized difference to indicate meaningful confounding, some investigators used a threshold value exceeding 10% to indicate meaningful imbalance in baseline covariates between the treated and untreated groups18.

The median, tertiles and quartiles of cumulative duration (expressed in months), cumulative dose (expressed in mg) and average daily dose (expressed in mg/day) of metformin therapy were calculated and used as dose–response indicators. Incidence density of acute appendicitis was calculated with regards to metformin exposure in never users, ever users, and subgroups of dose–response indicators categorized by median, tertiles and quartiles, respectively. Follow-up started on January 1, 2006. The case number of patients who were newly diagnosed of acute appendicitis after the start of follow-up was the incidence numerator. The incidence denominator was the time of follow-up expressed in person-years. This was calculated from the start of follow-up until whichever of the following events occurred first, up to the date of December 31, 2011: a new diagnosis of acute appendicitis, death or the last available record in the reimbursement database.

Cumulative incidence functions of acute appendicitis with regards to metformin exposure were plotted for never users and ever users and their difference was tested by Gray’s test.

Propensity scores (PS) were estimated by logistic regression with independent variables that included the date of enrollment and the characteristics listed in Table 1. Some unmeasured factors (e.g., the changes of treatment guidelines, the improvement of therapeutic modalities, the prolongation of life expectancy and the introduction of newer classes of antidiabetic drugs) evolving during the long inclusion period might have been partially adjusted for by including the date of enrollment in the estimation of PS. Cox regression incorporated with the inverse probability of treatment weighting (IPTW) using the PS was used to estimate hazard ratios and their 95% confidence intervals. Austin recommended this regression method to reduce confounding resulting from the differences in characteristics between compared groups19. In the main analyses, the overall hazard ratio for ever users versus never users of metformin was estimated; and for the evaluation of a dose–response relationship, the hazard ratios for different subgroups of cumulative duration, cumulative dose and average daily dose of metformin therapy divided by median, tertiles and quartiles, respectively, were estimated by comparing to the never users.

Table 1 Characteristics in never users of metformin and ever users of metformin.

In order to examine the consistency of the findings in more restricted subgroups, we estimated the following hazard ratios for ever users versus never users as sensitivity analyses: (1) patients were censored when four months have elapsed since the last prescription; (2) patients receiving other antidiabetic drugs before the initiation of metformin were excluded (thus the carry-over effect of other antidiabetic drugs could be excluded); (3) patients who had been followed up for less than twelve months were excluded; (4) patients who had a metformin treatment duration less than twelve months were excluded; (5) patients who were enrolled during 1999–2002 were analyzed; (6) patients who were enrolled during 2003–2005 were analyzed; (7) patients receiving two consecutive metformin prescriptions spanning more than four months were excluded (The Bureau of NHI allows a maximum duration of three months for each drug prescription. Therefore, these patients might have been irregularly followed up at the outpatient clinics and had a delayed drug refill for metformin for at least one month); (8) patients having been treated with incretin-based therapies during follow-up were excluded (This is to exclude the potential impact of incretin-based therapies which might happen to be prescribed during follow-up because the first incretin-based therapy was not reimbursed by the NHI in Taiwan until after 2009. Furthermore, the use of dipeptidyl peptidase 4 inhibitors has been shown to be associated with a change in the composition of gut microbiota20); (9) definition of acute appendicitis included an operation code of appendectomy in addition to a diagnostic code (the inclusion of an operation code might have reduced the potential risk of misdiagnosis of acute appendicitis); (10) patients aged < 50 years were included; (11) patients aged 50–64 years were included; and (12) patients aged ≥ 65 years were included.

According to the NHI database, only conventional/immediate-release formulation of metformin was available during the period of subject enrollment and the prolonged/slow-release formulation was first reimbursed by the NHI on August 1, 2006. To examine whether the effect of prolonged/slow-release formulation might not be similar to the conventional/immediate-release formulation, two additional sensitivity analyses were conducted by dividing ever users into two subgroups, i.e., those who had been prescribed prolonged/slow-release metformin after start of follow-up and those who had only been exposed to conventional/immediate-release formulation during the whole period of follow-up. The first model compared the two different subgroups to the referent group of never users of metformin (Model XIII). The second model was created after excluding never users and estimated the hazard ratio of prolonged/slow-release metformin to a referent group of conventional/immediate-release metformin (Model XIV). Because age may affect the use of metformin, an additional model was created without exclusion of patients because of their ages (Model XV) to examine whether the result would be consistent.

Results

Table 1 shows the characteristics in never users and in ever users of metformin. Standardized difference > 10% was observed for age, hypertension, dyslipidemia, obesity, nephropathy, eye diseases, diabetic polyneuropathy, stroke, ischemic heart disease, insulin, meglitinide, acarbose, calcium channel blockers, statins, fibrates, cancer, heart failure, Parkinson’s disease, dementia, valvular heart disease, pneumonia, liver cirrhosis and organ transplantation. This justified the use of the method recommended by Austin19 in the estimation of hazard ratios.

Figure 2 shows the cumulative incidence functions of acute appendicitis for never users and ever users. Never users of metformin obviously had a significantly higher cumulative incidence of acute appendicitis (Gray’s test P < 0.01).

Figure 2
figure 2

Cumulative incidence functions of acute appendicitis in never users and ever users of metformin (Gray’s test P < 0.01).

Table 2 shows the incidence of acute appendicitis and the hazard ratios by metformin exposure. After a median follow-up duration of 5.3 years in never users and 5.5 years in ever users of metformin, the incidence rates of acute appendicitis were 189.48 and 98.15 per 100,000 person-years, respectively. The overall hazard ratio comparing ever versus never users suggested a significantly 49% lower risk associated with metformin use. Analyses of all dose–response indicators categorized by the cutoff values of median, tertiles and quartiles consistently showed an obvious dose–response pattern, indicating a cause-effect relationship in terms of either cumulative duration, cumulative dose or average daily dose of metformin therapy.

Table 2 Incidence rates of acute appendicitis in different subgroups of metformin exposure and hazard ratios comparing different subgroups of metformin users versus metformin never users.

A significantly lower risk of acute appendicitis in ever users of metformin could be consistently shown in all sensitivity analyses (Table 3). Although the benefit might attenuate with increasing age, the lower risk associated with metformin use could be seen in all age groups (Models X, XI and XII) and would not be affected by including patients of all ages into analysis (Model XV). While comparing different formulations of metformin, it is evident that both the prolonged/slow-release formulation and the conventional/immediate-release formulation were significantly associated with a lower risk of acute appendicitis to the same extent (Models XIII and XIV).

Table 3 Sensitivity analyses.

Discussion

This is the first study that showed a lower risk of acute appendicitis associated with the use of metformin in patients with type 2 diabetes mellitus. The results were consistent in the main analyses (Table 2) and the sensitivity analyses (Table 3); and a dose–response relationship could be demonstrated for all dose–response indicators by using different cutoffs (Table 2). The results did not differ significantly between different formulations of metformin (Table 3, Models XIII and XIV).

Although not yet researched, the availability of metformin in the appendix6 and the anti-inflammatory, anti-microbial and immune modulatory properties of metformin7,8 could partly explain such a reduced risk. Gut immune-microbe interaction may play an important role in the development of acute appendicitis21 and a prospective clinical trial investigating the relationship between gut microbiota and acute appendicitis is being conducted22. Fusobacteria infection has been linked to acute appendicitis23 and Akkermansia muciniphila (a mucin-degrading bacterium that colonizes in the mucus layer and improves intestinal barrier function)24 is inversely associated with the severity of acute appendicitis23. It is interesting that metformin may reduce the proliferation of Fusobacteria25 and induce the proliferation of Akkermansia muciniphila in the gut20.

Another possible explanation is related to the effect of metformin on intestinal motility. Metformin is well-known for its adverse effects on the gastrointestinal tract including diarrhea, nausea, vomiting, abdominal pain, flatulence, bloating and retching, which can occur in 20–30% of the patients treated with metformin26,27. Most of these adverse events are minor and may attenuate after prolonged use and metformin would have to be discontinued because of severe gastrointestinal symptoms in only approximately 5% of the users27. Because appendicoliths may potentially lead to acute appendicitis1,28, the promotion of intestinal motility resulting from these adverse effects of metformin may reduce the risk of acute appendicitis because of the reduced occurrence of appendix obstruction by appendicoliths. Because prolonged/slow-release metformin may only have minimal improvement of gastrointestinal intolerance than conventional/immediate-release formulations29, it is not surprising that the use of either formulation was associated with a similarly lower risk of acute appendicitis (Table 3, Models XIII and XIV) taking the increased gut motility as a potential mechanism.

There are some clinical implications in the present study. First, although confirmation of the findings is necessary, the lower risk of acute appendicitis associated with metformin use observed in the present study can be viewed as an extra bonus among other pleiotropic effects of metformin in addition to its glucose lowering effect. This may significantly reduce the clinical and economical burdens of acute appendicitis. Second, it would be wise to continue the use of metformin in patients without any contraindication when addition of other antidiabetic drugs is required for better glycemic control because the potential mechanisms might not be dependent on glycemic control. Furthermore, the dose–response effect observed in association with cumulative duration and cumulative dose of metformin therapy (Table 2) and the significant effect seen only after at least a continuous use for more than one year (Model IV, Table 3) favored the continuation of the use of metformin. Third, because a higher average daily dose might have a better effect of risk reduction of acute appendicitis (Table 2), metformin should be titrated to the highest tolerable daily dose of up to at least approximately 1000–1500 mg/day to obtain a maximal effect of > 50% risk reduction (Table 2, average daily dose of metformin therapy).

There are some limitations in the present study. First, measurement data of potential confounders, biochemical profiles and genetic factors were not available in the database and only diagnostic codes could be used for adjustment. Second, although we tried to balance the baseline characteristics between ever users and never users of metformin by the IPTW method using propensity scores in order to avoid confounding by indication, it was not sure whether residual confounding might exist because unmeasured confounders could never be adjusted for by statistical methods. However, if unmeasured confounders are associated with measured confounders, adjustment for measured confounders may also adjust for the unmeasured ones17,30. Third, we could not exclude the possibility of other interpretations. For example, it is not known whether other non-metformin medications would increase the risk of acute appendicitis in never users of metformin rather than a true effect of risk reduction of metformin. Furthermore, the reason for the decision to prescribe non-metformin medications, over metformin, among never users might also be the reason for the increased risk of acute appendicitis. Fourth, misclassification of disease diagnoses was possible in the database. However, because nondifferential misclassification would only lead to a bias toward the null, the estimated hazard ratios were expected to be underestimated. The consistency of the findings in the main analyses (Table 2) and the sensitivity analyses (Table 3) suggested that the lower risk of acute appendicitis associated with metformin use might be robust. Fifth, knowledge of absolute risk reduction and number needed to treat is important for decision making and clinical application31. As the incidence of acute appendicitis was low, the absolute risk reduction calculated was too small (179/21861–1558/338172 = 0.36%) and the number needed to treat (the reciprocal of absolute risk reduction) of 279 was too large. Therefore, whether the use of metformin to prevent acute appendicitis is cost-effective remains to be investigated, especially in non-diabetes people. Some earlier clinical trials provided evidence of beneficial effects of metformin for weight reduction and enhanced insulin sensitivity in normoglycemic morbidly obese adolescents32 and in non-diabetic morbidly obese adults33. However, whether the benefits of metformin use in non-diabetes and non-obese people can outweigh its potential adverse events is not known, especially in the elderly people.

There are several strengths associated with the use of this large population-based database and the design of the study. First, the high coverage rate of the NHI and the enrollment of a large sample size of all diabetes patients during a long period of time (1999–2005) and the long follow-up duration (from 2006 to 2011) would surely avoid the problems of selection bias and the lack of statistical power. Therefore, the findings could be readily applied to the whole population. Second, self-reporting bias and recall bias could be prevented by using existing medical records. Third, prevalent user bias and immortal time bias were carefully addressed during the stages of enrollment of study cohort and procedures of statistical analyses. Prevalent user bias could be prevented by enrolling only patients with a new diagnosis of diabetes and new users of antidiabetic drugs. Immortal time bias may result from inappropriate assignment of treatment status and/or miscalculation of follow-up time. In the present study we included only patients with a definite diagnosis of diabetes mellitus because the patients had to been prescribed antidiabetic drugs for at least 2 times (Fig. 1). Because longitudinal information of drug prescription was complete and available in the NHI database, misclassification of treatment status with metformin was unlikely and the calculation of the dose–response indicators could be less biased. We did not include the following immortal times in the calculation of follow-up person-years: (1) the duration from the time of diabetes diagnosis to the time when antidiabetic drugs were started; and (2) the initial short follow-up period of < 6 months. Furthermore, the immortal time between the date of hospital discharge and the date when discharged drugs are refilled is not a problem in Taiwan because all discharge drugs can be readily obtained on the date of hospital discharge. Fourth, because cost-sharing is low and much expense can be waived in some patients (e.g., veterans, patients with low income, and patients receiving refills of drugs for chronic diseases) in the NHI healthcare system, detection bias as a result of varying socioeconomic status is less of a problem in Taiwan.

In summary, this is the first observational study suggesting a lower risk of acute appendicitis associated with metformin use, disregarding the different formulations of metformin. Such a benefit seems to be dose-responsive and may be maximized to > 50% risk reduction by increasing the average daily dose to 1000–1500 mg/day or prolonging the cumulative duration or cumulative dose of metformin therapy. Because of the inherent limitations associated with the observational study design, it is necessary to have further confirmatory studies and clinical trials are welcome to provide a definite conclusion. The cost-effectiveness of the use of metformin in the prevention of acute appendicitis is not known, especially in elderly non-diabetes and non-obese people. The findings of the present study at least support that it is appropriate to recommend the use of metformin as the first-line antidiabetic drug given its various beneficial effects beyond glycemic control including a lower risk of acute appendicitis.