Extracts the last test only per patient
SurveilLastTest(dataframe, HospNum_Id, Endo_ResultPerformed)
dataframe | dataframe |
---|---|
HospNum_Id | Patient ID |
Endo_ResultPerformed | Date of the Endoscopy |
cc<-SurveilLastTest(Myendo,'HospitalNumber','Dateofprocedure')