<%@ include file="/includes.jsp"%>
<%@ taglib prefix="smvc" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ include file="styles.css"%>

<c:set var="readOnly" value="false"/>
<c:if test="${consultationNoteForm.view.note.locked eq true}">
	<c:set var="readOnly" value="true"/>
</c:if>
<webapp:namedListByFormDefinition formDefinition="${consultationNoteForm.view.form}" id="namedListMap" filterName="${requestScope.ATT_FilterdCode}" filterHospCode="${emdt.currentUser.hospital.hospitalCode}"/>
<c:set var="namedListMap" value="${namedListMap}" scope="request"/>

<div class="container">

	<input type="hidden" value="false" id="unsaveButtonId" />

			
	
	<div class="sectionSubPageTop">

			<h2>Core/FNA MDM</h2>
	
			<div class="fieldSet2Column">
				<span class="inputLabel">Biopsy Analysis Tests</span>

				<span class="inputControl"> 
					<c:set var="tempOptionsMapDomain" value="EMDT"/>
					<c:set var="tempOptionsMapName" value="BiopsyandMets"/>
					<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
					<c:forEach var="pair" items="${nl.pairIterator}"  varStatus="checkboxCount">
						<smvc:checkbox disabled="${readOnly}" path='multiValue[BiopsyAnalysisTests]' value="${pair.first}" id="BiopsyAnalysisTests${checkboxCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
					</c:forEach>
				</span>
			</div>

		<div class="fieldSet2Column">
				<span class="inputLabelAbove">Proposed Management</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[ProposedManagement]" cols="100" rows="3" id="ProposedManagement" /></span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Future Appointments</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[FutureAppointments]" cols="100" rows="3" id="FutureAppointments" /></span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Further Comments</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[FurtherComments]" cols="100" rows="3" id="FurtherComments" /></span>
			</div>
	</div>	
	
	


	<div class="sectionSubPageTop">

		<h2>Staging MDM</h2>


		<div class="fieldSetLeftColumn">
			<span class="inputLabel"><b>Right:</b> </span>
		</div>
		<div class="fieldSetRightColumn">
			<span class="inputControl">
			T:<webapp:namedListSpring disabled="${readOnly}" path='value[StagingRightT]' id="StagingRightT" domain="EMDT" name="TValues"  nlFromFormDefinition="${namedListMap['EMDT']['TValues']}" />
				&nbsp;&nbsp;&nbsp;
			N:<webapp:namedListSpring disabled="${readOnly}" path='value[StagingRightN]' id="StagingRightN" domain="EMDT" name="NValues" nlFromFormDefinition="${namedListMap['EMDT']['NValues']}"  />
				&nbsp;&nbsp;&nbsp;
			M:<webapp:namedListSpring disabled="${readOnly}" path='value[StagingRightM]' id="StagingRightM" domain="EMDT" name="MValues" nlFromFormDefinition="${namedListMap['EMDT']['MValues']}>"/>
			</span>
		</div>
		
		
		
		<div class="fieldSetLeftColumn">
			<span class="inputLabel"><b>Left:</b> </span>
		</div>
		<div class="fieldSetRightColumn">
			<span class="inputControl">
			T:<webapp:namedListSpring disabled="${readOnly}" path='value[StagingLeftT]' id="StagingLeftT" domain="EMDT" name="TValues"  nlFromFormDefinition="${namedListMap['EMDT']['TValues']}"/>
				&nbsp;&nbsp;&nbsp;
			N:<webapp:namedListSpring disabled="${readOnly}" path='value[StagingLeftN]' id="StagingLeftN" domain="EMDT" name="NValues" nlFromFormDefinition="${namedListMap['EMDT']['NValues']}"/>
				&nbsp;&nbsp;&nbsp;
			M:<webapp:namedListSpring disabled="${readOnly}" path='value[StagingLeftM]' id="StagingLeftM" domain="EMDT" name="MValues" nlFromFormDefinition="${namedListMap['EMDT']['MValues']}" />
			
			</span>
		</div>
		
		<h3>Proposed Treatment</h3>
		
			<div class="fieldSetLeftColumn">
				<span class="inputLabel">Consultant Oncologist</span>
			</div>
			<div class="fieldSetRightColumn">
				<span class="inputControl">
				<webapp:namedListSpring disabled="${readOnly}" path='value[consultantOncologist]' id="consultantOncologist" domain="EMDT" name="SpireEdOnc" nlFromFormDefinition="${namedListMap['EMDT']['SpireEdOnc']}" />
				</span>
			</div>
		

			<div class="fieldSetLeftColumn">
				<span class="inputLabel">Treatment Intention</span>
			</div>
			<div class="fieldSetRightColumn">
				<span class="inputControl">
				<webapp:namedListSpring disabled="${readOnly}" path='value[Treatmentintention]' id="Treatmentintention" domain="EMDT" name="Treatmentintention"  nlFromFormDefinition="${namedListMap['EMDT']['Treatmentintention']}"/>
				</span>
			</div>

	
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Proposed Treatment</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[ProposedTreatment]" cols="100" rows="3" id="ProposedTreatment" /></span>
			</div>
		
			<div class="fieldSet2Column">
				<span class="inputLabel">Signature</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControl">
					<webapp:namedListSpring disabled="${readOnly}" path='value[Signature]' id="Signature" domain="EMDT" name="SpireEdSurg Ellie"   nlFromFormDefinition="${namedListMap['EMDT']['SpireEdSurg Ellie']}"/>
				</span>
			</div>
		
	</div>
	
	
	
		<div class="sectionSubPageTop">

			<h2>Post Neoadjuvant Review MDM </h2>
	
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Proposed Surgery</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[ProposedSurgery]" cols="100" rows="3" id="ProposedSurgery" /></span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Reason for Mastectomy</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[ReasonForMastectomy]" cols="100" rows="3" id="ReasonForMastectomy" /></span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Date of Surgery</span>
			</div>
			<div class="fieldSet2Column">
			<span class="inputControl">
				<spring:bind path='value[DateOfSurgery]'>
					<c:choose>
						<c:when test="${disabled or readOnly}">
						<input type="text" name="value[DateOfSurgery]" size="0" id="DateOfSurgery" class="form-control" readonly="readonly" value="<c:out value="${consultationNoteForm.view.note.getValue('DateOfSurgery').code}"/>" disabled="disabled" placeholder="dd/mm/yyyy"/>
					</c:when>
					<c:otherwise>
						<input type="text" name="value[DateOfSurgery]" size="0" id="DateOfSurgery" class="form-control" value="<c:out value="${consultationNoteForm.view.note.getValue('DateOfSurgery').code}"/>" placeholder="dd/mm/yyyy"/>
					</c:otherwise>
				</c:choose>
				</spring:bind>
				&nbsp;<img title='Click to choose date' style='cursor: pointer' src='../images/16x16/date.png' id='DateOfSurgery_DateTrigger' /></span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Reason For Any Treatment Outside Licence Indication</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[ReasonForAnyTreatmentOutsideLicenceInd]" cols="100" rows="3" id="ReasonForAnyTreatmentOutsideLicenceInd" /></span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Future Appointments</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[MDMFutureAppointments]" cols="100" rows="3" id="MDMFutureAppointments" /></span>
			</div>
			
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Signature</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControl">
					<webapp:namedListSpring disabled="${readOnly}" path='value[PNARSignature]' id="PNARSignature" domain="EMDT" name="SpireEdSurgOnc Ellie"   nlFromFormDefinition="${namedListMap['EMDT']['SpireEdSurg Ellie']}"/>
				</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Notes</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[PNRNotes]" cols="100" rows="3" id="PNRNotes" /></span>
			</div>
	</div>	
	


	<div class="sectionSubPageTop">

		<h2>Post Surgical Review MDM</h2>
	
		<div class="fieldSetLeftColumn">
			<span class="inputLabel">Further Surgery Y/N</span>
		</div>
		<div class="fieldSetRightColumn">
			<span class="inputControl">
				<c:set var="tempOptionsMapDomain" value="EMDT"/>
				<c:set var="tempOptionsMapName" value="YesNo"/>
				<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
				<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
					<smvc:radiobutton disabled="${readOnly}" path='multiValue[FurtherSurgeryYN]' value="${pair.first}" id="FurtherSurgeryYN${radioCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
					<%-- can put a <br/> here to make list vertical --%>
				</c:forEach>
			</span>
		</div>
	
		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Surgery</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[PSRSurgery]" cols="100" rows="3" id="PSRSurgery" /></span>
		</div>	
		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Reason for Mastectomy</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[PSRReasonForMastectormy]" cols="100" rows="3" id="PSRReasonForMastectormy" /></span>
		</div>	
		
		<div class="fieldSetLeftColumn">
			<span class="inputLabelAbove">Date of Surgery</span>
		</div>
		<div class="fieldSetRightColumn">
			<span class="inputControl">
				<spring:bind path='value[PSRDateOfSurgery]'>
					<c:choose>
						<c:when test="${disabled or readOnly}">
						<input type="text" name="value[PSRDateOfSurgery]" size="0" id="PSRDateOfSurgery" class="form-control" readonly="readonly" value="<c:out value="${consultationNoteForm.view.note.getValue('PSRDateOfSurgery').code}"/>" disabled="disabled" placeholder="dd/mm/yyyy"/>
					</c:when>
					<c:otherwise>
						<input type="text" name="value[PSRDateOfSurgery]" size="0" id="PSRDateOfSurgery" class="form-control" value="<c:out value="${consultationNoteForm.view.note.getValue( 'PSRDateOfSurgery').code}"/>" placeholder="dd/mm/yyyy"/>
					</c:otherwise>
				</c:choose>
				</spring:bind>
			&nbsp;<img title='Click to choose date' style='cursor: pointer' src='../images/16x16/date.png' id='PSRDateOfSurgery_DateTrigger' /></span>
		</div>
		
		
		<h3>Proposed Therapy</h3>

		<div class="fieldSetLeftColumn">
			<span class="inputLabel">Pathologist</span>
		</div>
		<div class="fieldSetRightColumn">
			<span class="inputControl">
				<webapp:namedListSpring disabled="${readOnly}" path='value[PSRPathologistlist]' id="PSRPathologistlist" domain="EMDT" name="SpireEdPathologists"   nlFromFormDefinition="${namedListMap['EMDT']['SpireEdPathologists']}"/>
			</span>
		</div>

		<table width="100%">
			<tr>
				<td width="35%" valign="top">
					<table width="100%">
						<tr>
							<td height="30px"><span class="inputLabel">Chemotherapy</span></td>
							<td height="30px"><span class="inputControl">
									<c:set var="tempOptionsMapDomain" value="EMDT"/>
									<c:set var="tempOptionsMapName" value="YesNo"/>
									<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
									<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
										<smvc:radiobutton disabled="${readOnly}" path='multiValue[PSRChemotherapy]' value="${pair.first}" id="PSRChemotherapy${radioCount.count}" />
											&nbsp;<c:out value="${pair.second}"/>&nbsp;
										<%-- can put a <br/> here to make list vertical --%>
									</c:forEach>

							</span></td>
						</tr>



						<tr>
							<td height="30px"><span class="inputLabel">Radiotherapy</span></td>
							<td height="30px"><span class="inputControl">
								<c:set var="tempOptionsMapDomain" value="EMDT"/>
								<c:set var="tempOptionsMapName" value="YesNo"/>
								<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
								<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
								<smvc:radiobutton disabled="${readOnly}" path='multiValue[Radiotherapy]' value="${pair.first}" id="Radiotherapy${radioCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
								<%-- can put a <br/> here to make list vertical --%>
							</c:forEach>

							</span></td>
						</tr>
						<tr>
							<td height="30px"><span class="inputLabel">Hormone Therapy</span></td>
							<td height="30px"><span class="inputControl">
								<c:set var="tempOptionsMapDomain" value="EMDT"/>
								<c:set var="tempOptionsMapName" value="YesNo"/>
								<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
								<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
										<smvc:radiobutton disabled="${readOnly}" path='multiValue[HormoneTherapy]' value="${pair.first}" id="HormoneTherapy${radioCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
										<%-- can put a <br/> here to make list vertical --%>
									</c:forEach>
							</span>
							</td>
						</tr>
						<tr>
							<td height="30px"><span class="inputLabel">Monoclonal Antibody</span></td>
							<td height="30px"><span class="inputControl">
								<c:set var="tempOptionsMapDomain" value="EMDT"/>
								<c:set var="tempOptionsMapName" value="YesNo"/>
								<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
								<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
										<smvc:radiobutton disabled="${readOnly}" path='multiValue[PSRMonoClonal]' value="${pair.first}" id="PSRMonoClonal${radioCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
										<%-- can put a <br/> here to make list vertical --%>
									</c:forEach>
							</span>
							</td>
						</tr>
					</table>
				</td>
				<td width="65%" valign="top">
					<table width="100%">
						<tr>
							<td height="30px"><span class="inputLabel" style="float: left;">Herceptin</span> <span class="inputControl"> 
								<c:set var="tempOptionsMapDomain" value="EMDT"/>
								<c:set var="tempOptionsMapName" value="YesNo"/>
								<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
								<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
										<smvc:radiobutton disabled="${readOnly}" path='multiValue[PSRHerceptin]' value="${pair.first}" id="PSRHerceptin${radioCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
										<%-- can put a <br/> here to make list vertical --%>
									</c:forEach>

							</span></td>
						</tr>
						<tr>
							<td height="30px"><span class="inputLabel" style="float: left;">Radiotherapy on</span> <span class="inputControl"> 
									<c:set var="tempOptionsMapDomain" value="EMDT"/>
									<c:set var="tempOptionsMapName" value="SpireRadioTherapyOptions"/>
									<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
									<c:forEach var="pair" items="${nl.pairIterator}"  varStatus="checkboxCount">
										<smvc:checkbox disabled="${readOnly}" path='multiValue[RadioTherapyOn]' value="${pair.first}" id="RadioTherapyOn${checkboxCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
										<%-- can put a <br/> here to make list vertical --%>
									</c:forEach>

							</span>
						</td>

						</tr>
						<tr>
							<td height="30px"><span class="inputLabel" style="float: left;">Hormone Therapy notes</span> <span class="inputControl"><smvc:input readonly="${readOnly}" path="value[HormoneTherapyNotes]" size="40" id="HormoneTherapyNotes" /></span></td>
						</tr>
						<tr>
							<td height="30px"><span class="inputLabel" style="float: left;">Monoclonal Antibody notes</span> <span class="inputControl"><smvc:input readonly="${readOnly}" path="value[PSRMonoclonalNotes]" size="40" id="PSRMonoclonalNotes" /></span></td>
						</tr>
					</table>
				</td>
			</tr>
		</table>

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Reason For Any Treatment Outside Licence Indication</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[PSRReasonforTrtwo]" cols="100" rows="3" id="PSRReasonforTrtwo" /></span>
		</div>
		
		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Future Appointments</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[PSRFutureAppts]" cols="100" rows="3" id="PSRFutureAppts" /></span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputLabel">Signature</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControl">
				<webapp:namedListSpring disabled="${readOnly}" path='value[PSRsignature]' id="PSRsignature" domain="EMDT" name="SpireEdSurg Ellie"  nlFromFormDefinition="${namedListMap['EMDT']['SpireEdSurg Ellie']}"/>
			</span>
		</div>

	</div>

	


	<div class="sectionSubPageTop">
	
		<h2>Re-Staging MDM</h2>
		<h3>Proposed Treatment</h3>

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Consultant Oncologist</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControl">
				<webapp:namedListSpring disabled="${readOnly}" path='value[ConsultantOnc]' id="ConsultantOnc" domain="EMDT" name="SpireEdOnc" nlFromFormDefinition="${namedListMap['EMDT']['SpireEdOnc']}" />
			</span>
		</div>

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Treatment Intention</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide">
				<webapp:namedListSpring disabled="${readOnly}" path='value[Treatmentintention]' id="Treatmentintention" domain="EMDT" name="Treatmentintention"  nlFromFormDefinition="${namedListMap['EMDT']['Treatmentintention']}"/>
			</span>
		</div>

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Proposed Treatment</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[PropTreat]" cols="100" rows="3" id="PropTreat" /></span>
		</div>

		<div class="fieldSetLeftColumn">
			<span class="inputLabel">Palliative care referral</span>
		</div>

		<div class="fieldSetRightColumn">
			<span class="inputControl">
					<c:set var="tempOptionsMapDomain" value="EMDT"/>
					<c:set var="tempOptionsMapName" value="YesNo"/>
					<webapp:namedList id="nl" domain="${tempOptionsMapDomain }" name="${tempOptionsMapName}" nlFromFormDefinition="${namedListMap[tempOptionsMapDomain][tempOptionsMapName]}"/>
					<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
					<smvc:radiobutton disabled="${readOnly}" path='multiValue[PalliativeCare]' value="${pair.first}" id="PalliativeCare${radioCount.count}" />&nbsp;<c:out value="${pair.second}"/>&nbsp;
					<%-- can put a <br/> here to make list vertical --%>
				</c:forEach></span>
		</div>
	
		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Signature</span>
		</div>
	
		<div class="fieldSet2Column">
			<span class="inputControl">
				<webapp:namedListSpring disabled="${readOnly}" path='value[SigDropdown]' id="SigDropdown" domain="EMDT" name="SpireEdSurg Ellie"  nlFromFormDefinition="${namedListMap['EMDT']['SpireEdSurg Ellie']}" />
			</span>
		</div>
	
		
		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Notes</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea readonly="${readOnly}" path="value[Notesrestaging]" cols="100" rows="3" id="Notesrestaging" /></span>
		</div>	
	</div>


</div>

<br/>