Hi all,
I'm new to Stata and have a question regarding this hospital dataset I'm working on. The dataset contains a size of more than 700,000 patients, and 40 variables, all linked to a unique patient ID for all patients admitted to the hospital.
One person only has one patient ID but can have multiple admission episodes ID
I want to find out the number of readmissions for the same patient within 30 days and then relate those episodes with all other existing variables in the dataset. I have been trying to reformat the date and use various commands, but all didn't work. Can someone please provide some insights? Thank you so much!
I'm new to Stata and have a question regarding this hospital dataset I'm working on. The dataset contains a size of more than 700,000 patients, and 40 variables, all linked to a unique patient ID for all patients admitted to the hospital.
One person only has one patient ID but can have multiple admission episodes ID
I want to find out the number of readmissions for the same patient within 30 days and then relate those episodes with all other existing variables in the dataset. I have been trying to reformat the date and use various commands, but all didn't work. Can someone please provide some insights? Thank you so much!
Patient ID | Episode ID | Admission Date | Separation Date | Readmission within 30 days? |
1A2B4DXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX | 43434343 | 09/27/2018 00:00:00 | 09/28/2018 00:00:00 | ? |
Comment