Last change
on this file since 1531 was 985, checked in by George Lilly, 14 years ago |
set up testing environment
|
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.