Working with patient age

Top  Previous  Next

Age values in DICOM tags (AS-type) are represented as a string of characters with one of the following formats -- nnnD, nnnW, nnnM, nnnY; where nnn shall contain the number of days for D, weeks for W, months for M, or years for Y.  For e.g. 018M would represent an age of 18 months.

 

This makes it difficult to search on age values because it contains a combination of numbers and text.  To simplify this, Easy DICOM Search offers the following functions to work with the PatientAge (0010,1010) tag.

 

Function

Description

Examples (0010,1030 is patient weight)

 

PatientAge

This returns the value of the patient age in years.

(Image.PatientAge = 50)

 

(Image.PatientAge >= 0.5)

 

(Image.PatientAge.BETWEEN(30, 60)

 

PatientAgeInDays

This returns the value of the patient age in days.

(Image.PatientAgeInDays = 30)

 

(Image.PatientAgeInDays >= 180)

 

(Image.PatientAgeInDays.BETWEEN(45, 90)

 

PatientAgeInWeeks

This returns the value of the patient age in weeks.

(Image.PatientAgeInWeeks = 5)

 

(Image.PatientAgeInWeeks >= 10)

 

(Image.PatientAgeInWeeks.BETWEEN(15, 30)

 

PatientAgeInMonths

This returns the value of the patient age in months.

 

(Image.PatientAgeInMonths = 5)

 

(Image.PatientAgeInMonths >= 10)

 

(Image.PatientAgeInMonths.BETWEEN(15, 30)

 

 

 

The above functions return the patient age as a number value, so you can use the number functions to write your search condition(s).