<%@ 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"%>

<tiles:importAttribute />
<c:set var="readOnly" value="false"/>
<c:if test="${consultationNoteForm.view.note.locked eq true}">
	<c:set var="readOnly" value="true"/>
</c:if>
 <webapp:namedList id="nl_YesNo" domain="EMDT" name="YesNo"  nlFromFormDefinition="${namedListMap['EMDT']['YesNo']}"/>
<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"> <webapp:namedList id="nl" domain="EMDT" name="BiopsyandMets" nlFromFormDefinition="${namedListMap['EMDT']['BiopsyandMets']}"/> 
					<c:forEach var="pair" items="${nl.pairIterator}" varStatus="checkboxCount">
						<smvc:checkbox disabled="false" 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 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 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 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 path='value[StagingRightT]'  id="StagingRightT" disabled="${readOnly}" domain="EMDT" name="TValues"
					currentValue="${consultationNoteForm.value['StagingRightT']}" nlFromFormDefinition="${namedListMap['EMDT']['TValues']}"/>

				&nbsp;&nbsp;&nbsp;

			N: 	 <webapp:namedListSpring path='value[StagingRightN]'  id="StagingRightN" disabled="${readOnly}" domain="EMDT" name="NValues"
					currentValue="${consultationNoteForm.value['StagingRightN']}" nlFromFormDefinition="${namedListMap['EMDT']['NValues']}"/>

				&nbsp;&nbsp;&nbsp;

			M: 	 <webapp:namedListSpring path='value[StagingRightM]'  id="StagingRightM" disabled="${readOnly}" domain="EMDT" name="MValues"
					currentValue="${consultationNoteForm.value['StagingRightM']}" 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 path='value[StagingLeftT]'  id="StagingLeftT" disabled="${readOnly}" domain="EMDT" name="TValues"
					currentValue="${consultationNoteForm.value['StagingLeftT']}" nlFromFormDefinition="${namedListMap['EMDT']['TValues']}"/>
				&nbsp;&nbsp;&nbsp;

			N: 	 	<webapp:namedListSpring path='value[StagingLeftT]'  id="StagingLeftT" disabled="${readOnly}" domain="EMDT" name="NValues"
					currentValue="${consultationNoteForm.value['StagingLeftT']}" nlFromFormDefinition="${namedListMap['EMDT']['NValues']}"/>
				&nbsp;&nbsp;&nbsp;

			M: 	<webapp:namedListSpring path='value[StagingLeftM]'  id="StagingLeftM" disabled="${readOnly}" domain="EMDT" name="MValues"
					currentValue="${consultationNoteForm.value['StagingLeftM']}" 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 path='value[consultantOncologist]'  id="consultantOncologist" disabled="${readOnly}" domain="EMDT" name="SpireEdOnc"
					currentValue="${consultationNoteForm.value['consultantOncologist']}" nlFromFormDefinition="${namedListMap['EMDT']['SpireEdOnc']}"/>
				</span>
			</div>
		

			<div class="fieldSetLeftColumn">
				<span class="inputLabel">Treatment Intention</span>
			</div>
			<div class="fieldSetRightColumn">
				<span class="inputControl">
				<webapp:namedListSpring path='value[Treatmentintention]'  id="Treatmentintention" disabled="${readOnly}" domain="EMDT" name="Treatmentintention"
					currentValue="${consultationNoteForm.value['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 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 path='value[Signature]'  id="Signature" disabled="${readOnly}" domain="EMDT" name="SpireEdSurg Ellie"
					currentValue="${consultationNoteForm.value['Signature']}" 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 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 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" disabled="disabled" placeholder="dd/mm/yyyy" value="${consultationNoteForm.view.note.values['DateOfSurgery']}" />
						</c:when>
						<c:otherwise>
							<input type="text" name='value[DateOfSurgery]' size="0" id="DateOfSurgery" class="form-control" placeholder="dd/mm/yyyy" value="${consultationNoteForm.view.note.values['DateOfSurgery']}"/>
						</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 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 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 path='value[PNARSignature]'  id="PNARSignature" disabled="${readOnly}" domain="EMDT" name="SpireEdSurgOnc Ellie"
					currentValue="${consultationNoteForm.value['PNARSignature']}" nlFromFormDefinition="${namedListMap['EMDT']['SpireEdSurgOnc Ellie']}"/>
				 </span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputLabelAbove">Notes</span>
			</div>
			<div class="fieldSet2Column">
				<span class="inputControlWide"><smvc:textarea 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:forEach var="pair" items="${nl_YesNo.pairIterator}" varStatus="radioCount">
					<smvc:radiobutton disabled="false" 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 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 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" disabled="disabled" placeholder="dd/mm/yyyy" value="${consultationNoteForm.view.note.values['PSRDateOfSurgery']}" />
						</c:when>
						<c:otherwise>
							<input type="text" name='value[PSRDateOfSurgery]' size="0" id="PSRDateOfSurgery" class="form-control" placeholder="dd/mm/yyyy" value="${consultationNoteForm.view.note.values['PSRDateOfSurgery']}"/>
						</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 path='value[PSRPathologistlist]'  id="PSRPathologistlist" disabled="${readOnly}" domain="EMDT" name="SpireEdPathologists"
					currentValue="${consultationNoteForm.value['PSRPathologistlist']}" 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:forEach var="pair" items="${nl_YesNo.pairIterator}" varStatus="radioCount">
									<smvc:radiobutton disabled="false" 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:forEach var="pair" items="${nl_YesNo.pairIterator}" varStatus="radioCount">
										<smvc:radiobutton disabled="false" 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:forEach var="pair" items="${nl_YesNo.pairIterator}" varStatus="radioCount">
								<smvc:radiobutton disabled="false" 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:forEach var="pair" items="${nl_YesNo.pairIterator}" varStatus="radioCount">
										<smvc:radiobutton disabled="false" 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:forEach var="pair" items="${nl_YesNo.pairIterator}" varStatus="radioCount">
									<smvc:radiobutton disabled="false" 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"> 
							<webapp:namedList id="nl" domain="EMDT" name="SpireRadioTherapyOptions" nlFromFormDefinition="${namedListMap['EMDT']['SpireRadioTherapyOptions']}" />
								<c:forEach var="pair" items="${nl.pairIterator}" varStatus="radioCount">
									<smvc:checkbox disabled="false" path='multiValue[RadioTherapyOn]'  value="${pair.first}" id="RadioTherapyOn${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;">Hormone Therapy notes</span> <span class="inputControl"><smvc:input 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 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 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 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 path='value[PSRsignature]'  id="PSRsignature" disabled="${readOnly}" domain="EMDT" name="SpireEdSurg Ellie"
					currentValue="${consultationNoteForm.value['PSRsignature']}" 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 path='value[ConsultantOnc]'  id="ConsultantOnc" disabled="${readOnly}" domain="EMDT" name="SpireEdOnc"
					currentValue="${consultationNoteForm.value['ConsultantOnc']}" nlFromFormDefinition="${namedListMap['EMDT']['SpireEdOnc']}"/>
			 </span>
		</div>

		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Treatment Intention</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide">
				<webapp:namedListSpring path='value[Treatmentintention]'  id="Treatmentintention" disabled="${readOnly}" domain="EMDT" name="Treatmentintention"
					currentValue="${consultationNoteForm.value['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 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:forEach var="pair" items="${nl_YesNo.pairIterator}" varStatus="radioCount">
					<smvc:radiobutton disabled="false" 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 path='value[SigDropdown]'  id="SigDropdown" disabled="${readOnly}" domain="EMDT" name="SpireEdSurg Ellie"
					currentValue="${consultationNoteForm.value['SigDropdown']}" nlFromFormDefinition="${namedListMap['EMDT']['SpireEdSurg Ellie']}"/>
		 </span>
		</div>
	
		
		<div class="fieldSet2Column">
			<span class="inputLabelAbove">Notes</span>
		</div>
		<div class="fieldSet2Column">
			<span class="inputControlWide"><smvc:textarea path="value[Notesrestaging]" cols="100" rows="3" id="Notesrestaging" /></span>
		</div>	
	</div>


</div>

<br/>