MPPS2ORM add dicom tag in .xsl

86 views
Skip to first unread message

rrose...@securerad.com

unread,
Jun 20, 2018, 1:01:58 PM6/20/18
to dcm4che
Hi,

It's been 2 days. I think I'm close, but not successful yet.

I've read numerous posts and have successfully been able to get an HL7 message to send to mirth when a study is received.(thanks everyone for that). I am able to modify the message slightly, but I'm still a bit fuzzy on the sections and their purpose, but in my environment, I'm not a programmer, and more importantly not an HL7/MPPS/ORM guru - far from it. I wear too many other hats.... 

I need to add Station Name (Dicom 0008,1010) to the output of my message. Like I said, I'm far from being an xml expert, so I'm not sure where I need to put what. I've been experimenting but can't get the tag to translate.

Also, in enabling the logs from the MPPS2ORM service, in the generated XML file I can see:
<attr tag="00400242" vr="SH" pos="204" name="Performed Station Name" vm="1" len="12">NAME_OF_STATION</attr>
MPPS tags are different then dicom tags correct? 


I don't know what I need to define where. In my mpps2orm.xsl file, I added the dicom tag at the bottom..
        <ZDS>
            <field><xsl:value-of select="normalize-space(attr[@tag='0020000D'])"/>
                <component><xsl:value-of select="$SendingApplication"/></component>
                <component>Application</component>
                <component>DICOM</component>
            </field>
            <field><xsl:value-of select="normalize-space(attr[@tag='00081010'])"/></field>
        </ZDS>


In orm2dcm.xsl I put the following in the ZDS section at the bottom, but I'm not sure if it does anything... I used another "SH" (Scheduled Procedure Step ID) as a model since it seems to be the same with the VR. Maybe if this file doesn't get read, should this get put somewhere else?
        <!-- Station -->
        <xsl:call-template name="attr">
            <xsl:with-param name="tag" select="'00081010'"/>
            <xsl:with-param name="vr" select="'SH'"/>
            <xsl:with-param name="val" select="string(field[20]/text())"/>
        </xsl:call-template>


So,

1) I read somewhere that the ZDS section is customizable as far as attributes. Is this correct, and is this where the Station Name "should" go?

2) Does the tag in the output file of "mpps-received-1.2.3.4.5.... .xml" (0040242 from above) need to be translated/converted somewhere? Or is that just spitting out what it received?

3) Do any other .xml files in the dcm4chee-hl7 directory get referenced for the MPPS2ORM service besides mpps2orm.xsl?

4) Most importantly, where do I put what in order to add this tag to the message??????

Thanks,

Rich
Reply all
Reply to author
Forward
0 new messages