<!-- start emdt/patientSearchLayout.jsp -->
<%@ include file="/includes.jsp" %>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<c:if test="${singleResult eq true && fn:length(redirect) gt 0}">
<input type="hidden" id="redirectpath" value="<c:out value="${redirect}"/>"/>
<script type="text/javascript">
	document.location=document.getElementById('redirectpath').value;
</script>
</c:if>

<div class="breadcrumb">
You are here: <a href="../emdt/emdtHome.form"><img src="../emdt/images/16x16/icon.png" style="vertical-align: top;"/> eMDT</a> &gt; <a class="selected" href="../emdt/patientSearch.form">Find Patient</a>
</div>

<smvc:form modelAttribute="patientSearchForm" action="../emdt/patientSearch.form" >
	<input type="hidden" name="redirectParams" value="<c:out value="${requestScope['javax.servlet.forward.query_string']}" />" />
	<table >
		<tr><td class="error"><c:out value="${errors}"/></td></tr>
		<tr>
			<td valign="top" height="100%">
				<tiles:insertTemplate template ="patientSearchBox.jsp"/>
			</td>
		</tr>
	</table>
</smvc:form>

<c:if test="${!empty(noResults)}">
	<br/><span class="info">Your search returned no results.</span>
</c:if>

<c:if test="${not empty patientSearchResults}">
	<tiles:insertTemplate template="patientSearchResultsBox.jsp"/>
</c:if>


<!-- end emdt/patientSearchLayout.jsp -->
