tweaked2005
Technical User
I have a dataset with 5 variables (syndrome, patientClass, datatype, location, date). It is possible that multiple records can match on everything but date. So as an example:
Dataset
=======
Obs Syndrome PatientClass DataType Location Date
1 S1 Inpatient Pediatrics Hosp1 1/1/07
2 S1 Inpatient Pediatrics Hosp1 1/5/07
3 S1 Inpatient Pediatrics Hosp1 1/30/07
4 S2 Outpatient Surgery Hosp2 1/30/07
I need to do the following:
Indicate in a comment field if records appear at the same Location, same Syndrome, PatientClass and DataType within a 1 week period. So in the above example, obs1 and obs2 should have a comment = "MultipleDays within 1 week".
I've tried doing something with first.var, but with multiple variables to evaluate I'm running into a wall. Does anyone have a good suggestion for accomplishing this task?
Thank you in advance for any assistance.
Dataset
=======
Obs Syndrome PatientClass DataType Location Date
1 S1 Inpatient Pediatrics Hosp1 1/1/07
2 S1 Inpatient Pediatrics Hosp1 1/5/07
3 S1 Inpatient Pediatrics Hosp1 1/30/07
4 S2 Outpatient Surgery Hosp2 1/30/07
I need to do the following:
Indicate in a comment field if records appear at the same Location, same Syndrome, PatientClass and DataType within a 1 week period. So in the above example, obs1 and obs2 should have a comment = "MultipleDays within 1 week".
I've tried doing something with first.var, but with multiple variables to evaluate I'm running into a wall. Does anyone have a good suggestion for accomplishing this task?
Thank you in advance for any assistance.