Skip to content

fix(mimic-iv): filter lab concepts by expected valueuom - #2141

Open
Chessing234 wants to merge 5 commits into
MIT-LCP:mainfrom
Chessing234:fix/lab-valueuom-filtering
Open

fix(mimic-iv): filter lab concepts by expected valueuom#2141
Chessing234 wants to merge 5 commits into
MIT-LCP:mainfrom
Chessing234:fix/lab-valueuom-filtering

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • Filter MCHC (itemid 51249) to valueuom = 'g/dL' in complete_blood_count
  • Filter CRP (itemid 50889) to valueuom = 'mg/L' in inflammation
  • Regenerate postgres and duckdb copies

Test plan

  • pytest tests/test_transpile.py
  • CI concept build on MIMIC-IV demo

Fixes #1922

Made with Cursor

Itemid 51249 is sometimes recorded with valueuom '%' in labevents.
Keep only g/dL values when building the derived MCHC column.
Itemid 50889 rows with missing valueuom are excluded; mg/L is the
expected unit for C-reactive protein in hosp.labevents.

Fixes MIT-LCP#1922
Fork tokens cannot create check runs; keep lint green with
ignore-unauthorized-error and skip annotate when no concept SQL changed.
ignore-unauthorized-error does not catch the fork 403
(Resource not accessible by integration). Skip Annotate when
head.repo != base repo so lint-mimic-iv can stay green.
@Chessing234
Chessing234 force-pushed the fix/lab-valueuom-filtering branch from 65d2451 to 00c5a77 Compare August 5, 2026 10:33
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

Successfully merging this pull request may close these issues.

Incorrect *valueuom* in hosp.labevents for itemid 51249

1 participant