MIMIC-IV ED : Obtain vital signs of emergency room patients during emergency stay. #1600
Unanswered
030vegetable
asked this question in
MIMIC-IV-ED
Replies: 1 comment 2 replies
-
Okay, now I know what's wrong with me. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
-- (estay--vitalsign) : I applied subject_id and stay_id to connect, and found that some patients still could not retrieve relevant records.
--So we tried something else: only subject_id was used for the link, but with a time limit so that the charttime time was limited, for example, the charttime between intime and outtime of the emergency room.
Basically, everyone has corresponding records, but I found that the subject_id of each record is the same, and the time of recording is also between entering the emergency room and leaving the emergency room.
But their stay_id has many, I do not understand the same patient in such a short period of intime--outtime will have so many stay_id.
the picture is as follow: https://github.com/030vegetable/test/blob/main/vitalsign.png
on the first try:
select
t1.subject_id
,t1.stay_id
,t2.stay_id
,t1.intime
,t1.outtime
,t2.charttime
,t2.temperature
,t2.heartrate
,t2.resprate
,t2.sbp
,t2.dbp
,t2.o2sat
from table7 t1
LEFT JOIN mimiciv_ed.vitalsign t2
on t1.subject_id=t1.subject_id
AND t1.stay_id=t2.stay_id
second try:
select
t1.subject_id
,t1.stay_id
,t2.stay_id
,t1.intime
,t1.outtime
,t2.charttime
,t2.temperature
,t2.heartrate
,t2.resprate
,t2.sbp
,t2.dbp
,t2.o2sat
from table7 t1
LEFT JOIN mimiciv_ed.vitalsign t2
on t1.subject_id=t1.subject_id
and t2.charttime between t1.intime and t1.outtime
I just want to know if this data is from the same person, the same ER visit, and if I can use it for analysis.
Do I not fully understand the meaning of stay_id?
I really need help. Thank you for your reply.
Beta Was this translation helpful? Give feedback.
All reactions