I have a horizontal patient data set. In order words a patient can be admitted to a floor, transfer in / out of a floor, and be discharged. Each of those events are a row of data for each patient.
I want to figure out the census of that floor by the hour of day for a year. I'm new to TD and haven't taken on a task like this in the past so I was hoping to at least get the framework to make this happen.
Example:
Patient 1 Admitted 5/17/2013 800
Patient 1 Discharged 5/19/2013 1100
Patient 2 Transfer In 5/18/2013 700
Patient 2 Transfer Out 5/19/2013 2200
Patient 3 Admitted 5/18/2013 0600
Patient 3 discharged 5/22/2013 0600
So I would have a census of 1 after 800 on 5/17; census of 3 at 700 on 5/18.......
Thanks in advance for helping out a novice!
Forums: