For the target drugs in the GPI column, I’d like to know if an alternative drug (column I)
was filled within 7 days of the target drug reject.
data WORK.MESSAGE;
infile datalines;
input fill_date GPI Alt_1 Alt_2 Alt_3 etc.;
datalines;
6/1/19 A B C D
6/25/19 E F
5/14/19 G H B C D F Y Z
;;;;
I can isolate the claims that were rejected, but am not sure how to extract the alternatives within the time frame. Thanks in advance!