Change "Modality" DICOM field systematically

213 views
Skip to first unread message

Andrea Venanzi

unread,
Oct 3, 2014, 12:21:48 PM10/3/14
to dcm...@googlegroups.com
Hi! I have a digitized mammograms with " CR " as modality and " Mammo " as study description , can I change systematically its default modality DICOM field to " MG " when images arrive to dcm4chee PACS? 
Thank you so much!

Andrea

fleetwoodfc

unread,
Oct 3, 2014, 3:52:16 PM10/3/14
to dcm...@googlegroups.com
Yes you can do attribute coercion using a cstorerq.xsl file - there is a sample in ../server/default/conf/dcm4chee-ae/MOD_AET

Andrea Venanzi

unread,
Oct 4, 2014, 4:01:28 PM10/4/14
to dcm...@googlegroups.com
Thank you fleetwoodfc! Works like a charm!

Andrea

Alessandro Alla

unread,
Jan 10, 2016, 1:30:34 AM1/10/16
to dcm4che
I couldn't make it work. 
I did this

            <xsl:variable name="StudyDesc" select="attr[@tag='00081030']" case-sensitive="false"/>
            <xsl:variable name="Modality" select="attr[@tag='00080060']"/>
            <xsl:if test="contains($Modality, 'CR') and  contains($StudyDesc, 'Mama')">
                <xsl:value-of select="translate($Modality, 'CR','MG')"/>
            </xsl:if>

fleetwoodfc

unread,
Jan 10, 2016, 8:59:10 AM1/10/16
to dcm4che
remove "case-sensitive="false"" as this is not a valid attribute of xsl:variable

Reply all
Reply to author
Forward
0 new messages