MIT-LCP / MIT-LCP/mimic-code

About primary cause of admissions for Elixhauser comorbidity compuation

Open
#1,254 0 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

Hi!
My questions is regarding the computation of comorbidities using the queries in:

  1. 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)

  2. 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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.