my task is to modify the response of dcm4chee that is being sent back to the modality after a worklist request. i'm using attribute coercion.
this is how far i got my dcm4chee:
- i get my modality logged in the directory server/default/log/AETitle
- i get those .in/.out files that are being created during coercion in the directory server/default/log/coercion
the generated <timestamp>-mwl-cfindrsp.xml file (in log/AETitle directory) and the <timestamp>.mwl-cfindrsp.xsl.in (log/coercion directory) seem to be identical.
my problem is that the <timestamp>.mwl-cfindrsp.xsl.out file only contains my coerced attribute and not the .in file merged with the coerced attributes. where can i find the full response that is sent back to the modality?
my coercion file mwl-cfindrsp.xsl (in directory server/default/conf/dcm4chee-ae) is this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:output method="xml" indent="no"/>
<xsl:template match="/">
<dataset>
<attr tag="00080005" vr="CS">
<xsl:text>ISO_IR 123</xsl:text> <!-- 100=LATIN1, 192=UTF8 -->
</attr>
</dataset>
</xsl:template>
</xsl:stylesheet>
note: i used ISO_IR 123 on purpose, this makes it easier to see whether my changes have an effect or not.
<timestamp>.mwl-cfindrq.xsl.in is 5k in size and contains all the tags from the request, some of them filled with values. i'm sending the worklist request from a pc running DVTk Modality Emulator.
but:
<timestamp>.mwl-cfindrsp.xsl.out contains only 162 bytes, mirroring only my coerced attribute:
<?xml version="1.0" encoding="UTF-8"?>
<dataset>
<attr tag="00080005" vr="CS" pos="-1" name="Specific Character Set" vm="1" len="10">ISO_IR 123</attr>
</dataset>
where has the rest from the .in file gone?
i guess i'm missing some more instructions in my .xsl file, but google couldn't point me to a tutorial on attribute coercion, so i'm a bit lost now.
any hints?
ps: adding this to my .xsl file didn't lead to a different result, i was expecting this would copy all attributes from the .in file (i'm a n00b in this topic):
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>