Skip to content

Commit

Permalink
dcm4che/dcm4chee-arc-light : MWL Feed from HL7 Order Message: optiona…
Browse files Browse the repository at this point in the history
…lly extract Scheduled Station AE Title from ORC-18

added handling of scheduled station name to stylesheet for hl7 v2.3 messages : Scheduled station AET in lower case
  • Loading branch information
vrindanayak committed Jul 25, 2017
1 parent 19c93c6 commit 8321a93
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dcm4chee-arc-conf-data/src/main/resources/hl7-order2dcm.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,18 @@
<Item number="1">
<xsl:choose>
<xsl:when test="$hl7ScheduledStationAETInOrder = 'ORC_18'">
<xsl:variable name="ssaet" select="string(field[18]/text())" />
<!-- Scheduled Station AE Title -->
<xsl:call-template name="attr">
<xsl:with-param name="tag" select="'00400001'"/>
<xsl:with-param name="vr" select="'AE'"/>
<xsl:with-param name="val" select="string(field[18]/text())"/>
<xsl:with-param name="val" select="$ssaet"/>
</xsl:call-template>
<!-- Scheduled Station Name -->
<xsl:call-template name="attr">
<xsl:with-param name="tag" select="'00400010'"/>
<xsl:with-param name="vr" select="'SH'"/>
<xsl:with-param name="val" select="translate($ssaet, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise/>
Expand Down

0 comments on commit 8321a93

Please sign in to comment.