Skip to content

Harmonize additional BodyPartExamined values in dicom_metadata_curated#138

Open
fedorov wants to merge 1 commit into
ImagingDataCommons:masterfrom
fedorov:harmonize-body-part-examined
Open

Harmonize additional BodyPartExamined values in dicom_metadata_curated#138
fedorov wants to merge 1 commit into
ImagingDataCommons:masterfrom
fedorov:harmonize-body-part-examined

Conversation

@fedorov

@fedorov fedorov commented Jul 8, 2026

Copy link
Copy Markdown
Member

Make the BodyPartExamined CASE comparison case-insensitive via UPPER() so mixed-case source values (Chest, Kidney, Pelvis, Thorax, J brzuszna) collapse onto their canonical form, and add mappings for non-standard values found in idc_current that map cleanly to DICOM defined terms:

  • LEFT BREAST / RIGHT BREAST -> BREAST (566 series)
  • BONYPELVIS -> PELVIS (92 series)
  • LEG -> LOWERLIMB (16 series)
  • TH CT CHEST WO C -> CHEST (16-char protocol truncation, 11 series)
  • BD CT ABD WO_W C -> ABDOMEN (16-char protocol truncation, 2 series)

Verified against bigquery-public-data.idc_current.dicom_all: 687 series / 5,436 instances change, with no unintended remappings.

Make the BodyPartExamined CASE comparison case-insensitive via UPPER() so
mixed-case source values (Chest, Kidney, Pelvis, Thorax, J brzuszna) collapse
onto their canonical form, and add mappings for non-standard values found in
idc_current that map cleanly to DICOM defined terms:

- LEFT BREAST / RIGHT BREAST -> BREAST (566 series)
- BONYPELVIS -> PELVIS (92 series)
- LEG -> LOWERLIMB (16 series)
- TH CT CHEST WO C -> CHEST (16-char protocol truncation, 11 series)
- BD CT ABD WO_W C -> ABDOMEN (16-char protocol truncation, 2 series)

Verified against bigquery-public-data.idc_current.dicom_all: 687 series /
5,436 instances change, with no unintended remappings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant