MIT-LCP / MIT-LCP/mimic-code

Error in MIMIC-IV-v2.0 dod record

Open
#1,346 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
3.4k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Prerequisites
Description

Dear Sir or Madam,

I noticed an error in the dod (date of death) record of MIMIC-IV v2.0 recently.
I find some dod records had a date before ICU admission.
For example, subject 14150625 died on 2137-01-24, but had an ICU admission at 2143-12-20 12:34:58.

I extracted the survive time by:

SELECT
icu.subject_id
, icu.stay_id
, icu.intime
, icu.outtime
, pa.dod
, EXTRACT(EPOCH FROM pa.dod - icu.intime)/(60*60*24) AS survive_time
FROM mimiciv_icu.icustays icu
LEFT JOIN mimiciv_hosp.patients pa 
ON pa.subject_id = icu.subject_id
ORDER BY survive_time

And I find a number of patients had this problem.
图片1

I wish this bug could be fixed soon.

Yours Nicky

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported query against mimiciv_icu.icustays and mimiciv_hosp.patients, focusing on subject 14150625 and the other negative survival times. Inspect the MIMIC-IV v2.0 source or transformation process for dod and ICU admission timestamps. Done means determining whether these records are erroneous and identifying a verified correction or documented explanation.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.