Skip to content

Commit 87afa8a

Browse files
committed
HL7 order messages to MWL / HL7 ORU messages to DICOM SRs, PDFs : Enable mapping of PV1.8 to Referring Physician Identification Sequence (0008,0096) fields #4157
1 parent fe3c47b commit 87afa8a

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

dcm4chee-arc-conf-data/src/main/resources/hl7-common.xsl

+27-2
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,7 @@
773773
<xsl:with-param name="val" select="string(field[2]/text())"/>
774774
</xsl:call-template>
775775
<!-- Referring Physician Name -->
776-
<xsl:call-template name="cn2pnAttr">
777-
<xsl:with-param name="tag" select="'00080090'"/>
776+
<xsl:call-template name="referringPhysician">
778777
<xsl:with-param name="cn" select="field[8]"/>
779778
</xsl:call-template>
780779
<xsl:call-template name="attr">
@@ -788,6 +787,32 @@
788787
</xsl:call-template>
789788
</xsl:template>
790789

790+
<xsl:template name="referringPhysician">
791+
<xsl:param name="cn"/>
792+
<!-- Referring Physician Name -->
793+
<xsl:call-template name="cn2pnAttr">
794+
<xsl:with-param name="tag" select="'00080090'"/>
795+
<xsl:with-param name="cn" select="$cn"/>
796+
</xsl:call-template>
797+
<!-- Referring Physician identification Sequence -->
798+
<xsl:variable name="id" select="$cn/text()"/>
799+
<xsl:if test="$id">
800+
<DicomAttribute tag="00080096" vr="SQ">
801+
<Item number="1">
802+
<DicomAttribute tag="00401101" vr="SQ">
803+
<Item number="1">
804+
<xsl:call-template name="attr">
805+
<xsl:with-param name="tag" select="'00080100'"/>
806+
<xsl:with-param name="vr" select="'SH'"/>
807+
<xsl:with-param name="val" select="$id"/>
808+
</xsl:call-template>
809+
</Item>
810+
</DicomAttribute>
811+
</Item>
812+
</DicomAttribute>
813+
</xsl:if>
814+
</xsl:template>
815+
791816
<xsl:template name="pregnancyStatus">
792817
<xsl:param name="ambulantStatus"/>
793818
<xsl:if test="$ambulantStatus">

0 commit comments

Comments
 (0)