Skip to content

Commit

Permalink
Merge branch 'master' into 5.26.0-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
gunterze committed Mar 22, 2022
2 parents 89258b4 + dc4b4c9 commit b84c2b3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions dcm4chee-arc-conf-data/src/main/resources/hl7-oru2dsr.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<NativeDicomModel>
<xsl:call-template name="const-attrs"/>
<xsl:variable name="valueType" select="OBX/field[2]"/>
<xsl:call-template name="institution">
<xsl:with-param name="performingOrganizationName" select="OBX/field[23]/text()"/>
<xsl:with-param name="sendingOrganization" select="MSH/field[2]/text()"/>
</xsl:call-template>
<xsl:variable name="ed" select="OBX[field[2]/text()='ED']"/>
<xsl:choose>
<xsl:when test="$valueType = 'HD'">
Expand Down Expand Up @@ -53,6 +57,25 @@
</xsl:choose>
</NativeDicomModel>
</xsl:template>

<xsl:template name="institution">
<xsl:param name="performingOrganizationName"/>
<xsl:param name="sendingOrganization"/>
<xsl:call-template name="attr">
<xsl:with-param name="tag" select="'00080080'"/>
<xsl:with-param name="vr" select="'LO'"/>
<xsl:with-param name="val">
<xsl:choose>
<xsl:when test="$performingOrganizationName and string-length($performingOrganizationName) > 0">
<xsl:value-of select="$performingOrganizationName"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$sendingOrganization"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:template>

<xsl:template name="rad28">
<xsl:param name="ed"/>
Expand Down

0 comments on commit b84c2b3

Please sign in to comment.