Example Tier Migration Rules
The following example defines a rule where ultrasound images will be kept on tier 1 until the study is 3 weeks old.
<rule id="US Tier1 Retention">
<condition expressionLanguage="dicom">
<equal test="$Modality" refValue="US" />
</condition>
<action>
<tier1-retention time="3" unit="weeks" refValue="$StudyDate" />
</action>
</rule>
Example Online Retention Rules
The following example defines a rule where MR and CT studies will be kept only for 4 weeks from when they were processed.
<rule id="MR CT Online Retention">
<condition expressionLanguage="dicom">
<or>
<equal test="$Modality" refValue="MR" />
<equal test="$Modality" refValue="CT" />
</or>
</condition>
<action>
<online-retention time="4" unit="weeks" />
</action>
</rule>
Example Deletion Rules
The following example defines a rule where any study where the Patient's age (based on the Patient's Birth Date DICOM tag) is less than 21 years old will not be deleted until the Patient reaches the age of 21.
<rule>
<condition expressionLanguage="dicom">
<dicom-age-less-than test="$PatientsBirthDate" units="years" refValue="21" />
</condition>
<action>
<study-delete time="21" unit="years" refValue="$PatientBirthDate" />
</action>
</rule>
The following example specifies a rule for MR images to not be deleted for 10 weeks.
<rule>
<condition expressionLanguage="dicom">
<equal test="$Modality" refValue="MR" />
</condition>
<action>
<study-delete time="10" unit="weeks" />
</action>
</rule>