- Julia Hippisley-Cox, professor of clinical epidemiology and general practice,
- Carol Coupland, associate professor of medical statistics
- Correspondence to: J Hippisley-Cox
- Accepted 9 May 2012
Objective To develop and validate an updated version of the QFracture algorithm for estimating the risk of a patient sustaining an osteoporotic fracture or hip fracture in a primary care population.
Design Prospective open cohort study using routinely collected data from 420 general practices in the United Kingdom to develop updated QFracture scores and 207 practices to validate scores. Cox’s proportional hazards model was used in the derivation cohort to derive risk equations using several explanatory variables. We calculated measures of calibration and discrimination using the validation cohort.
Participants 3 142 673 patients in derivation cohort and 1 583 373 in validation cohort, aged 30-100 years, who contributed 23 608 337 and 11 732 106 person years of observation, respectively. We identified 59 772 incident diagnoses of osteoporotic fracture in the derivation cohort and 28 685 in the validation cohort.
Outcomes Incident diagnosis of osteoporotic fracture (vertebral, distal radius, proximal humerus, or hip) and incident hip fracture recorded in general practice records or linked cause of death records.
Results We found significant independent associations with overall fracture risk in women for age, body mass index, ethnic origin, alcohol intake, smoking status, chronic obstructive pulmonary disease or asthma, any cancer, cardiovascular disease, dementia, diagnosis or treatment for epilepsy, history of falls, chronic liver disease, Parkinson’s disease, rheumatoid arthritis or systemic lupus erythematosus, chronic renal disease, type 1 diabetes, type 2 diabetes, previous fracture, endocrine disorders, gastrointestinal malabsorption, any antidepressants, corticosteroids, unopposed hormone replacement therapy, and parental history of osteoporosis. Risk factors for hip fracture in women were similar except for gastrointestinal malabsorption and parental history of hip fracture. Risk factors for men were largely the same as those for women but also included care home residence. The updated hip fracture algorithm explained 71.7% (95% confidence interval 71.1% to 72.3%) of the variation in women and 70.4% (69.3% to 71.5%) in men. D statistic values for hip fracture were high for women (3.26, 3.21 to 3.31) and men (3.15, 3.06 to 3.24), and higher than for osteoporotic fracture. Values for the area under the receiver operating characteristics curves for hip fracture were 0.89 for women and 0.88 for men, compared with 0.79 and 0.71 for osteoporotic fracture, respectively. The updated algorithms performed better than the 2009 algorithms.
Conclusions Two QFracture algorithms were updated to predict risk of osteoporotic and hip fracture in primary care populations to include ethnic origin, all classes of antidepressants, chronic obstructive pulmonary disease, epilepsy, dementia, Parkinson’s disease, cancer, systemic lupus erythematosus, chronic renal disease, type 1 diabetes, previous fragility fracture, and care home residence. These updated algorithms showed improved performance compared with previous QFracture algorithms reported in 2009.
Osteoporotic fractures are a major and increasing cause of morbidity and a considerable burden to health services. Hip fractures in particular result in considerable pain, loss of function, and hospital care, making prevention a high priority for patients, physicians, and for public health. Therapeutic and lifestyle interventions exist that might reduce the risk of osteoporosis and hence a person’s risk of fracture.1 The challenge now is to improve methods for accurate identification of people at high risk who might benefit most from a therapeutic or preventative intervention. Guidelines2 3 4 5 6 recommend a targeted approach to the prevention of osteoporosis, based on the 10 year absolute risk of major osteoporotic fracture. Risk prediction tools are therefore needed to accurately estimate individual risk as well as enable a systematic targeted population based screening approach.
In 2009, we published a new risk prediction algorithm, QFracture.7 We designed the algorithm to estimate absolute risk of osteoporotic fracture and hip fracture in primary care. The algorithm is based on variables that are readily available in patients’ electronic records in primary healthcare8 or that patients themselves would probably know without needing laboratory tests or clinical measurements. We designed this approach to enable the algorithms to be readily implemented in routine clinical practice or used by individual patients. The 2009 algorithms performed well when validated in a separate set of practices from the QResearch database7 and also performed well in a more stringent validation using a separate set of practices contributing to The Health Improvement Network database by an independent team.9
In February 2012, the National Institute for Health and Clinical Excellence (NICE) published draft guidance6 that recommended further developments to improve the use of QFracture, such as extending the age range to patients older than 85 years and including additional variables such as previous fragility fracture,6 ethnic group,10 epilepsy and use of anticonvulsants,11 care home residency,12 13 additional inflammatory arthropathies, chronic obstructive airways disease,6 type 1 diabetes,14 and other causes of immobility6 (such as Parkinson’s disease15 or dementia).
We have therefore undertaken a study to update the original QFracture algorithms using the most recent version of the QResearch database and to test the performance of the updated algorithms in a separate set of practices from those used to develop the updated model. We also extended our original definition of osteoporotic fracture, which included hip, wrist, and vertebral fractures to include proximal humerus fractures that can also signify osteoporotic fractures. Since the methods, strengths, and limitations have already been published in detail both in the original paper7 and the independent validation,9 this article focuses on the changes to the algorithm.
Study design and data source
We conducted a prospective cohort study using a large population of patients in primary care from version 32 of the QResearch database (data last updated in October 2011). QResearch is a large, validated, primary care electronic database containing the health records of more than 13 million patients registered from over 620 general practices using the Egton Medical Information System (EMIS) computer system (box 1). Practices and patients contained on the database are nationally representative for the United Kingdom and similar to those on other large, national, primary care databases using other clinical software systems.16 We included all QResearch practices once they had been using their current EMIS system for at least one year, to ensure completeness of recording of morbidity and prescribing data. We randomly allocated two thirds of practices to the derivation dataset and the remaining third to the validation dataset.6
Box 1 QFracture web calculator
A simple web calculator implements the updated QFracture algorithm is publicly available at www.qfracture.org. It also has the open source software for download
We identified an open cohort of patients aged 30-100 years at the study entry date and registered with eligible practices at some time between 1 January 1993 and 1 October 2011. For each patient, we determined an entry date into the cohort, which was the latest of the following dates: patient’s 30th birthday, date of registration with the practice plus one year, date on which the computer system was installed in the general practice plus one year, and beginning of the study period (1 January 1993). We only included patients in the analysis once they had a minimum of one year’s complete data in their medical record. For each patient, we also determined an exit date, which was the earliest of the following dates: date of recorded fracture during follow-up, date of death, date of deregistration with the practice, date of last upload of computerised data, or the study end date (1 October 2011). Patients with a previous recorded fracture were eligible for inclusion in the cohort.
We had two primary outcomes: osteoporotic fracture defined as a diagnosis of a hip, vertebral, proximal humerus, or distal radius fracture during follow-up and diagnosis of hip fracture, where these fractures were recorded either on the general practice record or the linked death record. Unlike the 2009 QFracture algorithm, the definition of osteoporotic fracture also included fracture of the proximal humerus.
Fracture risk factors
We examined risk factors currently included in the 2009 QFracture algorithm. In addition to these factors, we also investigated other variables which have been associated with increased risk of osteoporosis and highlighted by NICE (box 2).
Box 2 Risk factors included in QFracture algorithms
Factors already in 2009 algorithm7
Age at study entry (in single years)
Body mass index (continuous)17
Parental history of osteoporosis or hip fracture in a first degree relative (binary variable; yes/no)21
Cardiovascular disease (binary variable; yes/no)22
Alcohol intake (none, trivial (<1 unit/day), light (1-2 units/day), medium (3-6 units/day), heavy (7-9 units/day), very heavy (>9 units/day)23
Rheumatoid arthritis (binary variable; yes/no)24
Type 2 diabetes (binary variable; yes/no)25
Asthma (binary variable; yes/no)
History of falls (binary variable; yes/no)
Chronic liver disease (binary variable; yes/no)
Gastrointestinal conditions likely to result in malabsorption (that is, Crohn’s disease, ulcerative colitis, celiac disease, steatorrhoea, blind loop syndrome) at baseline (binary variable; yes/no)26
Other endocrine conditions (thyrotoxicosis, primary or secondary hyperparathyroidism, Cushing’s syndrome) at baseline (binary variable; yes/no)
At least two prescriptions for systemic corticosteroids in the six months preceding baseline (binary variable; yes/no)27
At least two prescriptions for tricyclic antidepressants in the six months preceding baseline (binary variable; yes/no)28
At least two prescriptions for hormone replacement therapy (in women) in the six months preceding baseline (binary variable; yes/no) 29
Menopausal symptoms in women (binary variable; yes/no)
New factors added updated algorithm
Self assigned ethnic origin (white or not recorded, Indian, Pakistani, Bangladeshi, other Asian, black African, black Caribbean, Chinese, other including mixed)10
Previous fracture (hip, vertebral, proximal humerus, or distal radius fracture) (binary variable; yes/no)
Use of other antidepressants apart from tricyclic antidepressants (at least two prescriptions in previous six months) (binary variable; yes/no) 30
Chronic obstructive pulmonary disease (binary variable; yes/no)
Epilepsy (binary variable; yes/no) 11
At least two prescriptions of anticonvulsants in the six months preceding baseline (binary variable; yes/no 11)
Dementia (binary variable; yes/no)
Parkinson’s disease (binary variable; yes/no) 15
Any cancer (binary variable; yes/no)
Systemic lupus erythematosus (binary variable; yes/no)
Chronic renal disease (binary variable; yes/no) 31
Type 1 diabetes (binary variable; yes/no) 14
We restricted all values of these variables to those recorded in the person’s electronic healthcare record before baseline, except for body mass index, alcohol intake, and smoking status. We used the values recorded closest to study entry date and recorded before the diagnosis of osteoporotic fracture (or for patients who did not develop a fracture, before censoring). We assumed that if there was no recorded value of a diagnosis, prescription, or family history, then the patient did not have that exposure.
Model derivation and development
We used Cox’s proportional hazards models in the derivation dataset to estimate the coefficients and hazard ratios associated with each potential risk factor for recorded diagnosis of osteoporotic fracture and hip fracture for men and women separately using robust variance estimates to allow for the clustering of patients within general practices. We used a graphical method (complementary log-log plots) to check the assumption of proportional hazards. We used fractional polynomials to model non-linear risk associations with continuous variables if appropriate.32 We used multiple imputation to replace missing values for alcohol intake, smoking status, and body mass index, and used these values in our main analyses.33 34 35 We included all the potential predictor variables and the survival outcome terms in the imputation model. We used the imputation by chained equations procedure in Stata36 to obtain five imputed datasets.
In view of the large number of variables under consideration and the need to ensure that the resulting algorithm can be used in everyday clinical practice, we explored whether any similar variables could be combined. We only considered combining variables that were similar clinically, based on decisions made before carrying out the analysis (for example, rheumatoid arthritis or systemic lupus erythematosus, tricyclic antidepressants or other antidepressants, and different types of hormone replacement therapy). We evaluated this by running a model with separate terms for each variable; if two similar variables were both significant (hazard ratio <0.8 or >1.20, and P<0.01), we compared them with a direct significance test. If this comparison was not significant (at P <0.01) and if the hazard ratios were within 0.2 of each other, we combined the variables into a new variable (for example, either rheumatoid arthritis or systemic lupus erythematosus).
We fitted our final models on the basis of multiply imputed datasets using Rubin’s rules to combine effect estimates and estimate standard errors to allow for the uncertainty due to missing data. 37 We took the regression coefficients (that is, log of the hazard ratios) from the final models and used them as weights. As in previous studies,38 39 we combined these weights with the baseline survivor functions for osteoporotic fracture or hip fracture evaluated at 10 years to derive a risk equation for 10 years’ follow-up. We also derived risk equations for each year from one to 15 years, so that users of the algorithm could select the time period over which fracture risk could be estimated.
Validation of updated QFracture algorithm
We tested the performances of the final models in the validation dataset. We calculated the estimated risks at 10 years of sustaining an osteoporotic fracture or hip fracture for each patient in the validation dataset using multiple imputation to replace missing values for alcohol intake, smoking status, and body mass index, as in the derivation dataset. We calculated the mean predicted fracture risk and the observed fracture risk at 10 years and compared these by every tenth of predicted risk. We calculated the D statistic (a measure of discrimination)40 and an R2 statistic (a measure of explained variation for survival data based on the D statistic).41 We also calculated the area under the receiver operator characteristics curve at 10 years, in which higher values indicate better discrimination. We compared the performance of the updated scores with the original QFracture 2009 scores. We examined reclassification by defining high risk as the top tenth of predicted risk at 10 years for the original and updated QFracture scores. We then calculated the observed risk of fracture in patients who were reclassified from low to high or vice versa with updated algorithm, compared with the 2009 algorithm. We did not undertake a further comparison with the FRAX algorithm algorithms because these algorithms are not published or available from the authors.
We used all the available data from the QResearch database and therefore did not do a pre-study sample size calculation. There were at least 100 events per variable in the prediction modelling for both outcomes in the derivation cohort.42 All analyses were conducted using Stata (version 11).
Characteristics of derivation and validation datasets
Of 627 UK practices meeting our inclusion criteria, 420 were randomly assigned to the derivation dataset and 207 to the validation dataset. Table 1⇓ compares the key characteristics of eligible patients in each cohort. The derivation cohort had 3 142 673 patients, of whom 59 628 had a recorded previous fracture, either of the hip (9621 patients), distal radius (40 305), vertebra (7412), or proximal humerus (2290) based on the first previous fracture recorded. The validation cohort had 1 583 373 patients, of whom 27 907 had a previous fracture of the hip (4233), distal radius (19 212), vertebra (3438), or proximal humerus (1024). Although this validation cohort was drawn from an independent group of general practices, the baseline characteristics were very similar to those for the derivation cohort.
Incidence rates by ethnic origin
Table 2⇓ shows the crude and age standardised incidence rates in each cohort by ethnic group. Overall in the derivation cohort, 59 772 patients had incident osteoporotic fractures arising from 23 608 337 person years during follow-up, resulting in a crude incidence rate of 253 per 100 000 person years (95% confidence interval 251 to 255). These incident fractures included 26 726 (44.7%) distal radius fractures, 20 028 (33.5%) hip fractures, 9236 (15.5%) vertebral fractures, and 3782 (6.3%) proximal humerus fractures based on the first fracture recorded during follow-up. Of the 59 772 incident osteoporotic fractures, 45 476 (76.1%) occurred in women and 3760 (6.3%) in patients older than 85 years. Of 20 028 hip fractures in the derivation cohort, 14 864 occurred in women. In the validation cohort, 28 685 patients had incident osteoporotic fractures, of which 21 677 (75.6%) were women. In the validation cohort, we identified 9610 hip fractures, 7089 of which occurred in women.
Tables 3⇓ and 4⇓ show results of the multivariate final Cox regression analysis for the fracture outcomes in women and men, respectively. Figure 1⇓ shows the adjusted hazard ratios for the updated fractional polynomial terms for age and body mass index, for both outcomes in men and women.
Risk factors for fracture in women
After including the other variables in the model, we found significant associations with osteoporotic fracture risk in women for the following variables: age, body mass index, ethnic origin, alcohol intake, smoking status, chronic obstructive airways disease or asthma, any cancer, cardiovascular disease, dementia, diagnosis or treatment for epilepsy, history of falls, chronic liver disease, Parkinson’s disease, rheumatoid arthritis or systemic lupus erythematosus, chronic renal disease, type 1 diabetes, type 2 diabetes, previous fracture, endocrine disorders, gastrointestinal malabsorption, any antidepressants, corticosteroids, unopposed hormone replacement therapy, and parental history of osteoporosis (table 3). The risk factors for hip fracture were similar, except gastrointestinal malabsorption and parental history of osteoporosis were not significant.
Risk factors for fracture in men
We found significant associations with osteoporotic fracture risk in men for the variables shown in table 4. The list of variables was the same as for women, although care home residency was significant in men only and endocrine problems were not significant in men. All the factors that were significant predictors for osteoporotic fracture in men were also significant factors for hip fracture, except for gastrointestinal malabsorption.
Ethnic origin was strongly associated with fracture risk in men and women. In women, the risk of osteoporotic fracture was significantly lower for the other ethnic groups compared with the reference category of white women (which also included patients whose ethnic origin was unrecorded; table 3). The pattern was similar for hip fracture in women and for both outcomes in men (table 4).
Type 1 and type 2 diabetes
Type 1 and type 2 diabetes were significantly associated with both osteoporotic fracture and hip fracture in men and women, with higher risks of these outcomes for type 1 diabetes than type 2 diabetes. Type 1 diabetes was associated with a substantially higher risk of hip fracture in women (adjusted hazard ratio 4.63 (95% confidence interval 3.35 to 6.39)) than the risk of osteoporotic fracture (1.92 (1.55 to 2.37)). In men, the adjusted hazard ratio for hip fracture associated with type 1 diabetes was 4.83 (3.25 to 71.7) compared with 2.33 (1.83 to 2.96) for osteoporotic fracture.
All types of antidepressants (tricyclic antidepressants, selective serotonin reuptake inhibitors, and others) were associated with increased fracture risks in both men and women, which were similar in magnitude for each type of antidepressant. We therefore combined these variables into one to indicate current treatment with antidepressants. In women, antidepressants were associated with increased risks of osteoporotic fracture (adjusted hazard ratio 1.37 (95% confidence interval 1.33 to 1.42) and hip fracture (1.39 (1.33 to 1.46); table 3). The adjusted hazard ratios were marginally higher in men than in women, with adjusted hazard ratios of 1.60 (1.50 to 1.70) for osteoporotic fracture and 1.69 (1.53 to 1.86) for hip fracture (table 4).
Other risk factors included in updated QFracture model
The updated algorithms also included chronic obstructive airways disease, chronic renal disease cancer, dementia, epilepsy (either diagnosed or prescribed anticonvulsants), Parkinson’s disease, chronic renal disease, previous fragility fracture, and care home residency (men only). Men who were residents in care homes had an increased risk of both hip fracture (adjusted hazard ratio 2.05 (95% confidence interval 1.43 to 2.93)) and osteoporotic fracture (1.59 (1.14 to 2.22); table 4).
Validation of the updated QFracture algorithms
Table 5⇓ shows the discrimination statistics for the updated QFracture algorithms in the validation cohort. The hip fracture algorithm had the best performance, explaining 71.7% (95% confidence interval 71.1% to 72.3%) of the variation in women and 70.4% (69.3% to 71.5%) in men. D statistic values were 3.26 (3.21 to 3.31) for women and (3.15, 3.06 to 3.24) for men. The values for the area under the receiver operator characteristics curve for hip fracture were 0.89 for women and 0.88 for men, compared with 0.79 and 0.71 for osteoporotic fracture, respectively.
Performance statistics for the updated algorithms were better than those for the 2009 algorithms (table 5). For example, for hip fracture in women, the updated algorithm explained 71.7% of the variation, compared with 63.9% for the 2009 algorithm. Discrimination was also significantly higher for the updated algorithms, with a D statistic of 3.26 for hip fracture in women compared with 2.73 for the 2009 algorithm. We repeated the analyses and restricted the sample to patients aged 30-85 years, and the performance statistics were still better for the updated algorithms than for the 2009 algorithms (results not shown).
Figure 2⇓ shows the observed and predicted risks at 10 years for osteoporotic fracture, using the updated algorithm. Overall, the calibration was good with a small over prediction in the highest tenth of risk. We obtained similar results for hip fracture (fig 3⇓).
Thresholds and sensitivity
Table 6⇓ shows the cut-off values for the top tenth of risk based on 10 year predicted risk for hip fracture and osteoporotic fracture in the validation cohort. A cut-off value of 5.3% would identify 3295 (59.8%) of the 5509 women with a hip fracture over the next 10 years. Corresponding values for hip fracture in men were 1.3% for the cut-off value and 64.3% for sensitivity. The sensitivity for hip fracture using the updated algorithm was higher for both men and women than that using the 2009 algorithm (that is, 52.7% for women and 54.2% for men). The sensitivity values were also higher when evaluated over five years; for example, 71% of hip fractures over five years in both men and women were in the top tenth of predicted risks.
Clinical example 1
A 64 year old white woman is a light smoker, has type 1 diabetes, epilepsy, and a body mass index of 22. She has a 10 year risk of 15% for osteoporotic fracture (that is, hip, distal radius, vertebra or proximal humerus) and a 13% risk of hip fracture. A woman with the same characteristics who is Pakistani would have a corresponding 10 year risk of osteoporotic fracture of 7% and hip fracture of 6%.
Clinical example 2
A 70 year old white man with a body mass index of 22 is a heavy smoker, and has cancer and a history of falls. He has a 10 year risk of osteoporotic fracture of 8% and a 6% risk of hip fracture. A man with the same characteristics who is also taking antidepressants will have a risk of 12% for osteoporotic fracture and 9% for hip fracture. If he also lives in a care home, his risks are 19% for osteoporotic fracture and 18% for hip fracture.
Clinical example 3
A 88 year old white man with a body mass index of 22 is an ex-smoker, has chronic renal disease, and is taking antidepressants and steroid tablets. He has a five year risk of osteoporotic fracture of 12% and a five year risk of hip fracture of 9%. If he was not taking antidepressants, his five year risk of osteoporotic fracture would be 7% and his risk of hip fracture would be 6%.
We have presented a substantial upgrade to the QFracture algorithms, designed to better identify patients at increased risk of hip and osteoporotic fracture so that they can be targeted for interventions to reduce their fracture risk. Our study deals with recommendations made by the recent draft guidance from NICE on the assessment of fracture risk.6 There are four main changes to the algorithms. Firstly, the age range over which the algorithms can be applied is extended to include the most elderly patients (that is, >85 years). Secondly, the algorithm expands the definition of osteoporotic fracture to include fracture of the proximal humerus. Thirdly, it also includes a broader range of predictor variables such as ethnic origin, use of other antidepressants apart from tricyclic antidepressants, chronic obstructive pulmonary disease, epilepsy, dementia, Parkinson’s disease, cancer, systemic lupus erythematosus, chronic renal disease, type 1 diabetes, previous fragility fracture, and care home residence. Finally, the algorithm simplifies the variable of hormone replacement therapy by combining 12 categories to one for unopposed oestrogen, which is the predominant effect.
The algorithms can derive five year absolute risks, which could be more useful than 10 year absolute risks in very elderly patients whose mean life expectancy is less than 10 years.43 The shorter time period also might indicate the duration over which bisphosphonates might be prescribed, in view of the lack of long term safety data. The web based calculator, however, can be used to calculate risks over any time period between one and 15 years (box 1).
Currently, QRISK238 (www.qrisk.org) is fully integrated into most clinical computer systems in UK general practices, and QFracture can be implemented in a similar way. For example, alerts can be set to identify patients suitable for risk assessment, which informs the doctor before seeing the patient. A structured template can pop up for the doctor to complete, which already includes information from the patients’ records. The doctor then adds any new information to calculate the score, which is then displayed graphically for discussion with the patient. The results can be posted into the patients’ records. Alternatively, batch processing tools could be used, which calculate an estimated risk for all eligible patients registered with the practice. This list can then be sorted so that patients with the highest risk can be recalled.
New predictors—comparison with other studies
To our knowledge, this is the first algorithm for fracture risk prediction to account for different risks by ethnic group in both men and women in the UK. This inclusion is important, since minority ethnic groups are expected to make up to 20% of the UK’s population by 2051 and such tools for fracture risk prediction need to take account of this diversity6 and current evidence of disparities in screening for and treating osteoporosis between ethnic groups.10 The reduced risk of fracture for the non-white ethnic groups is comparable with that reported in a study of postmenopausal women in the United States.25
We found that the risk of osteoporotic fracture increased among patients diagnosed with epilepsy as well as those prescribed anticonvulsants. The magnitude and direction of this increased risk is comparable to the increased risk associated with anticonvulsants recently reported in a Canadian population based case-control study.11 We also found an increased risk of fracture for men and women associated with use of selective serotonin reuptake inhibitors and other antidepressants—the magnitude and direction of the increased risk was broadly similar between the different types of antidepressants in our study and similar to results published elsewhere.30 Similarly, the increased fracture risk among patients with Parkinson’s disease in our study is comparable to findings from a recent matched cohort study of incident cases of Parkinson’s disease15 and the risk associated with chronic renal disease accorded with previous studies.31 We recorded a four to five fold increase in the risk of hip fracture associated with type 1 diabetes, which was similar to the risk reported in a Swedish cohort study.44 The risks for type 1 diabetes are substantially higher than the two fold increase associated with type 2 diabetes, both in our study or reported elsewhere.25 Our study focused on predictor variables and was not designed to evaluate the mechanisms by which risk factors mediate their effect. The role of hypoglycaemic drugs in fracture risk, however, deserves more detailed study. Lastly, we found a raised risk of fracture among men living in care homes that corresponded with increased risks reported elsewhere.12 13
Although the updated QFracture algorithm is more complex than its original version, it has improved discrimination and sensitivity. The advantages of using routinely collected data to develop risk prediction scores are that they can be updated to reflect changes in populations, improvements in data quality, advances in knowledge regarding relevant predictor variables and evolving requirements (such as new guidelines or quality standards). The resulting algorithms can also be implemented in the primary care setting since the data are already present. Since QFracture has been designed to be integrated into clinical computer systems, much of the apparent complexity relating to additional variables can be incorporated into the software using data already entered into the patient’s electronic health record.
The methods to derive and validate this model are the same as those used for the original development of QFracture and a range of other risk prediction tools. The strengths and limitations of the approach have already been discussed in detail.7 9 16 45 46 47 The present validation was done in a separate set of practices to those that were used to develop the score, although the practices all use the same clinical computer system (EMIS, used by 55% of UK general practitioners). A more stringent validation by an independent team using data from another clinical system used in the UK (Vision, used by 20% of general practitioners) is planned and will be reported in due course. However, the existing independent external validation of QFracture9 showed comparable, if not marginally improved, performance compared with the validation on the QResearch database.7
In summary, we have updated two algorithms to predict risk of osteoporotic fracture and hip fracture in a primary care population. The updated algorithms include additional terms for ethnic group and several risk factors, and can be applied to a wider age range. They show improved performance compared with previous QFracture algorithms. Further research should evaluate the clinical outcomes and cost effectiveness of these algorithms in primary care.
What is already known on this topic
Osteoporotic fracture is a major cause of morbidity and interventions exist that can help reduce risk of fracture
Several international guidelines suggest a targeted approach for identifying high risk patients likely to benefit from interventions, based on a 10 year absolute risk of fracture
What this study adds
We have updated the QFracture algorithm to predict risk of hip fracture and osteoporotic fracture
The updated algorithm improved on previous algorithms by including ethnic origin, prescription of any class of antidepressants, chronic obstructive pulmonary disease, epilepsy, dementia, Parkinson’s disease, cancer, systemic lupus erythematosus, chronic renal disease, type 1 diabetes, previous fragility fracture, and care home residence
Validation statistics suggest that the updated algorithm is probably more effective than previous algorithms at identifying patients at high risk of fracture in primary care in the UK
Cite this as: BMJ 2012;344:e3427
We thank EMIS and the general practices using EMIS for their contributions to the QResearch database.
Contributors: JH-C designed the study, obtained approvals, reviewed the literature, prepared the data, developed and tested the algorithms, undertook the primary analysis and interpretation, and wrote the first and subsequent draft manuscript. CC contributed to the analysis, development and testing of the algorithms, interpretation, and drafting of the manuscript. JH-C is the guarantor.
Funding: The study received no external funding.
Competing interests: All authors have completed the Unified Competing Interest form at www.icmje.org/coi_disclosure.pdf (available on request from the corresponding author) and declare: no support from any organisation for the submitted work; JH-C is a professor of clinical epidemiology at the University of Nottingham and codirector of QResearch, a not-for-profit organisation that is a joint partnership between the University of Nottingham and EMIS (commercial IT supplier for 60% of general practices in the UK); JH-C is also a paid director of ClinRisk Limited, which produces open and closed source software to ensure the reliable and updatable implementation of clinical risk algorithms within clinical computer systems to help improve patient care; CC is an associate professor of medical statistics at the University of Nottingham and a paid consultant statistician for ClinRisk Limited; no other relationships or activities that could appear to have influenced the submitted work.
Ethical approval: The study was approved by the QResearch Scientific board and was approved by the Trent research ethics committee.
Data sharing: The algorithms presented in this study will be released as open source software under the GNU Lesser General Public Licence version 3. The open source software allows use by anyone without charge under the terms of the GNU Lesser Public License version 3. Closed source software can be licensed at a fee.
This is an open-access article distributed under the terms of the Creative Commons Attribution Non-commercial License, which permits use, distribution, and reproduction in any medium, provided the original work is properly cited, the use is non commercial and is otherwise in compliance with the license. See: http://creativecommons.org/licenses/by-nc/2.0/ and http://creativecommons.org/licenses/by-nc/2.0/legalcode.