Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discrepancy in counts between ICUSTAYS and VISIT_DETAIL #67

Open
spfohl opened this issue May 21, 2020 · 1 comment
Open

Discrepancy in counts between ICUSTAYS and VISIT_DETAIL #67

spfohl opened this issue May 21, 2020 · 1 comment

Comments

@spfohl
Copy link
Contributor

spfohl commented May 21, 2020

There seems to be a discrepancy between the number of visit_details records that map to visit_detail_concept_id = 32037 versus that number of unique icustay_ids in the native MIMIC database. In MIMIC-OMOP, the relevant query pulls 71570 rows (https://github.com/MIT-LCP/mimic-omop/tree/master/etl/StandardizedClinicalDataTables/VISIT_DETAIL), but there are only 61,532 unique rows in ICUSTAYS.

This may be consistent with the way that the ETL is constructed, but it seems misleading.

@vojtechhuser
Copy link
Contributor

I am looking into the check ETL code. It uses pgTAP.

Do you want to add this check to pgTAP?
Also, unmapped data scripts are here

https://framagit.org/aphp/mimic-omop-article/-/tree/master/extras

and btw a nice diagram

https://framagit.org/aphp/mimic-omop-article/-/blob/master/extras/schema/sankey_diagram/MIMIC-OMOP_equivalence.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants