<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" article-type="research-article"><?properties manuscript?><front><journal-meta><journal-id journal-id-type="nlm-journal-id">0370512</journal-id><journal-id journal-id-type="pubmed-jr-id">457</journal-id><journal-id journal-id-type="nlm-ta">Am J Psychiatry</journal-id><journal-id journal-id-type="iso-abbrev">Am J Psychiatry</journal-id><journal-title-group><journal-title>The American journal of psychiatry</journal-title></journal-title-group><issn pub-type="ppub">0002-953X</issn><issn pub-type="epub">1535-7228</issn></journal-meta><article-meta><article-id pub-id-type="pmid">29792051</article-id><article-id pub-id-type="pmc">6167136</article-id><article-id pub-id-type="doi">10.1176/appi.ajp.2018.17101167</article-id><article-id pub-id-type="manuscript">NIHMS970626</article-id><article-categories><subj-group subj-group-type="heading"><subject>Article</subject></subj-group></article-categories><title-group><article-title>PREDICTING SUICIDE ATTEMPTS AND SUICIDE DEATHS FOLLOWING OUTPATIENT VISITS USING ELECTRONIC HEALTH RECORDS</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>Simon</surname><given-names>Gregory E</given-names></name><degrees>MD MPH</degrees><xref ref-type="aff" rid="A1">1</xref></contrib><contrib contrib-type="author"><name><surname>Johnson</surname><given-names>Eric</given-names></name><degrees>MS</degrees><xref ref-type="aff" rid="A1">1</xref></contrib><contrib contrib-type="author"><name><surname>Lawrence</surname><given-names>Jean M</given-names></name><degrees>ScD</degrees><xref ref-type="aff" rid="A2">2</xref></contrib><contrib contrib-type="author"><name><surname>Rossom</surname><given-names>Rebecca C</given-names></name><degrees>MD MS</degrees><xref ref-type="aff" rid="A3">3</xref></contrib><contrib contrib-type="author"><name><surname>Ahmedani</surname><given-names>Brian</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="A4">4</xref></contrib><contrib contrib-type="author"><name><surname>Lynch</surname><given-names>Frances L</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="A5">5</xref></contrib><contrib contrib-type="author"><name><surname>Beck</surname><given-names>Arne</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="A6">6</xref></contrib><contrib contrib-type="author"><name><surname>Waitzfelder</surname><given-names>Beth</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="A7">7</xref></contrib><contrib contrib-type="author"><name><surname>Ziebell</surname><given-names>Rebecca</given-names></name><xref ref-type="aff" rid="A1">1</xref></contrib><contrib contrib-type="author"><name><surname>Penfold</surname><given-names>Robert B</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="A1">1</xref></contrib><contrib contrib-type="author"><name><surname>Shortreed</surname><given-names>Susan M</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="A1">1</xref></contrib></contrib-group><aff id="A1">
<label>1</label>Kaiser Permanente Washington Health Research Institute, Seattle, WA</aff><aff id="A2">
<label>2</label>Dept. of Research and Evaluation, Kaiser Permanente Southern California, Pasadena, CA</aff><aff id="A3">
<label>3</label>HealthPartners Institute, Minneapolis, MN</aff><aff id="A4">
<label>4</label>Center for Health Services Research, Henry Ford Health System, Detroit, MI</aff><aff id="A5">
<label>5</label>Center for Health Research, Kaiser Permanente Northwest, Portland, OR</aff><aff id="A6">
<label>6</label>Institute for Health Research, Kaiser Permanente Colorado, Denver, CO</aff><aff id="A7">
<label>7</label>Center for Health Research, Kaiser Permanente Hawaii, Honolulu, HI</aff><author-notes><corresp id="FN1">Corresponding author: Gregory Simon, Kaiser Permanente Washington Health Research Institute, 1730 Minor Ave. #1600, Seattle, WA 98101. Phone: 206-287-2979, <email>simon.g@ghc.org</email></corresp></author-notes><pub-date pub-type="nihms-submitted"><day>20</day><month>6</month><year>2018</year></pub-date><pub-date pub-type="epub"><day>24</day><month>5</month><year>2018</year></pub-date><pub-date pub-type="ppub"><day>01</day><month>10</month><year>2018</year></pub-date><pub-date pub-type="pmc-release"><day>01</day><month>10</month><year>2019</year></pub-date><volume>175</volume><issue>10</issue><fpage>951</fpage><lpage>960</lpage><!--elocation-id from pubmed: 10.1176/appi.ajp.2018.17101167--><abstract><sec id="S1"><title>Objective</title><p id="P1">Develop and validate models using electronic health records to predict suicide attempt and suicide death following an outpatient visit.</p></sec><sec id="S2"><title>Methods</title><p id="P2">Across seven health systems, 2,960,929 patients aged 13 or older (mean age 46, 62% female) made 10,275,853 specialty mental health visits and 9,685,206 primary care visits with mental health diagnoses between 1/1/2009 and 6/30/2015. Health system records and state death certificate data identified suicide attempts (n=24,133) and suicide deaths (n=1240) over 90 days following each visit. Potential predictors included 313 demographic and clinical characteristics extracted from records for up to five years prior to each visit: prior suicide attempts, mental health and substance use diagnoses, medical diagnoses, psychiatric medications dispensed, inpatient or emergency department care, and routinely administered PHQ-9 depression questionnaires. Logistic regression models predicting suicide attempt and death were developed using penalized LASSO variable selection in a random 65% sample of visits and validated in the remaining 35%.</p></sec><sec id="S3"><title>Results</title><p id="P3">Mental health specialty visits with risk scores in the top 5% accounted for 43% of subsequent suicide attempts and 48% of suicide deaths. Of patients scoring in the top 5%, 5.4% attempted suicide and 0.26% died by suicide within 90 days. C-statistics (equivalent to AUC) for prediction of suicide attempt and suicide death were 0.851 (95% CI 0.848 to 0.853) and 0.861 (95% CI 0.848 to 0.875). Primary care visits with scores in the top 5% accounted for 48% of subsequent suicide attempts and 43% of suicide deaths. C-statistics for prediction of suicide attempt and suicide death were 0.853 (95% CI 0.849 to 0.857) and 0.833 (95% CI 0.813 to 0.853).</p></sec><sec id="S4"><title>Conclusions</title><p id="P4">Prediction models incorporating both health records data and responses to self-report questionnaires substantially outperform existing suicide risk prediction tools.</p></sec></abstract></article-meta></front><body><p id="P5">Suicide accounted for almost 45,000 deaths in the United States in 2016, a 25% increase since 2000<sup><xref rid="R1" ref-type="bibr">1</xref></sup>. Non-fatal suicide attempts account for almost 500,000 emergency department visits annually<sup><xref rid="R2" ref-type="bibr">2</xref></sup>. Half of people dying by suicide and two-thirds of people surviving suicide attempts received some mental health diagnosis or treatment during the prior year<sup><xref rid="R3" ref-type="bibr">3</xref>,<xref rid="R4" ref-type="bibr">4</xref></sup>. Mindful of those prevention opportunities, a Joint Commission Sentinel Event Alert now recommends detection of suicide risk across health care<sup><xref rid="R5" ref-type="bibr">5</xref></sup>. Unfortunately, traditional clinical detection of suicide risk is hardly better than chance<sup><xref rid="R6" ref-type="bibr">6</xref></sup>.</p><p id="P6">We have previously reported that brief depression questionnaires can accurately predict suicide attempt or death<sup><xref rid="R7" ref-type="bibr">7</xref></sup>. Outpatients reporting thoughts of death or self-harm &#x0201c;nearly every day&#x0201d; on item 9 of the Patient Health Questionnaire (PHQ-9) are seven times as likely to attempt suicide and six times as likely to die by suicide over the following 90 days compared to patients reporting such thoughts &#x0201c;not at all&#x0201d;<sup><xref rid="R7" ref-type="bibr">7</xref></sup>. Sensitivity of this tool, however, is only moderate. One-third of suicide attempts and deaths occur among patients reporting suicidal ideation &#x0201c;not at all&#x0201d;. Accurate identification of high risk is also only moderate. The 6% of patients reporting suicidal ideation &#x0201c;more than half the days&#x0201d; or &#x0201c;nearly every day&#x0201d; account for only 35% of suicide attempts and deaths. More accurate tools for identifying both low and high risk patients are needed.</p><p id="P7">Recent research has used various modeling methods to predict suicidal behavior from electronic health records (EHRs). Examples include prediction of suicide death among Veterans Administration service users<sup><xref rid="R8" ref-type="bibr">8</xref></sup>, prediction of suicide death following psychiatric hospitalization among Army soldiers<sup><xref rid="R9" ref-type="bibr">9</xref></sup>, distinguishing patients attempting suicide from those with other injuries or poisonings<sup><xref rid="R10" ref-type="bibr">10</xref></sup>, and prediction of suicide or accidental death following civilian general hospital discharge<sup><xref rid="R11" ref-type="bibr">11</xref></sup>. Two recent analyses have used health records data to predict suicide attempt or suicide death following outpatient visits. Kessler and colleagues<sup><xref rid="R12" ref-type="bibr">12</xref></sup> used health records and military service records to predict suicide death among US Army soldiers in the 26 weeks following a mental health visit. Approximately one quarter of suicide deaths occurred after the 5% of visits rated as highest risk. Barak-Corren and colleagues<sup><xref rid="R13" ref-type="bibr">13</xref></sup> used health records data to predict suicide attempt or death over outpatients making three or more visits in two large academic health systems. One-third of suicide attempts and deaths occurred in the 5% of patients with highest risk scores.</p><p id="P8">Here we combine data typically available from EHRs with depression questionnaire data in seven large health systems to develop and validate models predicting suicide attempt and suicide death over 90 days following a mental health or primary care visit.</p><sec sec-type="methods" id="S5"><title>METHODS</title><p id="P9">The seven health systems participating in this research (HealthPartners; Henry Ford Health System; and the Colorado, Hawaii, Northwest, Southern California and Washington regions of Kaiser Permanente) serve a combined population of approximately eight million members in nine states. Each system provides insurance coverage and comprehensive health care (including general medical and specialty mental health care) to a defined population enrolled through employer-sponsored insurance, individual insurance, capitated Medicaid or Medicare, and subsidized low-income programs. Members are representative of each system&#x02019;s service area in age, race/ethnicity, and socioeconomic status. All systems recommend using the PHQ-9 at mental health visits and primary care visits for depression, but implementation varied across systems during the study period.</p><p id="P10">As members of the Mental Health Research Network, each health system maintains a research data warehouse following the Health Care Systems Research Network Virtual Data Warehouse model<sup><xref rid="R14" ref-type="bibr">14</xref></sup>. This resource combines data from insurance enrollment records, EHRs, insurance claims, pharmacy dispensings, state mortality records, and census-derived neighborhood characteristics. Responsible institutional review boards for each health system approved use of these de-identified data for this research.</p><p id="P11">The study sample included any outpatient visit by a member aged 13 or older either to a specialty mental health clinic or to a primary care clinic when a mental health diagnosis was recorded. Sampling was limited to visits to health system clinics (to ensure availability of EHR data) and people insured by the health system&#x02019;s insurance plan (to ensure availability of insurance claims data). All qualifying visits from 1/1/2009 through 6/30/2015 were included, except at Henry Ford where only visits after implementation of a new EHR system (12/1/2012) were included.</p><p id="P12">Potential predictors extracted from health system records for up to five years prior to each visit included: demographic characteristics (age, sex, race, ethnicity, source of insurance, and neighborhood income and educational attainment), current and past mental health and substance use diagnoses (organized in 12 categories), past suicide attempts, other past injury or poisoning diagnoses, dispensed prescriptions for mental health medication (organized in four categories), past inpatient or emergency department mental health care, general medical diagnoses (by Charlson Comorbidity Index<sup><xref rid="R15" ref-type="bibr">15</xref></sup> categories), and recorded scores on the PHQ-9 questionnaire<sup><xref rid="R16" ref-type="bibr">16</xref></sup> (including total scores and item 9 scores).</p><p id="P13">Potential predictors were represented as dichotomous indicators. Each diagnosis category was represented by three overlapping indicators (recorded at or within 90 days prior to the visit, recorded within one year prior, and recorded within five years prior). Each category of medication or emergency/inpatient utilization was represented by three overlapping indicators (occurred within 90 days prior to the visit, one year prior, or any time prior). To represent temporal patterns of prior PHQ-9 item 9 scores, 24 indicators were calculated for each encounter to represent number of observations, maximum value, and modal value (including value of missing) during three overlapping time periods (previous 90 days, previous 183 days, and previous 365 days). The final set of potential predictors for each encounter included 149 indicators and 164 possible interactions (see <xref ref-type="supplementary-material" rid="SD1">Appendix 9a</xref> for complete list).</p><p id="P14">Diagnoses of self-harm or probable suicide attempt were ascertained from all injury or poisoning diagnoses recorded in EHRs and insurance claims accompanied by an ICD-9 cause of injury code indicating intentional self-harm (E950-E958) or undetermined intent (E980-E989). Data from these health systems during the study period indicate that inclusion of injuries and poisonings with undetermined intent increases ascertainment of probable suicide attempts by approximately 25%<sup><xref rid="R7" ref-type="bibr">7</xref></sup> (see also <xref ref-type="supplementary-material" rid="SD1">Appendix 4</xref>). While use of E-codes varied across the US during the study period<sup><xref rid="R17" ref-type="bibr">17</xref></sup>, participating health systems were selected for high and consistent rates of E-code use (<xref ref-type="supplementary-material" rid="SD1">Appendix 1</xref>). Records review<sup><xref rid="R7" ref-type="bibr">7</xref></sup> also supports the positive predictive value of this definition for identification of true self-harm in these health systems (see also <xref ref-type="supplementary-material" rid="SD1">Appendix 2</xref>). Furthermore, observation of coding changes across the transition from ICD-9 to the more specific ICD-10 coding scheme indicate that most &#x0201c;undetermined&#x0201d; ICD-9 diagnoses actually reflect self-harm<sup><xref rid="R18" ref-type="bibr">18</xref></sup> (see also <xref ref-type="supplementary-material" rid="SD1">Appendix 3</xref>). Ascertainment of suicide attempts was censored at health system disenrollment, after which insurance claims data regarding self-harm diagnoses at external facilities would not be available.</p><p id="P15">Suicide deaths were ascertained from state mortality records. Following common recommendations<sup><xref rid="R19" ref-type="bibr">19</xref>,<xref rid="R20" ref-type="bibr">20</xref></sup> all deaths with an ICD-10 diagnosis of self-inflicted injury (X60-X84) or injury/poisoning with undetermined intent (Y10-Y34) were considered probable suicide deaths. Inclusion of injury and poisoning deaths with undetermined intent increases ascertainment of probably suicide deaths by 5&#x02013;10%<sup><xref rid="R7" ref-type="bibr">7</xref></sup> (see also <xref ref-type="supplementary-material" rid="SD1">Appendix 4</xref>).</p><p id="P16">All predictor and outcome variables were completely specified and calculated prior to model training.</p><p id="P17">Prediction models were developed separately for mental health specialty and primary care visits, with a 65% random sample of each used for model training and 35% set aside for validation. Models included multiple visits per person in order to accurately represent changes in risk within patients over time. For each visit, analyses considered any outcome in the following 90 days, regardless of a subsequent visit in between. This approach uses all data available at the time of the index visit, but avoids informative or biased censoring related to timing of visits following the index date. In the initial variable selection step, separate models predicting risk of suicide attempt and suicide death were estimated using logistic regression with penalized LASSO variable selection<sup><xref rid="R21" ref-type="bibr">21</xref></sup>. The LASSO penalization factor selects important predictors by shrinking coefficients for weaker predictors toward zero, excluding predictors with estimated zero coefficients from the final sparse prediction model. To avoid over-fitting models to idiosyncratic relationships in the training samples, variable selection used 10-fold cross-validation<sup><xref rid="R22" ref-type="bibr">22</xref></sup> to select the optimal level of tuning or penalization, measured by the Bayesian Information Criterion<sup><xref rid="R23" ref-type="bibr">23</xref></sup>. In the second calibration step, generalized estimating equations with a logistic link re-estimated coefficients in the training sample, accounting for both clustering of visits under patients and bias toward the null in LASSO coefficients. In the final validation step, logistic models derived from the above two-step process were applied in the 35% validation sample to calculate predicted probabilities for each visit. Results are reported as receiver operating characteristic (ROC) curves<sup><xref rid="R24" ref-type="bibr">24</xref></sup> with c-statistics<sup><xref rid="R25" ref-type="bibr">25</xref>,<xref rid="R26" ref-type="bibr">26</xref></sup> along with predicted and observed rates in pre-specified strata of predicted probability. Over-fitting was evaluated by comparing classification performance and in training and validation samples and by comparing predicted risk to observed risk in the validation sample. Variable selection analyses were conducted using the GLMNET<sup><xref rid="R27" ref-type="bibr">27</xref></sup> and Foreach<sup><xref rid="R28" ref-type="bibr">28</xref></sup> packages for R statistical software, version 3.4.0. Confidence intervals for c-statistics were calculated via bootstrap with 10,000 replications.</p><p id="P18">A public repository (<ext-link ext-link-type="uri" xlink:href="www.github.com/MHResearchNetwork">www.github.com/MHResearchNetwork</ext-link>) includes: specifications and code for defining predictor and outcome variables, a data dictionary and descriptive statistics for analytic datasets, code for variable selection and calibration steps, coefficients and confidence limits from all final models, and comparison of model performance in training and validation samples.</p></sec><sec sec-type="results" id="S6"><title>RESULTS</title><p id="P19">We identified 19,961,059 eligible visits by 2,960,929 patients during the study period, including 10,275,853 mental health specialty visits and 9,685,206 primary care visits with mental health diagnoses (<xref rid="T1" ref-type="table">Table 1</xref>). Following the specifications above, health system records identified 24,133 unique probable suicide attempts within 90 days of an eligible visit, and state mortality records identified 1240 unique suicide deaths within 90 days.</p><p id="P20">Models predicting probable suicide attempt over 90 days were developed and validated for both mental health and primary care visits, excluding 0.3% of visits because of disenrollment within 90 days. Clinical variables with the largest positive prediction coefficients are shown in the left portion of <xref rid="T2" ref-type="table">Table 2</xref> (see Appendices 9b and 9c for all selected predictors and coefficients). Strongest predictors of suicide attempt were similar in mental health specialty and primary care patients: prior suicide attempt, mental health and substance use diagnoses, responses to PHQ-9 item 9, and prior inpatient or emergency mental health care.</p><p id="P21">The left portion of <xref rid="F1" ref-type="fig">Figure 1</xref> shows ROC curves illustrating sensitivity and specificity of suicide attempt predictions in training and validation samples. C-statistics (equivalent to AUC or area under the ROC curve) for prediction of suicide attempt in the validation samples were 0.851 (95% CI 0.848 to 0.853) for mental health specialty visits and 0.853 (95% CI 0.849 to 0.857) for primary care. In each graph, comparison of ROC curves shows no appreciable difference in prediction accuracy between the training and validation samples (i.e. no evidence for model over-fitting). <xref rid="T3" ref-type="table">Table 3</xref> compares predicted to observed risk for specific strata selected a priori. Among mental health specialty visits, the lowest two strata included 75% of all visits and 21% of all suicide attempts, while the highest three strata included 5% of visits and 43% of suicide attempts. Among primary care visits, the 75% of visits with lowest risk scores accounted for 21% of suicide attempts, while the 5% of visits with highest scores accounted for 48%. Comparison of predicted risk levels in the training sample and observed risk levels in the validation sample again shows no appreciable decline in model performance or evidence for model over-fitting. Sensitivity analyses limited to diagnoses of definite self-harm slightly improved prediction accuracy (especially among primary care patients) but excluded approximately 25% of probable suicide attempts (<xref ref-type="supplementary-material" rid="SD1">Appendix 4</xref>). Sensitivity analyses limited to visits preceded by at least 5 years of complete data yielded essentially identical prediction accuracy (<xref ref-type="supplementary-material" rid="SD1">Appendix 5</xref>). Model fit was consistent across the seven participating health systems and across age and sex subgroups (<xref ref-type="supplementary-material" rid="SD1">Appendix 8</xref>)</p><p id="P22">The same process was implemented for prediction of suicide deaths over 90 days, with separate models for mental health specialty and primary care visits. Clinical variables most strongly associated with suicide death in each group are shown in <xref rid="T2" ref-type="table">Table 2</xref> (see Appendices 9d and 9e for complete list). Predictors of suicide death were similar in mental health specialty and primary care patients, and were similar to predictors of suicide attempt.</p><p id="P23">The right portion of <xref rid="F1" ref-type="fig">Figure 1</xref> shows ROC curves for prediction of suicide death in training and validation samples. C-statistics for prediction of suicide death in the validation samples were 0.861 (95% CI 0.848 to 0.875) for mental health specialty visits and 0.833 (95% CI 0.813 to 0.853) for primary care. Comparison of ROC curves for the training and validation samples shows no evidence of over-fitting in the mental health specialty sample and a minimal separation of training and validation curves in the primary care sample. The right portion of <xref rid="T3" ref-type="table">Table 3</xref> compares predicted to observed risk for risk strata selected a priori. Among mental health specialty visits, the lowest two risk strata included 75% of visits and 19% of suicide deaths, while the highest three risk strata included 5% of visits and 48% of suicide deaths. Among primary care visits, the 75% of visits with lowest risk scores accounted for 25% of suicide deaths, while 5% of visits with highest scores accounted for 43%. Comparison of predicted risk levels in the training sample and observed risk levels in the validation sample shows no evidence for over-fitting in the primary care sample and a minimal fall-off between training and validation samples in the primary care sample. Sensitivity analyses limited to deaths coded as due to definite self-inflicted injury or poisoning found no meaningful difference in model fit (<xref ref-type="supplementary-material" rid="SD1">Appendix 4</xref>).</p><p id="P24"><xref rid="T4" ref-type="table">Table 4</xref> displays sensitivity, specificity, positive predictive value (PPV), and negative predictive value for all four models at cut-points defined by percentiles of the risk score distribution.</p></sec><sec sec-type="discussion" id="S7"><title>DISCUSSION</title><p id="P25">In a sample of 20 million visits by 3 million patients in seven health systems, data from EHRs accurately stratified mental health specialty and primary care visits according to short-term risk of suicide attempt or suicide death. Observed rates of probable suicide attempt and suicide death were over 200 times as high following visits in the highest 1% compared to visits in the bottom half of predicted risk (<xref rid="T3" ref-type="table">Table 3</xref>). Strongest predictors included mental health diagnoses, substance use diagnoses, use of mental health emergency and inpatient care, and history of self-harm. Absolute risk was lower in primary care, but predictors selected and accuracy of prediction were similar across care settings. Responses to PHQ-9 questionnaires were selected as important predictors, even though such data were available for only 15% of visits.</p><sec id="S8"><title>Potential Limitations</title><p id="P26">In interpreting these findings, we should consider both false positive and false negative errors in the ascertainment of probable suicide attempts and deaths. Previous research suggests false positive rates near zero for suicide deaths diagnosed by medical examiners<sup><xref rid="R20" ref-type="bibr">20</xref></sup> and below 10&#x02013;20% for diagnoses of definite or possible self-inflicted injury in records from these health systems<sup><xref rid="R7" ref-type="bibr">7</xref></sup> (also see <xref ref-type="supplementary-material" rid="SD1">Appendix 2</xref>). Diagnostic data do not distinguish between self-harm with and without intent to die. Consequently, our definition of probable suicide attempt may include a small proportion of self-harm episodes without suicidal intent. False negative errors may be more common. Up to one quarter of suicide deaths may not be identified by medical examiners<sup><xref rid="R19" ref-type="bibr">19</xref></sup>. Health system records will not capture suicide attempts when people do not seek care or when providers do not recognize and record diagnoses of self-harm. Non-specific error (either false positive or false negative) would lead to under-estimating the accuracy of prediction models (see <xref ref-type="supplementary-material" rid="SD1">appendix 4</xref>), while selective error in the wrong direction (e.g. under-ascertainment of suicide attempts in patients with low risk scores) could lead to over-estimation of model performance.</p><p id="P27">Health system records do not reflect important social risk factors for suicidal behavior, such as job loss, bereavement, or relationship disruption. Suicidal behavior likely reflects the intersection of clinical risk factors, negative life events, and access to means of self-harm. Data regarding those social risk factors would certainly improve accuracy of prediction.</p><p id="P28">Our analyses do not consider the one-third to one half of people attempting suicide or dying by suicide who have no recent mental health treatment or recorded diagnosis<sup><xref rid="R3" ref-type="bibr">3</xref>,<xref rid="R4" ref-type="bibr">4</xref>,<xref rid="R33" ref-type="bibr">33</xref></sup>. Prediction using EHR data might also prove useful among patients without recorded mental health diagnoses, but prediction models would necessarily be limited to general medical diagnoses and utilization rather than the mental health diagnoses and treatments selected in this sample.</p></sec><sec id="S9"><title>Methodologic Considerations</title><p id="P29">We focus on risk over 90 days following an outpatient visit. Risk does vary between visits<sup><xref rid="R29" ref-type="bibr">29</xref></sup>, and near-term risk is most relevant to clinical decisions and quality improvement<sup><xref rid="R30" ref-type="bibr">30</xref></sup>. The interventions that providers or health systems might provide for high-risk patients would typically be delivered over weeks or months<sup><xref rid="R31" ref-type="bibr">31</xref>,<xref rid="R32" ref-type="bibr">32</xref></sup>. Predictors selected in these models (<xref rid="T2" ref-type="table">Table 2</xref>) include both recent or short-term factors and long-term factors, consistent with previous research<sup><xref rid="R7" ref-type="bibr">7</xref>,<xref rid="R29" ref-type="bibr">29</xref></sup> indicating that suicidal behavior is influenced by both stable and variable risk factors. Sensitivity analyses using a 30-day outcome window (<xref ref-type="supplementary-material" rid="SD1">Appendix 7</xref>) yielded similar results regarding both predictors selected and accuracy of prediction. Analyses regarding longer-term risk might identify different predictors of suicidal behavior.</p><p id="P30">Of predictive modeling methods, parametric methods like LASSO lie closest to traditional regression. Non-parametric methods<sup><xref rid="R34" ref-type="bibr">34</xref></sup> such as random forest could theoretically improve accuracy of prediction. Direct comparisons to date<sup><xref rid="R12" ref-type="bibr">12</xref>,<xref rid="R35" ref-type="bibr">35</xref></sup>, however, have found equal or superior prediction using parametric methods similar to those used here. Non-parametric methods may have little advantage when predictors are dichotomous, such as the diagnosis and utilization indicators included in our models. Parametric models are usually more transparent to clinicians<sup><xref rid="R36" ref-type="bibr">36</xref></sup> and simpler to implement in EHRs, as is now underway in these health systems and the Veterans Health Administration<sup><xref rid="R35" ref-type="bibr">35</xref></sup>.</p><p id="P31">Variable selection models are subject to over-fitting or selection of predictive relationships idiosyncratic to a specific sample. The large sample used for training of these models offers some protection against over-fitting. In addition, we present explicit comparisons of performance in the training and randomly selected validation samples for all four models (<xref rid="T3" ref-type="table">Table 3</xref> and <xref rid="F1" ref-type="fig">Figure 1</xref>), finding no indication of over-fitting in prediction of suicide attempts or prediction of suicide deaths following mental health specialty visits. We do find a slight indication of over-fitting in prediction of suicide deaths following primary care visits, likely reflecting the smaller number of events included in these models. Nevertheless, overall accuracy of prediction (c-statistic) in the independent validation sample still exceeds 80%.</p><p id="P32">In addition to evaluating over-fitting within this sample, we should consider generalizability to other care settings or patient populations. This sample included almost 20 million visits in seven health systems serving patients in nine states &#x02013; including states with high and low rates of suicide mortality. Patients were broadly representative of those service areas in race/ethnicity, socioeconomic status, and source of insurance coverage &#x02013; including substantial numbers insured by Medicare and Medicaid. Methods could be easily transported to health systems with standard electronic health records and insurance claims databases. Predicted risk levels, however, could be over- or under-estimated in settings with higher or lower average risk of suicidal behavior. Predictors selected and accuracy of prediction could differ in settings with different patterns of mental health care, especially if patterns of diagnosis or utilization are less closely linked to risk of suicidal behavior. Intervention of effective suicide prevention programs could also weaken the relationship between these identified risk predictors and subsequent suicidal behavior. Consequently, we recommend replication in other health systems prior to broad application. All information necessary for replication is available via our online repository.</p></sec><sec id="S10"><title>Context</title><p id="P33">These empirically derived risk scores outperformed risk stratification based solely on PHQ-9 item 9. Regarding sensitivity: selecting mental health visits with any positive response to item 9 would identify only two thirds of subsequent suicide attempts and deaths<sup><xref rid="R7" ref-type="bibr">7</xref></sup>, while selecting visits with risk scores above the 75<sup>th</sup> percentile would identify 80%. Regarding efficient identification of high risk: selecting the 6% of visits with a response of &#x0201c;more than half the days&#x0201d; or &#x0201c;nearly every day&#x0201d; would identify one-third of subsequent suicide attempts and deaths<sup><xref rid="R7" ref-type="bibr">7</xref></sup>, while selecting the 5% of visits with highest risk scores would identify almost half.</p><p id="P34">Predictors identified in these models included a range of demographic characteristics, mental health diagnoses, and historical indicators of mental health treatment; generally similar to those identified in previous research<sup><xref rid="R9" ref-type="bibr">9</xref>,<xref rid="R12" ref-type="bibr">12</xref>,<xref rid="R13" ref-type="bibr">13</xref></sup>. Based on results in validation samples, performance of these prediction models equaled or exceeded that of other published models using health records to predict suicidal behavior, where c-statistics ranged from 0.67 to 0.84<sup><xref rid="R8" ref-type="bibr">8</xref>&#x02013;<xref rid="R13" ref-type="bibr">13</xref></sup>. These models significantly outperformed other published models predicting suicidal behavior after an outpatient visit, a question of high interest to a wide range of mental health and primary care providers. In this sample, mental health specialty visits with risk scores in the top 5% accounted for 43% of suicide attempts and 48% of suicide deaths in the following 90 days, while primary care visits in the top 5% accounted for 48% of subsequent suicide attempts and 43% of subsequent suicide deaths. For comparison, in two previous models predicting suicidal behavior following outpatient visits, the top 5% of patients accounted for between one quarter and one third of subsequent suicide attempts and deaths<sup><xref rid="R12" ref-type="bibr">12</xref>,<xref rid="R13" ref-type="bibr">13</xref></sup>. This improved prediction likely reflects differences in data and methods. First, longitudinal records in integrated health systems may allow more complete ascertainment of risk factors. Second, our analyses consider a larger number of potential predictors and more detailed temporal encoding. Third, responses to PHQ-9 item 9 contributed to prediction, even though such data were available for only 10&#x02013;20% of visits. Prediction accuracy would likely improve with greater use of the PHQ-9 or similar measures, as is expected with new initiatives promoting routine outcome assessment<sup><xref rid="R37" ref-type="bibr">37</xref></sup> and identification of suicidal ideation<sup><xref rid="R5" ref-type="bibr">5</xref></sup>.</p><p id="P35">C-statistics for these suicide prediction models also exceed those for models using health records data to predict re-hospitalization for heart failure<sup><xref rid="R38" ref-type="bibr">38</xref></sup>, in-hospital mortality from sepsis<sup><xref rid="R39" ref-type="bibr">39</xref></sup>, and high emergency department utilization<sup><xref rid="R40" ref-type="bibr">40</xref></sup>. Suicidal behavior may be more predictable than many adverse medical outcomes.</p><p id="P36">Among mental health specialty visits, a cut-point at the 95<sup>th</sup> percentile of risk had a positive predictive value of 5.4% for suicide attempt within 90 days. While that predictive value would be inadequate for a diagnostic test, it is similar or superior to widely accepted tools for prediction of major medical outcomes such as stroke in atrial fibrillation<sup><xref rid="R41" ref-type="bibr">41</xref></sup>, or cardiovascular events<sup><xref rid="R42" ref-type="bibr">42</xref></sup>. Furthermore, predictive values or expected event rates for widely accepted medical prediction tools often include adverse outcomes accumulated over many years<sup><xref rid="R41" ref-type="bibr">41</xref>,<xref rid="R42" ref-type="bibr">42</xref></sup>, rather than the 90-day risk period considered in these analyses.</p></sec><sec id="S11"><title>Clinical Implications</title><p id="P37">Some recent discussions of predictive modeling in healthcare warn that reliance on algorithms could lead to inappropriate causal inference<sup><xref rid="R43" ref-type="bibr">43</xref>&#x02013;<xref rid="R45" ref-type="bibr">45</xref></sup> or atrophy of clinician judgement<sup><xref rid="R43" ref-type="bibr">43</xref></sup>. Regarding the first point, associations identified by our model should certainly not be interpreted as evidence for independent or causal relationships. For example, a recent benzodiazepine prescription is more likely a marker of increased risk than a cause of suicidal behavior. We report predictors selected (<xref rid="T2" ref-type="table">Table 2</xref>) to demonstrate that all are expected correlates of suicidal behavior, albeit in specific combinations within specific time periods. Regarding the second point, our model and other models predicting suicidal behavior from records data rely largely on the diagnostic and treatment decisions of treating clinicians. The predictors identified by our analyses would be well-known to most mental health providers. Predictive models simply allow us to consistently combine millions of providers&#x02019; individual judgements to accurately predict an important but rare event<sup><xref rid="R45" ref-type="bibr">45</xref></sup>.</p><p id="P38">Prediction models cannot replace clinical judgement, but risk scores can certainly inform both individual clinical decisions and quality improvement programs. Participating health systems now recommend completion of a structured suicide risk assessment<sup><xref rid="R46" ref-type="bibr">46</xref></sup> following any response of &#x0201c;more than half the days&#x0201d; or &#x0201c;nearly every day&#x0201d; to PHQ9 item 9 &#x02013; implying a 90-day risk of suicide attempt of 2&#x02013;3%<sup><xref rid="R7" ref-type="bibr">7</xref></sup>. A predicted 90-day risk exceeding 5% (i.e. above the 95<sup>th</sup> percentile for mental health specialty visits) would seem to warrant a similar level of additional assessment. A predicted 90-day suicide attempt risk exceeding 10% (i.e. above the 99<sup>th</sup> percentile for mental health specialty visits) should warrant creation of a personal safety plan and counseling regarding reducing access to means of self-harm<sup><xref rid="R47" ref-type="bibr">47</xref>,<xref rid="R48" ref-type="bibr">48</xref></sup>. Accurate risk stratification can also inform providers&#x02019; and health systems&#x02019; decisions regarding frequency of follow-up, referral for intensive treatment, or outreach following missed or cancelled appointments<sup><xref rid="R30" ref-type="bibr">30</xref>,<xref rid="R49" ref-type="bibr">49</xref></sup>. Implementing these risk-based care pathways and outreach programs is a central goal of the Zero Suicide prevention model recommended by the U.S. National Action Alliance for Suicide Prevention<sup><xref rid="R48" ref-type="bibr">48</xref></sup>. Empirically derived risk predictions can be an important component of that national suicide prevention strategy.</p></sec></sec><sec sec-type="supplementary-material" id="S12"><title>Supplementary Material</title><supplementary-material content-type="local-data" id="SD1"><label>checklist</label><media xlink:href="NIHMS970626-supplement-checklist.docx" orientation="portrait" xlink:type="simple" id="d36e719" position="anchor"/></supplementary-material><supplementary-material content-type="local-data" id="SD2"><label>supplement</label><media xlink:href="NIHMS970626-supplement-supplement.docx" orientation="portrait" xlink:type="simple" id="d36e723" position="anchor"/></supplementary-material></sec></body><back><ack id="S13"><p>Supported by cooperative agreement U19 MH092201 with the National Institute of Mental Health</p></ack><ref-list><ref id="R1"><label>1</label><element-citation publication-type="book"><person-group person-group-type="author"><name><surname>Kochanek</surname><given-names>KD</given-names></name><name><surname>Murphy</surname><given-names>SL</given-names></name><name><surname>Xu</surname><given-names>JQ</given-names></name><name><surname>Arias</surname><given-names>E</given-names></name></person-group><source>NCHS Data Brief: Mortality in the United States, 2016</source><publisher-loc>Hyattsville, MD</publisher-loc><publisher-name>National Center for Health Statistics</publisher-name><year>2017</year></element-citation></ref><ref id="R2"><label>2</label><element-citation publication-type="web"><source>WISQARS Nonfatal Injury Reports, 200&#x02013;2014</source><year>2017</year><comment>(Accessed April 4, 2017, at <ext-link ext-link-type="uri" xlink:href="https://webappa.cdc.gov/sasweb/ncipc/nfirates.html">https://webappa.cdc.gov/sasweb/ncipc/nfirates.html</ext-link>.)</comment></element-citation></ref><ref id="R3"><label>3</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ahmedani</surname><given-names>BK</given-names></name><name><surname>Simon</surname><given-names>GE</given-names></name><name><surname>Stewart</surname><given-names>C</given-names></name><etal/></person-group><article-title>Health care contacts in the year before suicide death</article-title><source>J Gen Intern Med</source><year>2014</year><volume>29</volume><fpage>870</fpage><lpage>7</lpage></element-citation></ref><ref id="R4"><label>4</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ahmedani</surname><given-names>BK</given-names></name><name><surname>Stewart</surname><given-names>C</given-names></name><name><surname>Simon</surname><given-names>GE</given-names></name><etal/></person-group><article-title>Racial/Ethnic differences in health care visits made before suicide attempt across the United States</article-title><source>Med Care</source><year>2015</year><volume>53</volume><fpage>430</fpage><lpage>5</lpage><pub-id pub-id-type="pmid">25872151</pub-id></element-citation></ref><ref id="R5"><label>5</label><element-citation publication-type="journal"><collab>Patient Safety Advisory Group</collab><article-title>Detecting and treating suicidal ideation in all settings</article-title><source>The Joint Commission Sentinel Event Alerts</source><year>2016</year><fpage>56</fpage></element-citation></ref><ref id="R6"><label>6</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Franklin</surname><given-names>JC</given-names></name><name><surname>Ribeiro</surname><given-names>JD</given-names></name><name><surname>Fox</surname><given-names>KR</given-names></name><etal/></person-group><article-title>Risk factors for suicidal thoughts and behaviors: A meta-analysis of 50 years of research</article-title><source>Psychol Bull</source><year>2017</year><volume>143</volume><fpage>187</fpage><lpage>232</lpage><pub-id pub-id-type="pmid">27841450</pub-id></element-citation></ref><ref id="R7"><label>7</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Simon</surname><given-names>GE</given-names></name><name><surname>Coleman</surname><given-names>KJ</given-names></name><name><surname>Rossom</surname><given-names>RC</given-names></name><etal/></person-group><article-title>Risk of suicide attempt and suicide death following completion of the Patient Health Questionnaire depression module in community practice</article-title><source>J Clin Psychiatry</source><year>2016</year><volume>77</volume><fpage>221</fpage><lpage>7</lpage><pub-id pub-id-type="pmid">26930521</pub-id></element-citation></ref><ref id="R8"><label>8</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>McCarthy</surname><given-names>JF</given-names></name><name><surname>Bossarte</surname><given-names>RM</given-names></name><name><surname>Katz</surname><given-names>IR</given-names></name><etal/></person-group><article-title>Predictive Modeling and Concentration of the Risk of Suicide: Implications for Preventive Interventions in the US Department of Veterans Affairs</article-title><source>Am J Public Health</source><year>2015</year><volume>105</volume><fpage>1935</fpage><lpage>42</lpage><pub-id pub-id-type="pmid">26066914</pub-id></element-citation></ref><ref id="R9"><label>9</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kessler</surname><given-names>RC</given-names></name><name><surname>Warner</surname><given-names>CH</given-names></name><name><surname>Ivany</surname><given-names>C</given-names></name><etal/></person-group><article-title>Predicting suicides after psychiatric hospitalization in US Army soldiers: the Army Study To Assess Risk and rEsilience in Servicemembers (Army STARRS)</article-title><source>JAMA Psychiatry</source><year>2015</year><volume>72</volume><fpage>49</fpage><lpage>57</lpage><pub-id pub-id-type="pmid">25390793</pub-id></element-citation></ref><ref id="R10"><label>10</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Walsh</surname><given-names>CG</given-names></name><name><surname>Ribeiro</surname><given-names>JD</given-names></name><name><surname>Franklin</surname><given-names>JC</given-names></name></person-group><article-title>Predicting Risk of Suicide Attempts Over Time Through Machine Learning</article-title><source>Clinical Psychological Science</source><year>2017</year><volume>5</volume><fpage>457</fpage><lpage>69</lpage></element-citation></ref><ref id="R11"><label>11</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>McCoy</surname><given-names>TH</given-names><suffix>Jr</suffix></name><name><surname>Castro</surname><given-names>VM</given-names></name><name><surname>Roberson</surname><given-names>AM</given-names></name><name><surname>Snapper</surname><given-names>LA</given-names></name><name><surname>Perlis</surname><given-names>RH</given-names></name></person-group><article-title>Improving Prediction of Suicide and Accidental Death After Discharge From General Hospitals With Natural Language Processing</article-title><source>JAMA Psychiatry</source><year>2016</year><volume>73</volume><fpage>1064</fpage><lpage>71</lpage><pub-id pub-id-type="pmid">27626235</pub-id></element-citation></ref><ref id="R12"><label>12</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kessler</surname><given-names>RC</given-names></name><name><surname>Stein</surname><given-names>MB</given-names></name><name><surname>Petukhova</surname><given-names>MV</given-names></name><etal/></person-group><article-title>Predicting suicides after outpatient mental health visits in the Army Study to Assess Risk and Resilience in Servicemembers (Army STARRS)</article-title><source>Mol Psychiatry</source><year>2016</year></element-citation></ref><ref id="R13"><label>13</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Barak-Corren</surname><given-names>Y</given-names></name><name><surname>Castro</surname><given-names>VM</given-names></name><name><surname>Javitt</surname><given-names>S</given-names></name><etal/></person-group><article-title>Predicting Suicidal Behavior From Longitudinal Electronic Health Records</article-title><source>Am J Psychiatry</source><year>2017</year><volume>174</volume><fpage>154</fpage><lpage>62</lpage><pub-id pub-id-type="pmid">27609239</pub-id></element-citation></ref><ref id="R14"><label>14</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Ross</surname><given-names>TR</given-names></name><name><surname>Ng</surname><given-names>D</given-names></name><name><surname>Brown</surname><given-names>JS</given-names></name><etal/></person-group><article-title>The HMO Research Network Virtual Data Warehouse: A Public Data Model to Support Collaboration</article-title><source>eGEMs</source><year>2014</year><fpage>2</fpage></element-citation></ref><ref id="R15"><label>15</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Charlson</surname><given-names>M</given-names></name><name><surname>Szatrowski</surname><given-names>TP</given-names></name><name><surname>Peterson</surname><given-names>J</given-names></name><name><surname>Gold</surname><given-names>J</given-names></name></person-group><article-title>Validation of a combined comorbidity index</article-title><source>J Clin Epidemiol</source><year>1994</year><volume>47</volume><fpage>1245</fpage><lpage>51</lpage><pub-id pub-id-type="pmid">7722560</pub-id></element-citation></ref><ref id="R16"><label>16</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kroenke</surname><given-names>K</given-names></name><name><surname>Spitzer</surname><given-names>RL</given-names></name><name><surname>Williams</surname><given-names>JB</given-names></name><name><surname>Lowe</surname><given-names>B</given-names></name></person-group><article-title>The Patient Health Questionnaire Somatic, Anxiety, and Depressive Symptom Scales: a systematic review</article-title><source>Gen Hosp Psychiatry</source><year>2010</year><volume>32</volume><fpage>345</fpage><lpage>59</lpage><pub-id pub-id-type="pmid">20633738</pub-id></element-citation></ref><ref id="R17"><label>17</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lu</surname><given-names>CY</given-names></name><name><surname>Stewart</surname><given-names>C</given-names></name><name><surname>Ahmed</surname><given-names>AT</given-names></name><etal/></person-group><article-title>How complete are E-codes in commercal plan claims databases?</article-title><source>Pharmacoepidemiol Drug Saf</source><year>2014</year><volume>23</volume><fpage>218</fpage><lpage>20</lpage><pub-id pub-id-type="pmid">24453020</pub-id></element-citation></ref><ref id="R18"><label>18</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Stewart</surname><given-names>C</given-names></name><name><surname>Crawford</surname><given-names>PM</given-names></name><name><surname>Simon</surname><given-names>GE</given-names></name></person-group><article-title>Changes in Coding of Suicide Attempts or Self-Harm With Transition From ICD-9 to ICD-10</article-title><source>Psychiatr Serv</source><year>2017</year><volume>68</volume><fpage>215</fpage><pub-id pub-id-type="pmid">27903145</pub-id></element-citation></ref><ref id="R19"><label>19</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bakst</surname><given-names>SS</given-names></name><name><surname>Braun</surname><given-names>T</given-names></name><name><surname>Zucker</surname><given-names>I</given-names></name><name><surname>Amitai</surname><given-names>Z</given-names></name><name><surname>Shohat</surname><given-names>T</given-names></name></person-group><article-title>The accuracy of suicide statistics: are true suicide deaths misclassified?</article-title><source>Soc Psychiatry Psychiatr Epidemiol</source><year>2016</year><volume>51</volume><fpage>115</fpage><lpage>23</lpage><pub-id pub-id-type="pmid">26364837</pub-id></element-citation></ref><ref id="R20"><label>20</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Cox</surname><given-names>KL</given-names></name><name><surname>Nock</surname><given-names>MK</given-names></name><name><surname>Biggs</surname><given-names>QM</given-names></name><etal/></person-group><article-title>An Examination of Potential Misclassification of Army Suicides: Results from the Army Study to Assess Risk and Resilience in Servicemembers</article-title><source>Suicide Life Threat Behav</source><year>2016</year></element-citation></ref><ref id="R21"><label>21</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Tibshirani</surname><given-names>R</given-names></name></person-group><article-title>Regression shrinkage and selection via the lasso</article-title><source>J Royal Stat Soc (B)</source><year>1996</year><volume>58</volume><fpage>267</fpage><lpage>88</lpage></element-citation></ref><ref id="R22"><label>22</label><element-citation publication-type="book"><person-group person-group-type="author"><name><surname>Hastie</surname><given-names>T</given-names></name><name><surname>Tibshirani</surname><given-names>R</given-names></name><name><surname>Friedman</surname><given-names>J</given-names></name></person-group><source>The Elements of Statistical Learning</source><edition>2nd</edition><publisher-loc>New York</publisher-loc><publisher-name>Springer</publisher-name><year>2009</year></element-citation></ref><ref id="R23"><label>23</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kass</surname><given-names>RE</given-names></name><name><surname>Raftery</surname><given-names>AE</given-names></name></person-group><article-title>Bayes Factors</article-title><source>J Am Stat Assoc</source><year>1995</year><volume>90</volume><fpage>773</fpage><lpage>95</lpage></element-citation></ref><ref id="R24"><label>24</label><element-citation publication-type="book"><person-group person-group-type="author"><name><surname>Egan</surname><given-names>JP</given-names></name></person-group><source>Signal Detection Theory and ROC Analysis</source><publisher-loc>New York</publisher-loc><publisher-name>Springer Academic Press</publisher-name><year>1975</year></element-citation></ref><ref id="R25"><label>25</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hanley</surname><given-names>JA</given-names></name><name><surname>McNeil</surname><given-names>BJ</given-names></name></person-group><article-title>The meaning and use of the area under a receiver operating characteristic (ROC) curve</article-title><source>Radiology</source><year>1982</year><volume>143</volume><fpage>29</fpage><lpage>36</lpage><pub-id pub-id-type="pmid">7063747</pub-id></element-citation></ref><ref id="R26"><label>26</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bradley</surname><given-names>AP</given-names></name></person-group><article-title>The use of the area under the ROC curve in the evaluation of machine learning algorithms</article-title><source>Pattern Recogn</source><year>1997</year><volume>30</volume><fpage>1145</fpage><lpage>59</lpage></element-citation></ref><ref id="R27"><label>27</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Friedman</surname><given-names>J</given-names></name><name><surname>Hastie</surname><given-names>T</given-names></name><name><surname>Tibshirani</surname><given-names>R</given-names></name></person-group><article-title>Regularization paths for generalized linear models via coordinate descent</article-title><source>J Stat Softw</source><year>2010</year><volume>33</volume><fpage>1</fpage><lpage>22</lpage><pub-id pub-id-type="pmid">20808728</pub-id></element-citation></ref><ref id="R28"><label>28</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Weston</surname><given-names>S</given-names></name></person-group><article-title>Foreach looping construct for R</article-title><source>R Package Version</source><volume>143</volume><year>2015</year></element-citation></ref><ref id="R29"><label>29</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Simon</surname><given-names>GE</given-names></name><name><surname>Shortreed</surname><given-names>SM</given-names></name><name><surname>Johnson</surname><given-names>E</given-names></name><etal/></person-group><article-title>Between-visit changes in suicidal ideation and risk of subsequent suicide attempt</article-title><source>Depress Anxiety</source><year>2017</year></element-citation></ref><ref id="R30"><label>30</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Olfson</surname><given-names>M</given-names></name><name><surname>Marcus</surname><given-names>SC</given-names></name><name><surname>Bridge</surname><given-names>JA</given-names></name></person-group><article-title>Focusing suicide prevention on periods of high risk</article-title><source>JAMA</source><year>2014</year><volume>311</volume><fpage>1107</fpage><lpage>8</lpage><pub-id pub-id-type="pmid">24515285</pub-id></element-citation></ref><ref id="R31"><label>31</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Brown</surname><given-names>GK</given-names></name><name><surname>Ten Have</surname><given-names>T</given-names></name><name><surname>Henriques</surname><given-names>GR</given-names></name><name><surname>Xie</surname><given-names>SX</given-names></name><name><surname>Hollander</surname><given-names>JE</given-names></name><name><surname>Beck</surname><given-names>AT</given-names></name></person-group><article-title>Cognitive therapy for the prevention of suicide attempts: a randomized controlled trial</article-title><source>JAMA</source><year>2005</year><volume>294</volume><fpage>563</fpage><lpage>70</lpage><pub-id pub-id-type="pmid">16077050</pub-id></element-citation></ref><ref id="R32"><label>32</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Comtois</surname><given-names>KA</given-names></name><name><surname>Linehan</surname><given-names>MM</given-names></name></person-group><article-title>Psychosocial treatments of suicidal behaviors: a practice-friendly review</article-title><source>J Clin Psychol</source><year>2006</year><volume>62</volume><fpage>161</fpage><lpage>70</lpage><pub-id pub-id-type="pmid">16342292</pub-id></element-citation></ref><ref id="R33"><label>33</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Han</surname><given-names>B</given-names></name><name><surname>Compton</surname><given-names>WM</given-names></name><name><surname>Gfroerer</surname><given-names>J</given-names></name><name><surname>McKeon</surname><given-names>R</given-names></name></person-group><article-title>Mental health treatment patterns among adults with recent suicide attempts in the United States</article-title><source>Am J Public Health</source><year>2014</year><volume>104</volume><fpage>2359</fpage><lpage>68</lpage><pub-id pub-id-type="pmid">25322299</pub-id></element-citation></ref><ref id="R34"><label>34</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Dreiseitl</surname><given-names>S</given-names></name><name><surname>Ohno-Machado</surname><given-names>L</given-names></name></person-group><article-title>Logistic regression and artificial neural network classification models: a methodology review</article-title><source>J Biomed Inform</source><year>2002</year><volume>35</volume><fpage>352</fpage><lpage>9</lpage><pub-id pub-id-type="pmid">12968784</pub-id></element-citation></ref><ref id="R35"><label>35</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Kessler</surname><given-names>RC</given-names></name><name><surname>Hwang</surname><given-names>I</given-names></name><name><surname>Hoffmire</surname><given-names>CA</given-names></name><etal/></person-group><article-title>Developing a practical suicide risk prediction model for targeting high-risk patients in the Veterans health Administration</article-title><source>Int J Methods Psychiatr Res</source><year>2017</year><fpage>26</fpage></element-citation></ref><ref id="R36"><label>36</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Adkins</surname><given-names>DE</given-names></name></person-group><article-title>Machine Learning and Electronic Health Records: A Paradigm Shift</article-title><source>Am J Psychiatry</source><year>2017</year><volume>174</volume><fpage>93</fpage><lpage>4</lpage><pub-id pub-id-type="pmid">28142275</pub-id></element-citation></ref><ref id="R37"><label>37</label><element-citation publication-type="web"><source>HEDIS Depression Measures Specified for Electronic Clinical Data Systems</source><year>2016</year><comment>(Accessed February 16, 2016, at <ext-link ext-link-type="uri" xlink:href="http://www.ncqa.org/HEDISQualityMeasurement/HEDISLearningCollaborative/HEDISDepressionMeasures.aspx">http://www.ncqa.org/HEDISQualityMeasurement/HEDISLearningCollaborative/HEDISDepressionMeasures.aspx</ext-link>.)</comment></element-citation></ref><ref id="R38"><label>38</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Frizzell</surname><given-names>JD</given-names></name><name><surname>Liang</surname><given-names>L</given-names></name><name><surname>Schulte</surname><given-names>PJ</given-names></name><etal/></person-group><article-title>Prediction of 30-Day All-Cause Readmissions in Patients Hospitalized for Heart Failure: Comparison of Machine Learning and Other Statistical Approaches</article-title><source>JAMA Cardiol</source><year>2017</year><volume>2</volume><fpage>204</fpage><lpage>9</lpage><pub-id pub-id-type="pmid">27784047</pub-id></element-citation></ref><ref id="R39"><label>39</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Taylor</surname><given-names>RA</given-names></name><name><surname>Pare</surname><given-names>JR</given-names></name><name><surname>Venkatesh</surname><given-names>AK</given-names></name><etal/></person-group><article-title>Prediction of In-hospital Mortality in Emergency Department Patients With Sepsis: A Local Big Data-Driven, Machine Learning Approach</article-title><source>Acad Emerg Med</source><year>2016</year><volume>23</volume><fpage>269</fpage><lpage>78</lpage><pub-id pub-id-type="pmid">26679719</pub-id></element-citation></ref><ref id="R40"><label>40</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Frost</surname><given-names>DW</given-names></name><name><surname>Vembu</surname><given-names>S</given-names></name><name><surname>Wang</surname><given-names>J</given-names></name><name><surname>Tu</surname><given-names>K</given-names></name><name><surname>Morris</surname><given-names>Q</given-names></name><name><surname>Abrams</surname><given-names>HB</given-names></name></person-group><article-title>Using the Electronic Medical Record to Identify Patients at High Risk for Frequent Emergency Department Visits and High System Costs</article-title><source>Am J Med</source><year>2017</year></element-citation></ref><ref id="R41"><label>41</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lip</surname><given-names>GY</given-names></name></person-group><article-title>Can we predict stroke in atrial fibrillation?</article-title><source>Clin Cardiol</source><year>2012</year><volume>35</volume><issue>Suppl 1</issue><fpage>21</fpage><lpage>7</lpage></element-citation></ref><ref id="R42"><label>42</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Rana</surname><given-names>JS</given-names></name><name><surname>Tabada</surname><given-names>GH</given-names></name><name><surname>Solomon</surname><given-names>MD</given-names></name><etal/></person-group><article-title>Accuracy of the Atherosclerotic Cardiovascular Risk Equation in a Large Contemporary, Multiethnic Population</article-title><source>J Am Coll Cardiol</source><year>2016</year><volume>67</volume><fpage>2118</fpage><lpage>30</lpage><pub-id pub-id-type="pmid">27151343</pub-id></element-citation></ref><ref id="R43"><label>43</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Cabitza</surname><given-names>F</given-names></name><name><surname>Rasoini</surname><given-names>R</given-names></name><name><surname>Gensini</surname><given-names>GF</given-names></name></person-group><article-title>Unintended Consequences of Machine Learning in Medicine</article-title><source>JAMA</source><year>2017</year><volume>318</volume><fpage>517</fpage><lpage>8</lpage><pub-id pub-id-type="pmid">28727867</pub-id></element-citation></ref><ref id="R44"><label>44</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Chen</surname><given-names>JH</given-names></name><name><surname>Asch</surname><given-names>SM</given-names></name></person-group><article-title>Machine Learning and Prediction in Medicine - Beyond the Peak of Inflated Expectations</article-title><source>N Engl J Med</source><year>2017</year><volume>376</volume><fpage>2507</fpage><lpage>9</lpage><pub-id pub-id-type="pmid">28657867</pub-id></element-citation></ref><ref id="R45"><label>45</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Obermeyer</surname><given-names>Z</given-names></name><name><surname>Emanuel</surname><given-names>EJ</given-names></name></person-group><article-title>Predicting the Future - Big Data, Machine Learning, and Clinical Medicine</article-title><source>N Engl J Med</source><year>2016</year><volume>375</volume><fpage>1216</fpage><lpage>9</lpage><pub-id pub-id-type="pmid">27682033</pub-id></element-citation></ref><ref id="R46"><label>46</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Posner</surname><given-names>K</given-names></name><name><surname>Brown</surname><given-names>GK</given-names></name><name><surname>Stanley</surname><given-names>B</given-names></name><etal/></person-group><article-title>The Columbia-Suicide Severity Rating Scale: initial validity and internal consistency findings from three multisite studies with adolescents and adults</article-title><source>Am J Psychiatry</source><year>2011</year><volume>168</volume><fpage>1266</fpage><lpage>77</lpage><pub-id pub-id-type="pmid">22193671</pub-id></element-citation></ref><ref id="R47"><label>47</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Rossom</surname><given-names>RC</given-names></name><name><surname>Simon</surname><given-names>GE</given-names></name><name><surname>Beck</surname><given-names>A</given-names></name><etal/></person-group><article-title>Facilitating Action for Suicide Prevention by Learning Health Care Systems</article-title><source>Psychiatr Serv</source><year>2016</year><volume>67</volume><fpage>830</fpage><lpage>2</lpage><pub-id pub-id-type="pmid">27032667</pub-id></element-citation></ref><ref id="R48"><label>48</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hogan</surname><given-names>MF</given-names></name><name><surname>Grumet</surname><given-names>JG</given-names></name></person-group><article-title>Suicide Prevention: An Emerging Priority For Health Care</article-title><source>Health Aff (Millwood)</source><year>2016</year><volume>35</volume><fpage>1084</fpage><lpage>90</lpage><pub-id pub-id-type="pmid">27269026</pub-id></element-citation></ref><ref id="R49"><label>49</label><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Miller</surname><given-names>IW</given-names></name><name><surname>Camargo</surname><given-names>CA</given-names><suffix>Jr</suffix></name><name><surname>Arias</surname><given-names>SA</given-names></name><etal/></person-group><article-title>Suicide Prevention in an Emergency Department Population: The ED-SAFE Study</article-title><source>JAMA Psychiatry</source><year>2017</year></element-citation></ref></ref-list></back><floats-group><fig id="F1" orientation="portrait" position="float"><label>Figure 1</label><caption><p>Receiver operating characteristic curves illustrating model performance in validation dataset for prediction of suicide attempts and suicide deaths within 90 days of visit in seven health systems, 2009&#x02013;2015. The area below the training curve and above the validation curve indicates potential over-fitting in the training sample.</p></caption><graphic xlink:href="nihms970626f1"/></fig><table-wrap id="T1" position="float" orientation="landscape"><label>Table 1</label><caption><p>Characteristics of sampled visits to specialty mental health and primary care providers, randomly divided into model training (65%) and validation (35%) samples.</p></caption><table frame="box" rules="all"><thead><tr><th valign="top" align="left" rowspan="1" colspan="1"/><th colspan="4" valign="top" align="right" rowspan="1">Mental Health Specialty</th><th colspan="4" valign="top" align="right" rowspan="1">Primary Care</th></tr><tr><th valign="top" align="left" rowspan="1" colspan="1"/><th colspan="2" valign="top" align="right" rowspan="1">Training</th><th colspan="2" valign="top" align="right" rowspan="1">Validation</th><th colspan="2" valign="top" align="right" rowspan="1">Training</th><th colspan="2" valign="top" align="right" rowspan="1">Validation</th></tr></thead><tbody><tr><td valign="top" align="left" rowspan="1" colspan="1">VISITS</td><td valign="top" align="right" rowspan="1" colspan="1">6,679,128</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1">3,596,725</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1">6,297,465</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1">3,387,741</td><td valign="top" align="right" rowspan="1" colspan="1"/></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Female</td><td valign="top" align="right" rowspan="1" colspan="1">4,157,997</td><td valign="top" align="right" rowspan="1" colspan="1">62%</td><td valign="top" align="right" rowspan="1" colspan="1">2,239,213</td><td valign="top" align="right" rowspan="1" colspan="1">62%</td><td valign="top" align="right" rowspan="1" colspan="1">3,872,830</td><td valign="top" align="right" rowspan="1" colspan="1">61%</td><td valign="top" align="right" rowspan="1" colspan="1">2,083,4 24</td><td valign="top" align="right" rowspan="1" colspan="1">61 %</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Age</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;13&#x02013;17</td><td valign="top" align="right" rowspan="1" colspan="1">671,313</td><td valign="top" align="right" rowspan="1" colspan="1">10%</td><td valign="top" align="right" rowspan="1" colspan="1">360,619</td><td valign="top" align="right" rowspan="1" colspan="1">10%</td><td valign="top" align="right" rowspan="1" colspan="1">250,878</td><td valign="top" align="right" rowspan="1" colspan="1">4%</td><td valign="top" align="right" rowspan="1" colspan="1">135,070</td><td valign="top" align="right" rowspan="1" colspan="1">4%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;18&#x02013;29</td><td valign="top" align="right" rowspan="1" colspan="1">1,118,492</td><td valign="top" align="right" rowspan="1" colspan="1">17%</td><td valign="top" align="right" rowspan="1" colspan="1">603,044</td><td valign="top" align="right" rowspan="1" colspan="1">17%</td><td valign="top" align="right" rowspan="1" colspan="1">822,668</td><td valign="top" align="right" rowspan="1" colspan="1">13%</td><td valign="top" align="right" rowspan="1" colspan="1">442,774</td><td valign="top" align="right" rowspan="1" colspan="1">13%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;30&#x02013;44</td><td valign="top" align="right" rowspan="1" colspan="1">1,744,704</td><td valign="top" align="right" rowspan="1" colspan="1">26%</td><td valign="top" align="right" rowspan="1" colspan="1">939,431</td><td valign="top" align="right" rowspan="1" colspan="1">26%</td><td valign="top" align="right" rowspan="1" colspan="1">1,337,686</td><td valign="top" align="right" rowspan="1" colspan="1">21%</td><td valign="top" align="right" rowspan="1" colspan="1">720,878</td><td valign="top" align="right" rowspan="1" colspan="1">21%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;45&#x02013;64</td><td valign="top" align="right" rowspan="1" colspan="1">2,453,509</td><td valign="top" align="right" rowspan="1" colspan="1">37%</td><td valign="top" align="right" rowspan="1" colspan="1">1,321,986</td><td valign="top" align="right" rowspan="1" colspan="1">37%</td><td valign="top" align="right" rowspan="1" colspan="1">2,466,992</td><td valign="top" align="right" rowspan="1" colspan="1">39%</td><td valign="top" align="right" rowspan="1" colspan="1">1,326,237</td><td valign="top" align="right" rowspan="1" colspan="1">39%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;65 or older</td><td valign="top" align="right" rowspan="1" colspan="1">691,110</td><td valign="top" align="right" rowspan="1" colspan="1">10%</td><td valign="top" align="right" rowspan="1" colspan="1">371,645</td><td valign="top" align="right" rowspan="1" colspan="1">10%</td><td valign="top" align="right" rowspan="1" colspan="1">1,419,241</td><td valign="top" align="right" rowspan="1" colspan="1">23%</td><td valign="top" align="right" rowspan="1" colspan="1">762,782</td><td valign="top" align="right" rowspan="1" colspan="1">23%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Race</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;White</td><td valign="top" align="right" rowspan="1" colspan="1">4,562,203</td><td valign="top" align="right" rowspan="1" colspan="1">68%</td><td valign="top" align="right" rowspan="1" colspan="1">2,455,211</td><td valign="top" align="right" rowspan="1" colspan="1">68%</td><td valign="top" align="right" rowspan="1" colspan="1">4,162,033</td><td valign="top" align="right" rowspan="1" colspan="1">66%</td><td valign="top" align="right" rowspan="1" colspan="1">2,237,952</td><td valign="top" align="right" rowspan="1" colspan="1">66%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;Asian</td><td valign="top" align="right" rowspan="1" colspan="1">302,231</td><td valign="top" align="right" rowspan="1" colspan="1">5%</td><td valign="top" align="right" rowspan="1" colspan="1">162,400</td><td valign="top" align="right" rowspan="1" colspan="1">5%</td><td valign="top" align="right" rowspan="1" colspan="1">379,910</td><td valign="top" align="right" rowspan="1" colspan="1">6%</td><td valign="top" align="right" rowspan="1" colspan="1">204,272</td><td valign="top" align="right" rowspan="1" colspan="1">6%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;Black</td><td valign="top" align="right" rowspan="1" colspan="1">600,219</td><td valign="top" align="right" rowspan="1" colspan="1">9%</td><td valign="top" align="right" rowspan="1" colspan="1">324,233</td><td valign="top" align="right" rowspan="1" colspan="1">9%</td><td valign="top" align="right" rowspan="1" colspan="1">514,021</td><td valign="top" align="right" rowspan="1" colspan="1">8%</td><td valign="top" align="right" rowspan="1" colspan="1">276,260</td><td valign="top" align="right" rowspan="1" colspan="1">8%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;Hawaiian/Pacific Islander</td><td valign="top" align="right" rowspan="1" colspan="1">74,473</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td><td valign="top" align="right" rowspan="1" colspan="1">40,118</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td><td valign="top" align="right" rowspan="1" colspan="1">103,420</td><td valign="top" align="right" rowspan="1" colspan="1">2%</td><td valign="top" align="right" rowspan="1" colspan="1">55,833</td><td valign="top" align="right" rowspan="1" colspan="1">2%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;Native American</td><td valign="top" align="right" rowspan="1" colspan="1">65,309</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td><td valign="top" align="right" rowspan="1" colspan="1">35,332</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td><td valign="top" align="right" rowspan="1" colspan="1">69,425</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td><td valign="top" align="right" rowspan="1" colspan="1">37,717</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;More than one or Other</td><td valign="top" align="right" rowspan="1" colspan="1">38,223</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td><td valign="top" align="right" rowspan="1" colspan="1">20,485</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td><td valign="top" align="right" rowspan="1" colspan="1">43,445</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td><td valign="top" align="right" rowspan="1" colspan="1">23,391</td><td valign="top" align="right" rowspan="1" colspan="1">1%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;Not Recorded</td><td valign="top" align="right" rowspan="1" colspan="1">1,036,470</td><td valign="top" align="right" rowspan="1" colspan="1">16%</td><td valign="top" align="right" rowspan="1" colspan="1">558,946</td><td valign="top" align="right" rowspan="1" colspan="1">16%</td><td valign="top" align="right" rowspan="1" colspan="1">1,025,211</td><td valign="top" align="right" rowspan="1" colspan="1">16%</td><td valign="top" align="right" rowspan="1" colspan="1">552,316</td><td valign="top" align="right" rowspan="1" colspan="1">16%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Ethnicity</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; Hispanic</td><td valign="top" align="right" rowspan="1" colspan="1">1,486,400</td><td valign="top" align="right" rowspan="1" colspan="1">22%</td><td valign="top" align="right" rowspan="1" colspan="1">800,547</td><td valign="top" align="right" rowspan="1" colspan="1">22%</td><td valign="top" align="right" rowspan="1" colspan="1">1,430,611</td><td valign="top" align="right" rowspan="1" colspan="1">23%</td><td valign="top" align="right" rowspan="1" colspan="1">769,498</td><td valign="top" align="right" rowspan="1" colspan="1">23%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Insurance Type</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; Commercial Group</td><td valign="top" align="right" rowspan="1" colspan="1">5,057,328</td><td valign="top" align="right" rowspan="1" colspan="1">76%</td><td valign="top" align="right" rowspan="1" colspan="1">2,724,286</td><td valign="top" align="right" rowspan="1" colspan="1">76%</td><td valign="top" align="right" rowspan="1" colspan="1">4,198,138</td><td valign="top" align="right" rowspan="1" colspan="1">67%</td><td valign="top" align="right" rowspan="1" colspan="1">2,258,974</td><td valign="top" align="right" rowspan="1" colspan="1">67%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; Individual</td><td valign="top" align="right" rowspan="1" colspan="1">827,218</td><td valign="top" align="right" rowspan="1" colspan="1">12%</td><td valign="top" align="right" rowspan="1" colspan="1">445,749</td><td valign="top" align="right" rowspan="1" colspan="1">12%</td><td valign="top" align="right" rowspan="1" colspan="1">1,079,401</td><td valign="top" align="right" rowspan="1" colspan="1">17%</td><td valign="top" align="right" rowspan="1" colspan="1">580,225</td><td valign="top" align="right" rowspan="1" colspan="1">17%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; Medicare</td><td valign="top" align="right" rowspan="1" colspan="1">363,598</td><td valign="top" align="right" rowspan="1" colspan="1">5%</td><td valign="top" align="right" rowspan="1" colspan="1">194,773</td><td valign="top" align="right" rowspan="1" colspan="1">5%</td><td valign="top" align="right" rowspan="1" colspan="1">576,184</td><td valign="top" align="right" rowspan="1" colspan="1">9%</td><td valign="top" align="right" rowspan="1" colspan="1">310,001</td><td valign="top" align="right" rowspan="1" colspan="1">9%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; Medicaid</td><td valign="top" align="right" rowspan="1" colspan="1">213,573</td><td valign="top" align="right" rowspan="1" colspan="1">3%</td><td valign="top" align="right" rowspan="1" colspan="1">114,767</td><td valign="top" align="right" rowspan="1" colspan="1">3%</td><td valign="top" align="right" rowspan="1" colspan="1">297,710</td><td valign="top" align="right" rowspan="1" colspan="1">5%</td><td valign="top" align="right" rowspan="1" colspan="1">160,063</td><td valign="top" align="right" rowspan="1" colspan="1">5%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; Other</td><td valign="top" align="right" rowspan="1" colspan="1">217,411</td><td valign="top" align="right" rowspan="1" colspan="1">3%</td><td valign="top" align="right" rowspan="1" colspan="1">117,150</td><td valign="top" align="right" rowspan="1" colspan="1">3%</td><td valign="top" align="right" rowspan="1" colspan="1">146,032</td><td valign="top" align="right" rowspan="1" colspan="1">2%</td><td valign="top" align="right" rowspan="1" colspan="1">78,478</td><td valign="top" align="right" rowspan="1" colspan="1">2%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">PHQ9 Item 9 score recorded</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; At index visit</td><td valign="top" align="right" rowspan="1" colspan="1">657,998</td><td valign="top" align="right" rowspan="1" colspan="1">10%</td><td valign="top" align="right" rowspan="1" colspan="1">354,918</td><td valign="top" align="right" rowspan="1" colspan="1">10%</td><td valign="top" align="right" rowspan="1" colspan="1">312,065</td><td valign="top" align="right" rowspan="1" colspan="1">5%</td><td valign="top" align="right" rowspan="1" colspan="1">168,569</td><td valign="top" align="right" rowspan="1" colspan="1">5%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; At any visit in past year</td><td valign="top" align="right" rowspan="1" colspan="1">1,328,571</td><td valign="top" align="right" rowspan="1" colspan="1">20%</td><td valign="top" align="right" rowspan="1" colspan="1">714,693</td><td valign="top" align="right" rowspan="1" colspan="1">20%</td><td valign="top" align="right" rowspan="1" colspan="1">671,643</td><td valign="top" align="right" rowspan="1" colspan="1">11%</td><td valign="top" align="right" rowspan="1" colspan="1">362,438</td><td valign="top" align="right" rowspan="1" colspan="1">11%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Length of enrollment prior to visit</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; 1 year or more</td><td valign="top" align="right" rowspan="1" colspan="1">5,810,841</td><td valign="top" align="right" rowspan="1" colspan="1">87%</td><td valign="top" align="right" rowspan="1" colspan="1">3,129,151</td><td valign="top" align="right" rowspan="1" colspan="1">87%</td><td valign="top" align="right" rowspan="1" colspan="1">5,352,845</td><td valign="top" align="right" rowspan="1" colspan="1">85%</td><td valign="top" align="right" rowspan="1" colspan="1">2,879,580</td><td valign="top" align="right" rowspan="1" colspan="1">85%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003; 5 years or more</td><td valign="top" align="right" rowspan="1" colspan="1">3,772,409</td><td valign="top" align="right" rowspan="1" colspan="1">56%</td><td valign="top" align="right" rowspan="1" colspan="1">2,031,916</td><td valign="top" align="right" rowspan="1" colspan="1">56%</td><td valign="top" align="right" rowspan="1" colspan="1">3,542,358</td><td valign="top" align="right" rowspan="1" colspan="1">56%</td><td valign="top" align="right" rowspan="1" colspan="1">1,907,063</td><td valign="top" align="right" rowspan="1" colspan="1">56%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Visits followed by</td><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/><td valign="top" align="right" rowspan="1" colspan="1"/></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;Suicide Attempt within 90 days</td><td valign="top" align="right" rowspan="1" colspan="1">41,470</td><td valign="top" align="right" rowspan="1" colspan="1">0.62%</td><td valign="top" align="right" rowspan="1" colspan="1">22,329</td><td valign="top" align="right" rowspan="1" colspan="1">0.62%</td><td valign="top" align="right" rowspan="1" colspan="1">16,302</td><td valign="top" align="right" rowspan="1" colspan="1">0.26%</td><td valign="top" align="right" rowspan="1" colspan="1">8688</td><td valign="top" align="right" rowspan="1" colspan="1">0.26%</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">&#x02003;Suicide Death within 90 days</td><td valign="top" align="right" rowspan="1" colspan="1">1529</td><td valign="top" align="right" rowspan="1" colspan="1">0.02%</td><td valign="top" align="right" rowspan="1" colspan="1">854</td><td valign="top" align="right" rowspan="1" colspan="1">0.02%</td><td valign="top" align="right" rowspan="1" colspan="1">856</td><td valign="top" align="right" rowspan="1" colspan="1">0.01%</td><td valign="top" align="right" rowspan="1" colspan="1">445</td><td valign="top" align="right" rowspan="1" colspan="1">0.01%</td></tr></tbody></table></table-wrap><table-wrap id="T2" position="float" orientation="portrait"><label>Table 2</label><caption><p>Clinical characteristics selected for prediction of suicide attempt and suicide death within 90 days of visit, listed in order of coefficients in logistic regression models. Interaction terms are indicated by &#x0201c;with&#x0201d;. See Appendices 8b&#x02013;8e for complete list.</p></caption><table frame="box" rules="all"><thead><tr><th colspan="2" valign="top" align="center" rowspan="1">SUICIDE ATTEMPT FOLLOWING:</th><th colspan="2" valign="top" align="center" rowspan="1">SUICIDE DEATH FOLLOWING:</th></tr><tr><th valign="top" align="left" rowspan="1" colspan="1">MENTAL HEALTH SPECIALTY VISIT (of 94 predictors selected)</th><th valign="top" align="left" rowspan="1" colspan="1">PRIMARY CARE VISIT (of 102 predictors selected)</th><th valign="top" align="left" rowspan="1" colspan="1">MENTAL HEALTH SPECIALTY VISIT (of 43 predictors selected)</th><th valign="top" align="left" rowspan="1" colspan="1">PRIMARY CARE VISIT (of 29 predictors selected)</th></tr></thead><tbody><tr><td valign="top" align="left" rowspan="1" colspan="1">Depression diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Depression diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt diagnosis in last year</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health ER visit in last 3 mos.</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Drug abuse diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Benzodiazepine Rx. in last 3 mos</td><td valign="top" align="left" rowspan="1" colspan="1">Alcohol abuse diagnosis in last 5 yrs.</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 Item 9 score =3 in last year</td><td valign="top" align="left" rowspan="1" colspan="1">Drug abuse diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health ER visit in last 3 mos</td><td valign="top" align="left" rowspan="1" colspan="1">Benzodiazepine Rx. in last 3 mos.</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Alcohol use disorder Diag. in last 5 yrs</td><td valign="top" align="left" rowspan="1" colspan="1">Alcohol abuse diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">2<sup>nd</sup> Gen. Antipsychotic Rx in last 5 years</td><td valign="top" align="left" rowspan="1" colspan="1">Depression diagnosis in last 5 yrs.</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Mental health inpatient stay in last yr.</td><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 Item 9 score=3 in last year</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health inpatient stay in last 5 years</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health inpatient stay in last year</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Benzodiazepine Rx. in last 3 mos.</td><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt diagnosis in last 3 mos.</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health inpatient stay in last 3 mos</td><td valign="top" align="left" rowspan="1" colspan="1">Injury/Poisoning diagnosis in last year</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt in last 3 mos.</td><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt diagnosis in last year</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health inpatient stay in last year</td><td valign="top" align="left" rowspan="1" colspan="1">Anxiety disorder diagnosis in last 5 yrs.</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Personality disorder diag. in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Personality disorder diag. in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Alcohol use disorder Diag. in last 5 years</td><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 Item 9 score=1 with PHQ8 score</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Eating disorder diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Anxiety Disorder diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Antidepressant Rx in last 3 mos</td><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 item 9 score=3 with Age</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Suicide Attempt in last year</td><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt diagnosis in last 5 yrs with Schizophrenia diag. in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 Item 9 score = 3 with PHQ8 score</td><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt diag. in past 5 yrs with Age</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Mental health ER visit in last 3 mos.</td><td valign="top" align="left" rowspan="1" colspan="1">Benzodiazepine Rx. in last 3 mos.</td><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 item 9 score = 1 with Age</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health ER visit in past year</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Self-inflicted cutting/piercing in last year</td><td valign="top" align="left" rowspan="1" colspan="1">Eating Disorder diagnosis in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Depression diag. in last 5 yrs. with Age</td><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 Item 9 score=2 with Age</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt in last 5 yrs.</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health ER visit in last 3 mos.</td><td valign="top" align="left" rowspan="1" colspan="1">Suicide attempt diag. in last 5 yrs. with Charlson Score</td><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 Item 9 score=3 with PHQ8 score</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Injury/poisoning diagnosis in last 3 mos.</td><td valign="top" align="left" rowspan="1" colspan="1">Injury/Poisoning diagnosis in last year</td><td valign="top" align="left" rowspan="1" colspan="1">PHQ-9 Item 9 score = 2 with Age</td><td valign="top" align="left" rowspan="1" colspan="1">Bipolar disorder diagnosis in last 5 yrs with Age</td></tr><tr><td valign="top" align="left" rowspan="1" colspan="1">Antidepressant Rx. in last 3 mos.</td><td valign="top" align="left" rowspan="1" colspan="1">Mental health ER visit in last year</td><td valign="top" align="left" rowspan="1" colspan="1">Anxiety disorder diag. in last 5 yrs. with Age</td><td valign="top" align="left" rowspan="1" colspan="1">Depression diagnosis in last 5 yrs with Age</td></tr></tbody></table></table-wrap><table-wrap id="T3" position="float" orientation="landscape"><label>Table 3</label><caption><p>Classification accuracy in pre-defined strata for prediction of suicide attempts and suicide deaths within 90 days of a mental health or primary care visit in seven health systems, 2009&#x02013;2015. Potential over-fitting in training sample is indicated by differences between predicted and actual risks.</p></caption><table frame="box" rules="all"><thead><tr><th colspan="5" valign="top" align="center" rowspan="1">SUICIDE ATTEMPTS FOLLOWING:</th><th colspan="5" valign="top" align="center" rowspan="1">SUICIDE DEATHS FOLLOWING:</th></tr><tr><th colspan="5" valign="top" align="center" rowspan="1">A Ment al Health Specialty Visit</th><th colspan="5" valign="top" align="center" rowspan="1">A Mental Health Specialty Visit</th></tr><tr><th valign="top" align="center" rowspan="1" colspan="1">Risk Score Percentile Strata</th><th valign="top" align="center" rowspan="1" colspan="1">Predicted Risk<xref rid="TFN2" ref-type="table-fn">1</xref></th><th valign="top" align="center" rowspan="1" colspan="1">Actual Risk<xref rid="TFN3" ref-type="table-fn">2</xref></th><th valign="top" align="center" rowspan="1" colspan="1">% of All Attempts<xref rid="TFN4" ref-type="table-fn">3</xref></th><th valign="top" align="center" rowspan="1" colspan="1">Standardized Event Ratio<xref rid="TFN5" ref-type="table-fn">4</xref></th><th valign="top" align="center" rowspan="1" colspan="1">Risk Score Percentile Strata</th><th valign="top" align="center" rowspan="1" colspan="1">Predicted Risk<xref rid="TFN2" ref-type="table-fn">1</xref></th><th valign="top" align="center" rowspan="1" colspan="1">Actual Risk<xref rid="TFN3" ref-type="table-fn">2</xref></th><th valign="top" align="center" rowspan="1" colspan="1">% of All Deaths<xref rid="TFN4" ref-type="table-fn">3</xref></th><th valign="top" align="center" rowspan="1" colspan="1">Standardized Event Ratio<xref rid="TFN5" ref-type="table-fn">4</xref></th></tr></thead><tbody><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;99.5th</td><td valign="top" align="center" rowspan="1" colspan="1">13.0%</td><td valign="top" align="center" rowspan="1" colspan="1">12.7%</td><td valign="top" align="center" rowspan="1" colspan="1">10%</td><td valign="top" align="center" rowspan="1" colspan="1">20.7</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;99.5th</td><td valign="top" align="center" rowspan="1" colspan="1">0.654%</td><td valign="top" align="center" rowspan="1" colspan="1">0.694%</td><td valign="top" align="center" rowspan="1" colspan="1">12%</td><td valign="top" align="center" rowspan="1" colspan="1">24.6</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">99<sup>th</sup> to 99.5<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">8.5%</td><td valign="top" align="center" rowspan="1" colspan="1">8.1%</td><td valign="top" align="center" rowspan="1" colspan="1">6%</td><td valign="top" align="center" rowspan="1" colspan="1">12.9</td><td valign="top" align="center" rowspan="1" colspan="1">99<sup>th</sup> to 99.5<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.638%</td><td valign="top" align="center" rowspan="1" colspan="1">0.595%</td><td valign="top" align="center" rowspan="1" colspan="1">11%</td><td valign="top" align="center" rowspan="1" colspan="1">21.5</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">95<sup>th</sup> to 99<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">4.1%</td><td valign="top" align="center" rowspan="1" colspan="1">4.2%</td><td valign="top" align="center" rowspan="1" colspan="1">27%</td><td valign="top" align="center" rowspan="1" colspan="1">6.7</td><td valign="top" align="center" rowspan="1" colspan="1">95<sup>th</sup> to 99<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.162%</td><td valign="top" align="center" rowspan="1" colspan="1">0.167%</td><td valign="top" align="center" rowspan="1" colspan="1">25%</td><td valign="top" align="center" rowspan="1" colspan="1">6.3</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">90<sup>th</sup> to 95<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">1.9%</td><td valign="top" align="center" rowspan="1" colspan="1">1.8%</td><td valign="top" align="center" rowspan="1" colspan="1">15%</td><td valign="top" align="center" rowspan="1" colspan="1">3.0</td><td valign="top" align="center" rowspan="1" colspan="1">90<sup>th</sup> to 95<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.068%</td><td valign="top" align="center" rowspan="1" colspan="1">0.088%</td><td valign="top" align="center" rowspan="1" colspan="1">16%</td><td valign="top" align="center" rowspan="1" colspan="1">2.3</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">75<sup>th</sup> to 90<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.9%</td><td valign="top" align="center" rowspan="1" colspan="1">0.9%</td><td valign="top" align="center" rowspan="1" colspan="1">21%</td><td valign="top" align="center" rowspan="1" colspan="1">1.4</td><td valign="top" align="center" rowspan="1" colspan="1">75<sup>th</sup> to 90<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.031%</td><td valign="top" align="center" rowspan="1" colspan="1">0.029%</td><td valign="top" align="center" rowspan="1" colspan="1">16%</td><td valign="top" align="center" rowspan="1" colspan="1">1.1</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">50<sup>th</sup> to 75<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.3%</td><td valign="top" align="center" rowspan="1" colspan="1">0.3%</td><td valign="top" align="center" rowspan="1" colspan="1">13%</td><td valign="top" align="center" rowspan="1" colspan="1">0.51</td><td valign="top" align="center" rowspan="1" colspan="1">50<sup>th</sup> to 75<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.014%</td><td valign="top" align="center" rowspan="1" colspan="1">0.015%</td><td valign="top" align="center" rowspan="1" colspan="1">13%</td><td valign="top" align="center" rowspan="1" colspan="1">0.54</td></tr><tr><td valign="middle" align="center" rowspan="1" colspan="1">&#x0003c;50<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.1%</td><td valign="top" align="center" rowspan="1" colspan="1">0.1%</td><td valign="top" align="center" rowspan="1" colspan="1">8%</td><td valign="top" align="center" rowspan="1" colspan="1">0.16</td><td valign="middle" align="center" rowspan="1" colspan="1">&#x0003c;50<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.003%</td><td valign="top" align="center" rowspan="1" colspan="1">0.003%</td><td valign="top" align="center" rowspan="1" colspan="1">6%</td><td valign="top" align="center" rowspan="1" colspan="1">0.12</td></tr><tr><td colspan="5" valign="top" align="center" rowspan="1">A Primary Care Visit with Mental Health Diagnosis</td><td colspan="5" valign="top" align="center" rowspan="1">A Primary Care Visit with Mental Health Diagnosis</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">Risk Score Percentile Strata</td><td valign="top" align="center" rowspan="1" colspan="1">Predicted Risk<xref rid="TFN2" ref-type="table-fn">1</xref></td><td valign="top" align="center" rowspan="1" colspan="1">Actual Risk<xref rid="TFN3" ref-type="table-fn">2</xref></td><td valign="top" align="center" rowspan="1" colspan="1">% of All Attempts<xref rid="TFN4" ref-type="table-fn">3</xref></td><td valign="top" align="center" rowspan="1" colspan="1">Standardized Event Ratio<xref rid="TFN5" ref-type="table-fn">4</xref></td><td valign="top" align="center" rowspan="1" colspan="1">Risk Score Percentile Strata</td><td valign="top" align="center" rowspan="1" colspan="1">Predicted Risk<xref rid="TFN2" ref-type="table-fn">1</xref></td><td valign="top" align="center" rowspan="1" colspan="1">Actual Risk<xref rid="TFN3" ref-type="table-fn">2</xref></td><td valign="top" align="center" rowspan="1" colspan="1">% of All Deaths<xref rid="TFN4" ref-type="table-fn">3</xref></td><td valign="top" align="center" rowspan="1" colspan="1">Standardized Event Ratio<xref rid="TFN5" ref-type="table-fn">4</xref></td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;99.5<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">8.6%</td><td valign="top" align="center" rowspan="1" colspan="1">8.0%</td><td valign="top" align="center" rowspan="1" colspan="1">15%</td><td valign="top" align="center" rowspan="1" colspan="1">30.5</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;99.5<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.536%</td><td valign="top" align="center" rowspan="1" colspan="1">0.435%</td><td valign="top" align="center" rowspan="1" colspan="1">14%</td><td valign="top" align="center" rowspan="1" colspan="1">28.8</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">99<sup>th</sup> to 99.5<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">4.1%</td><td valign="top" align="center" rowspan="1" colspan="1">4.2%</td><td valign="top" align="center" rowspan="1" colspan="1">8%</td><td valign="top" align="center" rowspan="1" colspan="1">16.3</td><td valign="top" align="center" rowspan="1" colspan="1">99<sup>th</sup> to 99.5<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.181%</td><td valign="top" align="center" rowspan="1" colspan="1">0.197%</td><td valign="top" align="center" rowspan="1" colspan="1">7%</td><td valign="top" align="center" rowspan="1" colspan="1">13.0</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">95<sup>th</sup> to 99<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">1.6%</td><td valign="top" align="center" rowspan="1" colspan="1">1.6%</td><td valign="top" align="center" rowspan="1" colspan="1">25%</td><td valign="top" align="center" rowspan="1" colspan="1">6.2</td><td valign="top" align="center" rowspan="1" colspan="1">95<sup>th</sup> to 99<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.092%</td><td valign="top" align="center" rowspan="1" colspan="1">0.083%</td><td valign="top" align="center" rowspan="1" colspan="1">22%</td><td valign="top" align="center" rowspan="1" colspan="1">5.6</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">90<sup>th</sup> to 95<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.7%</td><td valign="top" align="center" rowspan="1" colspan="1">0.7%</td><td valign="top" align="center" rowspan="1" colspan="1">13%</td><td valign="top" align="center" rowspan="1" colspan="1">2.6</td><td valign="top" align="center" rowspan="1" colspan="1">90<sup>th</sup> to 95<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.035%</td><td valign="top" align="center" rowspan="1" colspan="1">0.038%</td><td valign="top" align="center" rowspan="1" colspan="1">13%</td><td valign="top" align="center" rowspan="1" colspan="1">2.5</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">75<sup>th</sup> to 90<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.3%</td><td valign="top" align="center" rowspan="1" colspan="1">0.3%</td><td valign="top" align="center" rowspan="1" colspan="1">18%</td><td valign="top" align="center" rowspan="1" colspan="1">1.2</td><td valign="top" align="center" rowspan="1" colspan="1">75<sup>th</sup> to 90<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.018%</td><td valign="top" align="center" rowspan="1" colspan="1">0.019%</td><td valign="top" align="center" rowspan="1" colspan="1">19%</td><td valign="top" align="center" rowspan="1" colspan="1">1.3</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">50<sup>th</sup> to 75<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.1%</td><td valign="top" align="center" rowspan="1" colspan="1">0.1%</td><td valign="top" align="center" rowspan="1" colspan="1">12%</td><td valign="top" align="center" rowspan="1" colspan="1">0.49</td><td valign="top" align="center" rowspan="1" colspan="1">50<sup>th</sup> to 75<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">0.009%</td><td valign="top" align="center" rowspan="1" colspan="1">0.009%</td><td valign="top" align="center" rowspan="1" colspan="1">15%</td><td valign="top" align="center" rowspan="1" colspan="1">0.62</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003c;50th</td><td valign="top" align="center" rowspan="1" colspan="1">0.04%</td><td valign="top" align="center" rowspan="1" colspan="1">0.04%</td><td valign="top" align="center" rowspan="1" colspan="1">9%</td><td valign="top" align="center" rowspan="1" colspan="1">0.17</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003c;50th</td><td valign="top" align="center" rowspan="1" colspan="1">0.003%</td><td valign="top" align="center" rowspan="1" colspan="1">0.003%</td><td valign="top" align="center" rowspan="1" colspan="1">10%</td><td valign="top" align="center" rowspan="1" colspan="1">0.19</td></tr></tbody></table><table-wrap-foot><fn id="TFN1"><p>Notes:</p></fn><fn id="TFN2"><label>1</label><p>Predicted risk in this stratum using final model predictors and coefficients in the training sample</p></fn><fn id="TFN3"><label>2</label><p>Observed risk in this stratum using final model predictors and coefficients in the validation sample</p></fn><fn id="TFN4"><label>3</label><p>Percentage of all suicide attempts or deaths occurring in this stratum in validation sample</p></fn><fn id="TFN5"><label>4</label><p>Ratio of observed risk in this stratum of the validation sample to average risk in the full validation sample</p></fn></table-wrap-foot></table-wrap><table-wrap id="T4" position="float" orientation="landscape"><label>Table 4</label><caption><p>Performance characteristics at various cut-points for prediction of suicide attempts and suicide deaths within 90 days of visit in seven health systems, 2009&#x02013;2015.</p></caption><table frame="box" rules="all"><thead><tr><th colspan="5" valign="top" align="center" rowspan="1">SUICIDE ATTEMPTS FOLLOWING:</th><th colspan="5" valign="top" align="center" rowspan="1">SUICIDE DEATHS FOLLOWING:</th></tr><tr><th colspan="5" valign="top" align="center" rowspan="1">Mental Health Specialty Visits</th><th colspan="5" valign="top" align="center" rowspan="1">Mental Health Specialty Visits</th></tr><tr><th valign="top" align="center" rowspan="1" colspan="1">Risk Score Percentile Cut-Points</th><th valign="top" align="center" rowspan="1" colspan="1">Sensitivity</th><th valign="top" align="center" rowspan="1" colspan="1">Specificity</th><th valign="top" align="center" rowspan="1" colspan="1">PPV</th><th valign="top" align="center" rowspan="1" colspan="1">NPV</th><th valign="top" align="center" rowspan="1" colspan="1">Risk Score Percentile Cut-Points</th><th valign="top" align="center" rowspan="1" colspan="1">Sensitivity</th><th valign="top" align="center" rowspan="1" colspan="1">Specificity</th><th valign="top" align="center" rowspan="1" colspan="1">PPV</th><th valign="top" align="center" rowspan="1" colspan="1">NPV</th></tr></thead><tbody><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;99<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">16.8%</td><td valign="top" align="center" rowspan="1" colspan="1">99.1%</td><td valign="top" align="center" rowspan="1" colspan="1">10.4%</td><td valign="top" align="center" rowspan="1" colspan="1">99.4%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;99<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">23.1%</td><td valign="top" align="center" rowspan="1" colspan="1">99.0%</td><td valign="top" align="center" rowspan="1" colspan="1">0.62%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;95<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">43.7%</td><td valign="top" align="center" rowspan="1" colspan="1">95.2%</td><td valign="top" align="center" rowspan="1" colspan="1">5.4%</td><td valign="top" align="center" rowspan="1" colspan="1">99.6%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;95<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">48.1%</td><td valign="top" align="center" rowspan="1" colspan="1">95.0%</td><td valign="top" align="center" rowspan="1" colspan="1">0.26%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;90<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">58.3%</td><td valign="top" align="center" rowspan="1" colspan="1">90.3%</td><td valign="top" align="center" rowspan="1" colspan="1">3.6%</td><td valign="top" align="center" rowspan="1" colspan="1">99.7%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;90<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">64.3%</td><td valign="top" align="center" rowspan="1" colspan="1">90.0%</td><td valign="top" align="center" rowspan="1" colspan="1">0.17%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;75<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">79.2%</td><td valign="top" align="center" rowspan="1" colspan="1">75.2%</td><td valign="top" align="center" rowspan="1" colspan="1">2.0%</td><td valign="top" align="center" rowspan="1" colspan="1">99.8%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;75<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">80.4%</td><td valign="top" align="center" rowspan="1" colspan="1">75.1%</td><td valign="top" align="center" rowspan="1" colspan="1">0.08%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;50<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">92.1%</td><td valign="top" align="center" rowspan="1" colspan="1">50.0%</td><td valign="top" align="center" rowspan="1" colspan="1">1.1%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;50<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">94.0%</td><td valign="top" align="center" rowspan="1" colspan="1">50.0%</td><td valign="top" align="center" rowspan="1" colspan="1">0.05%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td colspan="5" valign="top" align="center" rowspan="1">Primary Care Visits with Mental Health Diagnosis</td><td colspan="5" valign="top" align="center" rowspan="1">Primary Care Visits with Mental Health Diagnosis</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">Risk Score Percentile Cut-Points</td><td valign="top" align="center" rowspan="1" colspan="1">Sensitivity</td><td valign="top" align="center" rowspan="1" colspan="1">Specificity</td><td valign="top" align="center" rowspan="1" colspan="1">PPV</td><td valign="top" align="center" rowspan="1" colspan="1">NPV</td><td valign="top" align="center" rowspan="1" colspan="1">Risk Score Percentile Cut-Points</td><td valign="top" align="center" rowspan="1" colspan="1">Sensitivity</td><td valign="top" align="center" rowspan="1" colspan="1">Specificity</td><td valign="top" align="center" rowspan="1" colspan="1">PPV</td><td valign="top" align="center" rowspan="1" colspan="1">NPV</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;99<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">23.5%</td><td valign="top" align="center" rowspan="1" colspan="1">99.1%</td><td valign="top" align="center" rowspan="1" colspan="1">6.1%</td><td valign="top" align="center" rowspan="1" colspan="1">99.8%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;99<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">20.9%</td><td valign="top" align="center" rowspan="1" colspan="1">99.0%</td><td valign="top" align="center" rowspan="1" colspan="1">0.31%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;95<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">48.2%</td><td valign="top" align="center" rowspan="1" colspan="1">95.1%</td><td valign="top" align="center" rowspan="1" colspan="1">2.5%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;95<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">43.1%</td><td valign="top" align="center" rowspan="1" colspan="1">95.0%</td><td valign="top" align="center" rowspan="1" colspan="1">0.13%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;90<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">61.0%</td><td valign="top" align="center" rowspan="1" colspan="1">90.1%</td><td valign="top" align="center" rowspan="1" colspan="1">1.6%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;90<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">55.7%</td><td valign="top" align="center" rowspan="1" colspan="1">90.0%</td><td valign="top" align="center" rowspan="1" colspan="1">0.08%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;75<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">79.1%</td><td valign="top" align="center" rowspan="1" colspan="1">75.1%</td><td valign="top" align="center" rowspan="1" colspan="1">0.8%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;75<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">74.8%</td><td valign="top" align="center" rowspan="1" colspan="1">75.1%</td><td valign="top" align="center" rowspan="1" colspan="1">0.05%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr><tr><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;50<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">91.4%</td><td valign="top" align="center" rowspan="1" colspan="1">50.1%</td><td valign="top" align="center" rowspan="1" colspan="1">0.5%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td><td valign="top" align="center" rowspan="1" colspan="1">&#x0003e;50<sup>th</sup></td><td valign="top" align="center" rowspan="1" colspan="1">90.3%</td><td valign="top" align="center" rowspan="1" colspan="1">50.0%</td><td valign="top" align="center" rowspan="1" colspan="1">0.03%</td><td valign="top" align="center" rowspan="1" colspan="1">99.9%</td></tr></tbody></table></table-wrap></floats-group></article>