<!DOCTYPE article
PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN" "JATS-archivearticle1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="research-article"><?properties manuscript?><processing-meta base-tagset="archiving" mathml-version="3.0" table-model="xhtml" tagset-family="jats"><restricted-by>pmc</restricted-by></processing-meta><front><journal-meta><journal-id journal-id-type="nlm-journal-id">9208369</journal-id><journal-id journal-id-type="pubmed-jr-id">22236</journal-id><journal-id journal-id-type="nlm-ta">Pharmacoepidemiol Drug Saf</journal-id><journal-id journal-id-type="iso-abbrev">Pharmacoepidemiol Drug Saf</journal-id><journal-title-group><journal-title>Pharmacoepidemiology and drug safety</journal-title></journal-title-group><issn pub-type="ppub">1053-8569</issn><issn pub-type="epub">1099-1557</issn></journal-meta><article-meta><article-id pub-id-type="pmid">39961795</article-id><article-id pub-id-type="pmc">11970256</article-id><article-id pub-id-type="doi">10.1002/pds.70100</article-id><article-id pub-id-type="manuscript">NIHMS2060830</article-id><article-categories><subj-group subj-group-type="heading"><subject>Article</subject></subj-group></article-categories><title-group><article-title>Validation of Immune-Related Adverse Event (irAE) Case Definitions in a Real-World Lung Cancer Population</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>Heyward</surname><given-names>James S.</given-names></name><degrees>MPH</degrees><xref rid="A1" ref-type="aff">1</xref><xref rid="A2" ref-type="aff">2</xref></contrib><contrib contrib-type="author"><name><surname>Segal</surname><given-names>Jodi B.</given-names></name><degrees>MD, MPH</degrees><xref rid="A1" ref-type="aff">1</xref><xref rid="A3" ref-type="aff">3</xref></contrib><contrib contrib-type="author"><name><surname>Mehta</surname><given-names>Hemalkumar B.</given-names></name><degrees>PhD</degrees><xref rid="A1" ref-type="aff">1</xref><xref rid="FN1" ref-type="author-notes">*</xref></contrib><contrib contrib-type="author"><name><surname>Murray</surname><given-names>Joseph C.</given-names></name><degrees>MD, PhD</degrees><xref rid="A4" ref-type="aff">4</xref><xref rid="FN1" ref-type="author-notes">*</xref></contrib></contrib-group><aff id="A1"><label>1</label>Center for Drug Safety and Effectiveness, Johns Hopkins Bloomberg School of Public Health, Baltimore, MD</aff><aff id="A2"><label>2</label>Department of Epidemiology, Johns Hopkins Bloomberg School of Public Health, Baltimore, Maryland</aff><aff id="A3"><label>3</label>Division of General Internal Medicine, Johns Hopkins School of Medicine, Baltimore, MD</aff><aff id="A4"><label>4</label>Sidney Kimmel Comprehensive Cancer Center, Johns Hopkins School of Medicine, Baltimore, MD</aff><author-notes><fn fn-type="con" id="FN1"><label>*</label><p id="P1">Co-senior authors</p></fn><corresp id="CR1">Heyward <email>jheywar1@jhu.edu</email></corresp></author-notes><pub-date pub-type="nihms-submitted"><day>12</day><month>3</month><year>2025</year></pub-date><pub-date pub-type="ppub"><month>2</month><year>2025</year></pub-date><pub-date pub-type="pmc-release"><day>01</day><month>2</month><year>2026</year></pub-date><volume>34</volume><issue>2</issue><fpage>e70100</fpage><lpage>e70100</lpage><abstract id="ABS1"><sec id="S1"><title>Background:</title><p id="P2">Use of real-world data is increasing to examine immune-related adverse event (irAE) incidence and risk factors in immune checkpoint inhibitor (ICI) users. We aimed to validate five case definition algorithms for irAE in a Johns Hopkins lung cancer registry.</p></sec><sec id="S2"><title>Methods:</title><p id="P3">We conducted a retrospective cohort study using linked electronic health record (EHR) and cancer registry data from a large academic healthcare system. The Lung Immunotherapy irAE Monitoring Registry assesses irAEs in a group of patients treated for lung cancer at Johns Hopkins Medicine from 2013 through 2020. We used data from inpatient, outpatient, and emergency department encounters, including ICD- 10 codes and medication administration records to classify the presence or absence of irAEs using five distinct algorithms. These algorithms included three that used both diagnosis (Dx) and medication (Rx) codes, one that used Rx codes only, and one that used Dx codes only, ranging from most numerous criteria (most stringent) to least numerous criteria (least stringent). We compared all five algorithms&#x02019; performances against chart review-ascertained irAE status and reported sensitivity (Se), specificity (Sp), positive predictive value (PPV), negative predictive value (NPV), and C-statistic (C-stat), with 95% confidence intervals (CI). We also explored algorithm performance by specific organ system toxicities and by Common Terminology Criteria for Adverse Events (CTCAE) severity.</p></sec><sec id="S3"><title>Results:</title><p id="P4">The study cohort included 354 patients with ICI exposure for whom chart-review ascertained irAE status was available. A total of 89 (25.1%) experienced at least one irAE (38 pneumonitis, 12 arthritis, 12 colitis, 7 thyroiditis, and others). Across algorithm versions, sensitivity ranged from 59.3% to 93.2% in descending order of algorithm stringency; specificity ranged from 21.0% to 77.6% in ascending order of algorithm stringency, and positive predictive value (PPV) ranged from 19.1% to 34.7%. The c-statistic ranged from 0.57 (95% CI, 0.53 &#x02013; 0.61) (Dx codes only) to 0.71 (0.64 &#x02013; 0.77) (Rx codes only). For severe irAE (CTCAE Grade 3&#x02013;5), all algorithms performed better than in the primary analysis, and four exceeded the threshold for usefulness as a measurement tool (maximum C-stat: 0.78 (0.71 &#x02013; 0.85) (Rx codes only). For severe tissue-specific toxicities, algorithmic detection of irAE pneumonitis, colitis and hepatitis performed better than for the overall group of severe toxicities. Generally, the algorithm versions depicted a sensitivity-specificity tradeoff depending on algorithm stringency.</p></sec><sec id="S4"><title>Conclusion:</title><p id="P5">In this validation study of five irAE case definition algorithms, a combination of ICD-10 codes and medication administration codes generally perform well to identify more severe irAE (CTCAE Grade 3&#x02013;5), and severe pneumonitis, hepatitis, and colitis (common irAEs) among all possible irAE severity levels and sites. Medication codes alone perform well at identifying severe irAE, while the most stringent algorithm (mirroring guideline-recommended irAE treatment) has the highest Sp and PPV. Algorithms have utility for comparing relative risk of irAE between regimens or patient subgroups.</p></sec></abstract><abstract id="ABS2" abstract-type="summary"><title>Plain language summary:</title><p id="P6">Immune-related adverse events (irAE) are a commonly occurring side effect due to the use of immune checkpoint inhibitors (ICI). Because there is no code for irAE, they are difficult to identify in healthcare data. Although researchers use different algorithms to identify irAE, the accuracy of these algorithms is not reported. The authors used electronic health records and cancer registry data from one large health system and evaluated the accuracy of five diagnosis- and medication-code-based algorithms to identify irAE. They found that all algorithms performed well for severe irAE relative to mild and moderate irAE, with medication codes alone algorithms performing well to identify severe irAE cases. This study can help researchers select appropriate algorithms for studies that uses irAE as an outcome.</p></abstract><kwd-group><kwd>Immune checkpoint inhibitors</kwd><kwd>immune-related adverse events</kwd><kwd>lung cancer</kwd><kwd>cancer immunotherapy</kwd><kwd>validation</kwd><kwd>electronic health records</kwd><kwd>case definition algorithm</kwd></kwd-group></article-meta></front><body><sec id="S5"><title>INTRODUCTION</title><p id="P7">Non-small cell lung cancer (NSCLC) is the second most frequently-occurring cancer in the United States (240,000 new cases/year) and is the nation&#x02019;s leading cause of cancer deaths (127,000 deaths/year).<sup><xref rid="R1" ref-type="bibr">1</xref>,<xref rid="R2" ref-type="bibr">2</xref>,<xref rid="R3" ref-type="bibr">3</xref></sup> Immune checkpoint inhibitors (ICIs) received Food and Drug Administration (FDA) approval as second-line therapy in 2014 and were approved for first-line use in 2017.<sup><xref rid="R4" ref-type="bibr">4</xref></sup> ICIs facilitate an anti-tumor immune response by neutralizing T-cell disactivating &#x0201c;immune checkpoint&#x0201d; proteins, specifically cytotoxic T lymphocyte antigen 4 (CTLA-4)&#x02013;CD and programmed cell death 1 (PD-1)/programmed cell death 1 ligand 1 (PD-L1), that are commonly activated by tumor cells, impeding endogenous immune detection.<sup><xref rid="R5" ref-type="bibr">5</xref>,<xref rid="R6" ref-type="bibr">6</xref></sup></p><p id="P8">Beyond intended anti-tumor effects, the immune dysregulation caused by ICIs diminishes self-tolerance and leads to immune-related adverse events (irAE). More than 70% of patients experience these adverse events, and 10% develop severe irAEs.<sup><xref rid="R7" ref-type="bibr">7</xref></sup> IrAE can affect every tissue and organ system, although the site, timing, and severity of events differ by the specific ICI molecule and cancer type. Severe irAEs among treated individuals with NSCLC include pneumonitis, colitis, myocarditis, and hepatitis, and often lead to temporary or permanent withdrawal of the ICI therapy.<sup><xref rid="R8" ref-type="bibr">8</xref></sup> While irAEs are typically recorded as adverse outcomes in clinical trials of ICI therapies, trials are often short, enroll small number of individuals, and conventionally exclude individuals with underlying autoimmune disorders and individuals with multiple comorbidities who may be at greater risk of severe irAE. Real-world data (RWD), such as billing data or electronic health record data, can complement clinical trial data by including broader populations, more observations, and longer follow-up, which enable more robust measurement of irAE, including among subgroups excluded from clinical trials.</p><p id="P9">However, because there are no International Classification of Disease (ICD)-10 diagnosis codes for irAE, the occurrence of irAE must be deduced based on other diagnosis and procedure codes, and perhaps pharmacy records and clinician notes, temporally associated with exposure to treatment.<sup><xref rid="R9" ref-type="bibr">9</xref>,<xref rid="R10" ref-type="bibr">10</xref>,<xref rid="R11" ref-type="bibr">11</xref></sup> Despite this challenge, RWD sources have been used to assess the benefits and side effects of ICIs, particularly to evaluate patient populations not well represented in randomized controlled trials.<sup><xref rid="R9" ref-type="bibr">9</xref>,<xref rid="R10" ref-type="bibr">10</xref>,<xref rid="R12" ref-type="bibr">12</xref>,<xref rid="R13" ref-type="bibr">13</xref>,<xref rid="R14" ref-type="bibr">14</xref>,<xref rid="R15" ref-type="bibr">15</xref>,<xref rid="R16" ref-type="bibr">16</xref></sup> Researchers have primarily used three algorithms to identify irAEs with RWD.<sup><xref rid="R9" ref-type="bibr">9</xref>,<xref rid="R12" ref-type="bibr">12</xref>,<xref rid="R15" ref-type="bibr">15</xref></sup> However, no study has assessed the accuracy of these irAE case definitions. We aimed to validate case definitions for irAE in a large health system&#x02019;s irAE monitoring registry. We validated one existing and four modified irAE case definitions. A valid case definition will allow more reliable future studies of the safety of these therapies.</p></sec><sec id="S6"><title>METHODS</title><p id="P10">We conducted a retrospective study using chart review as the reference standard to validate algorithms for identifying irAE. Institutional review board (IRB) approval was received for this study. Informed consent was waived due to minimal risk of harm to subjects, and data were de-identified.</p><sec id="S7"><title>Data Sources</title><p id="P11">We accessed data from a single healthcare system having linked electronic health records (EHR) and registry data. Data from the parent Johns Hopkins Thoracic Oncology Precision Medicine Center of Excellence (PMCOE) Registry were derived from the Precision Medicine Analytics Platform (PMAP), which is a local common data model designed to facilitate use of our health systems&#x02019; EHR data, and other imported data, for research and care improvement.<sup><xref rid="R17" ref-type="bibr">17</xref></sup> Data derived from EHR included laboratory and radiology orders and results; clinical characteristics of diagnosed and treated cancers; sociodemographic and clinical data of patients; inpatient and outpatient medication utilization (pharmacy data); and billing diagnosis and procedure codes. (IRB00303251). This information was linked via common patient identifiers to The Lung Immunotherapy irAE Monitoring Registry (JH-irAE monitoring registry; IRB00355453), a prospective registry that assesses irAE in patients treated for lung cancer at Johns Hopkins Medicine. The JH-irAE monitoring registry was curated by review of all patients enrolled between 2013&#x02013;2020 for adjudication of irAEs by physician specialists (oncologists, rheumatologists, endocrinologists, gastroenterologists, dermatologists, and more) who were also part of the multidisciplinary Immunotherapy Toxicity Team that also provided clinical guidance for patients who developed irAEs. The irAE monitoring registry is maintained using the REDCap online database management software.<sup><xref rid="R18" ref-type="bibr">18</xref>,<xref rid="R19" ref-type="bibr">19</xref></sup></p></sec><sec id="S8"><title>Study Cohort</title><p id="P12">We included adults (age &#x0003e;=18 years) with lung cancer who received care at one of six hospitals and one outpatient center in Maryland and the District of Columbia between 2013 and 2020. Individuals were included in this study if they were in the irAE monitoring registry and had at least one record indicating receipt of ICI at Johns Hopkins Medicine no later than October 1, 2020. We excluded individuals with COVID-19 infection diagnosed at in a health system hospital as acute COVID-19 can resemble irAE pneumonitis in the EHR data (<xref rid="SD1" ref-type="supplementary-material">eFigure 1</xref>). We made no exclusions based on treatment regimen.</p></sec><sec id="S9"><title>Reference Standard Chart-Review Ascertained Definition of irAE</title><p id="P13">Registry investigators identified irAE based on a hierarchical protocol.<sup><xref rid="R20" ref-type="bibr">20</xref></sup> The registry prioritizes pathologic confirmation of irAE, followed by evidence of clinical improvement with medical management of irAE, or if neither of these were available, multidisciplinary consensus based on chart review by at least two medical oncologists and one specialist from a relevant subspecialty. Pathologic confirmation included laboratory (e.g., endocrinology lab results, or other specialty specific testing) and/or histological (e.g., colon or renal biopsy) confirmation. Radiographic confirmation was not commonly available, but commented on in review of some of the irAEs (e.g., pneumonitis). Clinical improvement was assessed based on use of irAE-directed therapies (e.g., corticosteroids). Consensus was required when cases were equivocal beyond laboratory or pathological diagnosis, and included subspecialists. IrAE were further categorized by the registry investigators according to the confidence of attribution of symptoms to irAE on a scale from 1 (definitely related) to 3 (unrelated), the specific diagnosis (e.g. pneumonitis or cardiomyopathy), and according to severity on the Common Terminology Criteria for Adverse Events (CTCAE) v4.0 scale (0 [no symptoms]-5 [fatal]).</p><p id="P14">The presence of registry-confirmed irAE of confidence level 1 or 2 was our reference standard (or gold standard) definition of irAE. For our analyses, we restricted true positive cases to the toxicities in 10 anatomical domains (cardiovascular, endocrine, pulmonary, nervous system, gastrointestinal, skin, hematologic, musculoskeletal, ocular, and renal) (<xref rid="SD1" ref-type="supplementary-material">eTable 1</xref>).<sup><xref rid="R9" ref-type="bibr">9</xref></sup> IrAE ascertainment is complete through October 23, 2020.</p></sec><sec id="S10"><title>Five Algorithm Derived Definitions of irAEs</title><p id="P15">We tested five irAE case definition algorithms in the validation dataset. We adapted one published irAE case definition algorithm and further developed four others, relying on data elements relevant to identification and management of irAE according to clinical guidelines (<xref rid="T1" ref-type="table">Table 1</xref>/<xref rid="SD1" ref-type="supplementary-material">eTable 2</xref>). One of the four algorithms was developed to assess severe irAE only. The algorithms included inpatient, outpatient and emergency department diagnosis ICD-10 codes; inpatient medication administration data, or both. For algorithm version &#x0201c;Dx/Rx&#x0201d;, we adapted a published irAE case definition that includes relevant diagnosis codes based on National Comprehensive Cancer Network (NCCN)/American Society of Clinical Oncology (ASCO) Guidelines,<sup><xref rid="R21" ref-type="bibr">21</xref></sup> along with pharmacy records indicating the use of NCCN/ASCO-recommended medications for treatment of the irAE within 40 days before or after the diagnosis date. The rationale for the criteria for the definitions was based on the published irAE case definition and data readily available from the EHR. General diagnosis codes and medication administration data were both available. For our adapted case definition, the specific ICD-10 diagnosis codes corresponding to toxicities in the published case definition were selected based on physician expertise, and irAE medications and dosages of interest were chosen based on the referenced clinical practice guidelines. Given that ICI administrations are scheduled on 14 or 28 days (two or four weeks) cycles for nivolumab and durvalumab, and 21 or 42 days (three or six weeks) cycles for pembrolizumab, the choice of within 40 days before or after irAE diagnosis suggests that the corticosteroid was dosed within one or two cycles of irAE diagnosis. We modified, added, or removed requirements, relative to version &#x0201c;Dx/Rx&#x0201d;, for the four other algorithm versions (<xref rid="T1" ref-type="table">Table 1</xref>/<xref rid="SD1" ref-type="supplementary-material">eFigure 2</xref>).</p></sec><sec id="S11"><title>Statistical Analyses</title><p id="P16">We used descriptive statistics to characterize patients with and without irAE based on the reference standard. For the primary analyses, we compared the algorithms&#x02019; performances against reference irAE status and reported sensitivity (Se), specificity (Sp), positive predictive value (PPV), negative predictive value (NPV), and C-statistic, with 95% confidence intervals (CI), for each algorithm. The C-statistic, a measure of algorithm discrimination, is defined as the probability that the algorithm will correctly differentiate irAE status for two individuals with and without irAE.<sup><xref rid="R22" ref-type="bibr">22</xref></sup> We calculated 95% CI based on the standard error of each statistic (sensitivity (Se), specificity (Sp), positive predictive value (PPV), negative predictive value (NPV)) and with bootstrapping (C-statistic (C-stat)). For our primary analysis, we used the C-statistic to test for differences in performance of the algorithms.</p></sec><sec id="S12"><title>Characterizing False Negative and False Positive Occurrences</title><p id="P17">We characterized false negative and false positive irAE from algorithm version &#x0201c;Dx/Rx&#x0201d; to understand the factors associated with algorithm misclassifications.</p></sec><sec id="S13"><title>Sub-analyses</title><p id="P18">We performed two secondary validation sub-studies; the first assessed the accuracy of the irAE algorithms to detect severe irAE (i.e., those classified by registry physicians as CTCAE Grade 3 or higher) and the second assessed the algorithms&#x02019; performances for identifying the most prevalent severe irAE (pneumonitis, colitis, and hepatitis). For these analyses, we restricted the reference standard (&#x0201c;true positives&#x0201d;) and algorithm ICD-10 codes accordingly. The Dx/Rx (discontinue) algorithm was used exclusively for the sub-analyses, due to its emulation of guideline-recommended management of severe irAE, but not mild/moderate irAE. The choice of &#x0003e;60 days of no ICI administration generally aligns with missing at least two cycles of treatment. The authors of the published case definition also used &#x0003e;60 days of no ICI administration to define treatment discontinuation in their analysis of irAE-related outcomes.<sup><xref rid="R9" ref-type="bibr">9</xref></sup></p></sec></sec><sec id="S14"><title>RESULTS</title><sec id="S15"><title>Validation Patient Population</title><p id="P19">There were 354 individuals in the irAE monitoring registry with confirmed exposure to ICI therapy who were not diagnosed with COVID-19 during the time period of irAE ascertainment (<xref rid="SD1" ref-type="supplementary-material">eFigure 1</xref>). The study cohort was 52% male and 79% White, with a mean age of 65.8 &#x000b1; 9.8 years (<xref rid="T2" ref-type="table">Table 2</xref>). Index dates ranged from 2015&#x02013;2020, with most between 2017&#x02013;2019 (<xref rid="SD1" ref-type="supplementary-material">eTable 3</xref>).</p></sec><sec id="S16"><title>Reference Standard: Chart Review-Ascertained irAE</title><p id="P20">Among the 354 patients, 89 experienced at least one chart review-ascertained irAE, including 63 patients with 1 irAE, 16 patients with 2 irAEs, 9 patients with 3 irAEs; and 1 patient with 4 irAEs. There were 38 irAEs coded as pneumonitis, 12 as arthritis, 12 as colitis, 7 as thyroiditis, 6 as maculopapular eruption, and 3 as hepatitis, with other toxicities less frequent (<xref rid="F1" ref-type="fig">Figure 1</xref>). Additionally, 26 irAEs were coded as &#x0201c;other&#x0201d;, meaning the symptoms were not deemed to match a single diagnosis. Severity varied, with 3 irAEs coded as &#x0201c;no symptoms&#x0201d; (0), 27 as &#x0201c;mild&#x0201d; (1), 46 as &#x0201c;moderate&#x0201d; (2), 35 as &#x0201c;severe&#x0201d; (3), 8 as &#x0201c;life threatening&#x0201d; (4), 6 as &#x0201c;fatal&#x0201d; (5), and one was unclassified. &#x0201c;No symptoms&#x0201d; irAEs were thyroiditis cases, ostensibly ascertained from laboratory values; the unclassified irAE was pneumonitis. In total, 56 of the chart review-ascertained irAE cases (44.4%) required subspecialty consultation.</p></sec><sec id="S17"><title>Algorithm Performance</title><sec id="S18"><title>All irAE</title><p id="P21">For the four algorithms used in the main analysis, sensitivity ranged from 59.3% (CI:46.8&#x02013;71.8) to 93.2% (CI: 86.8&#x02013;99.6) in descending order of algorithm stringency, while specificity ranged from 21.0% (CI: 16.4&#x02013;25.6) to 77.6% (CI: 72.8&#x02013;82.4) in ascending order of algorithm stringency. PPV was low and ranged from 19.1% (CI: 14.6&#x02013;23.6) to 28.1% (CI: 20.1&#x02013;36.1), with a positive correlation with algorithm stringency (<xref rid="T3" ref-type="table">Table 3</xref>). Among the two algorithms requiring both ICD-10 and medication administration codes, the difference in performance between the less stringent (Dx/Rx relaxed) and more stringent (Dx/Rx) was modest: sensitivity (62.7% vs. 59.3%); specificity (74.6% vs. 77.6%); and PPV (33.0% vs. 34.7%). Comparing the two least stringent algorithms, Rx only had much lower sensitivity (69.5% vs. 93.2%) but much higher specificity (72.2% vs. 21.0%), and PPV (33.3% vs. 19.1%).</p><p id="P22">The C-statistic was highest for the Rx only algorithm (0.71) (CI: 0.64&#x02013;0.77) and lowest for Dx only (0.57) (CI: 0.53&#x02013;0.61).</p></sec><sec id="S19"><title>Severe irAE</title><p id="P23">We included a fifth algorithm (Dx/Rx [discontinue]) in the sub-analyses assessing severe irAE only. Relative to the primary analysis, the algorithms performed better at identifying severe irAE (CTCAE Grade 3 or higher) in the dataset, with sensitivity generally higher across algorithms (range: 72.4% [CI: 56.1&#x02013;88.7] to 86.2% [CI: 73.6&#x02013;98.8]) and specificity similar (range: 19.1% [CI: 14.8&#x02013;23.4] to 76.9% [CI: 72.3&#x02013;81.5]) and the rank order of algorithms was preserved from the primary analysis. Owing to increased rarity of the outcome (severe only), the PPV was lower (range: 8.7% [CI: 5.4&#x02013;12.0] to 21.9% [CI: 13.6&#x02013;30.2]). The C-statistic for four of the algorithms exceeded 0.70, with Rx only (0.78) (CI: 0.71&#x02013;0.85) the highest and Dx only (0.53) (CI: 0.50&#x02013;0.59) the lowest.</p></sec><sec id="S20"><title>Severe organ-specific irAE</title><p id="P24">The sensitivity of the algorithms for measurement of severe organ-specific irAE (pneumonitis, colitis, and hepatitis) was similar to severe irAE (range: 70.4% [CI: 53.2&#x02013;87.6] to 85.2% [CI: 71.8&#x02013;98.6]), with higher specificity (range: 66.7% [CI: 61.6&#x02013;71.8] to 90.8% [CI: 87.7&#x02013;93.9]), and higher PPV (range: 16.2% [CI: 9.9&#x02013;22.5] to 38.8% [CI: 25.2&#x02013;52.4]). The C-statistic for all of the algorithms exceeded 0.70, with Dx/Rx (discontinue) the highest (0.81) (CI 0.72&#x02013;0.89) and Dx only the lowest (0.72) (CI 0.63&#x02013;0.80).</p></sec><sec id="S21"><title>False negatives</title><p id="P25">Twenty-four patients experienced 29 irAE that were not identified with the Dx/Rx algorithm. By severity, 18/29 (62%) of false negative irAE were CTCAE Grade 2 (moderate) or lower, compared with 29/59 (49%) of the irAE true positive. Among the false negative irAE that were CTCAE Grade 3 (severe) or higher, many were missing a record of treatment for the irAE in the PMAP medication administration data. The frequency and severity of false negative irAE diagnoses was similar to the distribution in the whole validation population.</p></sec><sec id="S22"><title>False positives</title><p id="P26">Sixty-six patients were identified as having 106 false positive irAE, including 35 thyroiditis; 21 pneumonitis; 14 diabetes; 11 rash; 8 adrenal insufficiency; 4 aplastic anemia; 4 cardiac arrhythmia; 3 colitis; 2 hepatitis; 1 each of encephalitis, renal dysfunction; eye pain; and Crohn&#x02019;s disease. Most false positive thyroiditis cases were due to use of levothyroxine in proximity to a hypothyroidism diagnosis. These false positives were generally related to pre-existing conditions, or cases in which symptoms were treated like irAE, but later attributed to other causes (e.g. radiation-related pneumonitis).</p></sec></sec></sec><sec id="S23"><title>DISCUSSION</title><p id="P27">In this validation study, we identified EHR-based algorithms that are sufficiently valid for identifying individuals who had severe irAE (CTCAE Grade 3&#x02013;5). The algorithms generally performed poorly in individuals with mild/moderate irAE. Differential algorithm validity by irAE severity likely stems from the fact that four of the five algorithms required medication codes, which align with guideline-recommended treatment of severe, but not necessarily moderate or mild irAEs. For this reason, too, the Dx code-only algorithm had a much poorer C-statistic for assessing severe irAE than other algorithm versions, though it appeared sufficient for identifying common, &#x0201c;high-confidence&#x0201d; severe irAE.</p><p id="P28">For all algorithm versions and irAE severity levels, algorithm PPV was low, indicating that a majority of irAE toxicities identified using the algorithms were not identified as true cases by clinician chart reviewers. This surprisingly low proportion arises from the relatively low incidence of irAE in the validation population and the imperfect specificity of the algorithms (maximum: 90.8% for the most stringent algorithm in one sub-analysis). In the context of real-world clinical management of irAE, the low PPV also reflects the tendency to treat suspected irAE early using guideline-recommended treatments before a definitive diagnosis is made. Many of these may have been later deemed to be due to another cause. This practice was evident in the irAE registry&#x02019;s irAE ascertainment protocol, whereby evidence of improvement after pharmacologic irAE treatment was taken as indicative that the symptoms had been caused by irAE. It is plausible, then, that the low PPV is an artifact of this clinical uncertainty in the early stages of irAE.</p><p id="P29">Across the main and sub-analyses, the Rx only algorithm outperformed other algorithm versions as assessed using the C-statistic, including being the only algorithm to exceed 0.70 for the overall analysis. This case definition is relatively simple to implement, and appears sufficient to identify patients with severe irAE, relative to other, more complex case definitions. However, given the range of sensitivity and specificities, the algorithms may have different use cases. First, in a clinical research context, where there is interest in identifying &#x0201c;true&#x0201d; irAE to assess etiology and risk factors, the highest specificity algorithm (Dx/Rx Discontinue) might prove most useful. Second, in health care planning, the algorithm with the highest sensitivity will detect most completely all affected patients. Therefore, Dx only or Rx only depending on irAE severity may be more useful. Third, the Dx-only case definition, having a high sensitivity and high NPV, could be useful to identify patients potentially in need of chart review and outcome adjudication in order to inform potential follow-up care for irAE.<sup><xref rid="R23" ref-type="bibr">23</xref></sup> Fourth, the irAE case definition algorithms could also prove useful in real-world studies comparing the risks across ICI-containing regimens, across patient subgroups, or to measure changes in risk over time, assuming that outcome misclassification is nondifferential across those settings. An imperfectly calibrated measurement tool, while potentially unsuitable to estimate true incidence rates, may be used to contrast irAE, for example, for calculating risk ratios and other measures of association.</p><p id="P30">Validated irAE case definition algorithms could also be implemented in predictive models aimed at prognosticating the risk of irAE toxicity in ICI-eligible patients. Such predictive models would be valuable to aid clinical decision-making, such as by informing knowledge of individualized risk-benefit balance of ICI<sup><xref rid="R24" ref-type="bibr">24</xref></sup> or prospectively identifying risk factors for severe irAE.<sup><xref rid="R15" ref-type="bibr">15</xref></sup> In this context, the specific goal of the prediction study would inform the choice of algorithm; but a more sensitive algorithm may result in patients erroneously being classified as high-risk (disadvantageous when follow-up is invasive and/or expensive), while a more specific algorithm might correctly identify irAE-prone patients at the cost of missing some cases (costly when preventing irAE is of predominating concern).</p><p id="P31">Our study has several strengths. This is the first study to validate EHR-derived case definitions for irAE, which is important given the growing number of studies using EHR and other RWD to assess this important clinical endpoint. The protocol for ascertaining true cases was rigorous, guideline-based, and implemented by an experienced clinical team.<sup><xref rid="R23" ref-type="bibr">23</xref></sup> We relied on data fields that are available in administrative claims data, enabling the implementation of these irAE algorithms across other data sources. The study also has limitations. Our validation population included research patients in clinical trials, which may not be generalizable to the broader real-world use population. We also excluded patients with a diagnosis of COVID-19, limiting generalizability in settings where this diagnosis is likely to be prevalent. We used only one health system&#x02019;s data, which may not generalize to all patients and settings of care. We used diagnosis and medication codes only, as opposed to other EHR-available fields such as laboratory and radiology results for rule-out diagnoses, which may have improved algorithm performance. Unstructured clinical notes, in addition, contain important data that can be parsed by natural language processing models in settings such as this one, where diagnostic uncertainty is high.<sup><xref rid="R25" ref-type="bibr">25</xref></sup> Diagnosis codes alone can be unreliable to ascertain specific conditions, as signs and symptoms are possibly coded differentially depending on the presentation and billable medical care received (e.g., &#x0201c;hypoxic respiratory failure&#x0201d; instead of &#x0201c;pneumonitis&#x0201d;). Diagnosis codes also may not be consistently entered into EHR, leading to under-ascertainment of cases using this field alone. We used EHR medication administration records, which reflect medications administered by a nurse or other provider in an inpatient setting, as opposed to outpatient medications taken at home. This choice of data source may have caused us to miss mild cases that could be treated outside the hospital. Finally, although our EHR-based case definition is inter-operable with claims data, algorithm performance may differ when implemented in claims due to differential granularity of inpatient care records when relying on claims (e.g., due to diagnosis-related group (DRG)-based coding of inpatient admissions).</p></sec><sec id="S24"><title>CONCLUSIONS</title><p id="P32">IrAE case definition algorithms using both diagnosis and medication codes perform best at identifying severe irAEs (CTCAE Grade 3&#x02013;5), and commonly encountered irAEs such as pneumonitis, colitis, and hepatitis. IrAE thyroiditis, which is common and most often low-risk, appears to be unreliably measured using these algorithms. Ultimately, analyses can be adjusted according to known measurement error in irAE case definitions,<sup><xref rid="R26" ref-type="bibr">26</xref>,<xref rid="R27" ref-type="bibr">27</xref></sup> and algorithms have utility for comparing relative risk of irAE between ICI regimens or between patient subgroups.</p></sec><sec sec-type="supplementary-material" id="SM1"><title>Supplementary Material</title><supplementary-material id="SD1" position="float" content-type="local-data"><label>Supplemental material (online only)</label><media xlink:href="NIHMS2060830-supplement-Supplemental_material__online_only_.docx" id="d67e402" position="anchor"/></supplementary-material></sec></body><back><ack id="S25"><title>Acknowledgements:</title><p id="P33">We would like to acknowledge annotating contributors to the Johns Hopkins Lung Immunotherapy Database, including: Dr. Jenna Mammen, Dr. Jarushka Naidoo, Dr. Laura Cappelli. We also acknowledge the Thoracic Oncology Precision Medicine Center of Excellence personnel, in particular Durrant Burasa for his support with data access.</p><p id="P34">Funding: Dr. Mehta is supported by the National Institute on Aging (1K01AG070329). Mr. Heyward is supported by the National Heart, Lung and Blood Institute (T32HL139426). Dr. Murray is supported by the Center for Disease Control (NU01DD000025), National Cancer Institute (P30CA006973), Maryland Cigarette Restitution Fund, and Johns Hopkins inHealth Program.</p></ack><fn-group><fn fn-type="COI-statement" id="FN2"><p id="P35">Conflict of Interest Statement: All authors disclose no conflicts of interests.</p></fn><fn id="FN3"><p id="P36">Ethics statement: This study was reviewed by and received approval from the Johns Hopkins Medical Institutions IRB (IRB00303251 &#x00026; IRB00355453).</p></fn></fn-group><ref-list><title>References</title><ref id="R1"><label>1.</label><mixed-citation publication-type="journal"><article-title>Cancer of the Lung and Bronchus - Cancer Stat Facts</article-title>. <source>SEER</source>. <date-in-citation>Accessed February 4, 2022</date-in-citation>. <comment><ext-link xlink:href="https://seer.cancer.gov/statfacts/html/lungb.html" ext-link-type="uri">https://seer.cancer.gov/statfacts/html/lungb.html</ext-link></comment></mixed-citation></ref><ref id="R2"><label>2.</label><mixed-citation publication-type="journal"><name><surname>Suresh</surname><given-names>K</given-names></name>, <name><surname>Naidoo</surname><given-names>J</given-names></name>, <name><surname>Lin</surname><given-names>CT</given-names></name>, <name><surname>Danoff</surname><given-names>S</given-names></name>. <article-title>Immune Checkpoint Immunotherapy for Non-Small Cell Lung Cancer</article-title>. <source>Chest</source>. <year>2018</year>;<volume>154</volume>(<issue>6</issue>):<fpage>1416</fpage>&#x02013;<lpage>1423</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.chest.2018.08.1048</pub-id><pub-id pub-id-type="pmid">30189190</pub-id>
</mixed-citation></ref><ref id="R3"><label>3.</label><mixed-citation publication-type="journal"><name><surname>Duma</surname><given-names>N</given-names></name>, <name><surname>Santana-Davila</surname><given-names>R</given-names></name>, <name><surname>Molina</surname><given-names>JR</given-names></name>. <article-title>Non-Small Cell Lung Cancer: Epidemiology, Screening, Diagnosis, and Treatment</article-title>. <source>Mayo Clin Proc</source>. <year>2019</year>;<volume>94</volume>(<issue>8</issue>):<fpage>1623</fpage>&#x02013;<lpage>1640</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.mayocp.2019.01.013</pub-id><pub-id pub-id-type="pmid">31378236</pub-id>
</mixed-citation></ref><ref id="R4"><label>4.</label><mixed-citation publication-type="journal"><name><surname>Onoi</surname><given-names>K</given-names></name>, <name><surname>Chihara</surname><given-names>Y</given-names></name>, <name><surname>Uchino</surname><given-names>J</given-names></name>, <etal/>
<article-title>Immune Checkpoint Inhibitors for Lung Cancer Treatment: A Review</article-title>. <source>J Clin Med</source>. <year>2020</year>;<volume>9</volume>(<issue>5</issue>):<fpage>1362</fpage>. doi:<pub-id pub-id-type="doi">10.3390/jcm9051362</pub-id><pub-id pub-id-type="pmid">32384677</pub-id>
</mixed-citation></ref><ref id="R5"><label>5.</label><mixed-citation publication-type="journal"><name><surname>Coschi</surname><given-names>CH</given-names></name>, <name><surname>Juergens</surname><given-names>RA</given-names></name>. <article-title>The Price of Success: Immune-Related Adverse Events from Immunotherapy in Lung Cancer</article-title>. <source>Curr Oncol</source>. <year>2021</year>;<volume>28</volume>(<issue>6</issue>):<fpage>4392</fpage>&#x02013;<lpage>4407</lpage>. doi:<pub-id pub-id-type="doi">10.3390/curroncol28060373</pub-id><pub-id pub-id-type="pmid">34898551</pub-id>
</mixed-citation></ref><ref id="R6"><label>6.</label><mixed-citation publication-type="journal"><name><surname>Martins</surname><given-names>F</given-names></name>, <name><surname>Sofiya</surname><given-names>L</given-names></name>, <name><surname>Sykiotis</surname><given-names>GP</given-names></name>, <etal/>
<article-title>Adverse effects of immune-checkpoint inhibitors: epidemiology, management and surveillance</article-title>. <source>Nat Rev Clin Oncol</source>. <year>2019</year>;<volume>16</volume>(<issue>9</issue>):<fpage>563</fpage>&#x02013;<lpage>580</lpage>. doi:<pub-id pub-id-type="doi">10.1038/s41571-019-0218-0</pub-id><pub-id pub-id-type="pmid">31092901</pub-id>
</mixed-citation></ref><ref id="R7"><label>7.</label><mixed-citation publication-type="journal"><name><surname>Fan</surname><given-names>Y</given-names></name>, <name><surname>Xie</surname><given-names>W</given-names></name>, <name><surname>Huang</surname><given-names>H</given-names></name>, <etal/>
<article-title>Association of Immune Related Adverse Events With Efficacy of Immune Checkpoint Inhibitors and Overall Survival in Cancers: A Systemic Review and Meta-analysis</article-title>. <source>Front Oncol</source>. <year>2021</year>;<volume>11</volume>:<fpage>633032</fpage>. doi:<pub-id pub-id-type="doi">10.3389/fonc.2021.633032</pub-id><pub-id pub-id-type="pmid">33912454</pub-id>
</mixed-citation></ref><ref id="R8"><label>8.</label><mixed-citation publication-type="journal"><name><surname>Choi</surname><given-names>J</given-names></name>, <name><surname>Lee</surname><given-names>SY</given-names></name>. <article-title>Clinical Characteristics and Treatment of Immune-Related Adverse Events of Immune Checkpoint Inhibitors</article-title>. <source>Immune Netw</source>. <year>2020</year>;<volume>20</volume>(<issue>1</issue>):<fpage>e9</fpage>. doi:<pub-id pub-id-type="doi">10.4110/in.2020.20.e9</pub-id><pub-id pub-id-type="pmid">32158597</pub-id>
</mixed-citation></ref><ref id="R9"><label>9.</label><mixed-citation publication-type="journal"><name><surname>Brown</surname><given-names>VT</given-names></name>, <name><surname>Antol</surname><given-names>DD</given-names></name>, <name><surname>Racsa</surname><given-names>PN</given-names></name>, <name><surname>Ward</surname><given-names>MA</given-names></name>, <name><surname>Naidoo</surname><given-names>J</given-names></name>. <article-title>Real-World Incidence and Management of Immune-Related Adverse Events from Immune Checkpoint Inhibitors: Retrospective Claims-Based Analysis</article-title>. <source>Cancer Invest</source>. <year>2021</year>;<volume>39</volume>(<issue>10</issue>):<fpage>789</fpage>&#x02013;<lpage>796</lpage>. doi:<pub-id pub-id-type="doi">10.1080/07357907.2021.1913502</pub-id><pub-id pub-id-type="pmid">33829943</pub-id>
</mixed-citation></ref><ref id="R10"><label>10.</label><mixed-citation publication-type="journal"><name><surname>Petito</surname><given-names>LC</given-names></name>, <name><surname>Garc&#x000ed;a-Alb&#x000e9;niz</surname><given-names>X</given-names></name>, <name><surname>Logan</surname><given-names>RW</given-names></name>, <etal/>
<article-title>Estimates of Overall Survival in Patients With Cancer Receiving Different Treatment Regimens: Emulating Hypothetical Target Trials in the Surveillance, Epidemiology, and End Results (SEER)&#x02013;Medicare Linked Database</article-title>. <source>JAMA Netw Open</source>. <year>2020</year>;<volume>3</volume>(<issue>3</issue>):<fpage>e200452</fpage>. doi:<pub-id pub-id-type="doi">10.1001/jamanetworkopen.2020.0452</pub-id><pub-id pub-id-type="pmid">32134464</pub-id>
</mixed-citation></ref><ref id="R11"><label>11.</label><mixed-citation publication-type="journal"><name><surname>Sun</surname><given-names>VH</given-names></name>, <name><surname>Heemelaar</surname><given-names>JC</given-names></name>, <name><surname>Hadzic</surname><given-names>I</given-names></name>, <etal/>
<article-title>Enhancing Precision in Detecting Severe Immune-Related Adverse Events: Comparative Analysis of Large Language Models and International Classification of Disease Codes in Patient Records</article-title>. <source>J Clin Oncol</source>. <comment>Published online</comment>
<month>September</month>
<day>3</day>, <year>2024</year>:<fpage>JCO.24.00326</fpage>. doi:<pub-id pub-id-type="doi">10.1200/JCO.24.00326</pub-id></mixed-citation></ref><ref id="R12"><label>12.</label><mixed-citation publication-type="journal"><name><surname>Tully</surname><given-names>KH</given-names></name>, <name><surname>Cone</surname><given-names>EB</given-names></name>, <name><surname>Cole</surname><given-names>AP</given-names></name>, <etal/>
<article-title>Risk of Immune-related Adverse Events in Melanoma Patients With Preexisting Autoimmune Disease Treated With Immune Checkpoint Inhibitors: A Population-based Study Using SEER-Medicare Data</article-title>. <source>Am J Clin Oncol</source>. <year>2021</year>;<volume>44</volume>(<issue>8</issue>):<fpage>413</fpage>&#x02013;<lpage>418</lpage>. doi:<pub-id pub-id-type="doi">10.1097/COC.0000000000000840</pub-id><pub-id pub-id-type="pmid">34081033</pub-id>
</mixed-citation></ref><ref id="R13"><label>13.</label><mixed-citation publication-type="journal"><name><surname>Almutairi</surname><given-names>AR</given-names></name>, <name><surname>Slack</surname><given-names>M</given-names></name>, <name><surname>Erstad</surname><given-names>BL</given-names></name>, <name><surname>McBride</surname><given-names>A</given-names></name>, <name><surname>Abraham</surname><given-names>I</given-names></name>. <article-title>Association of immune-checkpoint inhibitors and the risk of immune-related colitis among elderly patients with advanced melanoma: real-world evidence from the SEER&#x02013;Medicare database</article-title>. <source>Ther Adv Drug Saf</source>. <year>2021</year>;<volume>12</volume>:<fpage>2042098621991279</fpage>. doi:<pub-id pub-id-type="doi">10.1177/2042098621991279</pub-id><pub-id pub-id-type="pmid">33796257</pub-id>
</mixed-citation></ref><ref id="R14"><label>14.</label><mixed-citation publication-type="journal"><name><surname>Anjohrin</surname><given-names>S</given-names></name>, <name><surname>Sheahan</surname><given-names>A</given-names></name>, <name><surname>Suruki</surname><given-names>R</given-names></name>, <name><surname>Stark</surname><given-names>JL</given-names></name>, <name><surname>Sloan</surname><given-names>VS</given-names></name>. <article-title>Occurrence of Possible Rheumatologic Immune-Related Adverse Events (rh-irAEs) Associated with Immune Checkpoint Inhibitor (ICI) Therapy</article-title>. <source>Rheumatol Ther</source>. <year>2021</year>;<volume>8</volume>(<issue>4</issue>):<fpage>1651</fpage>&#x02013;<lpage>1659</lpage>. doi:<pub-id pub-id-type="doi">10.1007/s40744-021-00359-z</pub-id><pub-id pub-id-type="pmid">34491550</pub-id>
</mixed-citation></ref><ref id="R15"><label>15.</label><mixed-citation publication-type="journal"><name><surname>Kalinich</surname><given-names>M</given-names></name>, <name><surname>Murphy</surname><given-names>W</given-names></name>, <name><surname>Wongvibulsin</surname><given-names>S</given-names></name>, <etal/>
<article-title>Prediction of severe immune-related adverse events requiring hospital admission in patients on immune checkpoint inhibitors: study of a population level insurance claims database from the USA</article-title>. <source>J Immunother Cancer</source>. <year>2021</year>;<volume>9</volume>(<issue>3</issue>):<fpage>e001935</fpage>. doi:<pub-id pub-id-type="doi">10.1136/jitc-2020-001935</pub-id><pub-id pub-id-type="pmid">33789879</pub-id>
</mixed-citation></ref><ref id="R16"><label>16.</label><mixed-citation publication-type="journal"><name><surname>Zheng</surname><given-names>Y</given-names></name>, <name><surname>Kim</surname><given-names>R</given-names></name>, <name><surname>Yu</surname><given-names>T</given-names></name>, <etal/>
<article-title>Real-World Clinical and Economic Outcomes in Selected Immune-Related Adverse Events Among Patients with Cancer Receiving Immune Checkpoint Inhibitors</article-title>. <source>The Oncologist</source>. <year>2021</year>;<volume>26</volume>(<issue>11</issue>):<fpage>e2002</fpage>&#x02013;<lpage>e2012</lpage>. doi:<pub-id pub-id-type="doi">10.1002/onco.13918</pub-id><pub-id pub-id-type="pmid">34327774</pub-id>
</mixed-citation></ref><ref id="R17"><label>17.</label><mixed-citation publication-type="journal"><source>Precision Medicine Analytics Platform (PMAP) &#x02013; Institute for Clinical and Translational Research</source>. <date-in-citation>Accessed July 25, 2023</date-in-citation>. <comment><ext-link xlink:href="https://ictr.johnshopkins.edu/service/informatics/pmap/" ext-link-type="uri">https://ictr.johnshopkins.edu/service/informatics/pmap/</ext-link></comment></mixed-citation></ref><ref id="R18"><label>18.</label><mixed-citation publication-type="journal"><name><surname>Harris</surname><given-names>PA</given-names></name>, <name><surname>Taylor</surname><given-names>R</given-names></name>, <name><surname>Minor</surname><given-names>BL</given-names></name>, <etal/>
<article-title>The REDCap consortium: Building an international community of software platform partners</article-title>. <source>J Biomed Inform</source>. <year>2019</year>;<volume>95</volume>:<fpage>103208</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.jbi.2019.103208</pub-id><pub-id pub-id-type="pmid">31078660</pub-id>
</mixed-citation></ref><ref id="R19"><label>19.</label><mixed-citation publication-type="journal"><name><surname>Harris</surname><given-names>PA</given-names></name>, <name><surname>Taylor</surname><given-names>R</given-names></name>, <name><surname>Thielke</surname><given-names>R</given-names></name>, <name><surname>Payne</surname><given-names>J</given-names></name>, <name><surname>Gonzalez</surname><given-names>N</given-names></name>, <name><surname>Conde</surname><given-names>JG</given-names></name>. <article-title>Research electronic data capture (REDCap)&#x02014;A metadata-driven methodology and workflow process for providing translational research informatics support</article-title>. <source>J Biomed Inform</source>. <year>2009</year>;<volume>42</volume>(<issue>2</issue>):<fpage>377</fpage>&#x02013;<lpage>381</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.jbi.2008.08.010</pub-id><pub-id pub-id-type="pmid">18929686</pub-id>
</mixed-citation></ref><ref id="R20"><label>20.</label><mixed-citation publication-type="journal"><name><surname>Hsu</surname><given-names>ML</given-names></name>, <name><surname>Murray</surname><given-names>JC</given-names></name>, <name><surname>Psoter</surname><given-names>KJ</given-names></name>, <etal/>
<article-title>Clinical Features, Survival, and Burden of Toxicities in Survivors More Than One Year After Lung Cancer Immunotherapy</article-title>. <source>The Oncologist</source>. <year>2022</year>;<volume>27</volume>(<issue>11</issue>):<fpage>971</fpage>&#x02013;<lpage>981</lpage>. doi:<pub-id pub-id-type="doi">10.1093/oncolo/oyac140</pub-id><pub-id pub-id-type="pmid">35972337</pub-id>
</mixed-citation></ref><ref id="R21"><label>21.</label><mixed-citation publication-type="journal"><name><surname>Brahmer</surname><given-names>JR</given-names></name>, <name><surname>Lacchetti</surname><given-names>C</given-names></name>, <name><surname>Schneider</surname><given-names>BJ</given-names></name>, <etal/>
<article-title>Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline</article-title>. <source>J Clin Oncol Off J Am Soc Clin Oncol</source>. <year>2018</year>;<volume>36</volume>(<issue>17</issue>):<fpage>1714</fpage>&#x02013;<lpage>1768</lpage>. doi:<pub-id pub-id-type="doi">10.1200/JCO.2017.77.6385</pub-id></mixed-citation></ref><ref id="R22"><label>22.</label><mixed-citation publication-type="journal"><name><surname>Pencina</surname><given-names>MJ</given-names></name>, <name><surname>D&#x02019;Agostino</surname><given-names>RB</given-names><suffix>Sr</suffix></name>. <article-title>Evaluating Discrimination of Risk Prediction Models: The C Statistic</article-title>. <source>JAMA</source>. <year>2015</year>;<volume>314</volume>(<issue>10</issue>):<fpage>1063</fpage>&#x02013;<lpage>1064</lpage>. doi:<pub-id pub-id-type="doi">10.1001/jama.2015.11082</pub-id><pub-id pub-id-type="pmid">26348755</pub-id>
</mixed-citation></ref><ref id="R23"><label>23.</label><mixed-citation publication-type="journal"><name><surname>Naidoo</surname><given-names>J</given-names></name>, <name><surname>Zhang</surname><given-names>J</given-names></name>, <name><surname>Lipson</surname><given-names>EJ</given-names></name>, <etal/>
<article-title>A Multidisciplinary Toxicity Team for Cancer Immunotherapy-Related Adverse Events</article-title>. <source>J Natl Compr Cancer Netw JNCCN</source>. <year>2019</year>;<volume>17</volume>(<issue>6</issue>):<fpage>712</fpage>&#x02013;<lpage>720</lpage>. doi:<pub-id pub-id-type="doi">10.6004/jnccn.2018.7268</pub-id><pub-id pub-id-type="pmid">31200355</pub-id>
</mixed-citation></ref><ref id="R24"><label>24.</label><mixed-citation publication-type="journal"><name><surname>Lippenszky</surname><given-names>L</given-names></name>, <name><surname>Mittendorf</surname><given-names>KF</given-names></name>, <name><surname>Kiss</surname><given-names>Z</given-names></name>, <etal/>
<article-title>Prediction of Effectiveness and Toxicities of Immune Checkpoint Inhibitors Using Real-World Patient Data</article-title>. <source>JCO Clin Cancer Inform</source>. <year>2024</year>;(<issue>8</issue>):<fpage>e2300207</fpage>. doi:<pub-id pub-id-type="doi">10.1200/CCI.23.00207</pub-id><pub-id pub-id-type="pmid">38427922</pub-id>
</mixed-citation></ref><ref id="R25"><label>25.</label><mixed-citation publication-type="journal"><name><surname>Gupta</surname><given-names>S</given-names></name>, <name><surname>Belouali</surname><given-names>A</given-names></name>, <name><surname>Shah</surname><given-names>NJ</given-names></name>, <name><surname>Atkins</surname><given-names>MB</given-names></name>, <name><surname>Madhavan</surname><given-names>S</given-names></name>. <article-title>Automated Identification of Patients With Immune-Related Adverse Events From Clinical Notes Using Word Embedding and Machine Learning</article-title>. <source>JCO Clin Cancer Inform</source>. <year>2021</year>;(<issue>5</issue>):<fpage>541</fpage>&#x02013;<lpage>549</lpage>. doi:<pub-id pub-id-type="doi">10.1200/CCI.20.00109</pub-id><pub-id pub-id-type="pmid">33989017</pub-id>
</mixed-citation></ref><ref id="R26"><label>26.</label><mixed-citation publication-type="journal"><name><surname>Edwards</surname><given-names>JK</given-names></name>, <name><surname>Cole</surname><given-names>SR</given-names></name>, <name><surname>Troester</surname><given-names>MA</given-names></name>, <name><surname>Richardson</surname><given-names>DB</given-names></name>. <article-title>Accounting for Misclassified Outcomes in Binary Regression Models Using Multiple Imputation With Internal Validation Data</article-title>. <source>Am J Epidemiol</source>. <year>2013</year>;<volume>177</volume>(<issue>9</issue>):<fpage>904</fpage>&#x02013;<lpage>912</lpage>. doi:<pub-id pub-id-type="doi">10.1093/aje/kws340</pub-id><pub-id pub-id-type="pmid">24627573</pub-id>
</mixed-citation></ref><ref id="R27"><label>27.</label><mixed-citation publication-type="journal"><name><surname>Lyles</surname><given-names>RH</given-names></name>, <name><surname>Tang</surname><given-names>L</given-names></name>, <name><surname>Superak</surname><given-names>HM</given-names></name>, <etal/>
<article-title>Validation Data-Based Adjustments for Outcome Misclassification in Logistic Regression:An Illustration</article-title>. <source>Epidemiol Camb Mass</source>. <year>2011</year>;<volume>22</volume>(<issue>4</issue>):<fpage>589</fpage>&#x02013;<lpage>597</lpage>. doi:<pub-id pub-id-type="doi">10.1097/EDE.0b013e3182117c85</pub-id></mixed-citation></ref></ref-list></back><floats-group><fig position="float" id="F1"><label>Figure 1.</label><caption><title>Frequency and Severity of irAE in Validation Population</title><p id="P37">Cases were ascertained via clinician chart review.</p><p id="P38">IrAE diagnoses not assessed by case definition algorithm: Arthritis, 12; Other, 26 (not including 3 classified as dermatitis that were included); Hypophysis, 3; Myasthenia gravis, 2; Pancreatitis, 2; Sicca syndrome, 2; Guillain-Barre syndrome, 1; ITP, 1; Optic neuritis, 1; Peripheral neuropathy, 1; Psoriasiform eruption, 1; Type 1 diabetes mellitus, 1; Vasculitis, 1</p><p id="P39">Specific irAE with n&#x0003c;3 are not depicted here.</p></caption><graphic xlink:href="nihms-2060830-f0001" position="float"/></fig><table-wrap position="float" id="T1"><label>Table 1.</label><caption><p id="P40">Components of irAE Case Definition Algorithms</p></caption><table frame="box" rules="rows"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th align="left" valign="middle" rowspan="1" colspan="1">Criteria</th><th align="center" valign="middle" rowspan="1" colspan="1">Discontinue</th><th align="center" valign="middle" rowspan="1" colspan="1">Dx/Rx</th><th align="center" valign="middle" rowspan="1" colspan="1">Dx / Rx (relaxed)</th><th align="center" valign="middle" rowspan="1" colspan="1">Rx only</th><th align="center" valign="middle" rowspan="1" colspan="1">Dx only</th></tr></thead><tbody><tr><td align="left" valign="middle" rowspan="1" colspan="1">&#x0201c;IRAE&#x0201d; dx</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02716;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">Corticosteroid/DMARD use</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02716;</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">Corticosteroid timing</td><td align="center" valign="middle" rowspan="1" colspan="1">+/- 40 days of &#x0201c;irAE&#x0201d; dx</td><td align="center" valign="middle" rowspan="1" colspan="1">+/- 40 days of &#x0201c;irAE&#x0201d; dx</td><td align="center" valign="middle" rowspan="1" colspan="1">- [Time 0]/+ 40 days of &#x0201c;irAE&#x0201d; dx</td><td align="center" valign="middle" rowspan="1" colspan="1">Any time during ICI</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02716;</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1">ICI treatment discontinuation</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02714;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02716;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02716;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02716;</td><td align="center" valign="middle" rowspan="1" colspan="1">&#x02716;</td></tr><tr><td align="left" valign="middle" rowspan="1" colspan="1"/><td colspan="5" align="center" valign="middle" rowspan="1">
<graphic xlink:href="nihms-2060830-t0002" position="float"/>
</td></tr></tbody></table><table-wrap-foot><fn id="TFN1"><p id="P41">Algorithm Dx/Rx was adapted directly from a publication, as previously described. For algorithm Dx/Rx relaxed, we expanded the date buffer for irAE treatment to include any date prior to the ICD-10 code, up to 40 days following. For algorithm Dx/Rx (discontinue), we added a requirement that ICI treatment be discontinued subsequent to the ICD-10 code, in concordance with guidelines for management of moderate-severe irAE. For algorithms Rx only and Dx only) we relaxed the requirement for the presence of both diagnosis and pharmacy data to define an irAE episode.</p></fn></table-wrap-foot></table-wrap><table-wrap position="float" id="T2"><label>Table 2.</label><caption><p id="P42">Characteristics of Validation Study Population</p></caption><table frame="hsides" rules="none"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th align="left" valign="top" rowspan="1" colspan="1"/><th align="left" valign="top" rowspan="1" colspan="1">Total (n = 354)</th><th align="left" valign="top" rowspan="1" colspan="1">irAE (n = 89)</th><th align="left" valign="top" rowspan="1" colspan="1">no irAE (n = 265)</th></tr><tr><th colspan="4" align="left" valign="top" rowspan="1">
<hr/>
</th></tr></thead><tbody><tr><td align="left" valign="top" rowspan="1" colspan="1">Age (Mean, SD)</td><td align="left" valign="top" rowspan="1" colspan="1">65.8 (9.8)</td><td align="left" valign="top" rowspan="1" colspan="1">67.0 (10.2)</td><td align="left" valign="top" rowspan="1" colspan="1">65.4 (9.7)</td></tr><tr><td colspan="4" align="left" valign="top" rowspan="1">Age range (%)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;18&#x02013;30 years</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;31&#x02013;40 years</td><td align="left" valign="top" rowspan="1" colspan="1">1.1</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">1.5</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;41&#x02013;50 years</td><td align="left" valign="top" rowspan="1" colspan="1">5.9</td><td align="left" valign="top" rowspan="1" colspan="1">7.9</td><td align="left" valign="top" rowspan="1" colspan="1">5.3</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;51&#x02013;60 years</td><td align="left" valign="top" rowspan="1" colspan="1">24.6</td><td align="left" valign="top" rowspan="1" colspan="1">23.6</td><td align="left" valign="top" rowspan="1" colspan="1">24.9</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;61&#x02013;70 years</td><td align="left" valign="top" rowspan="1" colspan="1">37.9</td><td align="left" valign="top" rowspan="1" colspan="1">32.6</td><td align="left" valign="top" rowspan="1" colspan="1">39.6</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;71&#x02013;80 years</td><td align="left" valign="top" rowspan="1" colspan="1">25.4</td><td align="left" valign="top" rowspan="1" colspan="1">25.8</td><td align="left" valign="top" rowspan="1" colspan="1">25.3</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;81+</td><td align="left" valign="top" rowspan="1" colspan="1">5.1</td><td align="left" valign="top" rowspan="1" colspan="1">10.1</td><td align="left" valign="top" rowspan="1" colspan="1">3.4</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Sex (% Male)</td><td align="left" valign="top" rowspan="1" colspan="1">52.3</td><td align="left" valign="top" rowspan="1" colspan="1">56.2</td><td align="left" valign="top" rowspan="1" colspan="1">51.0</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Body mass index (BMI) (Mean, SD)</td><td align="left" valign="top" rowspan="1" colspan="1">26.6 (5.3)</td><td align="left" valign="top" rowspan="1" colspan="1">26.9 (5.7)</td><td align="left" valign="top" rowspan="1" colspan="1">26.5 (5.2)</td></tr><tr><td colspan="4" align="left" valign="top" rowspan="1">Race/Ethnicity (%)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;White</td><td align="left" valign="top" rowspan="1" colspan="1">78.5</td><td align="left" valign="top" rowspan="1" colspan="1">82.0</td><td align="left" valign="top" rowspan="1" colspan="1">77.4</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Black</td><td align="left" valign="top" rowspan="1" colspan="1">16.1</td><td align="left" valign="top" rowspan="1" colspan="1">15.7</td><td align="left" valign="top" rowspan="1" colspan="1">16.2</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Asian</td><td align="left" valign="top" rowspan="1" colspan="1">3.1</td><td align="left" valign="top" rowspan="1" colspan="1">2.2</td><td align="left" valign="top" rowspan="1" colspan="1">3.4</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;AAPI</td><td align="left" valign="top" rowspan="1" colspan="1">0.6</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">0.8</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Unknown/Other</td><td align="left" valign="top" rowspan="1" colspan="1">1.7</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">2.3</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Hispanic/Latino (any race)</td><td align="left" valign="top" rowspan="1" colspan="1">1.1</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">1.5</td></tr><tr><td colspan="4" align="left" valign="top" rowspan="1">Marital status (%)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Married</td><td align="left" valign="top" rowspan="1" colspan="1">67.0</td><td align="left" valign="top" rowspan="1" colspan="1">71.9</td><td align="left" valign="top" rowspan="1" colspan="1">65.3</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Single</td><td align="left" valign="top" rowspan="1" colspan="1">11.0</td><td align="left" valign="top" rowspan="1" colspan="1">7.9</td><td align="left" valign="top" rowspan="1" colspan="1">12.1</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Divorced</td><td align="left" valign="top" rowspan="1" colspan="1">9.3</td><td align="left" valign="top" rowspan="1" colspan="1">4.5</td><td align="left" valign="top" rowspan="1" colspan="1">10.9</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Widowed</td><td align="left" valign="top" rowspan="1" colspan="1">8.2</td><td align="left" valign="top" rowspan="1" colspan="1">11.2</td><td align="left" valign="top" rowspan="1" colspan="1">7.2</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Other</td><td align="left" valign="top" rowspan="1" colspan="1">4.5</td><td align="left" valign="top" rowspan="1" colspan="1">4.5</td><td align="left" valign="top" rowspan="1" colspan="1">4.5</td></tr><tr><td colspan="4" align="left" valign="top" rowspan="1">ICI Treatment<xref rid="TFN2" ref-type="table-fn">*</xref></td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Pembrolizumab</td><td align="left" valign="top" rowspan="1" colspan="1">42.4</td><td align="left" valign="top" rowspan="1" colspan="1">39.3</td><td align="left" valign="top" rowspan="1" colspan="1">43.4</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Nivolumab</td><td align="left" valign="top" rowspan="1" colspan="1">41.8</td><td align="left" valign="top" rowspan="1" colspan="1">53.9</td><td align="left" valign="top" rowspan="1" colspan="1">37.7</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Durvalumab</td><td align="left" valign="top" rowspan="1" colspan="1">11.0</td><td align="left" valign="top" rowspan="1" colspan="1">1.1</td><td align="left" valign="top" rowspan="1" colspan="1">14.3</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Atezolizumab</td><td align="left" valign="top" rowspan="1" colspan="1">3.7</td><td align="left" valign="top" rowspan="1" colspan="1">5.6</td><td align="left" valign="top" rowspan="1" colspan="1">3.0</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Ipilimumab</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">&#x02003;Other<xref rid="TFN3" ref-type="table-fn">**</xref></td><td align="left" valign="top" rowspan="1" colspan="1">1.1</td><td align="left" valign="top" rowspan="1" colspan="1">0.0</td><td align="left" valign="top" rowspan="1" colspan="1">1.5</td></tr></tbody></table><table-wrap-foot><fn id="TFN2"><label>*</label><p id="P43">Percentages may not sum to 100, as some patients received multiple ICI therapies</p></fn><fn id="TFN3"><label>**</label><p id="P44">Investigative therapies (relatlimab, sabatolimab, spartalizumab)</p></fn></table-wrap-foot></table-wrap><table-wrap position="float" id="T3"><label>Table 3.</label><caption><p id="P45">Algorithm performance</p></caption><table frame="hsides" rules="none"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th rowspan="2" align="left" valign="bottom" colspan="1">Test metric (95% CI)</th><th colspan="5" align="center" valign="top" rowspan="1">Algorithm version<hr/></th></tr><tr><th align="center" valign="top" rowspan="1" colspan="1">Dx/Rx (discontinue)</th><th align="center" valign="top" rowspan="1" colspan="1">Dx / Rx</th><th align="center" valign="top" rowspan="1" colspan="1">Dx / Rx (relaxed)</th><th align="center" valign="top" rowspan="1" colspan="1">Rx</th><th align="center" valign="top" rowspan="1" colspan="1">Dx</th></tr><tr><th colspan="6" align="left" valign="top" rowspan="1">
<hr/>
</th></tr></thead><tbody><tr><td align="left" valign="top" rowspan="1" colspan="1"/><td colspan="5" align="center" valign="top" rowspan="1">
<bold>All toxicities (CTCAE Grade 0 [No symptoms] to Grade 5 [Fatal])</bold>
</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>Sensitivity</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">--</td><td align="center" valign="top" rowspan="1" colspan="1">59.3% (46.8&#x02013;71.8)</td><td align="center" valign="top" rowspan="1" colspan="1">62.7% (50.4&#x02013;75)</td><td align="center" valign="top" rowspan="1" colspan="1">69.5% (57.8&#x02013;81.2)</td><td align="center" valign="top" rowspan="1" colspan="1">93.2% (86.8&#x02013;99.6)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>Specificity</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">--</td><td align="center" valign="top" rowspan="1" colspan="1">77.6% (72.8&#x02013;82.4)</td><td align="center" valign="top" rowspan="1" colspan="1">74.6% (69.6&#x02013;79.6)</td><td align="center" valign="top" rowspan="1" colspan="1">72.2% (67.1&#x02013;77.3)</td><td align="center" valign="top" rowspan="1" colspan="1">21.0% (16.4&#x02013;25.6)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>PPV</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">--</td><td align="center" valign="top" rowspan="1" colspan="1">34.7% (25.4&#x02013;44)</td><td align="center" valign="top" rowspan="1" colspan="1">33.0% (24.3&#x02013;41.7)</td><td align="center" valign="top" rowspan="1" colspan="1">33.3% (25&#x02013;41.6)</td><td align="center" valign="top" rowspan="1" colspan="1">19.1% (14.6&#x02013;23.6)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>NPV</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">--</td><td align="center" valign="top" rowspan="1" colspan="1">90.5% (86.9&#x02013;94.1)</td><td align="center" valign="top" rowspan="1" colspan="1">90.9% (87.3&#x02013;94.5)</td><td align="center" valign="top" rowspan="1" colspan="1">92.2% (88.7&#x02013;95.7)</td><td align="center" valign="top" rowspan="1" colspan="1">93.9% (88.1&#x02013;99.7)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>C-statistic</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">--</td><td align="center" valign="top" rowspan="1" colspan="1">0.68 (0.61&#x02013;0.75)</td><td align="center" valign="top" rowspan="1" colspan="1">0.69 (0.62&#x02013;0.75)</td><td align="center" valign="top" rowspan="1" colspan="1">0.71 (0.64&#x02013;0.77)</td><td align="center" valign="top" rowspan="1" colspan="1">0.57 (0.53&#x02013;0.61)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1"/><td colspan="5" align="center" valign="top" rowspan="1">
<bold>Severe toxicities (CTCAE Grade 3 [Severe] to Grade 5 [Fatal])</bold>
</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>Sensitivity</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">72.4% (56.1&#x02013;88.7)</td><td align="center" valign="top" rowspan="1" colspan="1">72.4% (56.1&#x02013;88.7)</td><td align="center" valign="top" rowspan="1" colspan="1">75.9% (60.3&#x02013;91.5)</td><td align="center" valign="top" rowspan="1" colspan="1">86.2% (73.6&#x02013;98.8)</td><td align="center" valign="top" rowspan="1" colspan="1">86.2% (73.6&#x02013;98.8)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>Specificity</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">76.9% (72.3&#x02013;81.5)</td><td align="center" valign="top" rowspan="1" colspan="1">75.4% (70.7&#x02013;80.1)</td><td align="center" valign="top" rowspan="1" colspan="1">72.3% (67.4&#x02013;77.2)</td><td align="center" valign="top" rowspan="1" colspan="1">69.8% (64.8&#x02013;74.8)</td><td align="center" valign="top" rowspan="1" colspan="1">19.1% (14.8&#x02013;23.4)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>PPV</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">21.9% (13.6&#x02013;30.2)</td><td align="center" valign="top" rowspan="1" colspan="1">20.8% (12.9&#x02013;28.7)</td><td align="center" valign="top" rowspan="1" colspan="1">19.6% (12.2&#x02013;27.0)</td><td align="center" valign="top" rowspan="1" colspan="1">20.3% (13.2&#x02013;27.4)</td><td align="center" valign="top" rowspan="1" colspan="1">8.7% (5.4&#x02013;12.0)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>NPV</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">96.9% (94.8&#x02013;99.0)</td><td align="center" valign="top" rowspan="1" colspan="1">96.8% (94.6&#x02013;99.0)</td><td align="center" valign="top" rowspan="1" colspan="1">97.1% (95.0&#x02013;99.2)</td><td align="center" valign="top" rowspan="1" colspan="1">98.3% (96.6&#x02013;100)</td><td align="center" valign="top" rowspan="1" colspan="1">93.9% (88.1&#x02013;99.7)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>C-statistic</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">0.75 (0.66&#x02013;0.83)</td><td align="center" valign="top" rowspan="1" colspan="1">0.74 (0.65&#x02013;0.83)</td><td align="center" valign="top" rowspan="1" colspan="1">0.74 (0.65&#x02013;0.81)</td><td align="center" valign="top" rowspan="1" colspan="1">0.78 (0.71&#x02013;0.85)</td><td align="center" valign="top" rowspan="1" colspan="1">0.53 (0.50&#x02013;0.59)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1"/><td colspan="5" align="center" valign="top" rowspan="1">
<bold>Severe common organ-specific toxicities (pneumonitis, colitis, hepatitis)</bold>
</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>Sensitivity</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">70.4% (53.2&#x02013;87.6)</td><td align="center" valign="top" rowspan="1" colspan="1">70.4% (53.2&#x02013;87.6)</td><td align="center" valign="top" rowspan="1" colspan="1">70.4% (53.2&#x02013;87.6)</td><td align="center" valign="top" rowspan="1" colspan="1">85.2% (71.8&#x02013;98.6)</td><td align="center" valign="top" rowspan="1" colspan="1">77.8% (62.1&#x02013;93.5)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>Specificity</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">90.8% (87.7&#x02013;93.9)</td><td align="center" valign="top" rowspan="1" colspan="1">89.9% (86.6&#x02013;93.2)</td><td align="center" valign="top" rowspan="1" colspan="1">85.6% (81.8&#x02013;89.4)</td><td align="center" valign="top" rowspan="1" colspan="1">69.4% (64.4&#x02013;74.4)</td><td align="center" valign="top" rowspan="1" colspan="1">66.7% (61.6&#x02013;71.8)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>PPV</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">38.8% (25.2&#x02013;52.4)</td><td align="center" valign="top" rowspan="1" colspan="1">36.5% (23.4&#x02013;49.6)</td><td align="center" valign="top" rowspan="1" colspan="1">28.8% (17.9&#x02013;39.7)</td><td align="center" valign="top" rowspan="1" colspan="1">18.7% (11.8&#x02013;25.6)</td><td align="center" valign="top" rowspan="1" colspan="1">16.2% (9.9&#x02013;22.5)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>NPV</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">97.4% (95.6&#x02013;99.2)</td><td align="center" valign="top" rowspan="1" colspan="1">97.4% (95.6&#x02013;99.2)</td><td align="center" valign="top" rowspan="1" colspan="1">97.2% (95.3&#x02013;99.1)</td><td align="center" valign="top" rowspan="1" colspan="1">98.3% (96.6&#x02013;100)</td><td align="center" valign="top" rowspan="1" colspan="1">97.3% (95.2&#x02013;99.4)</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">
<bold>C-statistic</bold>
</td><td align="center" valign="top" rowspan="1" colspan="1">0.81 (0.72&#x02013;0.89)</td><td align="center" valign="top" rowspan="1" colspan="1">0.80 (0.72&#x02013;0.89)</td><td align="center" valign="top" rowspan="1" colspan="1">0.78 (0.68&#x02013;0.87)</td><td align="center" valign="top" rowspan="1" colspan="1">0.77 (0.69&#x02013;0.84)</td><td align="center" valign="top" rowspan="1" colspan="1">0.72 (0.63&#x02013;0.80)</td></tr></tbody></table><table-wrap-foot><fn id="TFN4"><p id="P46"><bold>Se</bold> sensitivity <bold>Sp</bold> specificity <bold>PPV</bold> positive predictive value <bold>NPV</bold> negative predictive value <bold>CI</bold> confidence interval -- Not included in main analysis</p></fn></table-wrap-foot></table-wrap><boxed-text id="BX1" position="float"><caption><title>Key points:</title></caption><list list-type="order" id="L2"><list-item><p id="P47">No International Classification of Disease (ICD) code exists for irAE, but researchers are using different algorithms to identify irAE in rea-world data. We validated irAE algorithms against chart review data.</p></list-item><list-item><p id="P48">We found that diagnosis- and medication-code based irAE algorithms perform well to identify severe and commonly occurring irAE in lung cancer patients who take immune checkpoint inhibitors (ICI).</p></list-item><list-item><p id="P49">irAE algorithms relying on medication codes alone are sufficient to identify severe cases of irAE</p></list-item><list-item><p id="P50">Our validation study can help researchers identify optimal algorithm for different use cases, including identification of potential cases for outcome adjudication; elucidation of risk factors for developing irAE; and comparison of incidence rates across ICI regimens and patient subgroups.</p></list-item></list></boxed-text></floats-group></article>