<%@ include file="/includes.jsp"%>

<link href="../referrals/css/main.css" type="text/css" rel="stylesheet" />
<table width="100%">
	<tr>
		<td><br /></td>
	</tr>
	<tr>
		<td width="29%"></td>
		<td valign="top">
			<form name="selectSpeciality" action="../nationalMDT/nmdmPatientController.form" method="post" onsubmit="return submitTheForm();">
				<fieldset>
					<legend>Choose Speciality </legend>
						<br/>
						<b>Please choose a Speciality or Pathway for this patient:</b><br/><br/>
						<c:if test="${referralPathwaysList!=null and fn:length(referralPathwaysList)>0}">
						<center>
							<c:forEach var="referralsDefinition" items="${referralPathwaysList}">
									<div class="menuButtonDiv" style="margin-bottom: 10px;"
										onclick="location.href='../nationalMDT/nmdmPatientController.form?addnew=true&referralDefId=<c:out value="${referralsDefinition.id}"/>'">
										
										<!-- /nationalMDT/referralsPatient.form ,/nationalMDT/nmdmPatientController.form?addnew=true&referralDefId=<c:out value="${referralsDefinition.id}"/>-->
										<br/> <c:out value="${referralsDefinition.title}"/>
									</div>
							</c:forEach>
						</center>
							<table>
								<tr>
									<td>
									</td>
								</tr>
								<tr>
									<td width="8%"><br /></td>
									<td align="center">							</td>
								</tr>
								<tr>
									<td><br /> <br /></td>
								</tr>
							</table>
						</c:if>
									<div style="text-align: right; width: 100%;">
					<a href="javascript:back();">Cancel</a>
					</div>
				</fieldset>
			</form>
		</td>
		<td width="29%"></td>
	</tr>
</table>