Hello Forum,
I am a new member and hope to have your help with calculating time in hours and days.
Attached is my sample data (fictional information), which has several tabs.
Colour Legend
Data on worksheet from original source
Data to pull from Encounter Demographics worksheet to Case Log worksheet (based on "match" of "Encounter Number")
Derived from formula (added column not on worksheet from original source)
What I am trying to do:
During an encounter, a patient may be transferred between different units. Some units are designated "special care" - see tab "Unit List".
An ICU/Stepdown occurrence begins when patient first arrives in a special care unit and ends when the "Unit Nxt Tsf" is not a special care unit or patient is discharged (see exception for OR's).
The OR's are not special care units but if patient was in a special care unit BEFORE going to the OR the special care occurrence time continues until patient is transferred to another unit after the OR (may or may not be "special care") or patient is discharged.
Example 1 - patient in ICU goes to OR, returns to ICU from the OR, is transferred to Stepdown unit, then discharged directly from Stepdown unit. This would constitute one occurrence with the start time being first arrival in ICU and end time being discharge time.
Example 2 - patient on floor (not a special care unit) goes to ICU, is transferred to Stepdown unit, is transferred to floor, then discharged. Occurrence would start with time patient arrived at ICU from the floor, continue through time in Stepdown, and end when patient transferred to floor again.
Patients can have multiple ICU/Stepdown occurrences and multiple surgeries during an encounter, and each ICU/Stepdown occurrence can involve transfers between different "special care units" and the OR.
Need a formula that calculates the number of hours of each continuous ICU/Stepdown occurrence, listing them chronologically (up to 7 occurrences), and also calculate the total number of days in ICU/Stepdown, with the total days being shown on the case log.
I know it's the holiday season, but if anyone can help me solve this before Monday, I would very much appreciate it.
Thanks,
Bookmarks