<%@ include file="/includes.jsp" %>
<%session.removeAttribute("displayList"); %>

<%@ page import="org.apache.commons.logging.Log"%> 
<%@ page import="org.apache.commons.logging.LogFactory"%> 
<% Log log = LogFactory.getLog(getClass());%> 

<%log.info("initialView.jsp: start");%>

<%log.info("initialView.jsp: about to check ROLE_SUMMARY");%>

<sec:authorize access="hasRole('SUMMARY')">
	<c:redirect url="/summary/index.form"/>
</sec:authorize>

<%log.info("initialView.jsp: about to check ROLE_KIOSK");%>

<sec:authorize access="hasRole('KIOSK')">
	<c:redirect url="/kiosk/patientSearch.form"/>
</sec:authorize>

<%log.info("initialView.jsp: about to check ROLE_EMDT");%>

<sec:authorize access="hasRole('EMDT')">
	<c:redirect url="/emdt/emdtHome.form"/>
</sec:authorize>

<%log.info("initialView.jsp: about to check ROLE_REFERRAL");%>

<sec:authorize access="hasRole('REFERRAL')">
	<c:redirect url="/referrals/referralsHome.form"/>
</sec:authorize>

<%log.info("initialView.jsp: about to check ROLE_MANAGEMENT");%>

<sec:authorize access="hasRole('MANAGEMENT')">
	<c:redirect url="/referrals/managementHome.form"/>
</sec:authorize>

<%log.info("initialView.jsp: about to check ROLE_NMDT_COORD");%>

<sec:authorize access="hasRole('NMDT_COORD')">
	<c:redirect url="nationalMDT/managementHome.form"/>
</sec:authorize>

<%log.info("initialView.jsp: about to check ROLE_MEETINGS");%>

<sec:authorize access="hasRole('MEETINGS')">
	<c:redirect url="/meetings/resumeMeeting.form"/>
</sec:authorize>

<%log.info("initialView.jsp: about to check ROLE_CALENDAR");%>

<sec:authorize access="hasRole('CALENDAR')">
	<c:redirect url="/calendar/index.jsp"/>
</sec:authorize>



<%log.error("initialView.jsp: failed to redirect");%>
<br/>
<a href="../emdt/emdtHome.form" title="go to eMDT home page">Click here to go to eMDT home page</a>