mwl-cfindrq.xsl coerce Scheduled Procedure Start Time

200 views
Skip to first unread message

Steve Pillar

unread,
Dec 15, 2014, 11:57:08 AM12/15/14
to dcm...@googlegroups.com
Hi,

I need to limit the worklist returned to modalities. I am already coercing by AET and date but need to limit the list further so that a specific modality receives the exams scheduled for the morning, and another those scheduled for the afternoon.

I know this topic has been raised before (http://forums.dcm4che.org/jiveforums/thread.jspa?threadID=1261). My knowledge of xsl scripting is limited and I have tried to follow what was suggested there but without success.

Any guidance and suggestions would be very much appreciated.

Steve Pillar

unread,
Dec 19, 2014, 3:53:04 AM12/19/14
to dcm...@googlegroups.com
Hi,

So the following mwl-cfindrq.xsl file is how I am currently coercing the worklist:

<?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>
      <!-- Scheduled Procedure Step Sequence -->
      <attr tag="00400100" vr="SQ">
        <item>
          <!-- Scheduled Procedure Step Sequence -->
          <attr tag="00400001" vr="AE">
            <!--xsl:value-of select="$calling"/-->
            <xsl:text>VOL01</xsl:text>
          </attr>
 <!-- Scheduled Procedure Step Start Date -->
          <attr tag="00400002" vr="DA">
            <xsl:value-of select="$date"/>
          </attr>
 <!-- Scheduled Procedure Step Start Time -->
 <!-- <attr tag="00400003" vr="TM">110100.000000</attr> -->
        </item>
      </attr>
    </dataset>
  </xsl:template>
</xsl:stylesheet>

I have included the Start Time tag but am unsure about how to manipulate it to morning or afternoon.

fleetwoodfc

unread,
Dec 19, 2014, 8:48:54 AM12/19/14
to dcm...@googlegroups.com
Nice thing about using xslt is that there is plenty of help available if you 'google it' e.g. xslt 1.0 date and time comparisons

Steve Pillar

unread,
Dec 23, 2014, 8:21:06 AM12/23/14
to dcm...@googlegroups.com
There is plenty on the web about xslt date and time comparisons but to apply that to dcm4chee worklist coercion is still not at all clear.

So as per my existing mwl-cfindrq file, the worklist query will return all items for the VOL01 worklist and on the current date. 

What I want is to further coerce the returned items based on whether it is morning or afternoon.

Any clarity and illumination supplied would be very much appreciated.
Reply all
Reply to author
Forward
0 new messages