Extracts the first test only per patient and returns a new dataframe listing the patientID and the first test done
SurveilFirstTest(dataframe, HospNum_Id, Endo_ResultPerformed)
| dataframe | dataframe |
|---|---|
| HospNum_Id | Patient ID |
| Endo_ResultPerformed | Date of the Endoscopy |
Other Basic Analysis - Surveillance Functions:
HowManyOverTime(),
SurveilLastTest(),
SurveilTimeByRow(),
TimeToStatus()
dd <- SurveilFirstTest( Myendo, "HospitalNumber", "Dateofprocedure" )