source: ccr2ccd-xslt/trunk/templates/problemDescription.xsl@ 789

Last change on this file since 789 was 747, checked in by Richard Braman, 15 years ago

ainitial file from Ken Miller / first pass at coding problems into Level 3 CCD

File size: 914 bytes
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:astm-org:CCR" xmlns:fo="http://www.w3.org/1999/XSL/Format">
3 <!-- Returns the description of the problem, if there is no name it returns the ObjectID that was passed in -->
4 <xsl:template name="problemDescription">
5 <xsl:param name="objID"/>
6 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Problems/a:Problem">
7 <xsl:variable name="thisObjID" select="a:CCRDataObjectID"/>
8 <xsl:if test="$objID = $thisObjID">
9 <xsl:choose>
10 <xsl:when test="a:Description/a:Text">
11 <xsl:value-of select="a:Description/a:Text"/>
12 </xsl:when>
13 <xsl:otherwise>
14 <xsl:value-of select="$objID"/>
15 </xsl:otherwise>
16 </xsl:choose>
17 </xsl:if>
18 </xsl:for-each>
19 </xsl:template>
20 <!-- End problemDescription template -->
21</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.