Commit 891f0f83 authored by Ann Magdalen Hegge's avatar Ann Magdalen Hegge
Browse files

Update type under Opprinnelig henvisning for Epikrise

parent 679695b0
<?xml version="1.0" encoding="utf-8"?>
<!--
Endringslogg:
- 01.07.21: v5.1.4 - Vis riktig type (MsgDescr) under Opprinnelig henvisning
- 04.06.21: v5.1.3 - Lagt til xsl:output for å definere at output formatet skal være html
- 31.05.21: v5.1.2 - Tillate MimeType (vedlegg) med store bokstaver
- 12.05.21: v5.1.1 - Fjern tomme <div>'s
......@@ -48,7 +49,7 @@ Om:
<xsl:output method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" />
<!-- Variabel for hvilken versjon av visningsfilen -->
<xsl:variable name="versjon" select="'epikrise v.uavhengig - v5.1.3'"/>
<xsl:variable name="versjon" select="'epikrise v.uavhengig - v5.1.4'"/>
<!-- Variabeler for standard antall kolonner i tabellene, og for standard cellebredde i tabellene -->
<xsl:variable name="std-col" select="8"/>
......@@ -1410,22 +1411,11 @@ Om:
<!-- Visning av Henvisning -->
<xsl:template name="ServReq">
<xsl:variable name="color2">
<xsl:choose>
<xsl:when test="child::*[local-name()='ServType'][@V='M' or @V='C' or @V='O']">red</xsl:when>
<xsl:otherwise>black</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="eh-row-5">
<xsl:if test="child::*[local-name()='MsgDescr']">
<div class="eh-col-1">
<div class="eh-label">Type</div>
<div class="eh-field">
<xsl:value-of select="child::*[local-name()='MsgDescr']"/> <!-- For versjon av epikrise hvor MsgDescr er kith:ST -->
<xsl:for-each select="child::*[local-name()='ServType'][@V!='N']">
&#160;<span style="color={$color2};"><xsl:call-template name="k-7309"/></span>
</xsl:for-each>
</div>
<div class="eh-field"><xsl:value-of select="child::*[local-name()='MsgDescr']/@DN"/></div>
</div>
</xsl:if>
<xsl:if test="child::*[local-name()='IssueDate']">
......@@ -1460,17 +1450,35 @@ Om:
</div>
</div>
</xsl:if>
</div>
<!-- Endring pr 22.05.2017 -->
<!-- Finn antall diagnoser for å lage en tittel som er Diagnose/Diagnoser -->
<xsl:choose>
<xsl:when test="count(child::*[local-name()='Diagnosis'])>1">
<div class="eh-col-1">
<div class="eh-label">Diagnoser:</div>
<xsl:for-each select="child::*[local-name()='Diagnosis']">
<div class="eh-col-1">
<div class="eh-field">
<div class="eh-row-5">
<xsl:choose>
<xsl:when test="count(child::*[local-name()='Diagnosis'])>1">
<div class="eh-col-1">
<div class="eh-label">Diagnoser:</div>
<xsl:for-each select="child::*[local-name()='Diagnosis']">
<div class="eh-col-1">
<div class="eh-field">
<xsl:value-of select="child::*[local-name()='Concept']/@DN"/>,&#160;
<xsl:value-of select="child::*[local-name()='Concept']/@V"/>&#160;
<xsl:if test="contains(child::*[local-name()='Concept']/@S, '7170')">(ICPC)&#160;</xsl:if>
<xsl:if test="contains(child::*[local-name()='Concept']/@S, '7110')">(ICD-10)&#160;</xsl:if>
<xsl:for-each select="child::*[local-name()='Modifier']">
<xsl:value-of select="child::*[local-name()='Value']/@V"/>,&#160;
<xsl:value-of select="child::*[local-name()='Value']/@DN"/>&#160;
</xsl:for-each>
</div>
</div>
</xsl:for-each>
</div>
</xsl:when>
<xsl:otherwise>
<div class="eh-col-1">
<div class="eh-label">Diagnose:</div>
<div class="eh-field">
<xsl:for-each select="child::*[local-name()='Diagnosis']">
<xsl:value-of select="child::*[local-name()='Concept']/@DN"/>,&#160;
<xsl:value-of select="child::*[local-name()='Concept']/@V"/>&#160;
<xsl:if test="contains(child::*[local-name()='Concept']/@S, '7170')">(ICPC)&#160;</xsl:if>
......@@ -1479,31 +1487,12 @@ Om:
<xsl:value-of select="child::*[local-name()='Value']/@V"/>,&#160;
<xsl:value-of select="child::*[local-name()='Value']/@DN"/>&#160;
</xsl:for-each>
</div>
</div>
</xsl:for-each>
</div>
</xsl:when>
<xsl:otherwise>
<div class="eh-col-1">
<div class="eh-label">Diagnose:</div>
<div class="eh-field">
<xsl:for-each select="child::*[local-name()='Diagnosis']">
<xsl:value-of select="child::*[local-name()='Concept']/@DN"/>,&#160;
<xsl:value-of select="child::*[local-name()='Concept']/@V"/>&#160;
<xsl:if test="contains(child::*[local-name()='Concept']/@S, '7170')">(ICPC)&#160;</xsl:if>
<xsl:if test="contains(child::*[local-name()='Concept']/@S, '7110')">(ICD-10)&#160;</xsl:if>
<xsl:for-each select="child::*[local-name()='Modifier']">
<xsl:value-of select="child::*[local-name()='Value']/@V"/>,&#160;
<xsl:value-of select="child::*[local-name()='Value']/@DN"/>&#160;
</xsl:for-each>
</xsl:for-each>
</div>
</div>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</div>
<!-- Endring pr 22.05.2017 SLUTT-->
<xsl:for-each select="child::*[local-name()='ReasonAsText']">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment