unlocking a national adult cardiac
play

Unlocking a national adult cardiac surgery audit registry with The R - PowerPoint PPT Presentation

Unlocking a national adult cardiac surgery audit registry with The R User Conference 2013 University of Castilla-La Mancha, Albacete, Spain GL Hickey 1,2,3 , SW Grant 2,3 & B Bridgewater 1,2,3 1 Northwest Institute of BioHealth Informatics,


  1. Unlocking a national adult cardiac surgery audit registry with The R User Conference 2013 University of Castilla-La Mancha, Albacete, Spain GL Hickey 1,2,3 , SW Grant 2,3 & B Bridgewater 1,2,3 1 Northwest Institute of BioHealth Informatics, University of Manchester 2 University Hospital of South Manchester 3 National Institute of Cardiovascular Outcomes Research, UCL

  2. BACKGROUND

  3. Bristol Inquiry Contributory factors that led to the failings included: 1. Inadequate collection of data 2. Inadequate monitoring of data

  4. National Adult Cardiac Surgery Audit registry • Up to 166 clinical variables collected on each patient: administrative, demographics, comorbidities, operative factors, outcomes • 15 years of data • 465,000 records • 44 hospitals + >400 consultant surgeons

  5. Flow of data AUDIT & GOVERNANCE TOOLS HOSPITALS DATABASE NICOR NIBHI ANALYSES CLEANING NATIONAL CLINICAL DEATH RESEARCHERS REGISTER* * Ability to link with many RESEARCH other national registries

  6. UNLOCKING THE REGISTRY MESSY DATA

  7. Cleaning the registry in Rapidly reproducible VARIABLE 1 VARIABLE 2 EXCLUDE ADD DATA CLEANE RECORDS VALUE ………… EXTRACT D DATA E.g. duplicates VARIABLE 3 Scripts to add: • Risk scores • Script per each variable • Combined variables • Some dependencies • ‘Resolve’ conflicting variables

  8. > with(SCTS, table(X4.04.Discharge.Destination, X4.05.Status.at.Discharge)) X4.05.Status.at.Discharge X4.04.Discharge.Destination 0. Alive 1. Dead 828 48296 2453 . Another dept within the trust 0 57 0 0 1 1 0 0. Not applicable - patient deceased 0 0 1 1 Home 0 4104 0 1. Home 674 370763 374 Conflicts 2 Convalescence 0 63 0 2. Convalescence 8 7347 4 2. Convalescence (Non acute Hospital) 2 2164 0 3 Other hospital 0 1 0 3 Other Hospital 0 151 0 3 Other Hospital - wd 6 0 1 0 Transcriptional 3 Other Hospital wd 2 0 1 0 3 Other ward 0 1 0 discrepancies 3. Other Acute hospital 1 7680 1 3. Other hospital 115 22935 37 4 Patient deceased 0 0 173 4. Not applicable - patient deceased 51 412 13286 4. Patient Deceased 0 0 19 5 0 7 0 5. Transferred to different Consultant - NGH 0 42 0 7 0 2 0 8 0 38 4 9 114 3820 518 Second op 0 2 6 Illegal options Missing data

  9. Cleaning the registry in • Errors are difficult to find and not all can be resolved • Excluding all imperfect data not an option • Balance between a ‘research ready’ dataset and robust audit capability • Needs to be reproducible • It is locked to clinicians & researchers without being cleaned

  10. Warning: cleaning clinical registries without experts is dangerous* + = DATA * Applies to analysing healthcare data also

  11. UNLOCKING THE REGISTRY MONITORING

  12. Publication of named healthcare provider outcomes RAMR 15% Healthcare provider 2386780 2503756 ● ● 3166114 Mortality rate 10% 3207776 3226274 3286898 3451180 3631845 5% 4445638 4473204 ● ● ● 4683551 ● 0% 0 200 400 600 800 0 f procedures http://www.scts.org/patients/

  13. Publication of named healthcare provider outcomes RISK ADJUSTMENT FILTER DATA glm, glmer {lme4}, mfp subset {mfp}, predict, auc {pROC}, CLASSIFICATION & AGGREGATION PRESENTATION summaryBy {doBy}, merge, arrange {plyr} ggplot {ggplot2}, write.csv

  14. Exploratory analyses summaryBy {doBy} + gvisMotionChart {googleVis} http://www.scts.org/DynamicCharts/

  15. Monitoring medical devices • Currently does not happen in UK • Data: 200 valve types entered 13,000 ways (free text) • But R is good with regular expressions

  16. UNLOCKING THE REGISTRY RESEARCH

  17. Evidence based medicine Octogenarians having Mitral Valve Surgery ± CABG ± TV repair All octogenarians having MV surgery over 10-year window 1.0 survfit + Surv {survival} kmplot {by Tatsuki Koyama} 0.8 Survival probability 0.6 0.4 0.2 Mean 4 patients per unit / year 0.0 0 1 2 3 4 5 6 7 8 9 10 Time from procedure (years) No. at risk 1415 991 779 559 398 276 180 114 64 23 6

  18. Contemporary statistical methodology for retrospective data Unmatched Unmatched Matched Matched Probability of receiving a mechanical valve 0.9 0.9 0.8 0.8 Propensity score 0.6 0.6 0.5 0.5 0.3 0.3 0.2 0.2 0.0 0.0 3 2 1 0 1 2 3 2 1 0 1 2 3 Mechanical valve Mechanical valve Biological valve Biological valve Mechanical Biological Mechanical Biological matchit {MatchIt}

  19. Risk prediction: status quo 0.10 10% Observed Actual Expected Overall average Trend 0.08 8% Mortality proportion Mortality 0.06 6% Ratio = 0.73 Ratio = 0.37 0.04 4% 0.02 2% 2002 2004 2006 2008 2010 Date of surgery Time

  20. Risk prediction: with R Intercept −5.25 Coefficient −5.50 + −5.75 −6.00 2002 2004 2006 2008 2010 Time Estimate 95% CI Piecewise recalibr ation (12−months) No update Rolling 24−month window (12−months) Piecewise recalibr ation (24−months) Rolling 24−month window (1−month) Dynamic logistic regression logistic.dma {dma}

  21. CONCLUSIONS

  22. Conclusions • We need to unlock healthcare registries to:  Monitor quality & avoid a repeat of Bristol  Revalidation of professional credentials  Facilitate patient choice  Develop & validate evidence based medicine  Increase in demand • We can do it all in R!

  23. Acknowledgements • Funded by Heart Research UK [Grant Number RG2583] • Dr Norman Stein, North West e-Health Comments & suggestions graeme.hickey@manchester.ac.uk

Recommend


More recommend