1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 Conversion of CCR to Level 3 CCD
5 Orginal Author: Ken Miller
7 ken.miller@solventus.coms
10 Richard Braman, EHR Doctors, Inc rbraman@ehrdoctors.com
11 George Lilly (WorldVistA glilly@glilly.net)
12 xxxx - Oroville Hospital
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.
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">
41 <xsl:when test=
"a:Description/a:Text">
42 <xsl:value-of select=
"a:Description/a:Text"/>
45 <xsl:value-of select=
"$objID"/>
51 <!-- End problemDescription template -->