<%@ include file="/includes.jsp"%>
<html>
<head>
<title>Meeting Detail</title>
<link rel="stylesheet" href="../webapp.css" type="text/css" />
</head>
<br />
<body>
<table width="100%">
	<tr>
		<td class="label" align="center"><font size="5"><b>Meeting
		Details</b></font></td>
	</tr>
</table>
<table width="100%">
	<tr>
		<td class="label">
		<table border="1" cellpadding="2" width="100%">
			<tr>
				<td class="tableTitleBar" colspan="9"><b>Patients in
				Meeting</b></td>
			</tr>
			<tr align="left">
				<th>Surname</th>
				<th>Forename</th>
				<th>Age</th>
				<th>NHS&nbsp;Number</th>
				<th>Hospital&nbsp;Number</th>
				<th>Last MDT</th>
				<th>Meeting&nbsp;Type</th>
				<th>Follow&nbsp;Up</th>
				<th>Primary Clinician</th>
			</tr>
			<c:forEach var="item" items="${meeting.items }" varStatus="s">
				<tr>
					<td class="label"><c:out value="${item.patientDiscussed.surname }"/></td>
					<td class="label"><c:out value="${item.patientDiscussed.forename }"/>&nbsp;</td>
					<td class="label"><c:out value="${item.patientDiscussed.currentAge }"/>&nbsp;</td>
					<td class="label"><c:out value="${item.patientDiscussed.nhsNumber }"/>&nbsp;</td>
					<td class="label"><c:out value="${item.patientDiscussed.hospitalNumber
					}"/>&nbsp;</td>
					<td class="label"><fmt:formatDate value="${item.lastDiscussedDate}" pattern="dd MMM yyyy" />&nbsp;</td>
					<td class="label"><webapp:listValue domain="EMDT"
						listName="MeetingItemType" key="${item.type}"/>" />&nbsp;</td>
					<td class="label"><fmt:formatDate value="${item.followUpDate}" pattern="dd MMM yyyy" />&nbsp;</td>
					<td class="label"><c:out value="${item.patientDiscussed.primaryClinicianInCSMatchesMeetingTG}"/>&nbsp;</td>
				</tr>
			</c:forEach>
		</table>
		</td>
	</tr>
</table>

<br />
<c:if test="${meeting.summaryId != null }">
	<table width="100%">
		<tr>
			<td class="label">
			<table border="1" cellpadding="2" width="100%">
				<tr>
					<td class="tableTitleBar" colspan="3"><b>Further patient
					information follows:</b></td>
				</tr>
				<tr align="left">
					<th>Surname</th>
					<th>Forename</th>
					<th>Hospital&nbsp;Number</th>
				</tr>
				<c:forEach var="item" items="${meeting.items }" varStatus="s">
					<tr>
						<td class="label"><c:out value="${item.patientDiscussed.surname }"/></td>
						<td class="label"><c:out value="${item.patientDiscussed.forename }"/>&nbsp;</td>
						<td class="label"><c:out value="${item.patientDiscussed.hospitalNumber
						}"/>&nbsp;</td>
					</tr>
					<c:if test="${meeting.summaryId != null}">
						<tr id="summary<c:out value="${item.guid }"/>">
							<td class="label" colspan="10">
							<emdt:runSummary summaryId="${meeting.summaryGuid}" patientId="${item.patientDiscussed.guid }" /> <tiles:insertTemplate template="/meetings/tiles/PatientSummaryDetails.jsp" />
							</td>
						</tr>
					</c:if>
				</c:forEach>
			</table>
			</td>
		</tr>
	</table>
</c:if>
</body>
</html>
