MIT-LCP / MIT-LCP/mimic-code

labitems with same label, fluid, & category but different itemid

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

Hi--

I wanted to report this and I don't know if you did that intentionally or not.

Some lab measurements in (mimic_hosp.d_labitems) have the same label, fluid, category, & units (in mimic_hosp.labevents) but have different itemids.

I realize the loinc_code is assigned to one only, but should they be merged with the same loinc_code?

Example:
image

image image

Also, some items have different itemids just because the units used in the labevents table are different:
image

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

Start by comparing the affected rows in mimic_hosp.d_labitems with their corresponding records in mimic_hosp.labevents, focusing on duplicate labels, fluids, categories, units, itemids, and loinc_code values. Done means determining whether these itemids represent distinct measurements or should be merged, then documenting or applying the resulting data-model decision.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.