Skip to content

mimic-iv/mapping: restore three spreadsheet-mangled omop_concept_code values - #2182

Merged
tompollard merged 1 commit into
MIT-LCP:mainfrom
rvandewater:fix-mangled-concept-codes
Nov 23, 2026
Merged

tompollard merged 1 commit into
MIT-LCP:mainfrom
rvandewater:fix-mangled-concept-codes

Conversation

@rvandewater

Copy link
Copy Markdown
Contributor

Fixes #2181.

This restores the omop_concept_code of three rows in mimic-iv/mapping/ that a spreadsheet turned into numbers. Each new value is the code that Athena gives for the row's own omop_concept_id. No other field changes, including the concept id, name and the omop_standard_concept flag. The files are otherwise byte-identical, with the same line endings and no added trailing newline.

File itemid omop_concept_id Before After
proc_itemid.csv 225792 Invasive Ventilation 44790095 2.26471E+14 226471000000101 (SNOMED)
d_labitems_to_loinc.csv 51643 Hemoglobin A2 3020784 968472 4551-8 (LOINC)
d_labitems_to_loinc.csv 51777 Albumin, CSF 3024474 -56064 1746-7 (LOINC)

Sources:

These are the only rows across the ten maps whose code does not match their concept id. Downstream context: Medical-Event-Data-Standard/MIMIC_IV_MEDS#118.

Not changed here: 44790095 (SNOMED UK extension) has been deprecated in Athena since 2024-07-31, so whether to remap 225792 is a separate decision (see #2181).

🤖 Generated with Claude Code

… values

proc_itemid.csv 225792: 2.26471E+14 -> 226471000000101 (SNOMED, concept 44790095)
d_labitems_to_loinc.csv 51643: 968472 -> 4551-8 (LOINC, concept 3020784)
d_labitems_to_loinc.csv 51777: -56064 -> 1746-7 (LOINC, concept 3024474)

Fixes MIT-LCP#2181.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tompollard
tompollard merged commit e3e0310 into MIT-LCP:main Nov 23, 2026
4 checks passed
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.

mimic-iv/mapping: three omop_concept_code values mangled by a spreadsheet (225792, 51643, 51777)

2 participants