Index: ccr2ccd-xslt/trunk/templates/defaultCSS.xsl
===================================================================
--- ccr2ccd-xslt/trunk/templates/defaultCSS.xsl	(revision 758)
+++ ccr2ccd-xslt/trunk/templates/defaultCSS.xsl	(revision 758)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+<xsl:template name="defaultCCS">
+<style type="text/css">
+*{
+	font-size: x-small;
+	font-family: Arial, sans-serif;
+}
+h1{
+	font-weight: bold;
+    font-size: medium;
+}
+strong.clinical {
+	color: #3300FF;
+}
+p {
+	margin-left: 20px
+}
+span.header{
+	font-weight: bold;
+    font-size: medium;
+    line-height: 16pt;
+	padding-top: 10px;
+}
+table.list {
+	padding-bottom: 5px;
+	border: thin solid #cccccc;
+	border-style-internal: thin solid #cccccc;
+	BORDER-COLLAPSE: collapse;
+	background: white;
+	background-image: none
+}
+table.list th {
+	text-align: left;
+	FONT-WEIGHT: bold;
+	COLOR: white;
+	background: #006699;
+	background-image: none
+}
+table.list td {
+	padding: 5px;
+	border: thin solid #cccccc;
+	vertical-align: top;
+}
+table.internal {
+	border: none;	
+}
+table.internal td {
+	vertical-align: top;
+    padding: 1px;
+    border: none;
+}
+table.internal tr.even{
+	background: #CEFFFF;
+	background-image: none
+}
+</style>
+</xsl:template>
+</xsl:stylesheet>
Index: ccr2ccd-xslt/trunk/templates/directions.xsl
===================================================================
--- ccr2ccd-xslt/trunk/templates/directions.xsl	(revision 758)
+++ ccr2ccd-xslt/trunk/templates/directions.xsl	(revision 758)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+	<xsl:template match="a:Directions">
+		<xsl:for-each select="a:Direction">
+			<xsl:choose>
+				<xsl:when test="position() mod 2=0">
+					<tr class="even">
+						<xsl:choose>
+							<xsl:when test="a:Description/a:Text">
+								<td>
+									<xsl:value-of select="a:Description/a:Text"/>
+								</td>
+							</xsl:when>
+							<xsl:otherwise>
+								<td>
+									<xsl:value-of select="a:Dose/a:Value"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Dose/a:Units/a:Unit"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Route/a:Text"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Frequency/a:Value"/>
+									<xsl:if test="a:Duration"><xsl:text xml:space="preserve"> </xsl:text>(for <xsl:value-of select="a:Duration/a:Value"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Duration/a:Units/a:Unit"/>)
+																								</xsl:if>
+								</td>
+								<xsl:if test="a:MultipleDirectionModifier/a:ObjectAttribute">
+									<td>
+										<xsl:for-each select="a:MultipleDirectionModifier/a:ObjectAttribute">
+											<xsl:value-of select="a:Attribute"/>
+											<br/>
+											<xsl:value-of select="a:AttributeValue/a:Value"/>
+										</xsl:for-each>
+									</td>
+								</xsl:if>
+							</xsl:otherwise>
+						</xsl:choose>
+					</tr>
+				</xsl:when>
+				<xsl:otherwise>
+					<tr class="odd">
+						<xsl:choose>
+							<xsl:when test="a:Description/a:Text">
+								<td>
+									<xsl:value-of select="a:Description/a:Text"/>
+								</td>
+							</xsl:when>
+							<xsl:otherwise>
+								<td>
+									<xsl:value-of select="a:Dose/a:Value"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Dose/a:Units/a:Unit"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Route/a:Text"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Frequency/a:Value"/>
+									<xsl:if test="a:Duration"><xsl:text xml:space="preserve"> </xsl:text>(for <xsl:value-of select="a:Duration/a:Value"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="a:Duration/a:Units/a:Unit"/>)
+																								</xsl:if>
+								</td>
+								<xsl:if test="a:MultipleDirectionModifier/a:ObjectAttribute">
+									<td>
+										<xsl:for-each select="a:MultipleDirectionModifier/a:ObjectAttribute">
+											<xsl:value-of select="a:Attribute"/>
+											<br/>
+											<xsl:value-of select="a:AttributeValue/a:Value"/>
+										</xsl:for-each>
+									</td>
+								</xsl:if>
+							</xsl:otherwise>
+						</xsl:choose>
+					</tr>
+				</xsl:otherwise>
+			</xsl:choose>
+		</xsl:for-each>
+	</xsl:template>
+</xsl:stylesheet>
Index: ccr2ccd-xslt/trunk/templates/footer.xsl
===================================================================
--- ccr2ccd-xslt/trunk/templates/footer.xsl	(revision 758)
+++ ccr2ccd-xslt/trunk/templates/footer.xsl	(revision 758)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+	<!-- HTML Footer for CCR.XSL -->
+	<xsl:template name="footer">
+		<br/>
+		<hr/>
+		<table cellspacing="3" bgcolor="#006666">
+			<tbody>
+				<tr>
+					<th>
+						<font size="2" color="#FFFF99">
+	This stylesheet is provided by the American Academy of Family Physicians and the CCR Acceleration Task Force
+</font>
+					</th>
+				</tr>
+				<tr>
+					<td/>
+				</tr>
+				<tr>
+					<td>
+						<font size="3" color="#FFFF99"><strong>Powered by the <a style="color:white;" href="http://www.astm.org/cgi-bin/SoftCart.exe/DATABASE.CART/REDLINE_PAGES/E2369.htm?E+mystore">ASTM E2369-05 Specification for the Continuity of Care Record (CCR)</a> which includes:</strong></font>
+					</td>
+				</tr>
+				<tr>
+					<td>
+				<table cellpadding="2" cellspacing="2" width="100%">
+					<tbody>
+						<tr>
+							<td><font size="2" color="#FFFF99">Advance Directives</font></td>
+							<td><font size="2" color="#FFFF99">Alerts / Allergies</font></td>
+							<td><font size="2" color="#FFFF99">Encounters</font></td>
+							<td><font size="2" color="#FFFF99">Family History</font></td>
+							<td><font size="2" color="#FFFF99">Functional Status</font></td>
+						</tr>
+						<tr>
+							<td><font size="2" color="#FFFF99">Health Care Providers</font></td>
+							<td><font size="2" color="#FFFF99">Immunizations</font></td>
+							<td><font size="2" color="#FFFF99">Insurance</font></td>
+							<td><font size="2" color="#FFFF99">Medical Equipment</font></td>
+							<td><font size="2" color="#FFFF99">Medications</font></td>
+						</tr>
+						<tr>
+							<td><font size="2" color="#FFFF99">Plan Of Care</font></td>
+							<td><font size="2" color="#FFFF99">Problems</font></td>
+							<td><font size="2" color="#FFFF99">Procedures</font></td>
+							<td><font size="2" color="#FFFF99">Results</font></td>
+							<td><font size="2" color="#FFFF99">Social History</font></td>
+						</tr>
+						<tr>
+							<td><font size="2" color="#FFFF99">Support Providers</font></td>
+							<td><font size="2" color="#FFFF99">Vital Signs</font></td>
+						</tr>
+					</tbody>
+				</table>
+			
+					</td>
+				</tr>
+			</tbody>
+		</table>		
+	</xsl:template>
+</xsl:stylesheet>
Index: ccr2ccd-xslt/trunk/templates/hl7oid.xml
===================================================================
--- ccr2ccd-xslt/trunk/templates/hl7oid.xml	(revision 758)
+++ ccr2ccd-xslt/trunk/templates/hl7oid.xml	(revision 758)
@@ -0,0 +1,23 @@
+﻿<?xml version="1.0" encoding="utf-8" ?>
+<entities>
+    <entity>
+        <name>ICD9-CM</name>
+        <oid>2.16.840.1.113883.6.2</oid>        
+    </entity>
+    <entity>
+        <name>ICD10</name>
+        <oid>2.16.840.1.113883.6.3</oid>
+    </entity>
+    <entity>
+        <name>SNOMED-CT</name>
+        <oid>2.16.840.1.113883.6.96</oid>
+    </entity>
+    <entity>
+        <name>CPT-4</name>
+        <oid>2.16.840.1.113883.6.12</oid>
+    </entity>
+    <entity>
+        <name>LOINC</name>
+        <oid>2.16.840.1.113883.6.1</oid>
+    </entity>    
+</entities>
Index: ccr2ccd-xslt/trunk/templates/hl7oidlookup.xsl
===================================================================
--- ccr2ccd-xslt/trunk/templates/hl7oidlookup.xsl	(revision 758)
+++ ccr2ccd-xslt/trunk/templates/hl7oidlookup.xsl	(revision 758)
@@ -0,0 +1,9 @@
+﻿<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+    <xsl:template name="HL7OIDLookup">
+        <xsl:param name="name"/>
+
+        <xsl:value-of select="document('hl7oid.xml')/entities/entity[name=$name]/oid"/>        
+    </xsl:template>
+</xsl:stylesheet>
+
