This is a function meant to be utilized within propagate_date() in order to adjust pharmaceutical claims dates to prevent overlapping in adherence calculations, per Canfield SL, Zuckerman A, Anguiano RH, Jolly JA, DeClercq J. Navigating the wild west of medication adherence reporting in specialty pharmacy. J Manag Care Spec Pharm. 2019;25(10):1073-77.
date_check(df)
df | a claims data frame with a date of a medication claim and the corresponding days supply |
---|
A new claims data frame with an appended column, adjusted_date