You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The query to build the populate the DEATH from MIMIC-III to OMOP looks for patients in two ways:
from the admission table, WHERE deathtime IS NOT NULL, joining then on patients
from the patient table, WHERE dod_ssn IS NOT NULL , and for which the patient has not been selected from the previous subquerry (admission table)
The check calls for 2 counts:
SELECT count(dod) FROM mimiciii.patients;
Result: 15759
SELECT count(death_date) FROM omop.death;
Result: 14849
This gives an error because of the mismatch in result. The issue here is that the count is on the dod field in the table mimiciii.patients , while the ETL is based on either admissions.deathtime or patients.dod_ssn.
If I take patient with subject_id = 263, it shows a dod but dod_ssn is null, resulting in the patient not being included in the DEATH table.
I think there is an issue:
either the check counts the wrong field (dod but not dod_ssn)
either the etl queries on the wrong field (dod_ssn and not dod)
In any case, I think we are comparing apples to oranges as dod does not imply that dod_ssn will be filled.
Please advise.
I'll dig the other errors I received from the etl_checks.
The text was updated successfully, but these errors were encountered:
The query to build the populate the DEATH from MIMIC-III to OMOP looks for patients in two ways:
The check calls for 2 counts:
SELECT count(dod) FROM mimiciii.patients;
Result: 15759
SELECT count(death_date) FROM omop.death;
Result: 14849
This gives an error because of the mismatch in result. The issue here is that the count is on the dod field in the table mimiciii.patients , while the ETL is based on either admissions.deathtime or patients.dod_ssn.
If I take patient with subject_id = 263, it shows a dod but dod_ssn is null, resulting in the patient not being included in the DEATH table.
I think there is an issue:
In any case, I think we are comparing apples to oranges as dod does not imply that dod_ssn will be filled.
Please advise.
I'll dig the other errors I received from the etl_checks.
The text was updated successfully, but these errors were encountered: