Determining Distinct Suicide Attempts From Recurrent Electronic Health Record Codes: Classification Study.
Kate H BentleyEmily M MadsenEugene SongYu ZhouVictor M CastroHyunjoon LeeYounga Heather LeeJordan W SmollerPublished in: JMIR formative research (2024)
EHR-based suicide risk prediction models that include International Classification of Diseases codes for prior suicide attempts as a predictor may be highly susceptible to bias due to data leakage in model training. We derived a simple rule to distinguish codes that reflect new, independent suicide attempts: suicide attempt codes documented in an ED setting at least 5 days after a preceding suicide attempt code can be confidently treated as new events in EHR-based suicide risk prediction models. This rule has the potential to minimize upward bias in model performance when prior suicide attempts are included as predictors in EHR-based suicide risk prediction models.