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

<div>
<br/>
		<table style="float: none; margin-left: auto; margin-right: auto; margin-top: 30px;">
			<tr>
				<td><tags:table title='Meetings involving patient <c:out value="${emdt.currentMeeting.currentItem.patientDiscussed.fullName}"/>:'>
					<table class="table">
						<tr>
							<th>Meeting Title</th>
							<th>Speciality</th>
							<th>Date</th>
							<th>Attendees</th>
							<th></th>
						</tr>
						<c:forEach var="meeting" items="${emdt.meetings }" varStatus="s">
							<c:forEach var="item" items="${meeting.meetingItemDtoList }">
								<c:if
									test="${emdt.currentMeeting.currentItem.patientDiscussed.id == item.meeting_items_patientDiscussed_id }">
									<tr>
										<td><c:out value="${meeting.meeting_title }"/></td>
										<td><webapp:listValue domain="EMDT" listName="tumourGroup" key="${meeting.meeting_tumourGroup}"/></td>
										<td align="right"><fmt:formatDate value="${meeting.meeting_date}" pattern="dd MMM yyyy" /></td>
										<td><c:forEach var="att" items="${meeting.meetingAttendeeDtoList }">
											<c:out value="${att.meeting_attendees_user_username}"/> 
										</c:forEach>
										</td>
										<td><a href="selectMeetingItem.form?id=<c:out value="${meeting.meeting_id}"/>&forward=selectItem&itemId=<c:out value="${item.meeting_items_guid}"/>">view  meeting<img src="../images/16x16/bullet_go.png" /></a></td>
										
									</tr>
								</c:if>
							</c:forEach>
						</c:forEach>
					</table>
				</tags:table></td>
			</tr>
			<tr>
				<td>
					<br/>
					<div class="meetingNavigationPanel" style="width:100%;">
					
						<a href="patientMeetingHistoryReport.form?patient=${emdt.currentMeeting.currentItem.patientDiscussed.guid}" target="_blank">View Meeting History Report for this Patient<img src="../images/16x16/bullet_go.png" /> </a> <br/>
						 <br/>
						<c:if test="${emdt.currentMeeting != null}">
							<a href="../meetings/resumeMeeting.form">Return to Current Meeting <img src="../images/16x16/arrow_undo.png" /> </a> <br/>
						</c:if>
						
					</div>
				</td>
			</tr>
		</table>
</div>
