I didn't want to overwrite the original (hl7-order2dcm.xsl) stylesheet but create a new one. I did that and changed the entry in LDAP to this stylesheet.
Background was, that in a hospital both the RIS and the HIS send HL7 messages to the Pacs.
In the stylesheet there is now a differentiated treatment, depending on which system the message is received from, based on certain factors.
In the future we will place a com server in front of the pacs to standardize the HL7 messages.
<?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"/>
<xsl:include href="hl7-common.xsl"/>
<xsl:param name="hl7ScheduledProtocolCodeInOrder"/>
<xsl:param name="hl7ScheduledStationAETInOrder"/>
<xsl:template match="/hl7">
<NativeDicomModel>
<xsl:apply-templates select="PID"/>
<xsl:apply-templates select="PV1"/>
<xsl:apply-templates select="ORC[1]"/>
<xsl:apply-templates select="OBR[1]"/>
<xsl:apply-templates select="TQ1[1]"/>
<xsl:apply-templates select="OBX[1]"/>
<xsl:apply-templates select="OBX[2]"/>
<!-- Scheduled Procedure Step Sequence -->
<DicomAttribute tag="00400100" vr="SQ">
<xsl:apply-templates select="ORC" mode="sps"/>
</DicomAttribute>
<xsl:apply-templates select="ZDS"/>
</NativeDicomModel>
</xsl:template>
<xsl:template match="OBX[1]">
<!-- Patient's Size -->
<xsl:call-template name="attr">
<xsl:with-param name="tag" select="'00101020'"/>
<xsl:with-param name="vr" select="'DS'"/>
<xsl:with-param name="val" select="string(field[5]/text())"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="OBX[2]">
<!-- Patient's Weight -->