~ fixed typo (strengh), fixed Immunization/dateAdministered value
authorThomas Gambet <tgambet@w3.org>
Sat, 17 Jul 2010 15:47:41 -0400
changeset 8 b93b5a2b391f
parent 7 82b276753f0f
child 9 dfea1107c315
~ fixed typo (strengh), fixed Immunization/dateAdministered value
syntheticPatients/Pat2Indivo2.xsl
--- a/syntheticPatients/Pat2Indivo2.xsl	Thu Jul 15 17:12:04 2010 -0400
+++ b/syntheticPatients/Pat2Indivo2.xsl	Sat Jul 17 15:47:41 2010 -0400
@@ -3,9 +3,7 @@
 <xsl:stylesheet 
 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 	version="2.0"
-	xmlns:fn="http://www.w3.org/2005/xpath-functions/"
-	xmlns:indi='http://indivo.org/vocab/xml/documents#'
-	exclude-result-prefixes="">
+	xmlns="http://indivo.org/vocab/xml/documents">
 
 <xsl:output method="xml" indent='yes' encoding='utf-8'
 omit-xml-declaration="yes"	    
@@ -73,7 +71,7 @@
 						</unit>
 					</dose>
 					<strength>
-						<value><xsl:value-of select="strengh"/></value>
+						<value><xsl:value-of select="strength"/></value>
 						<unit type="http://indivo.org/codes/units#">
 							<xsl:attribute name="value">
 								<xsl:value-of select="unit"/>
@@ -150,7 +148,7 @@
 	<Immunizations>
 		<xsl:for-each select="child::*">
 			<Immunization>
-				<dateAdministered><xsl:value-of select="date"/>T12:00:00</dateAdministered>
+				<dateAdministered><xsl:value-of select="date"/>-01-01T12:00:00</dateAdministered>
 				<xsl:copy-of select="administeredBy"/>
 				<vaccine>
 					<type><xsl:value-of select="name(.)"/></type>