Skip to content

Commit

Permalink
Fix #4630 : Outgoing HL7 notification fails for empty Patient Address…
Browse files Browse the repository at this point in the history
… value sent in incoming PID.11 just with component limiters
  • Loading branch information
vrindanayak committed Dec 17, 2024
1 parent ed620ec commit a46b5d3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions dcm4chee-arc-conf-data/src/main/resources/hl7-common-outgoing.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,16 @@
<xsl:choose>
<xsl:when test="starts-with($addrComp, '^')">
<component/>
<xsl:call-template name="addressComp">
<xsl:with-param name="addrComp" select="substring-after($addrComp, '^')"/>
</xsl:call-template>
<xsl:choose>
<xsl:when test="string-length($addrComp) > 1">
<xsl:call-template name="addressComp">
<xsl:with-param name="addrComp" select="substring-after($addrComp, '^')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<component/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="comp" select="substring-before($addrComp, '^')"/>
Expand Down

0 comments on commit a46b5d3

Please sign in to comment.