<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/displaytag" prefix="display" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ taglib uri="/tags/valuelist" prefix="vlh" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>   

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
                <td nowrap style="padding-left: 7"><bean-el:message key="clinicalDter.text.title"/></td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
                <td nowrap class="moduleBlueLink" style="padding: 1 8 1 8">
                  <fw:link href="/esr/ee/eligibilityView.display.do"><bean-el:message key="history.returnToEligibility"/></fw:link>
                </td>
                <td width="2%"><img alt="" src="../images/spacer.gif"></td>
                <td nowrap class="moduleBlueLink" style="padding: 1 8 1 8">
                  <fw:link action="/clinicalDeterminationHistory?methodName=DISPLAY&amp;history=viewHistoricalClinicalDetermination">
                    <bean-el:message key="text.viewHistoricalClinicalDetermination"/>
                  </fw:link>
                </td>
                 <td nowrap class="moduleBlueLink" style="padding: 1 8 1 8">
                  <fw:link action="/retiredCDHistory?methodName=DISPLAY&amp;history=viewRetiredHistoricalCD">
                    <bean-el:message key="text.viewHistoricalRetiredCD"/>
                  </fw:link>
                </td>
              </tr>
            </table>
          </td>
        </tr>
    </td>
  </tr>        
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
                <td nowrap style="padding-left: 7"><bean-el:message key="clinicalDter.CDPanel.title"/></td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
              </tr>
            </table>
          </td>
        </tr>
        <c:if test="${clinicalDeterForm.cd != null}">
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.catastrophicallyDisabled"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.catastrophicallyDisabled"/></td>
                <td width="280" class="moduleLabel"><bean-el:message key="label.cdDecidedby"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.determinedBy"/></td>
              </tr>
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.cdDeterminationMethod"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.determinationMethod.description"/></td>
                <td width="280" class="moduleLabel"><bean-el:message key="label.cdDateDecision"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.decisionDate"/></td>
              </tr>
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.cdFacilityMakingDetermination"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.determinationFacility.stationNumber"/></td>
                <td width="280" class="moduleLabel">&nbsp;</td>
                <td class="moduleValue">&nbsp;</td>
              </tr>
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.cdReviewDate"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.reviewDate"/></td>
                <td width="280" class="moduleLabel"><bean-el:message key="label.cdDateVeteranRequestedReview"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.veteranRequestedCDReviewDate"/></td>
              </tr>
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.cdDateFacilityInitiatedReview"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.facilityInitiatedCDReviewDate"/></td>
                <td width="280" class="moduleLabel"><bean-el:message key="label.cdDateVeteranNotifiedOfDecision"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="cd.veteranWasNotifiedCDDate"/></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellLowTableHead" style="padding-top: 4px; padding-bottom: 4px;" role="presentation">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
                <td nowrap style="padding-left: 7"><bean-el:message key="clinicalDter.CDPanel.descriptor"/></td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr width="100%">
          <td valign="top" align="center">
                 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
       <c:choose>
        <c:when test="${vlhlist==null ||vlhlist.valueListInfo==null ||vlhlist.valueListInfo.totalNumberOfEntries == 0}">
          <tr>
            <td class="darkValue" style="padding:10 0 10 10; text-align: left"><bean-el:message key="label.noDataAvailable"/></td>
          </tr>
        </c:when>
        <c:otherwise>
          <tr valign="top" width="100%">
            <td vAlign="top" align="center">
              <div id="cdDescriptorLink" style="border-width:0px;">
                <table id="cdDescriptorResult" align="center" width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleTable" role="presentation">
                  <vlh:root id="cdDescriptorTableId" value="vlhlist" url="?" includeParameters="*" configName="valueListConfigBeanLookAndFeel">
                    <tr>
                      <td colspan="5">
                        <table class="pagelinks">
                          <tr>
                            <td width="45%"><img alt=""  src="../images/spacer.gif"></td>
                            <td width="5%" nowrap="true">
				                          <span class="pagebanner"><c:out value="${vlhlist.valueListInfo.totalNumberOfEntries}"/> Total
				                          - Page (<c:out value="${vlhlist.valueListInfo.pagingPage}"/> of <c:out value="${vlhlist.valueListInfo.totalNumberOfPages}"/>).
				                          &nbsp;</span>
                            </td>
                            <td width="5%">
                              <c:choose>
                                <c:when test="${vlhlist.valueListInfo.totalNumberOfPages > 1}">
                                  <vlh:paging attributes="class=\"pagelinks\"" pages="10"><c:out value="${pagefutureEGTSettingsTableId}"/>&nbsp;</vlh:paging>
                                </c:when>
                                <c:otherwise>
                                  &nbsp;
                                </c:otherwise>
                              </c:choose>
                            </td>
                            <td width="45%"><img alt=""  src="../images/spacer.gif"></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr vAlign="top">
                      <td vAlign="top" align="center">
        <tr>
        <td>
 			<table summary="List of Catastrophic Disability Descriptor" rules="all" class="TableDisplay" role="presentation">
                <tr>
                  <vlh:row bean="cDDescriptor">					  
                	<vlh:column title="Type" property="descriptorType.name"  sortable="asc" attributes="align=\"left\" scope='col'" default="">
                    	<vlh:attribute name="scope">row</vlh:attribute>
                      	<esrcore:displayValue name="cDDescriptor" property="descriptorType.name" nullText=""/>
                    </vlh:column>
                  </vlh:row>
                </tr>
        	</table>
        	</td>
       </tr>
		</vlh:root>
       </table>
<!-- module shell table body-->
</td>
</tr>
        </c:otherwise>
      </c:choose>
</table><!--
            <table id="tableDescriptors" align="center" width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role="presentation">
              <tr height="5"><td></td></tr>
              <tr width="100%" valign="top">
                <td width="100%" valign="top" align="center">
                  <display:table name="clinicalDeterForm.descriptors" class="TableDisplay" id="tb200" rules="all" pagesize="10" requestURI="/esr/ee/clinicalDeter.display.do">
                  <display:column property="descriptorType.name" title="Type" headerClass="DataHeader" sortable="true" />
                  </display:table>
                </td>
              </tr>
              <tr height="5"><td></td></tr>
            </table>
          --></td>
        </tr>
        </c:if>
      </table>
    </td>
  </tr>
</table>

<br>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
                <td nowrap style="padding-left: 7"><bean-el:message key="clinicalDter.MSTPanel.title"/></td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
              </tr>
            </table>
          </td>
        </tr>

        <c:if test="${clinicalDeterForm.mst != null}">
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.MSTStatusIndicator"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="mst.status.description"/></td>
                <td width="280" class="moduleLabel"><bean-el:message key="label.MSTStatusDate"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="mst.statusChangeDate"/></td>
              </tr>
              <tr>
                <td class="moduleLabel"><bean-el:message key="label.MSTFacilityMakingDetermination"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="mst.determinationFacility.facilityName"/></td>
                <td class="moduleLabel">&nbsp;</td>
                <td class="moduleValue">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
        </c:if>
      </table>
    </td>
  </tr>
</table>

<br>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
                <td nowrap style="padding-left: 7"><bean-el:message key="clinicalDter.NTRPanel.title"/></td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
              </tr>
            </table>
          </td>
        </tr>

        <c:if test="${clinicalDeterForm.ntr != null}">
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.NTRVerificationDateTime"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntr.verificationDate"/></td>
                <td width="280" class="moduleLabel"><bean-el:message key="label.ReceivedNoseThroatRadiumTreatment"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntrTreatment"/></td>
              </tr>
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.DiagnosisVerificationDateTime"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntr.diagnosisVerifiedDate"/></td>
                <td width="280" class="moduleLabel"><bean-el:message key="label.NTRVerificationMethod"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntr.verificationMethod.description"/></td>
              </tr>
              <tr>
                <td class="moduleLabel"><bean-el:message key="label.NTRFacilityMakingDiagnosis"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntr.determinationFacility.stationNumber"/></td>
                <td class="moduleLabel"><bean-el:message key="label.NTRFacilityConductingVerification"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntr.verificationFacility.stationNumber"/></td>
              </tr>
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.NTRAviator"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntr.fromAviatorServiceBefore1955"/></td>
                <td width="280" class="moduleLabel"><bean-el:message key="label.NTRSubmarineTrainee"/>:</td>
                <td class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntr.fromSubmarinerServiceBefore1965"/></td>
              </tr>
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.NTRDiagnosedCancerHeadNeck"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="ntr.diagnosedWithCancer"/></td>
                <td width="280" class="moduleLabel">&nbsp;</td>
                <td class="moduleValue">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
        </c:if>

      </table>
    </td>
  </tr>
</table>

<br>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="25" height="17"/></td>
                <td nowrap style="padding-left: 7"><bean-el:message key="clinicalDter.SCIPanel.title"/></td>
                <td width="100%"><img alt=""  src="../images/spacer.gif"></td>
              </tr>
            </table>
          </td>
        </tr>

        <c:if test="${clinicalDeterForm.sci != null}">
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">
              <tr>
                <td width="280" class="moduleLabel"><bean-el:message key="label.SCIIndicator"/>:</td>
                <td width="155" class="moduleValue"><esrcore:displayValue name="clinicalDeterForm" property="sci.spinalCordInjuryType.description"/></td>
                <td class="moduleLabel">&nbsp;</td>
                <td class="moduleValue">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
        </c:if>
      </table>
    </td>
  </tr>
</table>

