<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<tiles:insertDefinition name="defaultTemplate">
<tiles:putAttribute name="body">
<%@page trimDirectiveWhitespaces="true" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Claim Attachments Master Home</title>
    </head>
    <body>
      <td bgcolor=navy blue>
   		<font size=4 color=white>
     	<a href="secureSearch">Main Search Menu</a>
   		</font>
 	  </td>
    	<div align="center">
	        <h1><FONT SIZE=5>List of ClaimAttachments</FONT></h1>
	        <table border="1" size=600>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Attachment Id</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Patient Control#</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Report Code</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Medical Rec#</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Patient Last Name</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Patient First Name</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Patient Identifier</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Provider Name</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Provider Identifier</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Provider NPI</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Claim Identifier</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Claim Service Date</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Payer Claim Control#</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>LOINC Code</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Status</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Attachment Type</FONT></th>
	        	<th><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>Actions</FONT></th>
	        	
				<c:forEach var="claimAttachment" items="${listClaimAttachments}" varStatus="status">
	        	<tr>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.id}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.patientControlNumber}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.reportCode}</FONT>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.medicalRecordNumber}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.patientLastName}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.patientFirstName}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.patientIdentifier}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.providerName}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.providerIdentifier}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.providerNpi}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.claimIdentifier}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.claimServiceDate}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.payerClaimControlNumber}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.loincCode}</FONT></td>
	        		<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.status}</FONT></td>
					<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>${claimAttachment.attachmentType}</FONT></td>
					<td><FONT COLOR=BLACK FACE="Geneva, Garamond" SIZE=2>

					    <a href="viewClaimAttachment?id=${claimAttachment.id}" onclick="target='_blank';return true;">View</a>
						&nbsp;&nbsp;&nbsp;&nbsp;
						<c:choose>
				            <c:when test="${downloadStatus}">
					    	<a href="downloadClaimAttachment?id=${claimAttachment.id}">Download</a>
							   &nbsp;&nbsp;&nbsp;&nbsp;
				            </c:when>
			       	 	</c:choose>
						<c:choose>
				            <c:when test="${editStatus}">
							<a href="editClaimAttachment?id=${claimAttachment.id}">Edit</a>
							   &nbsp;&nbsp;&nbsp;&nbsp;
				            </c:when>
			       	 	</c:choose>
						<c:choose>
				            <c:when test="${deleteStatus}">
							<a href="deleteClaimAttachment?id=${claimAttachment.id}">Delete</a>
				            </c:when>
			       	 	</c:choose>
						</FONT>
					</td>
	        	</tr>
				</c:forEach>	        	
			</table>
    	</div>
    	<p> ${rpcResponse} </p>
</a>
</body>
</html>
</tiles:putAttribute>
</tiles:insertDefinition>