Missing hadm_id and lack of lab draws in labevents table for large portion of dataset? #1758
-
Hello,
Mona |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi there, I recently upgraded to MIMIC IV version 3.1 and came across the issue mentioned in your title. SELECT
COUNT(*) AS total_rows,
COUNT(hadm_id) AS non_null_rows,
COUNT(*) - COUNT(hadm_id) AS null_rows
FROM
mimiciv_hosp.labevents; The results were:
I would like to know if this result matches yours. I'm even starting to question whether there was an issue with my database installation. |
Beta Was this translation helpful? Give feedback.
-
Hi @shujuecn |
Beta Was this translation helpful? Give feedback.
-
I believe this is related to this closed issue #1823 which @alistairewj responded to with an explanation: |
Beta Was this translation helpful? Give feedback.
-
Hello, I filtered the dataset to construct a cohort based on hadmids before I examined the lab events table. The cohort only included patients with a hospitalization, so issue 1823 does not apply. I think it’s just poor data quality. I had to exclude patients with missing values which really dwindled down my cohort. |
Beta Was this translation helpful? Give feedback.
I believe this is related to this closed issue #1823 which @alistairewj responded to with an explanation: