Archive \ Volume.17 2026 Issue 2

Counterfactual Medication Planning before Treatment Is Changed

, , ,
  1. Department of Counterfactual Reasoning in Pharmacy, Faculty of Pharmacy, University of Sydney, Sydney, Australia.
  2. Department of Treatment Change Planning and AI, Faculty of Pharmacy, University of Queensland, Brisbane, Australia.
  3. Department of Medication Scenario Simulation, Faculty of Pharmacy, University of New South Wales, Sydney, Australia.

Abstract

Medication decisions are commonly informed by predicted risks, expected responses, previous treatment experience, and population-level evidence. Yet the practical question faced before treatment is changed is not merely whether an adverse event or therapeutic failure is likely. It is how the patient’s future might differ under continuation, dose modification, switching, augmentation, tapering, discontinuation, delayed action, or additional information collection. Current predictive, causal, medication-safety, and clinical decision-support approaches address parts of this problem but do not provide an integrated structure for comparing alternative medication trajectories while preserving uncertainty, professional responsibility, and patient priorities. This article proposes a Counterfactual Medication-Planning Framework for organizing treatment-change deliberation. The framework begins with an explicitly defined decision time and patient–medication state, identifies feasible treatment strategies, specifies outcomes and time horizons, and constructs parallel multidimensional trajectories. Each trajectory is qualified through an assumption and confounding ledger and an uncertainty envelope. An identifiability and comparability gate determines whether alternatives may proceed to human deliberation, require additional information or restriction, or should not be compared. The framework separates trajectory generation from medication authorization and places pharmacists, prescribers, patients, and accountable organizations within a bounded decision and monitoring process. Evaluation would require causal, technical, medication-safety, human-factors, equity, transportability, implementation, and lifecycle-governance evidence. Important boundaries include unmeasured confounding, incomplete longitudinal records, poor treatment overlap, uncertain adherence, unstable patient preferences, rare or delayed harms, and the impossibility of observing both treatment futures in the same patient. The contribution is an original non-empirical synthesis intended to make the assumptions, uncertainties, responsibilities, and abstention conditions of pre-change medication planning explicit. It requires empirical validation before clinical use.


Downloads: 26
Views: 84

How to cite:
Vancouver
Williams N, Collins G, Brooks E, Green D. Counterfactual Medication Planning before Treatment Is Changed. Arch Pharm Pract. 2026;17(2):47-56. https://doi.org/10.51847/Qqs5hU4vV0
APA
Williams, N., Collins, G., Brooks, E., & Green, D. (2026). Counterfactual Medication Planning before Treatment Is Changed. Archives of Pharmacy Practice, 17(2), 47-56. https://doi.org/10.51847/Qqs5hU4vV0

Download Citation
References
  1. Feuerriegel S, Frauen D, Melnychuk V, Schweisthal J, Hess K, Curth A, et al. Causal machine learning for predicting treatment outcomes. Nat Med. 2024;30(4):958-68. doi:10.1038/s41591-024-02902-1
  2. Smit JM, Krijthe JH, Kant WMR, Labrecque JA, Komorowski M, Gommers DAMPJ, et al. Causal inference using observational intensive care unit data: A scoping review and recommendations for future practice. NPJ Digit Med. 2023;6(1):221. doi:10.1038/s41746-023-00961-1
  3. Nguyen TL, Collins GS, Landais P, Le Manach Y. Counterfactual clinical prediction models could help to infer individualized treatment effects in randomized controlled trials—An illustration with the International Stroke Trial. J Clin Epidemiol. 2020;125:47-56. doi:10.1016/j.jclinepi.2020.05.022
  4. Prosperi M, Guo Y, Sperrin M, Koopman JS, Min JS, He X, et al. Causal inference and counterfactual prediction in machine learning for actionable healthcare. Nat Mach Intell. 2020;2(7):369-75. doi:10.1038/s42256-020-0197-y
  5. Kent DM, Paulus JK, van Klaveren D, D’Agostino R, Goodman S, Hayward R, et al. The Predictive Approaches to Treatment effect Heterogeneity (PATH) statement. Ann Intern Med. 2020;172(1):35-45. doi:10.7326/M18-3667
  6. Hoogland J, Efthimiou O, Nguyen TL, Debray TPA. Evaluating individualized treatment effect predictions: A model-based perspective on discrimination and calibration assessment. Stat Med. 2024;43(23):4481-98. doi:10.1002/sim.10186
  7. Zhang Y, Laber EB, Davidian M, Tsiatis AA. Interpretable dynamic treatment regimes. J Am Stat Assoc. 2018;113(524):1541-9. doi:10.1080/01621459.2017.1345743
  8. Bica I, Alaa AM, Lambert C, van der Schaar M. From real-world patient data to individualized treatment effects using machine learning: Current and future methods to address underlying challenges. Clin Pharmacol Ther. 2021;109(1):87-100. doi:10.1002/cpt.1907
  9. Ruhrberg Estévez S, Peck R, McKinney E, Weatherall J, Bailey S, Rochon J, et al. Causal inference and digital twins: A roadmap for the future of clinical trials. NPJ Digit Med. 2026;9(1):582. doi:10.1038/s41746-026-02871-4
  10. Hussain Z, De Brouwer E, Boiarsky R, Setty S, Gupta N, Liu G, et al. Joint AI-driven event prediction and longitudinal modeling in newly diagnosed and relapsed multiple myeloma. NPJ Digit Med. 2024;7(1):200. doi:10.1038/s41746-024-01189-3
  11. Allam A, Feuerriegel S, Rebhan M, Krauthammer M. Analyzing patient trajectories with artificial intelligence. J Med Internet Res. 2021;23(12). doi:10.2196/29812
  12. Corny J, Rajkumar A, Martin O, Dode X, Lajonchère JP, Billuart O, et al. A machine learning-based clinical decision support system to identify prescriptions with a high risk of medication error. J Am Med Inform Assoc. 2020;27(11):1688-94. doi:10.1093/jamia/ocaa154
  13. Hernán MA, Robins JM. Per-protocol analyses of pragmatic trials. N Engl J Med. 2017;377(14):1391-8. doi:10.1056/NEJMsm1605385
  14. Komorowski M, Celi LA, Badawi O, Gordon AC, Faisal AA. The Artificial Intelligence Clinician learns optimal treatment strategies for sepsis in intensive care. Nat Med. 2018;24(11):1716-20. doi:10.1038/s41591-018-0213-5
  15. Gottesman O, Johansson F, Komorowski M, Faisal AA, Sontag D, Doshi-Velez F, et al. Guidelines for reinforcement learning in healthcare. Nat Med. 2019;25(1):16-8. doi:10.1038/s41591-018-0310-5
  16. Li H, Zang C, Xu Z, Pan W, Rajendran S, Chen Y, et al. Federated target trial emulation using distributed observational data for treatment effect estimation. NPJ Digit Med. 2025;8(1):387. doi:10.1038/s41746-025-01803-y
  17. Cinelli C, Hazlett C. Making sense of sensitivity: Extending omitted variable bias. J R Stat Soc Series B Stat Methodol. 2020;82(1):39-67. doi:10.1111/rssb.12348
  18. Jin Y, Ren Z, Candès EJ. Sensitivity analysis of individual treatment effects: A robust conformal inference approach. Proc Natl Acad Sci U S A. 2023;120(6). doi:10.1073/pnas.2214889120
  19. Schuemie MJ, Hripcsak G, Ryan PB, Madigan D, Suchard MA. Empirical confidence interval calibration for population-level effect estimation studies in observational healthcare data. Proc Natl Acad Sci U S A. 2018;115(11):2571-7. doi:10.1073/pnas.1708282114
  20. Vasey B, Nagendran M, Campbell B, Clifton DA, Collins GS, Denaxas S, et al. Reporting guideline for the early-stage clinical evaluation of decision support systems driven by artificial intelligence: DECIDE-AI. Nat Med. 2022;28(5):924-33. doi:10.1038/s41591-022-01772-9
  21. Holbrook AM, Silva JM, Faruque JAY, Deng J, Schneider T, Jaffer A. Effect of electronic drug-drug interaction alerts on patient and clinician outcomes: A systematic review. J Am Med Inform Assoc. 2025;32(10):1617-28. doi:10.1093/jamia/ocaf139
  22. Labkoff S, Oladimeji B, Kannry J, Solomonides A, Leftwich R, Koski E, et al. Toward a responsible future: Recommendations for AI-enabled clinical decision support. J Am Med Inform Assoc. 2024;31(11):2730-9. doi:10.1093/jamia/ocae209
  23. Wiens J, Saria S, Sendak M, Ghassemi M, Liu VX, Doshi-Velez F, et al. Do no harm: A roadmap for responsible machine learning for health care. Nat Med. 2019;25(9):1337-40. doi:10.1038/s41591-019-0548-6
  24. Sendak MP, Ratliff W, Sarro D, Alderton E, Futoma J, Gao M, et al. Real-world integration of a sepsis deep learning technology into routine clinical care: Implementation study. JMIR Med Inform. 2020;8(7). doi:10.2196/15182
  25. Asan O, Bayrak AE, Choudhury A. Artificial intelligence and human trust in healthcare: Focus on clinicians. J Med Internet Res. 2020;22(6). doi:10.2196/15154
  26. Ghassemi M, Oakden-Rayner L, Beam AL. The false hope of current approaches to explainable artificial intelligence in health care. Lancet Digit Health. 2021;3(11). doi:10.1016/S2589-7500(21)00208-9
  27. Obermeyer Z, Powers B, Vogeli C, Mullainathan S. Dissecting racial bias in an algorithm used to manage the health of populations. Science. 2019;366(6464):447-53. doi:10.1126/science.aax2342
  28. Futoma J, Simons M, Panch T, Doshi-Velez F, Celi LA. The myth of generalisability in clinical research and machine learning in health care. Lancet Digit Health. 2020;2(9). doi:10.1016/S2589-7500(20)30186-2

 

 


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.