Extracts the last test only per patient

SurveilLastTest(dataframe, HospNum_Id, Endo_ResultPerformed)

Arguments

dataframe

dataframe

HospNum_Id

Patient ID

Endo_ResultPerformed

Date of the Endoscopy

Examples

cc<-SurveilLastTest(Myendo,'HospitalNumber','Dateofprocedure')