<commit_before><!-- TODO: This view is virtually identical to the last screen of the create
participant flow. Factor out their commonalities. -->

<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<%@ taglib prefix="chrome" tagdir="/WEB-INF/tags/chrome" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>View Routine AE</title>
    <tags:stylesheetLink name="ae"/>
    <style type="text/css">
	
	div.row div.label {
    	width: 16em;
    }
    div.row div.value {
    	margin-left: 18em;
    }
	</style>
</head>
<body>

<chrome:box title="Legacy routine AE">
	<p id="instructions">
&nbsp; A Legacy Routine AE for ${aeRoutineReport.participantSummaryLine} on ${aeRoutineReport.studySummaryLine}.</p>

	<chrome:division title="Periods of Observation " id="observation_period">
   		
		<div class="row">
        	
			<div class="label">From	</div>
            
			<div class="value">
				<tags:formatDate value="${aeRoutineReport.startDate}"/>
            	
				&nbsp;&nbsp;&nbsp;<b>To&nbsp;&nbsp;&nbsp;</b>  
				<tags:formatDate value="${aeRoutineReport.endDate}"/>
            
			</div>
        
		</div>
   
	</chrome:division>
   
	<chrome:division title="Treatment Assignment Code" id="treatment_assignment_code">
   		
		<div class="row">
        	
			<div class="label">Treatment assignment code</div>
            
			<div class="value">${aeRoutineReport.treatmentAssignment.code}</div>
        
		</div>
        
        
		<div class="row" >
        	
			<div class="label">Description	</div>
            
			<div class="value">${aeRoutineReport.treatmentAssignment.description}</div>
        
		</div>
   
	</chrome:division> 
   	<chrome:division title="AEs" id="ae">
   		 
   		<center>
    		
   		<c:if test="${fn:length(aeRoutineReport.adverseEvents) > 0}" >
    		
   			<table width="90%" class="tablecontent">
    			
   			<tr>
    				
   				<th scope="col" align="left"><b> Term:</b> </th>
    				
   				<th scope="col" align="left"><b> Grade:</b> </th>
    				
   				<th scope="col" align="left"><b> Attribution:</b> </th>
    				
   				<th scope="col" align="left"><b> Hospitalization:</b> </th>
    				
   				<th scope="col" align="left"><b> Expected:</b> </th>
    			
   			</tr>
    				
            
   			<c:forEach items="${aeRoutineReport.adverseEvents}" var="ae" varStatus="status">
            	
   			<tr>
            		
   				<td><c:out value="${ae.adverseEventTerm.universalTerm}" /></td>
            		
   				<td><c:out value="${ae.grade}" /></td>
            		
            		
   				<td><c:out value="${ae.attributionSummary}" /></td>
            		
            		
   				<td><c:out value="${ae.hospitalization}"/></td>
   				<td><c:out value="${ae.expected == true ? 'Yes' : 'No' }" /></td>
            	
   			</tr>	 
            
   			</c:forEach>
            
   			</table>
            
   		</c:if>
            
   		</center>
   
   	</chrome:division> <commit_msg>Changed expected so it shows empty when corresponding row in db is empty<commit_after><!-- TODO: This view is virtually identical to the last screen of the create
participant flow. Factor out their commonalities. -->

<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<%@ taglib prefix="chrome" tagdir="/WEB-INF/tags/chrome" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>View Routine AE</title>
    <tags:stylesheetLink name="ae"/>
    <style type="text/css">
	
	div.row div.label {
    	width: 16em;
    }
    div.row div.value {
    	margin-left: 18em;
    }
	</style>
</head>
<body>

<chrome:box title="Legacy routine AE">
	<p id="instructions">
&nbsp; A Legacy Routine AE for ${aeRoutineReport.participantSummaryLine} on ${aeRoutineReport.studySummaryLine}.</p>

	<chrome:division title="Periods of Observation " id="observation_period">
   		
		<div class="row">
        	
			<div class="label">From	</div>
            
			<div class="value">
				<tags:formatDate value="${aeRoutineReport.startDate}"/>
            	
				&nbsp;&nbsp;&nbsp;<b>To&nbsp;&nbsp;&nbsp;</b>  
				<tags:formatDate value="${aeRoutineReport.endDate}"/>
            
			</div>
        
		</div>
   
	</chrome:division>
   
	<chrome:division title="Treatment Assignment Code" id="treatment_assignment_code">
   		
		<div class="row">
        	
			<div class="label">Treatment assignment code</div>
            
			<div class="value">${aeRoutineReport.treatmentAssignment.code}</div>
        
		</div>
        
        
		<div class="row" >
        	
			<div class="label">Description	</div>
            
			<div class="value">${aeRoutineReport.treatmentAssignment.description}</div>
        
		</div>
   
	</chrome:division> 
   	<chrome:division title="AEs" id="ae">
   		 
   		<center>
    		
   		<c:if test="${fn:length(aeRoutineReport.adverseEvents) > 0}" >
    		
   			<table width="90%" class="tablecontent">
    			
   			<tr>
    				
   				<th scope="col" align="left"><b> Term:</b> </th>
    				
   				<th scope="col" align="left"><b> Grade:</b> </th>
    				
   				<th scope="col" align="left"><b> Attribution:</b> </th>
    				
   				<th scope="col" align="left"><b> Hospitalization:</b> </th>
    				
   				<th scope="col" align="left"><b> Expected:</b> </th>
    			
   			</tr>
    				
            
   			<c:forEach items="${aeRoutineReport.adverseEvents}" var="ae" varStatus="status">
            	
   			<tr>
            		
   				<td><c:out value="${ae.adverseEventTerm.universalTerm}" /></td>
            		
   				<td><c:out value="${ae.grade}" /></td>
            		
            		
   				<td><c:out value="${ae.attributionSummary}" /></td>
            		
            		
   				<td><c:out value="${ae.hospitalization}"/></td>
   				<td><c:out value="${ae.expected == true ? 'Yes' : ae.expected == false ? 'No' : '' }" /></td>
            	
   			</tr>	 
            
   			</c:forEach>
            
   			</table>
            
   		</c:if>
            
   		</center>
   
   	</chrome:division> 
{'fraction_non_alphanumeric': 0.18422205989773557, 'fraction_numerical': 0.003506208911614317, 'mean_word_length': 2.2976878612716765, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 199, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '677550', 'n_tokens_mistral': 2659, 'n_tokens_neox': 2342, 'n_words': 396}