<?xml version="1.0" encoding="UTF-8"?>
<!-- DO NOT EDIT -->
<!-- THIS FILE AFFECTS THE LAYOUT OF PATIENT REPORTS -->
<!-- INCORRECT CHANGES TO THIS FILE COULD CAUSE MISSING OR CORRUPT REPORTS -->

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="VirtuaReport">
  <html>
  <head>
  	<title>Report for <xsl:value-of select="Patient/PatientName"/></title>
  	<style type="text/css">
	/*
		.class = class definition (1+ instances in a page)
		#id    = id definition (unique instance in a page)  
		
		a:link, a:visited, a:hover, a:active { keep links one color }
	*/
	body {
		font-family: arial, "lucida console", sans-serif;
		width: 780px;
		text-align: center;
		margin-left: auto;
		margin-right: auto; 
	}
	div, p {
		text-align: left;
	}
	#Header, #PatientStudyInfo, #FinalInterpretation, #footer {
		width: 780px;
	}
	#Header {
		position: relative;
		height: 116px;
	}
	#logoHeader {
		position: absolute;
		top: 3px;
		left: 10px;
	}
	#siteInfoHeader {
		position: absolute;
		top: 3px;
		left: 392px;
	}
	#SiteName {
		font-size: 1.25em;
		font-weight: bold;
	}
	#PatientStudyInfo {
		margin-top: 10px;
		margin-bottom: 10px;
	}
	#PatientInfo {
	}
	#StudyInfo {
	}
	#FinalInterpretation {
		border-top: 2px solid gray;
		border-bottom: 2px solid gray;
		margin: 5px;
		padding: 15px 15px;
	}
	.ObservationIdentifier, .ObservationText {
		/*  Uncomment for fixed-width text under Final Interpretation */
		/*	
			font-family: "Courier New", Courier, monospace; 
		*/
	}
	#footer {
		font-size: .8em;
		text-align: center;
	}
	.label {
		font-weight: bold;
		padding-right: 5px;
	}
	#ExamReadBy, #ExamTranscribedBy {
		font-style: italic;
		font-size: .8em;
		margin: 0px;
	}
	</style>

  </head>
  <body>
  		<div id="Header">
	  		<img id="logoHeader" src="images/logo.jpg" />
	  		<div id="siteInfoHeader">
				<p><span id="SiteName"><xsl:value-of select="Site/SiteName"/></span><br />
				<xsl:for-each select="Site/SiteAddress">
					<xsl:value-of select="."/><br/>
				</xsl:for-each>
				<xsl:value-of select="Site/SitePhoneNumber"/></p>
			</div>
		</div>
		<table id="PatientStudyInfo">
			<tr>
				<td width="50%">
				<div id="PatientInfo">
					<p> <span class="label" style="font-size: 1.25em;">Patient:</span><br />
						<xsl:value-of select="Patient/PatientName"/><br />
						<xsl:for-each select="Patient/PatientAddress">
							<xsl:value-of select="."/><br />
						</xsl:for-each>
						<xsl:value-of select="Patient/PatientPhoneNumber"/><br />
						<span class="label">Patient ID:</span> <xsl:value-of select="Patient/PatientID"/><br />
						<span class="label">DOB:</span> <xsl:value-of select="Patient/PatientBirthDate"/><br />
						<span class="label">Sex:</span> <xsl:value-of select="Patient/PatientSex"/><br />
					</p>
				</div>
				</td>
				
				<td width="50%">
				<div id="StudyInfo">
			    <span class="label">Accession Number:</span> <xsl:value-of select="Study/AccessionNumber"/><br />
			    <span class="label">Exam Date:</span> <xsl:value-of select="Study/ExamDate"/><br />
			    <span class="label">Modality:</span> <xsl:value-of select="Study/Modality"/><br />
			    <br />
			    <span class="label">Ordering Provider:</span> <xsl:value-of select="Study/OrderingProvider"/><br />
			    <span class="label">Reasons For Study:</span> <xsl:value-of select="Study/ReasonForStudy"/><br />
			    </div>
			    </td>
		    </tr>
	    </table>
	    <div id="FinalInterpretation">
		<!--
	    <h3>FINAL INTERPRETATION:</h3>
	    -->
	    <p class="ObservationIdentifier"><xsl:value-of select="Study/ObservationIdentifier"/><br />
	    <br/>
	    <!-- <xsl:value-of select="Study/ObservationText"/><br/> -->
		    <p class="ObservationText"> 
		    <xsl:for-each select="Study/ObservationText">
			  	<xsl:value-of select="."/> <br />
		    </xsl:for-each>
		    </p>
	    </p>
	    <!--
	    <p id="ExamReadBy">Exam Read By: <xsl:value-of select="Study/PrincipalResultsInterpreter"/></p>
	    <p id="ExamTranscribedBy">Exam Transcribed By: <xsl:value-of select="Study/Transcriptionist"/></p>
		-->
	    </div>
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>
