I have data on visits to a clinic. In the example below, "value date" is the date of the clinic visit. "Value" is the outcome variable of interest. Rx date is the date prescription was given. I would like to create a new variable using every patient's baseline score and then scores occurring a minimum of 3 months after the rx date (instead of the value date). Any help will be appreciated.

Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input int(id rx_date value value_date)
 97 21677   53 21769
 97 21677   19 21886
 97 21677   26 22179
 97 21677   94 22247
 97 21677   19 22271
109 21719  138 21892
264 21437   19 21560
264 21437   19 22126
347 21656  464 22007
347 21656 1160 22231
469 21425  290 21487
469 21425  237 21585
469 21425  551 21887
469 21425   39 21963
469 21425   39 22056
469 21425   39 22182
557 21581   20 21727
557 21581   20 21818
557 21581   20 22314
589 21410  876 21518
589 21410  260 21577
589 21410   22 21693
589 21410   31 21868
589 21410   20 22176
589 21410   20 22287
650 21620  132 21647
650 21620  148 21685
650 21620   19 21887
650 21620   19 22391
end
format %tdnn/dd/CCYY rx_date
format %tdnn/dd/CCYY value_date