Added a provider filter to Procedures / Electronic Reports.
[openemr.git] / ccr / ccd / templates / problemDescription.xsl
blob069a13b1d952999f05107544c2d4d959ea4013e5
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Conversion of CCR to Level 3 CCD
5 Orginal Author: Ken Miller
6 Solventus LLC
7 ken.miller@solventus.coms
9 Contributors:
10 Richard Braman, EHR Doctors, Inc rbraman@ehrdoctors.com
11 George Lilly (WorldVistA glilly@glilly.net)
12 xxxx - Oroville Hospital
14 Date: 2010-05-5
15 Version: 0.1
17 License :
19 This program is free software: you can redistribute it and/or modify
20 it under the terms of the GNU General Public License as published by
21 the Free Software Foundation, either version 3 of the License, or
22 (at your option) any later version.
24 This program is distributed in the hope that it will be useful,
25 but WITHOUT ANY WARRANTY; without even the implied warranty of
26 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 GNU General Public License for more details.
29 You should have received a copy of the GNU General Public License
30 along with this program. If not, see http://www.gnu.org/licenses.
32 -->
33 <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">
34 <!-- Returns the description of the problem, if there is no name it returns the ObjectID that was passed in -->
35 <xsl:template name="problemDescription">
36 <xsl:param name="objID"/>
37 <xsl:for-each select="/a:ContinuityOfCareRecord/a:Body/a:Problems/a:Problem">
38 <xsl:variable name="thisObjID" select="a:CCRDataObjectID"/>
39 <xsl:if test="$objID = $thisObjID">
40 <xsl:choose>
41 <xsl:when test="a:Description/a:Text">
42 <xsl:value-of select="a:Description/a:Text"/>
43 </xsl:when>
44 <xsl:otherwise>
45 <xsl:value-of select="$objID"/>
46 </xsl:otherwise>
47 </xsl:choose>
48 </xsl:if>
49 </xsl:for-each>
50 </xsl:template>
51 <!-- End problemDescription template -->
52 </xsl:stylesheet>