cstorerq.xsl - tag size limitation?

104 views
Skip to first unread message

jne...@gmail.com

unread,
Mar 18, 2014, 12:42:02 AM3/18/14
to

Hi,

I have a cstorerq.xml coercion stylesheet that tries to extract a certain tag, and use it as a variable in the xsl. The tag in question is (0040,1400) RequestedProcedureComments

in cstorerq.xsl I have:


<xsl:variable name="RequestedProcedureComments" select="normalize-space(attr[@tag='00401400'])" />


The extraction/coercion works, but only if there are less than 64 characters of data in (0040,1400), which has a VR of LT, and could be up to 1024 chars long, as far as I know.

If the contents of the tag are more than 64 characters, the coercion doesn't work. The difference can be seen in the logged coercions:

Less than 64 characters, 20140318010426.997.cstorerq.xsl.in:

<attr tag="00401400" vr="LT" pos="1774" name="Requested Procedure Comments" vm="1" len="44">71020^^Chest, 2 Views, Frontal And Lateral| </attr>



More than 64 characters, 20140318005301.576.cstorerq.xsl.in:

<attr tag="00401400" vr="LT" pos="1246" name="Requested Procedure Comments" vm="1" len="68" hide="true"/>


I vaguely remember reading a post at some point very similar to this, which mentioned that the coercion code uses dcm2xml in some way to extract the tags, and in dcm4che 1.x the default 'max lenght' extracted is 64 characters. Using dcm2xml (1.x), if I want to see the full long tag I need to use the -L 1024 option to extract the larger values. For the life of me though - I cannot find that previous post, and don't remember if there was a solution or not.

How can I get dcm4chee's cstorerq.xsl to extract and coerce LT tags that are longer than 64 characters? Is there a setting or configuration somewhere that controls this?

thanks in advance,
Jordan

Emp Tyres

unread,
Mar 30, 2016, 3:21:00 AM3/30/16
to dcm4che
Hi - this seems to be the root cause of an issue I'm having with MPPS so if you could ever find a solution, I'd be really grateful if you gave me a hint.

Bye,

Emp
Reply all
Reply to author
Forward
0 new messages