hidibiditidi
New member
- Local time
- Today, 08:17
- Joined
- Jun 7, 2013
- Messages
- 8
Hi everyone,
I'm a new user to this forum and to access. I'm doing a summer research project for medical school and my mentor has given me a task which seem like it could be easy to automate in Access, but unfortunately I have no idea how to do it.
We're looking at patients who are intubated multiple times during various points in their stay in the hospital. Each patient is given a patient ID and then the intubations are listed with a start and end date.
Now my mentor has stated that each patient who is intubated for less than a day should not count as its own intubation. Rather we should just count that intubation with the one following it.
So for example:
Patient 1 intubated for 2 days
Patient 1 intubated for .1 day
We would take those two intubations and make it
Patient 1 intubated for 2.1 days and leave it as one line.
So we have converted start and end times to the days in Excel.
So there are a couple issues with this
In excel we have a list of 970 intubations and patient IDs. The intubation less than a day needs to be added to the patient with the same patient ID (so you can't always say it needs to be added to the cell above or below).
For example
Patient 1 intubated for 2 day
Patient 2 intubated for .1 day
Patient 2 intubated for 1 day
Patient 2 intubated for .2 day
in this example we would need to add the 1st intubation for patient 2 to the cell below and the 2nd intubation for patient 2 to the cell above.
so it shoudl read
Patient 1intubated for 2 days
Patient 2 intubated for 1.3 days
However it is also important to state that the patient IDs are identical between intubations (that's how we know which patient is which), so if there is a way to add everything together for a patient ID as long as it is less than 1 that would be great.
The next metric we use is called Ventilator Free days out of 28. It basically states in 28 days how many days is the patient NOT on a ventilator.
So for example:
Patient 1 intubated for 2 days
VFD would be 26
Now where it gets complicated is
Patient 1 intubated for 2 days on January 1 - A
Patient 1 intubated for 4 days on January 6 - B
Patient 1 intubated for 9 days on January 20 - C
Patient 1 intubated for 5 days on January 30 - D
Now the days that would count would All of line A, all of Line B, 8 DAYS of line C and NONE of Line D (because it is beyond the 28 day limit) .So the total number would be 2+4+8= 14.
Ok, I think that's it for now. Sorry this is so long. I'd really appeciate any help you could give me.
Thanks!
I'm a new user to this forum and to access. I'm doing a summer research project for medical school and my mentor has given me a task which seem like it could be easy to automate in Access, but unfortunately I have no idea how to do it.
We're looking at patients who are intubated multiple times during various points in their stay in the hospital. Each patient is given a patient ID and then the intubations are listed with a start and end date.
Now my mentor has stated that each patient who is intubated for less than a day should not count as its own intubation. Rather we should just count that intubation with the one following it.
So for example:
Patient 1 intubated for 2 days
Patient 1 intubated for .1 day
We would take those two intubations and make it
Patient 1 intubated for 2.1 days and leave it as one line.
So we have converted start and end times to the days in Excel.
So there are a couple issues with this
In excel we have a list of 970 intubations and patient IDs. The intubation less than a day needs to be added to the patient with the same patient ID (so you can't always say it needs to be added to the cell above or below).
For example
Patient 1 intubated for 2 day
Patient 2 intubated for .1 day
Patient 2 intubated for 1 day
Patient 2 intubated for .2 day
in this example we would need to add the 1st intubation for patient 2 to the cell below and the 2nd intubation for patient 2 to the cell above.
so it shoudl read
Patient 1intubated for 2 days
Patient 2 intubated for 1.3 days
However it is also important to state that the patient IDs are identical between intubations (that's how we know which patient is which), so if there is a way to add everything together for a patient ID as long as it is less than 1 that would be great.
The next metric we use is called Ventilator Free days out of 28. It basically states in 28 days how many days is the patient NOT on a ventilator.
So for example:
Patient 1 intubated for 2 days
VFD would be 26
Now where it gets complicated is
Patient 1 intubated for 2 days on January 1 - A
Patient 1 intubated for 4 days on January 6 - B
Patient 1 intubated for 9 days on January 20 - C
Patient 1 intubated for 5 days on January 30 - D
Now the days that would count would All of line A, all of Line B, 8 DAYS of line C and NONE of Line D (because it is beyond the 28 day limit) .So the total number would be 2+4+8= 14.
Ok, I think that's it for now. Sorry this is so long. I'd really appeciate any help you could give me.
Thanks!