About primary cause of admissions for Elixhauser comorbidity compuation
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
- Put an X between the brackets on this line if you have done all of the following:
- Checked the online documentation: https://mimic.mit.edu/
- Checked that your issue isn't already addressed: https://github.com/MIT-LCP/mimic-code/issues?utf8=%E2%9C%93&q=
Description
Hi!
My questions is regarding the computation of comorbidities using the queries in:
- https://github.com/MIT-LCP/mimic-code/blob/main/mimic-iii/concepts/comorbidity/elixhauser_ahrq_v37_no_drg.sql
- https://github.com/MIT-LCP/mimic-code/blob/main/mimic-iii/concepts/comorbidity/elixhauser_ahrq_v37.sql
-
Both queries use seq_num = 1. Which is not the standard way of computing comorbidities, these should actually be excluded. Why is this the case in these scripts? It is confusing when you first see the code. Plus it is hard to see the difference between both scripts as they are both no_drg right? (by considering seq_num=1)
-
Only https://github.com/MIT-LCP/mimic-code/blob/main/mimic-iii/concepts/comorbidity/elixhauser_ahrq_v37_no_drg.sql mentions this at the beginning of the script:
-- This code uses the latest version of Elixhauser provided by AHRQ
-- However, it does not filter based on diagnosis related groups (DRGs)
-- As such, "comorbidities" identified are more likely to be associated with the primary reason for their hospital stay-- The code:
-- removes "primary" ICD9_CODE (seq_num != 1)
-- uses AHRQ published rules to define comorbidities
Does this later bit means that ny replacing the current "seq_num = 1 " by "seq_num != 1" the comorbidities will be computed with drg filter?
Thank you!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare mimic-iii/concepts/comorbidity/elixhauser_ahrq_v37_no_drg.sql with mimic-iii/concepts/comorbidity/elixhauser_ahrq_v37.sql, starting with their diagnosis filters and comments. Check the referenced AHRQ rules and MIMIC-III diagnosis fields; done means the distinction between the queries and the seq_num behavior is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- databases
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100