Calculate PatientAge

41 views
Skip to first unread message

nico.m...@gmail.com

unread,
Apr 20, 2023, 11:19:15 AM4/20/23
to RSNA MIRC CTP/TFS User Group
Hi,

We've been asked to anonymize images for an research project and only keep the age of the patient at time of aquisition (in years) and sex of the patient.
Unfortunatly the PateintAge tag (0010, 1010) was not populated on the aquisition modality.
Is there a way to calculate the age of the patient based on Patient Birthdate (0010,0030) and Study date (0008,0020)?

I've tried something with @dateinterval but I couldn't get it to work.

Any ideas how to solve this?

Grtz,
Nico

Paul Groot

unread,
May 25, 2023, 9:51:05 AM5/25/23
to rsnas-ctpmir...@googlegroups.com
Not sure how to do that in CTP without some custom java coding, but I've done this before using dcmtk (dcmodify and dcmdump) and a simple bash script. See attached script. This script will fix the PatientAge tag recursively in the specified folder (in-situ without backup).

Kind regards,
Paul Groot

--
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rsnas-ctpmirc-user-group/855511ae-aa5f-4d2d-97a8-021a7f489441n%40googlegroups.com.
fix-dicom-age.sh
Reply all
Reply to author
Forward
0 new messages