PT - JOURNAL ARTICLE AU - KITAMURA, YU AU - TSUCHIYA, MASAMI AU - IIHARA, HIROTOSHI AU - SAKURAI, SHUJI AU - ENDO, JUNKI AU - KUMADA, KEISUKE AU - TSUBATA, YUKARI TI - Development and Validation of an EHR-based Algorithm for Identifying <em>Pneumocystis jirovecii</em> Pneumonia AID - 10.21873/invivo.14322 DP - 2026 May 01 TA - In Vivo PG - 1715--1721 VI - 40 IP - 3 4099 - http://iv.iiarjournals.org/content/40/3/1715.short 4100 - http://iv.iiarjournals.org/content/40/3/1715.full SO - In Vivo2026 May 01; 40 AB - Background/Aim: Pneumocystis jirovecii pneumonia (PCP) remains a life-threatening opportunistic infection in patients receiving chemotherapy and other immunosuppressive cancer treatments. Accurate identification of true PCP cases within real-world electronic health record (EHR) databases is essential for epidemiological research and optimization of prophylactic strategies in oncology practice. The aim of this study was to develop and validate a practical, EHR-based algorithm for reliably identifying PCP cases.Patients and Methods: This retrospective, single-center validation study used EHR data from a Japanese university hospital between April 2022 and March 2024. Adult patients (≧20 years) who were assigned an ICD-10 code for PCP were extracted, and true cases were confirmed by a detailed review of the patient records. Seven candidate algorithms combining diagnostic codes, therapeutic-dose anti-PCP prescriptions, laboratory testing, chemotherapy exposure, and prescription duration were evaluated. The positive predictive value (PPV) and capture rate were then calculated using chart-confirmed PCP as the reference standard.Results: Among 617 ICD-coded patients, 11 (1.8%) were confirmed as true PCP cases. The PPV of diagnostic codes alone was 1.8%. A prescription-enhanced algorithm (A1) identified 12 patients, including 11 true cases (PPV=91.7%; capture rate 100%). Algorithms incorporating β-D-glucan or PCR testing achieved PPVs of 100% with lower capture rates (63.6-81.8%). Incorporation of concurrent chemotherapy also resulted in a PPV of 100% with reduced capture. An algorithm requiring therapeutic-dose prescription for ≥21 days showed equivalent performance to A1.Conclusion: Prescription-based algorithms substantially improve the accuracy of PCP case identification in EHR data compared with diagnostic codes alone. This straightforward, scalable approach offers a robust framework for real-world oncology research, enabling a more reliable evaluation of PCP incidence and informing future prophylaxis strategies for patients receiving anticancer treatment.