Introduction

Hip fracture is one of the most serious health problems encountered by health care providers and patients. It was reported associated with a high mortality rate of 7–10% and was among the top 10 causes of disability globally [1,2,3,4]. Worldwide, 4.5 million people are disabled by a hip fracture each year. The estimated annual health care costs could reach $9.8 billion in the United States by the year 2040 [4, 5]. Fortunately, both internal fixation and arthroplasty (total hip arthroplasty or hemiarthroplasty) have demonstrated to be effective for the treatment of this condition. The outcome of a femoral fracture is influenced by a number of factors, including the age of the patient, gender, comorbidities, and status on anticoagulation therapy. This is in addition to the general health of the patient [6]. Prognosis may be influenced by the timing of surgery. In many studies, early surgery has been shown to increase the risk of perioperative complications. These complications include pneumonia, deep vein thrombosis, bleeding, pulmonary embolism, urinary tract infection, and decubital ulcers.

However, the short- and long-term outcomes, and the perioperative complications, of early surgery remain controversial. In addition, the optimal cut-off time for early surgery remains unclear. Recently, a large database study showed that hip arthroplasty for hip fracture was associated with higher risk of postoperative complications and decreased likelihood of discharge home, compared with osteoarthritis [7]. However, one of the main reasons might be the prolonged time from hospital admission to surgery in hip fracture patients.

Actually, guidelines recommend that hip fracture surgery be performed within 48 h or even as little as 6 h after the event [8, 9]. However, surgery was more likely to be delayed in patients who were sick on admission. Currently, the appropriate time for surgery is still unclear and controversial evidence was presented. A systematic review of 52 published studies involving 291,413 patients. The results showed a less likely beneficial effect of early surgery, especially in relation to mortality [10]. But a recent study that included 42,230 hip fracture patients from 72 hospitals over 5 years showed differently. The results showed patients who received surgery after 24 h had a significantly higher risk of 30-day mortality (6.5% vs 5.8%; 95%CI, 0.23–1.35) and the composite outcome (12.2% vs 10.1%; 95%CI, 1.43–2.89) [11].

Since some of the previous studies used small sample cohorts, few investigated complications, and were not specific to arthroplasty procedures, it is still unclear how surgical delay affects the outcome of arthroplasty. To the extent of our knowledge, there was no large-scale database investigation about this topic reported. We investigated the Nationwide Inpatient Sample (NIS) database to explore the influence of time to surgery on arthroplasty postoperative complications.

Materials and methods

Data source

The data source for this study was the NIS database, which is part of the Healthcare Cost and Utilization Project, Agency for Healthcare Research and Quality and is the largest all-payer database of inpatient admissions in the United States. Each year, the NIS collects a stratified sample of 20% of hospitalizations from more than 1000 hospitals in the United States. The available data include demographics, diagnosis and procedure codes (defined by the International Classification of Diseases, 9th edition (ICD-9)), insurance information, hospital information, length of stay (LOS), total charges and discharge position. Data is publicly available and de-identified. Therefore, this study was deemed exempt by the institutional review board.

Study population

Patients who had a diagnosis of closed hip fracture defined by ICD-9 codes 820.0, 820.00, 820.01, 820.02, 820.03, 820.09, 820.2, 820.20, 820.21, 820.22, and 820.8 were identified between January 1, 2002 and December 31, 2014 (n = 887755). And then patients who had a main procedure for hip arthroplasty (both hemi- and total hip arthroplasty) were identified using the ICD-9 procedure codes 81.51 and 81.52 (n = 273963). Patients were excluded from this study if they were less than 18 years old, or transferred admission from another hospital, or had bilateral or revision hip arthroplasty, or pathologic fracture, or days from admission to procedure were less than 0 days and longer than 14 days (n = 26586). Based on the day after admission to the procedure, the samples were stratified into three groups: ultra-early group (less than 24 h, n = 56403), early group (1–2 days, n = 158254), and delayed group (3–14 days, n = 32715).

Outcomes

The postoperative complications were identified by the ICD-9 diagnosis codes as described in previous studies [12,13,14,15]. 31 different kinds of postoperative complications were analyzed as shown in Table 1. When one or more surgical or medical complications occur, the term “any complication” is used.

Table 1 Postoperative complications and the ICD-9 diagnosis codes

Total charges and the length of the postoperative stay were also analyzed. The total charges were collected from the database. The length of postoperative stay (POS) was the difference between LOS and the days from admission to procedure.

Covariates

The covariates included patient comorbidities that were identified using the Charlson Comorbidity Score, which includes 16 comorbidities. The strategy described in previous studies was used in this study to assess the severity of these comorbidities [16, 17]. A specific point value was assigned to a comorbidity and patients with higher scores were considered to have more serious comorbidities. The comorbid conditions and their point values were as follows: myocardial infarction (1), congestive heart disease (1), peripheral vascular disease (1), cerebrovascular disease (1), dementia (1), chronic pulmonary disease (1), connective tissue disease (1), peptic ulcer disease (1), liver disease (1), diabetes without complications (1), diabetes with complications (2), hemiplegia (2), any malignancy without metastasis including leukemia and lymphoma (2), renal failure (3), metastatic solid tumor (6), and AIDS/HIV (6).

Data analysis

All the data analysis was performed with IBM SPSS statistics 22.0. The P values were 2 tailed, and a value of less than 0.05 was used for statistical significance. Propensity score matching was performed to mitigate potential confounding variables such as age, gender, race, insurance, Charlson Comorbidity Score, admission day was weekend, and elective admission. As the strength of the association between exposure and outcome increased in the propensity score, the bias decreased. It is worth noting that empirical power increased with an increase in events per confounder in both techniques, however, the increase in propensity scores was more significant [18]. The matching was performed with a 1:2 ultra-early to early group ratio, a 1:1 ultra-early to delayed group ratio, and a 3:1 early to delayed group ratio. Student-t test was applied to compare continuous variables, and the Chi-square test for nominal and ordinal variables. Logistic regression was used to calculate the odds ratios (ORs) of any surgical and medical complications compared between two groups. Linear regression was used to calculate parameter estimates for mean POS and total charges, and percentage differences were calculated to describe the results of linear regression with the formula (eb-1) × 100, where b is the parameter estimate of a log-transformed dependent variable.

Results

Patient characteristics

The annual occurrence of hip fracture was 0.90% in 2002 and 0.94% in 2014 (P < 0.001). The other annual occurrences were shown in Fig. 1, indicating a U-type tendency. The percentage of patients undergoing hip arthroplasty was 30.61% in 2002 and 31.98% in 2014 (P < 0.001), which indicated a slight increase (Fig. 1). The patient characteristics showed significant heterogeneity (Table 2). After propensity score matching, the demographics were presented in Tables 3, 4, 5.

Fig. 1
figure 1

The annual number of patients with hip fracture (A) and the annual percentage of hip arthroplasty performed in hip fracture patients (B). HF: hip fracture

Table 2 Demographics of study population
Table 3 Demographics of matched pairs (1:2) in the study population
Table 4 Demographics of matched pairs (1:1) in the study population
Table 5 Demographics of matched pairs (3:1) in the study population

Postoperative surgical and medical complications

The risk of any postoperative complications was lower in the ultra-early group than in the early group (48.1% vs. 49.9%), with an OR of 0.961 (95% CI 0.946–0.975, P < 0.001) (Additional file 1: Table S1). Similarly, the risk of any postoperative complications was decreased in the ultra-early group than in the delayed group (49.5% vs. 60.0%), with an OR of 0.821 (95% CI 0.804–0.839, P < 0.001) (Additional file 1: Table 1). The above data indicate that the ultra-early group had the lowest risk of any postoperative complications (Additional file 1: Table 1). Any medical complications showed a similar tendency. However, the risk of any surgical complications was higher in the ultra-early group than in the early group (29.4% vs. 27.1%), with an OR of 1.086 (95% CI 1.065–1.107, P < 0.001) (Additional file 1: Table 1). Similarly, the risk of any surgical complications was increased in the ultra-early group than in the early group (30.0% vs. 23.5%), with an OR of 1.227 (95% CI 1.234–1.312, P < 0.001) (Additional file 1: Table S1). The above data indicate that the ultra-early group had the highest risk of any surgical complications. The specific surgical complications were shown in Additional file 2: Table S2, Additional file 3: Table S3 and Additional file 4: Table S4, and the specific medical complications were shown in Additional file 5: Table S5,  Additional file 6: Table S6 and Additional file 7: Table S7.

After multivariate logistic regression, delayed surgery was found as an independent risk factor for wound infection and pulmonary embolism (Additional file 2: Table S2, Additional file 3: Table S3 and Additional file 4: Table S4). In addition, early surgery and delayed surgery were found as independent risk factors for pulmonary embolism (Additional file 5: Table S5,  Additional file 6: Table S6 and Additional file 7: Table S7).

Lengths of postoperative stay

The mean POS in the delayed group was the longest among the three groups, which was longer than both the ultra-early group (5.99 ± 5.79 vs. 5.09 ± 3.50, P < 0.001) and the early group (5.97 ± 5.75 vs. 4.92 ± 3.90, P < 0.001). The early group showed a slightly shorter mean POS than the ultra-early group (4.77 ± 3.59 vs. 4.92 ± 3.21, P < 0.001). After linear regression analysis, the largest difference was shown between the early group and the matched delayed group. The early group showed an average difference of 1.05 days (95% CI 0.99–1.11, P < 0.001) shorter and a percent difference of 15.0% (95% CI 11.6%-15.7%, P < 0.001) less than the postponement group (Additional file 8: Table S8 and Additional file 9: Table S9).

Total hospital charges

The mean total charges were less in the ultra-early group than in the early group (44.75 ± 34.00 vs. 50.88 ± 38.59, P < 0.001). Additionally, the mean total charges were less in the ultra-early group than in the delayed group (46.65 ± 35.24 vs. 76.42 ± 68.52, P < 0.001). Based on the above results, the ultra-early group had the lowest average total charges. Furthermore, the early group showed a lower average total charge than the delayed group (52.86 ± 40.67 vs. 76.30 ± 68.58, P < 0.001). After linear regression analysis, the maximum difference was found between the ultra-early group and the matched delayed group. Meanwhile, the ultra-early group showed a mean difference of 29.67 × 103 dollars (95% CI 28.81–30.53, P < 0.001) less and 44.9% less than the delayed group (95% CI 43.9%-45.9%, P < 0.001) (Additional file 8: Table S8 and Additional file 9: Table S9).

Discussion

Hip fracture is a common event in the elderly, leading to substantial morbidity and mortality. Surgical timing is a critical issue for these patients. While early surgery might be associated with less suffering, delayed surgery allows sufficient time for physiological stabilization. The details of surgical timing were still unclear, despite guidelines suggesting surgery within 48 h. Herein, this study aimed to explore the influence of time to surgery on postoperative complications following arthroplasty based on the NIS database.

Many studies investigated the relationship between surgical timing and mortality. In addition to being important for assessing injury and surgery, mortality may not be an ideal indicator of surgical timing. Theoretically, mortality was more likely to be associated with health status before injury, the specific type of fracture and the specific type of procedure, other than surgical timing. Thus, conflicting evidence might be yielded. In the systemic analysis of 52 related studies, 22 studies reported reduced mortality for early surgery, 2 studies reported increased mortality, and 25 studies reported no difference [10].

We hypothesized that surgical timing was more likely to be related to postoperative complications, postoperative hospital stay and total hospital charges. In concern of surgical complications, the results indicated that early surgery (both ultra-early group and early group) reduced the risk of wound infection, mechanical complications, wound dehiscence, periprosthetic infection and dislocation. However, an increased risk of post hemorrhagic anemia was shown in early surgery. No difference was observed in terms of irrigation and debridement, and nerve injury. In concern of medical complications, the results showed that early surgery (both ultra-early group and early group) reduced the risk of sepsis, pneumonia, genitourinary, acute renal failure, pulmonary embolism, deep venous thrombosis, altered mental status, postoperative delirium, and gastrointestinal. However, an increased risk of fever was shown in early surgery. No difference was observed in others. Based on the above data, hip arthroplasty surgery within 48 h for hip fracture patients can reduce surgical and medical complications. However, attention should be paid to the increase in postoperative hemorrhagic anemia and fever. The results supported the former studies of Leer-Salvesen et al., which was also a database investigation of the Norwegian Patient Registry and included 83,727 patients over 10 years [19]. However, conflicting evidence yielded from the studies of Craik et al. [20] and Lim et al. [21], both of which investigated also an over ten-year period data resulting in no significant differences in regard of complications. The reasons of controversial evidences might be multiple aspects. Firstly, most of the former studies were cohorts from small samples. The largest cohort in the study of Bottle A et al. included 129,522 patients [22]. In our study, we used national data over a period of 13 years, which resulted in 247,377 patients, which yielded stronger results. Secondly, most of the previous studies ignored the influence of different surgical procedures on complications. In these studies, both osteosynthesis and replacement surgeries were analyzed for complications. Our study adopted only hip arthroplasty as a single type of surgical procedure for the management of hip fracture, which minimized the confounding factors. Furthermore, this study performed propensity score matching to mitigate the potential confounding variables (age, gender, race, insurance, Charlson Comorbidity Score, admission day was weekend, and elective admission), making the results scientific. Thirdly, most of the earlier studies had inadequate data covering parts of the possible complications. Our study covered 31 of the most common postoperative complications.

Another critical issue was the cutoff time for “early surgery”. Different published studies defined different cutoffs. In the studies by Leer-Salvesen et al. [19] and Shiga et al. [23], 48 h was thought to be an appropriate cutoff. But the studies by Zajonz et al. [24] and Majumdar et al. [25] recommended surgery within 24 h. And the study by Uzoigwe et al. even suggested surgery within 12 h [26]. To the extent of our knowledge, most studies have tended to accept surgery within 48 h as early surgery, which was also recommended by the guidelines [3, 8]. Our study adopted this cutoff as well. The results of our study showed that ultra-early surgery (within 24 h) increased the risk of post hemorrhagic anemia and mechanical complications, indicating no beneficial effect on surgical complications. Nevertheless, ultra-early surgery reduced the risk of medical complications, including fever, sepsis, thrombocytopenia, myocardial infarction, pneumonia, genitourinary, acute renal failure, pulmonary embolism and deep venous thrombosis.

The results of multivariate logistic regression showed that time of surgery was an independent risk factor for wound infection and pulmonary embolism. To the extent of our knowledge, this was the first time this was reported. A strictly designed study was needed to confirm this finding.

POS and total hospital charges were incorporated into our study to assess resource utilization. Former studies showed longer LOS in delayed surgery from 1.9 days to 6 days [27, 28]. Conflicting results were also reported in the study by Sellan et al. [29], which showed no effect. However, these results might be misleading, because the difference in LOS might be generated from preoperative stay. Different from previous studies, we calculated the indicator POS instead of LOS to generate an accurate relationship between surgical time and hospital stay. The results indicated that early surgery reduced POS by 0.90 to 1.05 days than delayed surgery, about 9.3 to 15.0 percent less. Based on the POS calculated differences between LOS and preoperative hospital stay, the LOS would be more significant than revealed by this study. Thus, the results of our study supported former studies and confirmed that the LOS difference was also generated from POS.

Different results appeared in comparison of ultra-early and early surgery. The results indicated ultra-early surgery increased POS by 0.15 days than early surgery, about 5.7 percent longer. In a previous study by Majumdar et al., LOS was found to work in favour of ultra-early surgery. In considering the distinction between POS and LOS, we suggested our study reveal a more accurate relationship of ultra-early and early surgery [25].

The total hospital charges in our study showed a tendency for surgery to be performed earlier and cost less. Compared to delayed surgery, early surgery reduced total hospital charges by 32.6 to 44.9%, and ultra-early surgery reduced 12.2%. The results were consistent with the former study [30].

Several limitations of this study should be noted. First, the administrative information was based on ICD-9 coding, which was prone to errors. Second, given the limitations of ICD-9 coding, we cannot distinguish hemi-hip arthroplasty from total hip arthroplasty. Although both procedures shared most of the characteristics, they were different in details. Further studies will have to account for the differences between hemi- and total hip arthroplasty as the latter is becoming more common. Third, the NIS database collected only the data of inpatients related to the hospital stay. Therefore, we were unable to investigate the mid-term and long-term outcomes that occurred after hospital discharge. Nevertheless, to the point of the authors’ knowledge, this is the only study reporting on the short-term outcomes of hip fracture patients who underwent hip arthroplasty at different surgical times. And these results are valuable as they demonstrate the associated adverse events that may occur.

Conclusion

Based on the data of this study, we recommend hip arthroplasty surgery performed in hip fracture patients as soon as 48 h. This was to avoid the surgical and medical complications with an alert of increasing post hemorrhagic anemia and fever. Additionally, ultra-early surgery (within 24 h) reduced medical complications, but increased surgical complications, specifically hemorrhagic anemia and mechanical complications. Early surgery reduced the POS by 0.90 to 1.05 days and total hospital charges by 32.6 to 44.9 percent than delayed surgery. Ultra-early surgery showed no beneficial effect on POS than early, but decreased total hospital charges by 12.2 percent. Overall, early surgery showed more beneficial effects on adverse events than delayed surgery, and ultra-early surgery showed even slightly better outcomes.