[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openmrs-svn
Subject:    [31004] openmrs-modules/chica/branches/cerner: Electronic PWS updates.
From:       svn-noreply () openmrs ! org
Date:       2014-11-19 20:22:27
Message-ID: 20141119202227.7E7A0401F7 () openmrs ! osuosl ! org
[Download RAW message or body]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[31004] openmrs-modules/chica/branches/cerner: Electronic PWS updates.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: \
verdana,arial,helvetica,sans-serif; font-size: 10pt;  } #msg dl a { font-weight: \
bold} #msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: \
bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: \
6px; } #logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em \
0; } #logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg \
h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; } \
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; \
} #logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: \
-1.5em; padding-left: 1.5em; } #logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em \
1em 0 1em; background: white;} #logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid \
#fa0; border-bottom: 1px solid #fa0; background: #fff; } #logmsg table th { \
text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted \
#fa0; } #logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: \
0.2em 0.5em; } #logmsg table thead th { text-align: center; border-bottom: 1px solid \
#fa0; } #logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: \
6px; } #patch { width: 100%; }
#patch h4 {font-family: \
verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
 #patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, \
#patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins \
{background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del \
{background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, \
                .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd>31004</dd>
<dt>Author</dt> <dd>sjmckee</dd>
<dt>Date</dt> <dd>2014-11-19 20:22:27 +0000 (Wed, 19 Nov 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Electronic PWS updates.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#openmrsmoduleschicabranchescernerwebmoduledisplayTiffjsp">openmrs-modules/chica/branches/cerner/web/module/displayTiff.jsp</a></li>
 <li><a href="#openmrsmoduleschicabranchescernerwebmodulepwsjsp">openmrs-modules/chica/branches/cerner/web/module/pws.jsp</a></li>
 <li><a href="#openmrsmoduleschicabranchescernerwebmoduleresourcespwsjs">openmrs-modules/chica/branches/cerner/web/module/resources/pws.js</a></li>
 <li><a href="#openmrsmoduleschicabranchescernerwebsrcorgopenmrsmodulechicawebChicaSer \
vletjava">openmrs-modules/chica/branches/cerner/web/src/org/openmrs/module/chica/web/ChicaServlet.java</a></li>
 <li><a href="#openmrsmoduleschicabranchescernerwebsrcorgopenmrsmodulechicawebViewEnco \
unterControllerjava">openmrs-modules/chica/branches/cerner/web/src/org/openmrs/module/chica/web/ViewEncounterController.java</a></li>
 </ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#openmrsmoduleschicabranchescernermetadatastylesheetspwsxsl">openmrs-modules/chica/branches/cerner/metadata/stylesheets/pws.xsl</a></li>
 </ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="openmrsmoduleschicabranchescernermetadatastylesheetspwsxsl"></a>
<div class="addfile"><h4>Added: \
openmrs-modules/chica/branches/cerner/metadata/stylesheets/pws.xsl (0 => 31004)</h4> \
<pre class="diff"><span> <span class="info">--- \
openmrs-modules/chica/branches/cerner/metadata/stylesheets/pws.xsl	                   \
                (rev 0)
+++ openmrs-modules/chica/branches/cerner/metadata/stylesheets/pws.xsl	2014-11-19 \
20:22:27 UTC (rev 31004) </span><span class="lines">@@ -0,0 +1,1468 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
+
+&lt;xsl:stylesheet version=&quot;2.0&quot; \
xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt; +    &lt;xsl:output \
method=&quot;html&quot; encoding=&quot;ISO-8859-1&quot; indent=&quot;yes&quot;/&gt; + \
 +    &lt;xsl:template match=&quot;/&quot;&gt;
+        &lt;xsl:text disable-output-escaping=&quot;yes&quot;&gt;&amp;lt;!DOCTYPE \
html&gt;&lt;/xsl:text&gt; +        
+        &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+            &lt;head&gt;
+                &lt;meta http-equiv=&quot;Content-Type&quot; \
content=&quot;text/html; charset=utf-8&quot; /&gt; +                \
&lt;title&gt;PWS&lt;/title&gt; +                &lt;style&gt;
+					
+					#formContainer {
+						font-size:12px;
+					    width:600px;
+					    height:983px;
+					    margin:0 auto;
+					    border: 1px solid black;
+					    margin-bottom:40px;
+					}
+					
+					#titleContainer {
+					    width:590px;
+					    height:30px;
+					    position: relative;
+					    padding:5px;
+					    margin-right:10px;
+					    border-bottom: 1px solid black;
+					}
+					
+					#title, 
+					#mrn,
+					#submitFormTop {
+					    width: 600px;
+					    height: 100%;
+					    text-align:center;
+					    position: absolute;
+					    top: 0;
+					    left: 0;
+					}
+					
+					#title {
+					    font-size:16px;
+					}
+					
+					#mrn {
+					    z-index: 10;
+					    text-align:right;
+					    margin-left:-5px;
+					    font-size:16px;
+					}
+					
+					#submitFormTop {
+					    z-index: 20;
+					    text-align:left;
+					}
+					
+					#infoLeft {
+					    width:230px;
+					    float:left;
+					    padding:1px 1px 1px 3px;
+					    border-bottom: 1px solid black;
+					}
+					
+					#infoRight {
+					    width:139px;
+					    float:left;
+					    padding:1px;
+					    border-bottom: 1px solid black;
+					}
+					
+					#vitals {
+					    width:223px;
+					    height:272px;
+					    float:left;
+					    border-left: 1px solid black;
+					}
+					
+					.flagCell {
+					    width:15px;
+					    height: 15px;
+					    border-right:1px solid black;
+					    text-align:center;
+					    float:left;
+					    color:red;
+					}
+					
+					.vitalsNames {
+					    float:left;
+					    width:85px;
+					    height: 15px;
+					    text-align:right;
+					}
+					
+					.vitalsValues {
+					    float:left;
+					    width:112px;
+					    height: 15px;
+					    margin-left:5px;
+					    text-align:left;
+					}
+					
+					#vitalsLegend {
+					    width:225px;
+					    border-left: 1px solid black;
+					    border-bottom: 1px solid black;
+					    border-top: 1px solid black;
+					    float:left;
+					    margin-left:-1px;
+					    height:65px;
+					    text-align:center;
+					    font-size:0.8em;
+					    padding-top:2px;
+					}
+					
+					#exam {
+					    border-bottom: 1px solid black;
+					    float:left;
+					    width:367px;
+					    height:345px;
+					    margin-top:-190px;
+					    padding:2px 2px 0px 5px;
+					}
+					
+					#buttons {
+					    width:226px;
+					    height:131px;
+					    border-bottom: 1px solid black;
+					    float:left;
+					    margin-top:26px;
+					    margin-left:0px;
+					}
+					
+					#physicalExam {
+					    float:left;
+					    width:155px;
+					    height:346px;
+					}
+					
+					#examTitle {
+					    float:left;
+					    text-align:left;
+					    width:175px;
+					    height:15px;
+					}
+					
+					.examNames {
+					    float:left;
+					    width:80px;
+					    height:19px;
+					    text-align:left;
+					}
+					
+					.examHeader {
+					    float:left;
+					    width:30px;
+					    height:19px;
+					    text-align:center;
+					}
+					
+					.examFlag {
+					    float:left;
+					    width:15px;
+					    height:19px;
+					    text-align:center;
+					    color:red;
+					}
+					
+					#examLegend {
+					    float:left;
+					    text-align:center;
+					    width:175px;
+					    height:15px;
+					    font-size:0.8em;
+					}
+					
+					#examExtras {
+					    float:left;
+					    width:190px;
+					    height:346px;
+					    margin-left:20px;
+					}
+					
+					.examExtraCheckbox {
+					    width:189px;
+					}
+					
+					.examExtraData {
+					    width:187px;
+					    padding-left:2px;
+					    margin: 1px 0 1px 0;
+					}
+					
+					.questionContainer {
+					    float:left;
+					    width:300px;
+					    height:160px;
+					    font-size:0.75em;
+					    padding-top:10px;
+					    border-bottom: 1px solid black;
+					    border-left: 1px solid black;
+					    margin-left:-1px;
+					}
+					
+					.questionStem {
+					    padding:2px 5px 2px 5px;
+					    width:290px;
+					    height:55px;
+					}
+					
+					.answerContainer {
+					    float:left;
+					    padding:2px;
+					    width:145px;
+					    height:88px;
+					}
+					
+					.answerCheckbox {
+					    width:160px;
+					}
+					
+					.highlightYellow {
+						background-color: yellow;
+					}
+                &lt;/style&gt;
+            &lt;/head&gt;
+            &lt;body&gt;
+		        &lt;div id=&quot;formContainer&quot;&gt;
+		            &lt;form id=&quot;pwsForm&quot; name=&quot;pwsForm&quot; \
action=&quot;pws.form&quot; method=&quot;post&quot;&gt; +		                &lt;div \
id=&quot;titleContainer&quot;&gt; +		                    &lt;div \
id=&quot;title&quot;&gt; +		                        &lt;h3&gt;CHICA Physician \
Encounter Form&lt;/h3&gt; +		                    &lt;/div&gt;
+		                    &lt;div id=&quot;mrn&quot;&gt;
+		                        &lt;h3&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'MRN']&quot;/&gt;&lt;/h3&gt; +		              \
&lt;/div&gt; +		                &lt;/div&gt;
+		                &lt;div id=&quot;infoLeft&quot;&gt;
+		                    &lt;b&gt;Patient:&lt;/b&gt; &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'PatientName']&quot;/&gt;&lt;br/&gt; +		      \
&lt;b&gt;DOB:&lt;/b&gt; &lt;xsl:value-of select=&quot;Records/Record/Field[@id = \
'DOB']&quot;/&gt; &lt;b&gt;Age:&lt;/b&gt; &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'AGE']&quot;/&gt;&lt;br/&gt; +		              \
&lt;b&gt;Doctor:&lt;/b&gt; &lt;xsl:value-of select=&quot;Records/Record/Field[@id = \
'Doctor']&quot;/&gt; +		                &lt;/div&gt;
+		                &lt;div id=&quot;infoRight&quot;&gt;
+		                    &lt;b&gt;MRN:&lt;/b&gt; &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'MRN']&quot;/&gt;&lt;br/&gt; +		              \
&lt;b&gt;Date:&lt;/b&gt; &lt;xsl:value-of select=&quot;Records/Record/Field[@id = \
'VisitDate']&quot;/&gt;&lt;br/&gt; +		                &lt;b&gt;Time:&lt;/b&gt; \
&lt;xsl:value-of select=&quot;Records/Record/Field[@id = \
'VisitTime']&quot;/&gt;&lt;/div&gt; +		                &lt;div \
id=&quot;vitals&quot;&gt; +		                    &lt;div \
class=&quot;flagCell&quot;&gt; +		                        &lt;b&gt;&lt;font \
style=&quot;color:black;&quot;&gt;A&lt;/font&gt;&lt;/b&gt; +		                    \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        &lt;b&gt;Vital Signs:&lt;/b&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &amp;#160;&amp;#160;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HeightA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; \
+		                    &lt;/div&gt; +		                    &lt;div \
class=&quot;vitalsNames&quot;&gt; +		                        Height:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Height'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = \
'Height']&quot;/&gt;&amp;#160;&lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'HeightSUnits']&quot;/&gt;&amp;#160;(&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HeightP']&quot;/&gt;%) +		                   \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'WeightA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; \
+		                    &lt;/div&gt; +		                    &lt;div \
class=&quot;vitalsNames&quot;&gt; +		                        Weight:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                             &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'WeightKG'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = \
'WeightKG']&quot;/&gt;&amp;#160;kg.&amp;#160;(&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'WeightP']&quot;/&gt;%) +		                   \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'BMIA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; +		   \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        BMI:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'BMI'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'BMI']&quot;/&gt;&amp;#160;(&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'BMIP']&quot;/&gt;%) +		                      \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HCA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; +		    \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        Head Circ:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'HC'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HC']&quot;/&gt; cm. (&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HCP']&quot;/&gt;%) +		                       \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'TempA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; +		  \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        Temp:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Temperature'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = \
'Temperature']&quot;/&gt;&amp;#160;F&amp;#160;(&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Temperature_Method']&quot;/&gt;) +		         \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'PulseA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; +		 \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        Pulse:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Pulse'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Pulse']&quot;/&gt; +		                       \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'RRA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; +		    \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        RR:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'RR'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'RR']&quot;/&gt; +		                          \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'BPA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; +		    \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        BP:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'BP'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'BP']&quot;/&gt; (&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'BPP']&quot;/&gt;) +		                        \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'PulseOxA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; \
+		                    &lt;/div&gt; +		                    &lt;div \
class=&quot;vitalsNames&quot;&gt; +		                        Pulse Ox:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'PulseOx'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'PulseOx']&quot;/&gt;% +		                    \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HearA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; +		  \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        Hear (L):&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'HearL'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HearL']&quot;/&gt; +		                       \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HearA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; +		  \
&lt;/div&gt; +		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        Hear (R):&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'HearR'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'HearR']&quot;/&gt; +		                       \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'VisionLA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; \
+		                    &lt;/div&gt; +		                    &lt;div \
class=&quot;vitalsNames&quot;&gt; +		                        Vision (L):&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'VisionL'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = \
'VisionL']&quot;/&gt;&amp;#160;&lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'VisionL_Corrected']&quot;/&gt; +		                            \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'VisionRA']&quot;/&gt;&lt;/b&gt;&lt;br/&gt; \
+		                    &lt;/div&gt; +		                    &lt;div \
class=&quot;vitalsNames&quot;&gt; +		                        Vision (R):&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'VisionR'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = \
'VisionR']&quot;/&gt;&amp;#160;&lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'VisionR_Corrected']&quot;/&gt; +		                            \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        Weight:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Weight'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Weight']&quot;/&gt; +		                      \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;flagCell&quot;&gt;
+		                        &lt;b&gt;&lt;/b&gt;&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsNames&quot;&gt;
+		                        Prev WT:&lt;br/&gt;
+		                    &lt;/div&gt;
+		                    &lt;div class=&quot;vitalsValues&quot;&gt;
+		                        &lt;xsl:choose&gt;
+		                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'PrevWeight'] = ''&quot;&gt; +		                                &amp;#160;
+		                            &lt;/xsl:when&gt;
+		                            &lt;xsl:otherwise&gt;
+		                                &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = \
'PrevWeight']&quot;/&gt;&amp;#160;(&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'PrevWeightDate']&quot;/&gt;) +		             \
&lt;/xsl:otherwise&gt; +		                        &lt;/xsl:choose&gt;
+		                    &lt;/div&gt;
+		                    &lt;div id=&quot;vitalsLegend&quot;&gt;
+		                    &lt;b&gt;&lt;font \
style=&quot;color:red;&quot;&gt;*&lt;/font&gt;=Abnormal, U=Uncorrected,&lt;br/&gt; \
+		                    C=Corrected, A=Axillary, +		                    R=Rectal, \
O=Oral&lt;br/&gt; +		                    F=Failed, P=Passed&lt;/b&gt;&lt;/div&gt;
+		                &lt;/div&gt;
+		                &lt;div id=&quot;exam&quot;&gt;
+		                    &lt;div id=&quot;physicalExam&quot;&gt;
+		                        &lt;div id=&quot;examTitle&quot;&gt;
+		                            &lt;b&gt;Physical Exam:&lt;/b&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &amp;#160;&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            &amp;#160;&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                            Nl&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                            Abnl&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'GeneralExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            General:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_General']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_General&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_General&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_General']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_General&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_General&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'HeadExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Head:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Head']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Head&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Head&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Head']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Head&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Head&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'SkinExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Skin:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Skin']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Skin&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Skin&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Skin']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Skin&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Skin&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'EyesVisionExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Eyes:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Eyes']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Eyes&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Eyes&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Eyes']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Eyes&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Eyes&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'EarsHearingExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Ears:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Ears']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Ears&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Ears&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Ears']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Ears&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Ears&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'NoseThroatExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Nose/Throat:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Nose']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Nose&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Nose&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Nose']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Nose&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Nose&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'TeethGumsExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Teeth/Gums:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Teeth']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Teeth&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Teeth&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Teeth']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Teeth&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Teeth&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'NodesExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Nodes:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Nodes']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Nodes&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Nodes&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Nodes']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Nodes&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Nodes&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'ChestLungsExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Chest/Lungs:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Chest']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Chest&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Chest&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Chest']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Chest&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Chest&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'HeartPulsesExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Heart/Pulses:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Heart']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Heart&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Heart&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Heart']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Heart&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Heart&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'AbdomenExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Abdomen:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Abdomen']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Abdomen&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Abdomen&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Abdomen']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Abdomen&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Abdomen&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'ExtGenitaliaExamA']&quot;/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Ext Genitalia:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_ExtGenitalia']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_ExtGenitalia&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_ExtGenitalia&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_ExtGenitalia']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_ExtGenitalia&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_ExtGenitalia&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'BackExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Back:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Back']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Back&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Back&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Back']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Back&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Back&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'NeuroExamA']&quot;/&gt;&lt;br/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Neuro:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Neuro']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Neuro&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Neuro&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Neuro']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Neuro&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Neuro&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examFlag&quot;&gt;
+		                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'ExtremitiesExamA']&quot;/&gt; +		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examNames&quot;&gt;
+		                            Extremities:&lt;br/&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Extremities']/Value = 'N'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Extremities&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Extremities&quot; value=&quot;N&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div class=&quot;examHeader&quot;&gt;
+		                        	&lt;xsl:choose&gt;
+		                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Entry_Extremities']/Value = 'A'&quot;&gt; +		                        			&lt;input \
type=&quot;radio&quot; name=&quot;Entry_Extremities&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;br/&gt; +		         \
&lt;/xsl:when&gt; +		                        		&lt;xsl:otherwise&gt;
+		                        			&lt;input type=&quot;radio&quot; \
name=&quot;Entry_Extremities&quot; value=&quot;A&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                        \
&lt;/xsl:otherwise&gt; +		                        	&lt;/xsl:choose&gt;
+		                        &lt;/div&gt;
+		                        &lt;div id=&quot;examLegend&quot;&gt;
+		                            &lt;b&gt;&lt;font \
style=&quot;color:red;&quot;&gt;*&lt;/font&gt; = Previously Abnormal&lt;/b&gt; +		    \
&lt;/div&gt; +		                    &lt;/div&gt;
+		                  &lt;div id=&quot;examExtras&quot;&gt;
+		                    &lt;div class=&quot;examExtraCheckbox&quot;&gt;
+		                    	&lt;xsl:choose&gt;
+		                    		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Special_Need']/Value = 'Y'&quot;&gt; +		                    			&lt;input \
type=&quot;checkbox&quot; name=&quot;Special_Need&quot; value=&quot;Y&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;Special Need \
Child&lt;br/&gt; +		                    		&lt;/xsl:when&gt;
+		                    		&lt;xsl:otherwise&gt;
+		                    			&lt;input type=&quot;checkbox&quot; \
name=&quot;Special_Need&quot; value=&quot;Y&quot; \
disabled=&quot;disabled&quot;/&gt;Special Need Child&lt;br/&gt; +		                   \
&lt;/xsl:otherwise&gt; +		                    	&lt;/xsl:choose&gt;
+	                        &lt;/div&gt;
+	                        &lt;div&gt;
+	                            &amp;#160;
+	                        &lt;/div&gt;
+	                        &lt;div class=&quot;examExtraCheckbox&quot;&gt;
+	                        	&lt;xsl:choose&gt;
+	                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'screenedForAbuse']/Value = 'screened'&quot;&gt; +	                        \
&lt;input type=&quot;checkbox&quot; name=&quot;screenedForAbuse&quot; \
value=&quot;screened&quot; disabled=&quot;disabled&quot; \
checked=&quot;checked&quot;/&gt;Screened for abuse&lt;br/&gt; +	                      \
&lt;/xsl:when&gt; +	                        		&lt;xsl:otherwise&gt;
+	                        			&lt;input type=&quot;checkbox&quot; \
name=&quot;screenedForAbuse&quot; value=&quot;screened&quot; \
disabled=&quot;disabled&quot;/&gt;Screened for abuse&lt;br/&gt; +	                    \
&lt;/xsl:otherwise&gt; +	                        	&lt;/xsl:choose&gt;
+	                        &lt;/div&gt;
+	                        &lt;div class=&quot;examExtraCheckbox&quot;&gt;
+	                        	&lt;xsl:choose&gt;
+	                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'discussedPhysicalActivity']/Value = 'Physical Activity'&quot;&gt; +	                 \
&lt;input type=&quot;checkbox&quot; name=&quot;discussedPhysicalActivity&quot; \
value=&quot;Physical Activity&quot; disabled=&quot;disabled&quot; \
checked=&quot;checked&quot;/&gt;Discussed physical activity&lt;br/&gt; +	             \
&lt;/xsl:when&gt; +	                        		&lt;xsl:otherwise&gt;
+	                        			&lt;input type=&quot;checkbox&quot; \
name=&quot;discussedPhysicalActivity&quot; value=&quot;Physical Activity&quot; \
disabled=&quot;disabled&quot;/&gt;Discussed physical activity&lt;br/&gt; +	           \
&lt;/xsl:otherwise&gt; +	                        	&lt;/xsl:choose&gt;
+	                        &lt;/div&gt;
+	                        &lt;div class=&quot;examExtraCheckbox&quot;&gt;
+	                        	&lt;xsl:choose&gt;
+	                        		&lt;xsl:when test=&quot;Records/Record/Field[@id = \
'discussedHealthyDiet']/Value = 'Healthy Diet'&quot;&gt; +	                        \
&lt;input type=&quot;checkbox&quot; name=&quot;discussedHealthyDiet&quot; \
value=&quot;Healthy Diet&quot; disabled=&quot;disabled&quot; \
checked=&quot;checked&quot;/&gt;Discussed healthy diet&lt;br/&gt; +	                  \
&lt;/xsl:when&gt; +	                        		&lt;xsl:otherwise&gt;
+	                        			&lt;input type=&quot;checkbox&quot; \
name=&quot;discussedHealthyDiet&quot; value=&quot;Healthy Diet&quot; \
disabled=&quot;disabled&quot;/&gt;Discussed healthy diet&lt;br/&gt; +	                \
&lt;/xsl:otherwise&gt; +	                        	&lt;/xsl:choose&gt;
+	                        &lt;/div&gt;
+	                        &lt;div&gt;
+	                            &amp;#160;
+	                        &lt;/div&gt;
+	                        &lt;div class=&quot;examExtraData&quot;&gt;
+	                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'Language']&quot;/&gt; +	                        &lt;/div&gt;
+	                        &lt;div&gt;
+	                            &amp;#160;
+	                        &lt;/div&gt;
+	                        &lt;div class=&quot;examExtraData&quot;&gt;
+	                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'TobaccoLabel']&quot;/&gt;&amp;#160;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'TobaccoAnswer']&quot;/&gt; +	                \
&lt;/div&gt; +	                        &lt;div class=&quot;examExtraData&quot;&gt;
+	                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'AlcoholLabel']&quot;/&gt;&amp;#160;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'AlcoholAnswer']&quot;/&gt; +	                \
&lt;/div&gt; +	                        &lt;div class=&quot;examExtraData&quot;&gt;
+	                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'DrugsLabel']&quot;/&gt;&amp;#160;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'DrugsAnswer']&quot;/&gt; +	                  \
&lt;/div&gt; +	                        &lt;div&gt;
+	                            &amp;#160;
+	                        &lt;/div&gt;
+	                        &lt;xsl:choose&gt;
+	                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Pain'] = '0'&quot;&gt; +	                            	&lt;div \
class=&quot;examExtraData&quot;&gt;Pain (0-10):&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Pain']&quot;/&gt;&lt;/div&gt; +	             \
&lt;/xsl:when&gt; +	                            &lt;xsl:otherwise&gt;
+	                            	&lt;div class=&quot;highlightYellow \
examExtraData&quot;&gt;Pain (0-10):&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Pain']&quot;/&gt;&lt;/div&gt; +	             \
&lt;/xsl:otherwise&gt; +	                        &lt;/xsl:choose&gt;
+		                            
+	                        &lt;xsl:choose&gt;
+	                            &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Allergy'] = 'NONE'&quot;&gt; +	                            	&lt;div \
class=&quot;examExtraData&quot;&gt;Allergies:&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Allergy']&quot;/&gt;&lt;/div&gt; +	          \
&lt;/xsl:when&gt; +	                            &lt;xsl:otherwise&gt;
+	                            	&lt;div class=&quot;highlightYellow \
examExtraData&quot;&gt;Allergies:&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Allergy']&quot;/&gt;&lt;/div&gt; +	          \
&lt;/xsl:otherwise&gt; +	                        &lt;/xsl:choose&gt;
+		                            
+	                        &lt;div class=&quot;examExtraData&quot;&gt;
+	                            &lt;xsl:value-of select=&quot;Records/Record/Field[@id \
= 'MedicationLabel']&quot;/&gt; +	                        &lt;/div&gt;
+		                  &lt;/div&gt;
+		                &lt;/div&gt;
+		                &lt;div id=&quot;buttons&quot;&gt;
+		                &lt;/div&gt;
+		                &lt;div class=&quot;questionContainer&quot;&gt;
+		                    &lt;xsl:choose&gt;
+		                        &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Prompt1_Text'] = ''&quot;&gt; +		                            &amp;#160;
+		                        &lt;/xsl:when&gt;
+		                        &lt;xsl:otherwise&gt;
+		                           &lt;div class=&quot;questionStem&quot;&gt;
+		                               &lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Prompt1_Text']&quot;/&gt; +		                \
&lt;/div&gt; +		                           &lt;div \
class=&quot;answerContainer&quot;&gt; +		                               &lt;div \
class=&quot;answerCheckbox&quot;&gt; +		                                   \
&lt;xsl:choose&gt; +		                                   	&lt;xsl:when \
test=&quot;contains(Records/Record/Field[@id = 'Choice1']/Value, '1')&quot;&gt; +		   \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer1_1']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer1_1']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                               &lt;/div&gt;
+		                               &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                   &lt;xsl:choose&gt;
+		                                   	&lt;xsl:when \
test=&quot;contains(Records/Record/Field[@id = 'Choice1']/Value, '3')&quot;&gt; +		   \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;3&quot; \
disabled=&quot;disabled&quot; checked=&quot;checked&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer1_3']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;3&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer1_3']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                               &lt;/div&gt;
+		                               &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                   &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer1_5'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer1_5']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                               &lt;/div&gt;
+		                           &lt;/div&gt;
+		                           &lt;div class=&quot;answerContainer&quot;&gt;
+		                               &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                   &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer1_2'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer1_2']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                               &lt;/div&gt;
+		                               &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                   &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer1_4'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer1_4']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                               &lt;/div&gt;
+		                               &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                   &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer1_6'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer1_6']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                               &lt;/div&gt;
+		                           &lt;/div&gt;
+		                        &lt;/xsl:otherwise&gt;
+		                    &lt;/xsl:choose&gt;
+		                &lt;/div&gt;
+		                &lt;div class=&quot;questionContainer&quot;&gt;
+		                    &lt;xsl:choose&gt;
+		                        &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Prompt2_Text'] = ''&quot;&gt; +		                            &amp;#160;
+		                        &lt;/xsl:when&gt;
+		                        &lt;xsl:otherwise&gt;
+		                            &lt;div class=&quot;questionStem&quot;&gt;
+		                            	&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Prompt2_Text']&quot;/&gt; +		                \
&lt;/div&gt; +		                            &lt;div \
class=&quot;answerContainer&quot;&gt; +		                                &lt;div \
class=&quot;answerCheckbox&quot;&gt; +		                                    \
&lt;xsl:choose&gt; +		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer2_1'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer2_1']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer2_3'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer2_3']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer2_5'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer2_5']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                            &lt;div class=&quot;answerContainer&quot;&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer2_2'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer2_2']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer2_4'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer2_4']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer2_6'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer2_6']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                        &lt;/xsl:otherwise&gt;
+		                    &lt;/xsl:choose&gt;
+		                &lt;/div&gt;
+		                &lt;div class=&quot;questionContainer&quot;&gt;
+		                    &lt;xsl:choose&gt;
+		                        &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Prompt3_Text'] = ''&quot;&gt; +		                            &amp;#160;
+		                        &lt;/xsl:when&gt;
+		                        &lt;xsl:otherwise&gt;
+		                            &lt;div class=&quot;questionStem&quot;&gt;
+		                            	&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Prompt3_Text']&quot;/&gt; +		                \
&lt;/div&gt; +		                            &lt;div \
class=&quot;answerContainer&quot;&gt; +		                                &lt;div \
class=&quot;answerCheckbox&quot;&gt; +		                                    \
&lt;xsl:choose&gt; +		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer3_1'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer3_1']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer3_3'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer3_3']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer3_5'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer3_5']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                            &lt;div class=&quot;answerContainer&quot;&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer3_2'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer3_2']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer3_4'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer3_4']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer3_6'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer3_6']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                        &lt;/xsl:otherwise&gt;
+		                    &lt;/xsl:choose&gt;
+		                &lt;/div&gt;
+		                &lt;div class=&quot;questionContainer&quot;&gt;
+		                    &lt;xsl:choose&gt;
+		                        &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Prompt4_Text'] = ''&quot;&gt; +		                            &amp;#160;
+		                        &lt;/xsl:when&gt;
+		                        &lt;xsl:otherwise&gt;
+		                            &lt;div class=&quot;questionStem&quot;&gt;
+		                            	&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Prompt4_Text']&quot;/&gt; +		                \
&lt;/div&gt; +		                            &lt;div \
class=&quot;answerContainer&quot;&gt; +		                                &lt;div \
class=&quot;answerCheckbox&quot;&gt; +		                                    \
&lt;xsl:choose&gt; +		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer4_1'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer4_1']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer4_3'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer4_3']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer4_5'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer4_5']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                            &lt;div class=&quot;answerContainer&quot;&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer4_2'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer4_2']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer4_4'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer4_4']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer4_6'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer4_6']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                        &lt;/xsl:otherwise&gt;
+		                    &lt;/xsl:choose&gt;
+		                &lt;/div&gt;
+		                &lt;div class=&quot;questionContainer&quot;&gt;
+		                    &lt;xsl:choose&gt;
+		                        &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Prompt5_Text'] = ''&quot;&gt; +		                            &amp;#160;
+		                        &lt;/xsl:when&gt;
+		                        &lt;xsl:otherwise&gt;
+		                            &lt;div class=&quot;questionStem&quot;&gt;
+		                            	&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Prompt5_Text']&quot;/&gt; +		                \
&lt;/div&gt; +		                            &lt;div \
class=&quot;answerContainer&quot;&gt; +		                                &lt;div \
class=&quot;answerCheckbox&quot;&gt; +		                                    \
&lt;xsl:choose&gt; +		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer5_1'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer5_1']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer5_3'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer5_3']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer5_5'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer5_5']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                            &lt;div class=&quot;answerContainer&quot;&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer5_2'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer5_2']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer5_4'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer5_4']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer5_6'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer5_6']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                        &lt;/xsl:otherwise&gt;
+		                    &lt;/xsl:choose&gt;
+		                &lt;/div&gt;
+		                &lt;div class=&quot;questionContainer&quot;&gt;
+		                    &lt;xsl:choose&gt;
+		                        &lt;xsl:when test=&quot;Records/Record/Field[@id = \
'Prompt6_Text'] = ''&quot;&gt; +		                            &amp;#160;
+		                        &lt;/xsl:when&gt;
+		                        &lt;xsl:otherwise&gt;
+		                            &lt;div class=&quot;questionStem&quot;&gt;
+		                            	&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Prompt6_Text']&quot;/&gt; +		                \
&lt;/div&gt; +		                            &lt;div \
class=&quot;answerContainer&quot;&gt; +		                                &lt;div \
class=&quot;answerCheckbox&quot;&gt; +		                                    \
&lt;xsl:choose&gt; +		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer6_1'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer6_1']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer6_3'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer6_3']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer6_5'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer6_5']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                            &lt;div class=&quot;answerContainer&quot;&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer6_2'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer6_2']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer6_4'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer6_4']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                                &lt;div class=&quot;answerCheckbox&quot;&gt;
+		                                    &lt;xsl:choose&gt;
+		                                     &lt;xsl:when \
test=&quot;Records/Record/Field[@id = 'Answer6_6'] = ''&quot;&gt; +		                 \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;br/&gt; +		                                     \
&lt;/xsl:when&gt; +		                                     &lt;xsl:otherwise&gt;
+		                                     	&lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled=&quot;disabled&quot;/&gt;&lt;xsl:value-of \
select=&quot;Records/Record/Field[@id = 'Answer6_6']&quot;/&gt;&lt;br/&gt; +		        \
&lt;/xsl:otherwise&gt; +		                                   &lt;/xsl:choose&gt;
+		                                &lt;/div&gt;
+		                            &lt;/div&gt;
+		                        &lt;/xsl:otherwise&gt;
+		                    &lt;/xsl:choose&gt;
+		                &lt;/div&gt;
+		            &lt;/form&gt;
+		        &lt;/div&gt;
+		    &lt;/body&gt;
+        &lt;/html&gt;
+        
+    &lt;/xsl:template&gt;
+&lt;/xsl:stylesheet&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="openmrsmoduleschicabranchescernerwebmoduledisplayTiffjsp"></a>
<div class="modfile"><h4>Modified: \
openmrs-modules/chica/branches/cerner/web/module/displayTiff.jsp (31003 => \
31004)</h4> <pre class="diff"><span>
<span class="info">--- \
openmrs-modules/chica/branches/cerner/web/module/displayTiff.jsp	2014-11-18 13:18:13 \
                UTC (rev 31003)
+++ openmrs-modules/chica/branches/cerner/web/module/displayTiff.jsp	2014-11-19 \
20:22:27 UTC (rev 31004) </span><span class="lines">@@ -80,6 +80,7 @@
</span><span class="cx"> 					   &lt;div style=&quot;width:100%&quot;&gt;
</span><span class="cx">                            &lt;button \
type=&quot;button&quot; \
onclick=&quot;printSelection(document.getElementById('divRight'));return \
false&quot;&gt;Print&lt;/button&gt; </span><span class="cx">                        \
&lt;/div&gt; </span><ins>+                       &lt;hr/&gt;
</ins><span class="cx"> 					   &lt;div id=&quot;divRight&quot; \
style=&quot;height:100%; width:100%; position:relative; overflow:scroll&quot;&gt; \
</span><span class="cx">                             ${rightHtmlOutput} </span><span \
class="cx">                        &lt;/div&gt; </span></span></pre></div>
<a id="openmrsmoduleschicabranchescernerwebmodulepwsjsp"></a>
<div class="modfile"><h4>Modified: \
openmrs-modules/chica/branches/cerner/web/module/pws.jsp (31003 => 31004)</h4> <pre \
class="diff"><span> <span class="info">--- \
openmrs-modules/chica/branches/cerner/web/module/pws.jsp	2014-11-18 13:18:13 UTC (rev \
                31003)
+++ openmrs-modules/chica/branches/cerner/web/module/pws.jsp	2014-11-19 20:22:27 UTC \
(rev 31004) </span><span class="lines">@@ -591,24 +591,66 @@
</span><span class="cx"> 			               &lt;/div&gt;
</span><span class="cx"> 			               &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 			                   \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-			                       \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; \
value=&quot;1&quot;/&gt;&lt;c:out value=&quot;${Answer1_1}&quot;/&gt;&lt;br/&gt; \
</del><ins>+			                       &lt;c:choose&gt; +			                         \
&lt;c:when test=&quot;${empty Answer1_1}&quot;&gt; +			                             \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;1&quot; \
disabled/&gt;&lt;br/&gt; +			                         &lt;/c:when&gt;
+			                         &lt;c:otherwise&gt;
+			                             &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;1&quot;/&gt;&lt;c:out \
value=&quot;${Answer1_1}&quot;/&gt;&lt;br/&gt; +			                         \
&lt;/c:otherwise&gt; +			                       &lt;/c:choose&gt;
</ins><span class="cx"> 			                   &lt;/div&gt;
</span><span class="cx"> 			                   &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-			                       &lt;input \
type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; \
value=&quot;3&quot;/&gt;&lt;c:out value=&quot;${Answer1_3}&quot;/&gt;&lt;br/&gt; \
</del><ins>+			                       &lt;c:choose&gt; +                              \
&lt;c:when test=&quot;${empty Answer1_3}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;3&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;3&quot;/&gt;&lt;c:out \
value=&quot;${Answer1_3}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 			                   &lt;/div&gt;
</span><span class="cx"> 			                   &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-			                       &lt;input \
type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; \
value=&quot;5&quot;/&gt;&lt;c:out value=&quot;${Answer1_5}&quot;/&gt;&lt;br/&gt; \
</del><ins>+			                       &lt;c:choose&gt; +                              \
&lt;c:when test=&quot;${empty Answer1_5}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;5&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;5&quot;/&gt;&lt;c:out \
value=&quot;${Answer1_5}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 			                   &lt;/div&gt;
</span><span class="cx"> 			               &lt;/div&gt;
</span><span class="cx"> 			               &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 			                   \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-			                       \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; \
value=&quot;2&quot;/&gt;&lt;c:out value=&quot;${Answer1_2}&quot;/&gt;&lt;br/&gt; \
</del><ins>+			                       &lt;c:choose&gt; +                              \
&lt;c:when test=&quot;${empty Answer1_2}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;2&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;2&quot;/&gt;&lt;c:out \
value=&quot;${Answer1_2}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 			                   &lt;/div&gt;
</span><span class="cx"> 			                   &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-			                       &lt;input \
type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; \
value=&quot;4&quot;/&gt;&lt;c:out value=&quot;${Answer1_4}&quot;/&gt;&lt;br/&gt; \
</del><ins>+			                       &lt;c:choose&gt; +                              \
&lt;c:when test=&quot;${empty Answer1_4}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;4&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;4&quot;/&gt;&lt;c:out \
value=&quot;${Answer1_4}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 			                   &lt;/div&gt;
</span><span class="cx"> 			                   &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-			                       &lt;input \
type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; \
value=&quot;6&quot;/&gt;&lt;c:out value=&quot;${Answer1_6}&quot;/&gt;&lt;br/&gt; \
</del><ins>+			                       &lt;c:choose&gt; +                              \
&lt;c:when test=&quot;${empty Answer1_6}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice1&quot; value=&quot;6&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice1&quot; value=&quot;6&quot;/&gt;&lt;c:out \
value=&quot;${Answer1_6}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 			                   &lt;/div&gt;
</span><span class="cx"> 			               &lt;/div&gt;
</span><span class="cx"> 	                    &lt;/c:otherwise&gt;
</span><span class="lines">@@ -625,24 +667,66 @@
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; \
value=&quot;1&quot;/&gt;&lt;c:out value=&quot;${Answer2_1}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer2_1}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; value=&quot;1&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice2&quot; value=&quot;1&quot;/&gt;&lt;c:out \
value=&quot;${Answer2_1}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; \
value=&quot;3&quot;/&gt;&lt;c:out value=&quot;${Answer2_3}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer2_3}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; value=&quot;3&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice2&quot; value=&quot;3&quot;/&gt;&lt;c:out \
value=&quot;${Answer2_3}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; \
value=&quot;5&quot;/&gt;&lt;c:out value=&quot;${Answer2_5}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer2_5}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; value=&quot;5&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice2&quot; value=&quot;5&quot;/&gt;&lt;c:out \
value=&quot;${Answer2_5}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; \
value=&quot;2&quot;/&gt;&lt;c:out value=&quot;${Answer2_2}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer2_2}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; value=&quot;2&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice2&quot; value=&quot;2&quot;/&gt;&lt;c:out \
value=&quot;${Answer2_2}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; \
value=&quot;4&quot;/&gt;&lt;c:out value=&quot;${Answer2_4}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer2_4}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; value=&quot;4&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice2&quot; value=&quot;4&quot;/&gt;&lt;c:out \
value=&quot;${Answer2_4}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; \
value=&quot;6&quot;/&gt;&lt;c:out value=&quot;${Answer2_6}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer2_6}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice2&quot; value=&quot;6&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice2&quot; value=&quot;6&quot;/&gt;&lt;c:out \
value=&quot;${Answer2_6}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx">                         &lt;/c:otherwise&gt;
</span><span class="lines">@@ -659,24 +743,66 @@
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; \
value=&quot;1&quot;/&gt;&lt;c:out value=&quot;${Answer3_1}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer3_1}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; value=&quot;1&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice3&quot; value=&quot;1&quot;/&gt;&lt;c:out \
value=&quot;${Answer3_1}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; \
value=&quot;3&quot;/&gt;&lt;c:out value=&quot;${Answer3_3}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer3_3}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; value=&quot;3&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice3&quot; value=&quot;3&quot;/&gt;&lt;c:out \
value=&quot;${Answer3_3}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; \
value=&quot;5&quot;/&gt;&lt;c:out value=&quot;${Answer3_5}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer3_5}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; value=&quot;5&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice3&quot; value=&quot;5&quot;/&gt;&lt;c:out \
value=&quot;${Answer3_5}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; \
value=&quot;2&quot;/&gt;&lt;c:out value=&quot;${Answer3_2}&quot;/&gt; &lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer3_2}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; value=&quot;2&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice3&quot; value=&quot;2&quot;/&gt;&lt;c:out \
value=&quot;${Answer3_2}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; \
value=&quot;4&quot;/&gt;&lt;c:out value=&quot;${Answer3_4}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer3_4}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; value=&quot;4&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice3&quot; value=&quot;4&quot;/&gt;&lt;c:out \
value=&quot;${Answer3_4}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; \
value=&quot;6&quot;/&gt;&lt;c:out value=&quot;${Answer3_6}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer3_6}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice3&quot; value=&quot;6&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice3&quot; value=&quot;6&quot;/&gt;&lt;c:out \
value=&quot;${Answer3_6}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx">                         &lt;/c:otherwise&gt;
</span><span class="lines">@@ -693,24 +819,66 @@
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; \
value=&quot;1&quot;/&gt;&lt;c:out value=&quot;${Answer4_1}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer4_1}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; value=&quot;1&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice4&quot; value=&quot;1&quot;/&gt;&lt;c:out \
value=&quot;${Answer4_1}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; \
value=&quot;3&quot;/&gt;&lt;c:out value=&quot;${Answer4_3}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer4_3}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; value=&quot;3&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice4&quot; value=&quot;3&quot;/&gt;&lt;c:out \
value=&quot;${Answer4_3}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; \
value=&quot;5&quot;/&gt;&lt;c:out value=&quot;${Answer4_5}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer4_5}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; value=&quot;5&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice4&quot; value=&quot;5&quot;/&gt;&lt;c:out \
value=&quot;${Answer4_5}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; \
value=&quot;2&quot;/&gt;&lt;c:out value=&quot;${Answer4_2}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer4_2}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; value=&quot;2&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice4&quot; value=&quot;2&quot;/&gt;&lt;c:out \
value=&quot;${Answer4_2}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; \
value=&quot;4&quot;/&gt;&lt;c:out value=&quot;${Answer4_4}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer4_4}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; value=&quot;4&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice4&quot; value=&quot;4&quot;/&gt;&lt;c:out \
value=&quot;${Answer4_4}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; \
value=&quot;6&quot;/&gt;&lt;c:out value=&quot;${Answer4_6}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer4_6}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice4&quot; value=&quot;6&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice4&quot; value=&quot;6&quot;/&gt;&lt;c:out \
value=&quot;${Answer4_6}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx">                         &lt;/c:otherwise&gt;
</span><span class="lines">@@ -727,24 +895,66 @@
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; \
value=&quot;1&quot;/&gt;&lt;c:out value=&quot;${Answer5_1}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer5_1}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; value=&quot;1&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice5&quot; value=&quot;1&quot;/&gt;&lt;c:out \
value=&quot;${Answer5_1}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; \
value=&quot;3&quot;/&gt;&lt;c:out value=&quot;${Answer5_3}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer5_3}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; value=&quot;3&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice5&quot; value=&quot;3&quot;/&gt;&lt;c:out \
value=&quot;${Answer5_3}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; \
value=&quot;5&quot;/&gt;&lt;c:out value=&quot;${Answer5_5}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer5_5}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; value=&quot;5&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice5&quot; value=&quot;5&quot;/&gt;&lt;c:out \
value=&quot;${Answer5_5}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; \
value=&quot;2&quot;/&gt;&lt;c:out value=&quot;${Answer5_2}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer5_2}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; value=&quot;2&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice5&quot; value=&quot;2&quot;/&gt;&lt;c:out \
value=&quot;${Answer5_2}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; \
value=&quot;4&quot;/&gt;&lt;c:out value=&quot;${Answer5_4}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer5_4}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; value=&quot;4&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice5&quot; value=&quot;4&quot;/&gt;&lt;c:out \
value=&quot;${Answer5_4}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; \
value=&quot;6&quot;/&gt;&lt;c:out value=&quot;${Answer5_6}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer5_6}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice5&quot; value=&quot;6&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice5&quot; value=&quot;6&quot;/&gt;&lt;c:out \
value=&quot;${Answer5_6}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx">                         &lt;/c:otherwise&gt;
</span><span class="lines">@@ -761,24 +971,66 @@
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; \
value=&quot;1&quot;/&gt;&lt;c:out value=&quot;${Answer6_1}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer6_1}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; value=&quot;1&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice6&quot; value=&quot;1&quot;/&gt;&lt;c:out \
value=&quot;${Answer6_1}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; \
value=&quot;3&quot;/&gt;&lt;c:out value=&quot;${Answer6_3}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer6_3}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; value=&quot;3&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice6&quot; value=&quot;3&quot;/&gt;&lt;c:out \
value=&quot;${Answer6_3}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; \
value=&quot;5&quot;/&gt;&lt;c:out value=&quot;${Answer6_5}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer6_5}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; value=&quot;5&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice6&quot; value=&quot;5&quot;/&gt;&lt;c:out \
value=&quot;${Answer6_5}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx"> 		                    &lt;div \
class=&quot;answerContainer&quot;&gt; </span><span class="cx"> 		                     \
&lt;div class=&quot;answerCheckbox&quot;&gt; </span><del>-		                          \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; \
value=&quot;2&quot;/&gt;&lt;c:out value=&quot;${Answer6_2}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer6_2}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; value=&quot;2&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice6&quot; value=&quot;2&quot;/&gt;&lt;c:out \
value=&quot;${Answer6_2}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; \
value=&quot;4&quot;/&gt;&lt;c:out value=&quot;${Answer6_4}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer6_4}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; value=&quot;4&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice6&quot; value=&quot;4&quot;/&gt;&lt;c:out \
value=&quot;${Answer6_4}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                        &lt;div \
class=&quot;answerCheckbox&quot;&gt; </span><del>-		                            \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; \
value=&quot;6&quot;/&gt;&lt;c:out value=&quot;${Answer6_6}&quot;/&gt;&lt;br/&gt; \
</del><ins>+		                            &lt;c:choose&gt; +                          \
&lt;c:when test=&quot;${empty Answer6_6}&quot;&gt; +                                  \
&lt;input type=&quot;checkbox&quot; name=&quot;sub_Choice6&quot; value=&quot;6&quot; \
disabled/&gt;&lt;br/&gt; +                                     &lt;/c:when&gt;
+                                     &lt;c:otherwise&gt;
+                                         &lt;input type=&quot;checkbox&quot; \
name=&quot;sub_Choice6&quot; value=&quot;6&quot;/&gt;&lt;c:out \
value=&quot;${Answer6_6}&quot;/&gt;&lt;br/&gt; +                                     \
&lt;/c:otherwise&gt; +                                   &lt;/c:choose&gt;
</ins><span class="cx"> 		                        &lt;/div&gt;
</span><span class="cx"> 		                    &lt;/div&gt;
</span><span class="cx">                         &lt;/c:otherwise&gt;
</span><span class="lines">@@ -931,12 +1183,12 @@
</span><span class="cx"> 			             &lt;input type=&quot;hidden&quot; \
value=&quot;${locationTagId}&quot; id=&quot;locationTagId&quot; /&gt; </span><span \
class="cx">                     &lt;/div&gt; </span><span class="cx">                 \
&lt;/div&gt; </span><del>-                &lt;input type=hidden \
                name=&quot;Choice1&quot;/&gt;
-			    &lt;input type=hidden name=&quot;Choice2&quot;/&gt;
-			    &lt;input type=hidden name=&quot;Choice3&quot;/&gt;
-			    &lt;input type=hidden name=&quot;Choice4&quot;/&gt;
-			    &lt;input type=hidden name=&quot;Choice5&quot;/&gt;
-			    &lt;input type=hidden name=&quot;Choice6&quot;/&gt;
</del><ins>+                &lt;input type=hidden id= &quot;Choice1&quot; \
name=&quot;Choice1&quot;/&gt; +			    &lt;input type=hidden id= &quot;Choice2&quot; \
name=&quot;Choice2&quot;/&gt; +			    &lt;input type=hidden id= &quot;Choice3&quot; \
name=&quot;Choice3&quot;/&gt; +			    &lt;input type=hidden id= &quot;Choice4&quot; \
name=&quot;Choice4&quot;/&gt; +			    &lt;input type=hidden id= &quot;Choice5&quot; \
name=&quot;Choice5&quot;/&gt; +			    &lt;input type=hidden id= &quot;Choice6&quot; \
name=&quot;Choice6&quot;/&gt; </ins><span class="cx"> 			    &lt;input \
id=&quot;patientId&quot; name=&quot;patientId&quot; type=&quot;hidden&quot; \
value=&quot;${patient.patientId}&quot;/&gt; </span><span class="cx"> 				&lt;input \
id=&quot;encounterId&quot; name=&quot;encounterId&quot; type=&quot;hidden&quot; \
value=&quot;${encounterId}&quot;/&gt; </span><span class="cx"> 				&lt;input \
id=&quot;sessionId&quot; name=&quot;sessionId&quot; type=&quot;hidden&quot; \
value=&quot;${sessionId}&quot;/&gt; </span></span></pre></div>
<a id="openmrsmoduleschicabranchescernerwebmoduleresourcespwsjs"></a>
<div class="modfile"><h4>Modified: \
openmrs-modules/chica/branches/cerner/web/module/resources/pws.js (31003 => \
31004)</h4> <pre class="diff"><span>
<span class="info">--- \
openmrs-modules/chica/branches/cerner/web/module/resources/pws.js	2014-11-18 13:18:13 \
                UTC (rev 31003)
+++ openmrs-modules/chica/branches/cerner/web/module/resources/pws.js	2014-11-19 \
20:22:27 UTC (rev 31004) </span><span class="lines">@@ -48,10 +48,6 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-$(&quot;#pwsForm&quot;).submit(function(event) {
-	processCheckboxes(this);
-});
-
</del><span class="cx"> function getSelected(opt) {
</span><span class="cx"> 	var selected = new Array();
</span><span class="cx"> 	var index = 0;
</span><span class="lines">@@ -72,16 +68,16 @@
</span><span class="cx"> 	for ( var item in sel)
</span><span class="cx"> 		strSel += sel[item].value;
</span><span class="cx"> 
</span><del>-	hidden.value = strSel;
</del><ins>+	hidden.val(strSel);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function processCheckboxes(form1) {
</span><del>-	outputSelected(form1.sub_Choice1, form1.Choice1);
-	outputSelected(form1.sub_Choice2, form1.Choice2);
-	outputSelected(form1.sub_Choice3, form1.Choice3);
-	outputSelected(form1.sub_Choice4, form1.Choice4);
-	outputSelected(form1.sub_Choice5, form1.Choice5);
-	outputSelected(form1.sub_Choice6, form1.Choice6);
</del><ins>+	outputSelected($(&quot;input[name='sub_Choice1']&quot;), \
$(&quot;#Choice1&quot;)); +	outputSelected($(&quot;input[name='sub_Choice2']&quot;), \
$(&quot;#Choice2&quot;)); +	outputSelected($(&quot;input[name='sub_Choice3']&quot;), \
$(&quot;#Choice3&quot;)); +	outputSelected($(&quot;input[name='sub_Choice4']&quot;), \
$(&quot;#Choice4&quot;)); +	outputSelected($(&quot;input[name='sub_Choice5']&quot;), \
$(&quot;#Choice5&quot;)); +	outputSelected($(&quot;input[name='sub_Choice6']&quot;), \
$(&quot;#Choice6&quot;)); </ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function getAvailableJits() {
</span><span class="lines">@@ -183,6 +179,7 @@
</span><span class="cx"> 	$(&quot;#okSubmitButton&quot;).click(function() {
</span><span class="cx"> \
$(&quot;#confirmSubmitDialog&quot;).dialog(&quot;close&quot;); </span><span \
class="cx"> 		$(&quot;#submitWaitDialog&quot;).dialog(&quot;open&quot;); \
</span><ins>+		processCheckboxes(); </ins><span class="cx"> \
$(&quot;#pwsForm&quot;).submit(); </span><span class="cx"> 	});
</span><span class="cx"> 	
</span></span></pre></div>
<a id="openmrsmoduleschicabranchescernerwebsrcorgopenmrsmodulechicawebChicaServletjava"></a>
 <div class="modfile"><h4>Modified: \
openmrs-modules/chica/branches/cerner/web/src/org/openmrs/module/chica/web/ChicaServlet.java \
(31003 => 31004)</h4> <pre class="diff"><span>
<span class="info">--- \
openmrs-modules/chica/branches/cerner/web/src/org/openmrs/module/chica/web/ChicaServlet.java	2014-11-18 \
                13:18:13 UTC (rev 31003)
+++ openmrs-modules/chica/branches/cerner/web/src/org/openmrs/module/chica/web/ChicaServlet.java	2014-11-19 \
20:22:27 UTC (rev 31004) </span><span class="lines">@@ -168,7 +168,7 @@
</span><span class="cx"> 			// Check to make sure the form is type PDF.
</span><span class="cx"> 			FormAttributeValue fav = \
backportsService.getFormAttributeValue(formId, \
ChirdlUtilConstants.FORM_ATTR_OUTPUT_TYPE,  </span><span class="cx"> \
locationTagId, locationId); </span><del>-			if (fav == null || fav.getValue() == \
null) { </del><ins>+			if (fav == null || fav.getValue() == null || \
fav.getValue().trim().length() == 0) { </ins><span class="cx"> 				continue;
</span><span class="cx"> 			}
</span><span class="cx"> 			
</span><span class="lines">@@ -197,6 +197,8 @@
</span><span class="cx"> 			fav = backportsService.getFormAttributeValue(formId, \
ChirdlUtilConstants.FORM_ATTR_DEFAULT_MERGE_DIRECTORY,  </span><span class="cx"> \
locationTagId, locationId); </span><span class="cx"> 			if (fav == null || \
fav.getValue() == null || fav.getValue().trim().length() == 0) { \
</span><ins>+				log.error(ChirdlUtilConstants.FORM_ATTR_DEFAULT_MERGE_DIRECTORY + \
&quot; global property not defined for &quot; +						+ &quot;formId: &quot; + formId \
+ &quot; locationId: &quot; + locationId + &quot; locationTagId: &quot; + \
locationTagId); </ins><span class="cx"> 				continue;
</span><span class="cx"> 			}
</span><span class="cx"> 			
</span><span class="lines">@@ -206,10 +208,12 @@
</span><span class="cx"> 			File mergeFile = new File(pdfDir, locationId + \
ChirdlUtilConstants.GENERAL_INFO_UNDERSCORE + formId +  </span><span class="cx"> \
ChirdlUtilConstants.GENERAL_INFO_UNDERSCORE + formInstanceId + \
ChirdlUtilConstants.FILE_EXTENSION_PDF); </span><span class="cx"> 			if \
(!mergeFile.exists()) { </span><del>-				mergeFile = new File(pdfDir, \
ChirdlUtilConstants.GENERAL_INFO_UNDERSCORE + locationId +  </del><ins>+				File \
secondMergeFile = new File(pdfDir, ChirdlUtilConstants.GENERAL_INFO_UNDERSCORE + \
locationId +  </ins><span class="cx"> \
ChirdlUtilConstants.GENERAL_INFO_UNDERSCORE + formId + \
ChirdlUtilConstants.GENERAL_INFO_UNDERSCORE +  </span><span class="cx"> \
formInstanceId + ChirdlUtilConstants.GENERAL_INFO_UNDERSCORE + \
ChirdlUtilConstants.FILE_EXTENSION_PDF); </span><del>-				if (!mergeFile.exists()) {
</del><ins>+				if (!secondMergeFile.exists()) {
+					log.error(&quot;Cannot locate PDF merge file for formId: &quot; + formId + \
&quot; locationId: &quot; + locationId + +						&quot; locationTagId: &quot; + \
locationTagId + &quot; &quot; + mergeFile.getAbsolutePath()); </ins><span class="cx"> \
continue; </span><span class="cx"> 				}
</span><span class="cx"> 			}
</span></span></pre></div>
<a id="openmrsmoduleschicabranchescernerwebsrcorgopenmrsmodulechicawebViewEncounterControllerjava"></a>
 <div class="modfile"><h4>Modified: \
openmrs-modules/chica/branches/cerner/web/src/org/openmrs/module/chica/web/ViewEncounterController.java \
(31003 => 31004)</h4> <pre class="diff"><span>
<span class="info">--- \
openmrs-modules/chica/branches/cerner/web/src/org/openmrs/module/chica/web/ViewEncounterController.java	2014-11-18 \
                13:18:13 UTC (rev 31003)
+++ openmrs-modules/chica/branches/cerner/web/src/org/openmrs/module/chica/web/ViewEncounterController.java	2014-11-19 \
20:22:27 UTC (rev 31004) </span><span class="lines">@@ -238,6 +238,8 @@
</span><span class="cx"> 						if (formName.equals(&quot;TeacherSummaryReport&quot;)) \
{ </span><span class="cx"> 							rightImageStylesheet = \
&quot;teacherSummaryReport.xsl&quot;; </span><span class="cx"> \
displayMergeForms = true; </span><ins>+						} else if \
(formName.equals(&quot;PWS&quot;)) { +							rightImageStylesheet = \
&quot;pws.xsl&quot;; </ins><span class="cx"> 						}
</span><span class="cx"> 					} else {
</span><span class="cx"> 						
</span><span class="lines">@@ -261,6 +263,7 @@
</span><span class="cx"> 						
</span><span class="cx"> 						if (formName.equals(&quot;PSF&quot;)) {
</span><span class="cx"> 							rightName = &quot;PWS&quot;;
</span><ins>+							rightImageStylesheet = &quot;pws.xsl&quot;;
</ins><span class="cx"> 						}
</span><span class="cx"> 						
</span><span class="cx"> 						if (formName.equals(&quot;ParentSummaryReport&quot;)) \
{ </span></span></pre>
</div>
</div>

</body>
</html>

<p></p>

-- <br />
-- OpenMRS Subversion Commits: <a \
href="http://go.openmrs.org/svn">http://go.openmrs.org/svn</a><br /> Posting is not \
                allowed - please join dev@openmrs.org for discussion.<br />
Unsubscribe: svn+unsubscribe@openmrs.org<br />

<p></p>

To unsubscribe from this group and stop receiving emails from it, send an email to <a \
href="mailto:svn+unsubscribe@openmrs.org">svn+unsubscribe@openmrs.org</a>.<br />


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic