This determines the last test done by that patient and the time between now and that last test in days
SurveilLastToNow(dataframe, HospNum_Id, Endo_ResultPerformed)
dataframe | dataframe |
---|---|
HospNum_Id | Patient ID |
Endo_ResultPerformed | Date of the Endoscopy |
bb<-SurveilLastToNow(Myendo,'HospitalNumber', 'Dateofprocedure')