Project Borrow arrive: Difference between revisions

Line 67: Line 67:


=== SAS Program ===
=== SAS Program ===
The SAS program calculates the time spent in a borrowed bed at each ICU stay and summarize the total bed-days in a given interval how much is taken up by boarders from elsewhere and how much a certain unit is boarding elsewhere.
The SAS program calculates the time spent in a borrowed bed at each ICU stay and summarize the total bed-days in a given interval that are taken up by boarders from elsewhere and how much a certain unit is boarding elsewhere.


    Time spent in borrowed bed = Next Arrival Date_time - First Arrival Date_time
::Time spent in borrowed bed = Next Arrival Date_time - First Arrival Date_time
 
::: where Next Arrival Date_time = Dispo Date_time if there is no more next arrival date_time.  
              where Next Arrival Date_time = Dispo Date_time if there is no more next arrival date_time.  


The SAS program is saved in X:\Julie\SAS_CFE\CFE_macros\Bed_Borrow.sas
The SAS program is saved in X:\Julie\SAS_CFE\CFE_macros\Bed_Borrow.sas