<%--
  ~ This file is part of DebGen Biobank Software developed by ASTRID Research.
  ~ All rights reserved. Reproduction, modification, use or disclosure
  ~ to third parties without express authority is forbidden.
  ~
  ~ Copyright ASTRID Research Inc., Hungary, 2009-2011.
  ~
  ~ ASTRID Research
  ~ Headquaters: Csapo utca 42. Debrecen H-4029 HUNGARY
  ~ Phone: +36-52-533-173        Fax: +36-52-533-174
  ~ Web: http://www.astrid.hu    E-mail: info@astrid.hu
  ~
  ~ Project name: DebGen Biobank Software project.
  ~ URLS:
  ~ Developers: Istvan Zoltan Nagy (istvan.nagy@astrid.hu)
  --%>

<%--
    Document   : showanalysisrequest
    Created on : Dec 14, 2009, 10:40:14 AM
    Author     : inagy
--%>

<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="/WEB-INF/dateformat.tld" prefix="da" %>
<script type="text/javascript">
    setWebTitle('<fmt:message key="BIOBANK_ANALYSIS" />');
    autocompleteOff();
</script>
<div class="window500">
    <div class="title"><fmt:message key="${request.objectType}AnalysisRequest"/></div>
    <div class="content">
        <div style="padding: 10px;">
            <table border="0" cellspacing="10" cellpadding="5">
                <tbody>
                <tr>
                    <td id="head" class="patientheader"></td>
                    <td><fmt:message key="${request.objectType}AnalysisRequest"/> <fmt:message key="forms"/></td>
                </tr>
                </tbody>
            </table>
            <table align="center" border="0" cellspacing="10" cellpadding="0">
                <tbody>
                <tr>
                    <c:if test="${user.dataRecorder}">
                        <td class="button" align="center" valign="middle"
                            style="width: 100px; height: 25px; background: url('pics/buttonbgr.png');"><a
                                class="menulink"
                                style="display: block; width: 100px; padding-top: 4px;"
                                href="createrequest.html?request=${request.id}"><fmt:message
                                key="SZERKESZTÉS"/></a>
                        </td>
                    </c:if>
                    <td class="button" align="center" valign="middle"
                        style="width: 100px; height: 25px; background: url('pics/buttonbgr.png');"><a class="menulink"
                                                                                                      style="display: block; width: 100px; padding-top: 4px;"
                                                                                                      href="printrequest.html?request=${request.id}"><fmt:message
                            key="PRINT"/></a>
                    </td>
                    <td class="button" align="center" valign="middle"
                        style="width: 100px; height: 25px; background: url('pics/buttonbgr.png');"><a class="menulink"
                                                                                                      style="display: block; width: 100px; padding-top: 4px;"
                                                                                                      href="generatepdf.html?request=${request.id}"><fmt:message
                            key="PDF"/></a>
                    </td>
                </tr>
                </tbody>
            </table>
            <div id="line" style="width: 476px;" class="patientline">
                <fmt:message key="biobankAndPersonalData"/>
            </div>
            <form action="saverequest.html" method="POST">
                <%@ include file="../showembedederror.jsp" %>
                <div id="userdiv">
                    <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                        <tbody>
                        <tr>
                            <td style="width: 120px;"><fmt:message key="patientCode"/>:</td>
                            <td style="width: 340px;"><a
                                    href="showpatient.html?patient=${patient.id}">${patient.patientCode}</a>
                                <input class="input" type="hidden" name="patientCode" value="${patient.patientCode}">
                            </td>
                        </tr>
                        <c:if test="${not patient.named or not user.dataRecorder}">
                            <tr>
                                <td style="width: 120px;"><fmt:message key="monogram"/>:</td>
                                <td>
                                        ${patient.anonymousData.monogram}
                                </td>
                            </tr>
                        </c:if>
                        <c:if test="${patient.named and user.dataRecorder}">
                            <tr>
                                <td style="width: 120px;"><fmt:message key="BETEG_NEV"/>:</td>
                                <td>${patient.identity.patientName}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="TAJ"/>:</td>
                                <td>${patient.identity.tajNumber}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="dateOfBirth"/>:</td>
                                <td>${patient.dateOfBirthForWeb}</td>
                            </tr>
                        </c:if>
                        <tr>
                            <td style="width: 120px;"><fmt:message key="Type"/>:</td>
                            <td style="width: 340px;">
                                <fmt:message key="${request.objectType}AnalysisRequest"/>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 120px;"><fmt:message key="LELET_EZ"/>:</td>
                            <td style="width: 340px;">
                                <c:forEach items="${request.results}" var="result"><a
                                        href="showmodule.html?module=${result.id}">${result.createdOnForWeb} -
                                    <fmt:message key="${result.localizeableName}"/></a><br/></c:forEach></td>
                        </tr>
                        </tbody>
                    </table>
                    <div id="common" ${empty request or request.type eq 'common' ? 'style="display: block;"' : 'style="display: block;"'} >
                        <div class="patientline"><fmt:message key="referralData"/></div>
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="dateOfSampleArrival"/>:</td>
                                <td style="width: 340px;">${request.dateOfSampleArrivalForWeb}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="dateOfSampleProcessing"/>:</td>
                                <td style="width: 340px;">${request.dateOfSampleProcessingForWeb}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="NAPLO_SZAM"/>:</td>
                                <td>${request.logNumber}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="diagnosis"/>:</td>
                                <td style="width: 340px;">${request.diagnosis}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="BNOCode"/>:</td>
                                <td>${request.BNOCode}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="nameOfSenderInstitute"/>:</td>
                                <td style="width: 340px;">${request.nameOfSenderInstitute}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="senderCode"/>:</td>
                                <td style="width: 340px;">${request.senderCode}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="financialCategory"/>:</td>
                                <td style="width: 340px;"><fmt:message key="FINCAT${request.financialCategory}"/></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <c:if test="${request.objectType eq 'const'}">
                        <%@ include file="showconstdata.jspf" %>
                    </c:if>
                    <c:if test="${request.objectType eq 'born'}">
                        <%@ include file="showborndata.jspf" %>
                    </c:if>
                    <c:if test="${request.objectType eq 'onkohaem'}">
                        <%@ include file="showoncohaemdata.jspf" %>
                    </c:if>
                </div>
                <br/>
            </form>
        </div>
    </div>
    <div class="copyright">
        &copy; 2009-2010 Astrid Research Inc.
    </div>
</div>

