<%@ include file="/includes.jsp"%>
<c:choose>
	<c:when test="${((webapp.roleManagement and ('InCompleteReferrals' ne parentScreen)) and ('ReferAPatient' ne parentScreen)) or  ('FindExisting' eq parentScreen)}">
		<tiles:insertTemplate template ="/referrals/tiles/managementMenu.jsp" ></tiles:insertTemplate>
	</c:when>
	<c:otherwise>
		<tiles:insertTemplate template ="/referrals/tiles/referralsFormMenu.jsp" ></tiles:insertTemplate>
	</c:otherwise>
</c:choose> 
<sec:authorize access="hasRole('NMDM_SUBMITTER')">
<c:if test="${('Response' eq consultationNoteForm.view.formName) and (2 eq emdt.currentCareSpell.referralDetails.referralStatus) and (emdt.currentCareSpell.referralDetails.referredFromUser.username eq webapp.currentUser.username)}">
	<div class="rowDivSmall">
	<div class="blueContainer"><br />
	&nbsp;&nbsp;Please acknowledge the response by checking this box.
	&nbsp;<input type="checkbox" name="isCompleted" id="isCompleted" onClick="setReferralCompleted();" /><br />
	<br/>
	</div>
	</div>
</c:if>
 <c:choose>
	<c:when
		test="${requestScope.referralStatus ne null && requestScope.referralStatus eq 'reffered'}">
		<script>
			openAlreadyReferedfWindow();
		</script>
	</c:when>
</c:choose>
</sec:authorize>