Unable to coerce 0005,0008 (Specific Character Set) on outbound

74 views
Skip to first unread message

jne...@gmail.com

unread,
Feb 15, 2013, 2:57:15 PM2/15/13
to dcm...@googlegroups.com
Hi,

I have a study in dcm4chee that has 0005,0008 (Specific Character Set) empty. I am trying to modify that as I send the study out, using out-cstorerq.xsl, but the study on the receiving side still has the tag empty.

Contents of my out-cstorerq.xsl (the Body tag is a comparison test - it does get modified correctly on outbound):

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="xml" indent="no"/>
  <!-- overwritten by application with actual values -->
  <xsl:param name="calling" select="'SAMPLE_MOD'"/>
  <xsl:param name="called" select="'DCM4CHEE'"/>
  <xsl:param name="date" select="'20051206'"/>
  <xsl:param name="time" select="'115600.000'"/>
  <xsl:template match="/dataset">
    <dataset>
      <attr tag="00080005" vr="CS">ISO_IR 100</attr>
      <attr tag="00180015" vr="CS">BODY</attr>
    </dataset>
  </xsl:template>
</xsl:stylesheet>

I enabled logging of the coercion, and both the server.log, and the coercion log show the tags as being coerced correctly:

server.log:

2013-02-15 19:44:56,288 INFO  -> (Thread-4024) [org.dcm4chex.archive.util.CoercionUtils] Coerce (0008,0005) Specific Character Set,CS,*0,#0,[] to (0008,0005) Specific Character Set,CS,*1,#10,[ISO_IR 100]
2013-02-15 19:44:56,288 INFO  -> (Thread-4024) [org.dcm4chex.archive.util.CoercionUtils] Coerce (0018,0015) Body Part Examined,CS,*0,#0,[] to (0018,0015) Body Part Examined,CS,*1,#4,[BODY]

out-cstorerq.xsl.in:

<attr tag="00080005" vr="CS" pos="0" name="Specific Character Set" vm="0" len="0"/>
<attr tag="00180015" vr="CS" pos="178" name="Body Part Examined" vm="0" len="0"/>

out-cstorerq.xsl.out:

<attr tag="00080005" vr="CS" pos="-1" name="Specific Character Set" vm="1" len="10">ISO_IR 100</attr>
<attr tag="00180015" vr="CS" pos="-1" name="Body Part Examined" vm="1" len="4">BODY</attr>

and yet, the study as received on the receiving system still has 00080005 empty, but 00180015 is modified to contain 'BODY'.

Any ideas? Is the character set tag protected in some way?

thank you,
Jordan

ps> There is nothing on the receiving side that is doing any coercion of character set, and nothing in the logs to indicate that is happening in any way.

Reply all
Reply to author
Forward
0 new messages