Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
publisert
standarder
Commits
891f0f83
Commit
891f0f83
authored
Jul 01, 2021
by
Ann Magdalen Hegge
Browse files
Update type under Opprinnelig henvisning for Epikrise
parent
679695b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
visningsfil/epikrise/Epikrise2html.xsl
View file @
891f0f83
<?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']"
>
 
<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"
/>
,
 
<xsl:value-of
select=
"child::*[local-name()='Concept']/@V"
/>
 
<xsl:if
test=
"contains(child::*[local-name()='Concept']/@S, '7170')"
>
(ICPC)
 
</xsl:if>
<xsl:if
test=
"contains(child::*[local-name()='Concept']/@S, '7110')"
>
(ICD-10)
 
</xsl:if>
<xsl:for-each
select=
"child::*[local-name()='Modifier']"
>
<xsl:value-of
select=
"child::*[local-name()='Value']/@V"
/>
,
 
<xsl:value-of
select=
"child::*[local-name()='Value']/@DN"
/>
 
</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"
/>
,
 
<xsl:value-of
select=
"child::*[local-name()='Concept']/@V"
/>
 
<xsl:if
test=
"contains(child::*[local-name()='Concept']/@S, '7170')"
>
(ICPC)
 
</xsl:if>
...
...
@@ -1479,31 +1487,12 @@ Om:
<xsl:value-of
select=
"child::*[local-name()='Value']/@V"
/>
,
 
<xsl:value-of
select=
"child::*[local-name()='Value']/@DN"
/>
 
</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"
/>
,
 
<xsl:value-of
select=
"child::*[local-name()='Concept']/@V"
/>
 
<xsl:if
test=
"contains(child::*[local-name()='Concept']/@S, '7170')"
>
(ICPC)
 
</xsl:if>
<xsl:if
test=
"contains(child::*[local-name()='Concept']/@S, '7110')"
>
(ICD-10)
 
</xsl:if>
<xsl:for-each
select=
"child::*[local-name()='Modifier']"
>
<xsl:value-of
select=
"child::*[local-name()='Value']/@V"
/>
,
 
<xsl:value-of
select=
"child::*[local-name()='Value']/@DN"
/>
 
</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']"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment