/** * This function returns ZONE specific HTML for a PRIOR record (3 input values) * * This is where the magic of displaying the old records happens. * Each section is a duplicate of the base html except the values are from a prior visit, * the background and background-color are different, and the input fields are disabled. * * @param string $zone options ALL,EXT,ANTSEG,RETINA,NEURO. DRAW_PRIORS_$zone and IMPPLAN to do. * @param string $visit_date. Future functionality to limit result set. UTC DATE Formatted * @param string $pid value = patient id * @return true : when called outputs the ZONE specific HTML for a prior record + "priors_select" widget for the desired zone */ function display_PRIOR_section($zone, $orig_id, $id_to_show, $pid, $report = '0') { global $form_folder; global $id; global $ISSUE_TYPES; global $ISSUE_TYPE_STYLES; $query = "SELECT * FROM form_eye_mag_prefs\n where PEZONE='PREFS' AND id=?\n ORDER BY ZONE_ORDER,ordering"; $result = sqlStatement($query, array($_SESSION['authUserID'])); while ($prefs = sqlFetchArray($result)) { ${$prefs['LOCATION']} = $prefs['GOVALUE']; } $query = "SELECT * FROM form_" . $form_folder . " where pid =? and id = ?"; $result = sqlQuery($query, array($pid, $id_to_show)); @extract($result); ob_start(); if ($zone == "EXT") { if ($report == '0') { $output = priors_select($zone, $orig_id, $id_to_show, $pid); } ?> <input disabled type="hidden" id="PRIORS_<?php echo attr($zone); ?> _prefix" name="PRIORS_<?php echo attr($zone); ?> _prefix" value=""> <span class="closeButton pull-right fa fa-close" id="Close_PRIORS_<?php echo attr($zone); ?> " name="Close_PRIORS_<?php echo attr($zone); ?> "></span> <div name="prior_selector"> <?php echo $output; //prior visit selector - already sanitized ?> </div> <b> <?php if ($report == '0') { echo xlt('Prior Exam'); } else { echo xlt($zone); } ?> : </b><br /> <div id="PRIORS_EXT_left_1"> <table> <?php list($imaging, $episode) = display($pid, $encounter, "EXT"); echo $episode; ?> </table> <table> <tr> <td></td><td><?php echo xlt('R'); ?> </td><td><?php echo xlt('L{{left}}'); ?> </td> </tr> <tr> <td class="right"><?php echo xlt('Lev Fn{{levator function}}'); ?> </td> <td><input disabled type="text" size="1" name="PRIOR_RLF" id="PRIOR_RLF" value="<?php echo attr($RLF); ?> "></td> <td><input disabled type="text" size="1" name="PRIOR_LLF" id="PRIOR_LLF" value="<?php echo attr($LLF); ?> "></td> </tr> <tr> <td class="right"><?php echo xlt('MRD{{marginal reflex distance}}'); ?> </td> <td><input disabled type="text" size="1" name="PRIOR_RMRD" id="PRIOR_RMRD" value="<?php echo attr($RMRD); ?> "></td> <td><input disabled type="text" size="1" name="PRIOR_LMRD" id="PRIOR_LMRD" value="<?php echo attr($LMRD); ?> "></td> </tr> <tr> <td class="right"><?php echo xlt('Vert Fissure{{vertical fissure height}}'); ?> </td> <td><input disabled type="text" size="1" name="PRIOR_RVFISSURE" id="PRIOR_RVFISSURE" value="<?php echo attr($RVFISSURE); ?> "></td> <td><input disabled type="text" size="1" name="PRIOR_LVFISSURE" id="PRIOR_LVFISSURE" value="<?php echo attr($LVFISSURE); ?> "></td> </tr> <tr> <td class="right"><?php echo xlt('Carotid Bruit'); ?> </td> <td><input disabled type="text" name="PRIOR_RCAROTID" id="PRIOR_RCAROTID" value="<?php echo attr($RCAROTID); ?> "></td> <td><input disabled type="text" name="PRIOR_LCAROTID" id="PRIOR_LCAROTID" value="<?php echo attr($LCAROTID); ?> "></td> </tr> <tr> <td class="right"><?php echo xlt('Temporal Art.{{Temporal Artery}}'); ?> </td> <td><input disabled type="text" size="1" name="PRIOR_RTEMPART" id="PRIOR_RTEMPART" value="<?php echo attr($RTEMPART); ?> "></td> <td><input disabled type="text" size="1" name="PRIOR_LTEMPART" id="PRIOR_LTEMPART" value="<?php echo attr($LTEMPART); ?> "></td> </tr> <tr> <td class="right"><?php echo xlt('CN V{{cranial nerve five}}'); ?> </td> <td><input disabled type="text" size="1" name="PRIOR_RCNV" id="PRIOR_RCNV" value="<?php echo attr($RCNV); ?> "></td> <td><input disabled type="text" size="1" name="PRIOR_LCNV" id="PRIOR_LCNV" value="<?php echo attr($LCNV); ?> "></td> </tr> <tr> <td class="right"><?php echo xlt('CN VII{{cranial nerve seven}}'); ?> </td> <td><input disabled type="text" size="1" name="PRIOR_RCNVII" id="PRIOR_RCNVII" value="<?php echo attr($RCNVII); ?> "></td> <td><input disabled type="text" size="1" name="PRIOR_LCNVII" id="PRIOR_LCNVII" value="<?php echo attr($LCNVII); ?> "></td> </tr> <tr><td colspan=3 class="underline"><?php echo xlt('Hertel Exophthalmometry'); ?> </td></tr> <tr class="center"> <td> <input disabled type=text size=1 id="PRIOR_ODHERTEL" name="PRIOR_ODHERTEL" value="<?php echo attr($ODHERTEL); ?> "> <i class="fa fa-minus"></i> </td> <td> <input disabled type=text size=3 id="PRIOR_HERTELBASE" name="PRIOR_HERTELBASE" value="<?php echo attr($HERTELBASE); ?> "> <i class="fa fa-minus"></i> </td> <td> <input disabled type=text size=1 id="PRIOR_OSHERTEL" name="PRIOR_OSHERTEL" value="<?php echo attr($OSHERTEL); ?> "> </td> </tr> <tr><td> </td></tr> </table> </div> <?php $EXT_VIEW == 1 ? $display_EXT_view = "wide_textarea" : ($display_EXT_view = "narrow_textarea"); ?> <?php $display_EXT_view == "wide_textarea" ? $marker = "fa-minus-square-o" : ($marker = "fa-plus-square-o"); ?> <div id="PRIOR_EXT_text_list" name="PRIOR_EXT_text_list" class="borderShadow PRIORS <?php echo attr($display_EXT_view); ?> " > <span class="top_right fa <?php echo attr($marker); ?> " name="PRIOR_EXT_text_view" id="PRIOR_EXT_text_view"></span> <table cellspacing="0" cellpadding="0" > <tr> <th><?php echo xlt('Right'); ?> </th><td style="width:100px;"></td><th><?php echo xlt('Left'); ?> </th> </tr> <tr> <td><textarea disabled name="PRIOR_RBROW" id="PRIOR_RBROW" class="right EXT"><?php echo text($RBROW); ?> </textarea></td> <td class="ident"><?php echo xlt('Brow'); ?> </td> <td><textarea disabled name="PRIOR_LBROW" id="PRIOR_LBROW" class=""><?php echo text($LBROW); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="PRIOR_RUL" id="PRIOR_RUL" class="right"><?php echo text($RUL); ?> </textarea></td> <td class="ident"><?php echo xlt('Upper Lids'); ?> </td> <td><textarea disabled name="PRIOR_LUL" id="PRIOR_LUL" class=""><?php echo text($LUL); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="PRIOR_RLL" id="PRIOR_RLL" class="right"><?php echo text($RLL); ?> </textarea></td> <td class="ident"><?php echo xlt('Lower Lids'); ?> </td> <td><textarea disabled name="PRIOR_LLL" id="PRIOR_LLL" class=""><?php echo text($LLL); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="PRIOR_RMCT" id="PRIOR_RMCT" class="right"><?php echo text($RMCT); ?> </textarea></td> <td class="ident"><?php echo xlt('Medial Canthi'); ?> </td> <td><textarea disabled name="PRIOR_LMCT" id="PRIOR_LMCT" class=""><?php echo text($LMCT); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="PRIOR_RADNEXA" id="PRIOR_RADNEXA" class="right"><?php echo text($RADNEXA); ?> </textarea></td> <td class="ident"><?php echo xlt('Adnexa'); ?> </td> <td><textarea disabled name="PRIOR_LADNEXA" id="PRIOR_LADNEXA" class=""><?php echo text($LADNEXA); ?> </textarea></td> </tr> </table> </div> <br /> <div class="QP_lengthen"> <b><?php echo xlt('Comments'); ?> :</b><br /> <textarea disabled id="PRIOR_EXT_COMMENTS" name="PRIOR_EXT_COMMENTS" Xstyle="width:4.0in;height:3em;"><?php echo text($EXT_COMMENTS); ?> </textarea> </div> <?php } elseif ($zone == "ANTSEG") { if ($report == '0') { $output = priors_select($zone, $orig_id, $id_to_show, $pid); } ?> <input disabled type="hidden" id="PRIORS_<?php echo attr($zone); ?> _prefix" name="PRIORS_<?php echo attr($zone); ?> _prefix" value=""> <span class="closeButton pull-right fa fa-close" id="Close_PRIORS_<?php echo attr($zone); ?> " name="Close_PRIORS_<?php echo attr($zone); ?> "></span> <div name="prior_selector"> <?php echo $output; ?> </div> <b> <?php echo xlt('Prior Exam'); ?> :</b><br /> <div class="text_clinical" id="PRIORS_ANTSEG_left_1"> <table> <?php list($imaging, $episode) = display($pid, $encounter, "ANTSEG"); echo $episode; ?> </table> <table> <tr > <td></td><td><?php echo xlt('R{{right}}'); ?> </td><td><?php echo xlt('L{{left}}'); ?> </td> </tr> <tr> <td class="right" ><?php echo xlt('Gonio{{Gonioscopy abbreviation}}'); ?> </td> <td><input disabled type="text" name="PRIOR_ODGONIO" id="PRIOR_ODGONIO" value="<?php echo attr($ODGONIO); ?> "></td> <td><input disabled type="text" name="PRIOR_OSGONIO" id="PRIOR_OSGONIO" value="<?php echo attr($OSGONIO); ?> "></td> </tr> <tr> <td class="right" ><?php echo xlt('Pachymetry'); ?> </td> <td><input disabled type="text" name="PRIOR_ODKTHICKNESS" id="PRIOR_ODKTHICKNESS" value="<?php echo attr($ODKTHICKNESS); ?> "></td> <td><input disabled type="text" name="PRIOR_OSKTHICKNESS" id="PRIOR_OSKTHICKNESS" value="<?php echo attr($OSKTHICKNESS); ?> "></td> </tr> <tr> <td class="right" title="<?php echo xla('Schirmers I (w/o anesthesia)'); ?> "><?php echo xlt('Schirmer I'); ?> </td> <td><input disabled type="text" name="PRIOR_ODSCHIRMER1" id="PRIOR_ODSCHIRMER1" value="<?php echo attr($ODSCHIRMER1); ?> "></td> <td><input disabled type="text" name="PRIOR_OSSCHRIMER2" id="PRIOR_OSSCHIRMER1" value="<?php echo attr($OSSCHIRMER1); ?> "></td> </tr> <tr> <td class="right" title="<?php echo xla('Schirmers II (w/ anesthesia)'); ?> "><?php echo xlt('Schirmer II'); ?> </td> <td><input disabled type="text" name="PRIOR_ODSCHIRMER2" id="PRIOR_ODSCHIRMER2" value="<?php echo attr($ODSCHIRMER2); ?> "></td> <td><input disabled type="text" name="PRIOR_OSSCHRIMER2" id="PRIOR_OSSCHIRMER2" value="<?php echo attr($OSSCHIRMER2); ?> "></td> </tr> <tr> <td class="right" title="<?php echo xla('Tear Break Up Time'); ?> "><?php echo xlt('TBUT{{tear breakup time}}'); ?> </td> <td><input disabled type="text" name="PRIOR_ODTBUT" id="PRIOR_ODTBUT" value="<?php echo attr($ODTBUT); ?> "></td> <td><input disabled type="text" name="PRIOR_OSTBUT" id="PRIOR_OSTBUT" value="<?php echo attr($OSTBUT); ?> "></td> </tr> <tr> <td colspan="3" rowspan="4" id="PRIORS_dil_box"> <br /> <?php // This is going to be based off a list in the near future // to allow for end-user customization ?> <span id="PRIORS_dil_listbox_title"><?php echo xlt('Dilated with'); ?> :</span><br /> <table id="PRIORS_dil_listbox"> <tr> <td> <input disabled type="checkbox" class="dil_drug" id="PRIORS_CycloMydril" name="PRIORS_CYCLOMYDRIL" value="Cyclomydril" <?php if ($CYCLOMYDRIL == 'Cyclomydril') { echo "checked='checked'"; } ?> /> <label for="CycloMydril" class="input-helper input-helper--checkbox"><?php echo text('CycloMydril'); ?> </label> </td> <td> <input disabled type="checkbox" class="dil_drug" id="PRIORS_Tropicamide" name="PRIORS_TROPICAMIDE" value="Tropicamide 2.5%" <?php if ($TROPICAMIDE == 'Tropicamide 2.5%') { echo "checked='checked'"; } ?> /> <label for="Tropicamide" class="input-helper input-helper--checkbox"><?php echo text('Tropic 2.5%'); ?> </label> </td> </tr> <tr> <td> <input disabled type="checkbox" class="dil_drug" id="PRIORS_Neo25" name="PRIORS_NEO25" value="Neosynephrine 2.5%" <?php if ($NEO25 == 'Neosynephrine 2.5%') { echo "checked='checked'"; } ?> /> <label for="Neo25" class="input-helper input-helper--checkbox"><?php echo text('Neo 2.5%'); ?> </label> </td> <td> <input disabled type="checkbox" class="dil_drug" id="PRIORS_Neo10" name="PRIORS_NEO10" value="Neosynephrine 10%" <?php if ($NEO10 == 'Neosynephrine 10%') { echo "checked='checked'"; } ?> /> <label for="Neo10" class="input-helper input-helper--checkbox"><?php echo text('Neo 10%'); ?> </label> </td> </tr> <tr> <td> <input disabled type="checkbox" class="dil_drug" id="PRIORS_Cyclogyl" style="left:150px;" name="PRIORS_CYCLOGYL" value="Cyclopentolate 1%" <?php if ($CYCLOGYL == 'Cyclopentolate 1%') { echo "checked='checked'"; } ?> /> <label for="Cyclogyl" class="input-helper input-helper--checkbox"><?php echo text('Cyclo 1%'); ?> </label> </td> <td> <input disabled type="checkbox" class="dil_drug" id="PRIORS_Atropine" name="PRIORS_ATROPINE" value="Atropine 1%" <?php if ($ATROPINE == 'Atropine 1%') { echo "checked='checked'"; } ?> /> <label for="Atropine" class="input-helper input-helper--checkbox"><?php echo text('Atropine 1%'); ?> </label> </td> </tr> </table> </td> </tr> </table> </div> <?php $ANTSEG_VIEW == '1' ? $display_ANTSEG_view = "wide_textarea" : ($display_ANTSEG_view = "narrow_textarea"); ?> <?php $display_ANTSEG_view == "wide_textarea" ? $marker = "fa-minus-square-o" : ($marker = "fa-plus-square-o"); ?> <div id="PRIOR_ANTSEG_text_list" name="PRIOR_ANTSEG_text_list" class="borderShadow PRIORS <?php echo attr($display_ANTSEG_view); ?> " > <span class="top_right fa <?php echo attr($marker); ?> " name="PRIOR_ANTSEG_text_view" id="PRIOR_ANTSEG_text_view"></span> <table> <tr> <th><?php echo xlt('OD{{right eye}}'); ?> </th><th></th><th><?php echo xlt('OS{{left eye}}'); ?> </th></td> </tr> <tr> <td><textarea disabled name="PRIOR_ODCONJ" id="PRIOR_ODCONJ" class="right"><?php echo text($ODCONJ); ?> </textarea></td> <td class="ident"><?php echo xlt('Conj{{Conjunctiva}}'); ?> / <?php echo xlt('Sclera'); ?> </td> <td><textarea disabled name="PRIOR_OSCONJ" id="PRIOR_OSCONJ" class=""><?php echo text($OSCONJ); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="PRIOR_ODCORNEA" id="PRIOR_ODCORNEA" class="right"><?php echo text($ODCORNEA); ?> </textarea></td> <td class="ident"><?php echo xlt('Cornea'); ?> </td> <td><textarea disabled name="PRIOR_OSCORNEA" id="PRIOR_OSCORNEA" class=""><?php echo text($OSCORNEA); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="PRIOR_ODAC" id="PRIOR_ODAC" class="right"><?php echo text($ODAC); ?> </textarea></td> <td class="ident"><?php echo xlt('A/C{{anterior chamber}}'); ?> </td> <td><textarea disabled name="PRIOR_OSAC" id="PRIOR_OSAC" class=""><?php echo text($OSAC); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="PRIOR_ODLENS" id="PRIOR_ODLENS" class=" right"><?php echo text($ODLENS); ?> </textarea></td> <td class="ident" ><?php echo xlt('Lens'); ?> </td> <td><textarea disabled name="PRIOR_OSLENS" id="PRIOR_OSLENS" class=""><?php echo text($OSLENS); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="PRIOR_ODIRIS" id="PRIOR_ODIRIS" class="right"><?php echo text($ODIRIS); ?> </textarea></td> <td class="ident"><?php echo xlt('Iris'); ?> </td> <td><textarea disabled name="PRIOR_OSIRIS" id="PRIOR_OSIRIS" class=""><?php echo text($OSIRIS); ?> </textarea></td> </tr> </table> </div> <br /> <div class="QP_lengthen"> <b><?php echo xlt('Comments'); ?> :</b><br /> <textarea disabled id="PRIOR_ANTSEG_COMMENTS" name="PRIOR_ANTSEG_COMMENTS"><?php echo text($ANTSEG_COMMENTS); ?> </textarea> </div> <?php } elseif ($zone == "RETINA") { if ($report == '0') { $output = priors_select($zone, $orig_id, $id_to_show, $pid); } ?> <input disabled type="hidden" id="PRIORS_<?php echo attr($zone); ?> _prefix" name="PRIORS_<?php echo attr($zone); ?> _prefix" value=""> <span class="closeButton pull-right fa fa-close" id="Close_PRIORS_<?php echo attr($zone); ?> " name="Close_PRIORS_<?php echo attr($zone); ?> "></span> <div name="prior_selector"> <?php echo $output; ?> </div> <b><?php echo xlt('Prior Exam'); ?> :</b><br /> <div style="position:relative;float:right;top:0.2in;"> <table style="float:right;text-align:right;font-size:0.8em;font-weight:bold;"> <?php list($imaging, $episode) = display($pid, $encounter, "POSTSEG"); echo $episode; ?> </table> <br /> <table style="width:50%;text-align:right;font-size:1.0em;font-weight:bold;padding:10px;margin: 5px 0px;"> <tr style="text-align:center;"> <td></td> <td><br /><?php echo xlt('OD{{right eye}}'); ?> </td><td><br /><?php echo xlt('OS{{left eye}}'); ?> </td> </tr> <tr> <td> <?php echo xlt('CMT{{Central Macular Thickness}}'); ?> :</td> <td> <input disabled name="PRIOR_ODCMT" size="4" id="PRIOR_ODCMT" value="<?php echo attr($ODCMT); ?> "> </td> <td> <input disabled name="PRIOR_OSCMT" size="4" id="PRIOR_OSCMT" value="<?php echo attr($OSCMT); ?> "> </td> </tr> </table> <br /> <table style="text-align:right;font-size:0.8em;font-weight:bold;float:right;"> <?php list($imaging, $episode) = display($pid, $encounter, "NEURO"); echo $episode; ?> </table> </div> <?php $RETINA_VIEW == 1 ? $display_RETINA_view = "wide_textarea" : ($display_RETINA_view = "narrow_textarea"); ?> <?php $display_RETINA_view == "wide_textarea" ? $marker = "fa-minus-square-o" : ($marker = "fa-plus-square-o"); ?> <div> <div id="PRIOR_RETINA_text_list" name="PRIOR_RETINA_text_list" class="borderShadow PRIORS <?php echo attr($display_RETINA_view); ?> "> <span class="top_right fa <?php echo attr($marker); ?> " name="PRIOR_RETINA_text_view" id="PRIOR_RETINA_text_view"></span> <table cellspacing="0" cellpadding="0"> <tr> <th><?php echo xlt('OD{{right eye}}'); ?> </th><td style="width:100px;"></td><th><?php echo xlt('OS{{left eye}}'); ?> </th></td> </tr> <tr> <td><textarea disabled name="ODDISC" id="ODDISC" class="right"><?php echo text($ODDISC); ?> </textarea></td> <td style="text-align:center;font-size:0.9em;"><?php echo xlt('Disc'); ?> </td> <td><textarea disabled name="OSDISC" id="OSDISC" class=""><?php echo text($OSDISC); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="ODCUP" id="ODCUP" class="right"><?php echo text($ODCUP); ?> </textarea></td> <td style="text-align:center;font-size:0.9em;"><?php echo xlt('Cup'); ?> </td> <td><textarea disabled name="OSCUP" id="OSCUP" class=""><?php echo text($OSCUP); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="ODMACULA" id="ODMACULA" class="right"><?php echo text($ODMACULA); ?> </textarea></td> <td style="text-align:center;font-size:0.9em;"><?php echo xlt('Macula'); ?> </td> <td><textarea disabled name="OSMACULA" id="OSMACULA" class=""><?php echo text($OSMACULA); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="ODVESSELS" id="ODVESSELS" class="right"><?php echo text($ODVESSELS); ?> </textarea></td> <td style="text-align:center;font-size:0.9em;" class=""><?php echo xlt('Vessels'); ?> </td> <td><textarea disabled name="OSVESSELS" id="OSVESSELS" class=""><?php echo text($OSVESSELS); ?> </textarea></td> </tr> <tr> <td><textarea disabled name="ODPERIPH" id="ODPERIPH" class="right"><?php echo text($ODPERIPH); ?> </textarea></td> <td style="text-align:center;font-size:0.9em;" class=""><?php echo xlt('Periph'); ?> </td> <td><textarea disabled name="OSPERIPH" id="OSPERIPH" class=""><?php echo text($OSPERIPH); ?> </textarea></td> </tr> </table> </div> </div> <br /> <br /> <div class="QP_lengthen"> <b><?php echo xlt('Comments'); ?> :</b><br /> <textarea disabled id="RETINA_COMMENTS" name="RETINA_COMMENTS" style="width:4.0in;height:3.0em;"><?php echo text($RETINA_COMMENTS); ?> </textarea> </div> <?php } elseif ($zone == "NEURO") { if ($report == '0') { $output = priors_select($zone, $orig_id, $id_to_show, $pid); } ?> <input disabled type="hidden" id="PRIORS_<?php echo attr($zone); ?> _prefix" name="PRIORS_<?php echo attr($zone); ?> _prefix" value=""> <span class="closeButton pull-right fa fa-close" id="Close_PRIORS_<?php echo attr($zone); ?> " name="Close_PRIORS_<?php echo attr($zone); ?> "></span> <div name="prior_selector"> <?php echo $output; ?> </div> <b><?php echo xlt('Prior Exam'); ?> :</b><br /> <div style="float:left;margin-top:0.8em;font-size:0.8em;"> <div id="PRIOR_NEURO_text_list" class="borderShadow PRIORS" style="border:1pt solid black;float:left;width:175px;padding:10px;text-align:center;margin:2 2;font-weight:bold;"> <table style="font-size:1.0em;font-weight:600;"> <tr> <td></td><td style="text-align:center;"><?php echo xlt('OD{{right eye}}'); ?> </td><td style="text-align:center;"><?php echo xlt('OS{{left eye}}'); ?> </td></tr> <tr> <td class="right"> <?php echo xlt('Color'); ?> : </td> <td> <input disabled type="text" id="PRIOR_ODCOLOR" name="PRIOR_ODCOLOR" value="<?php if ($ODCOLOR) { echo attr($ODCOLOR); } else { echo " / "; } ?> "/> </td> <td> <input disabled type="text" id="PRIOR_OSCOLOR" name="PRIOR_OSCOLOR" value="<?php if ($OSCOLOR) { echo attr($OSCOLOR); } else { echo " / "; } ?> "/> </td> <td style="text-align:bottom;"> <span title="<?php echo xla('Insert normals - 11/11'); ?> " class="fa fa-share-square-o fa-flip-horizontal"></span> </td> </tr> <tr> <td class="right" style="white-space: nowrap;font-size:0.9em;"> <span title="<?php echo xla('Variation in red color discrimination between the eyes (eg. OD=100, OS=75)'); ?> "><?php echo xlt('Red Desat{{red desaturation}}'); ?> :</span> </td> <td> <input disabled type="text" size="6" name="PRIOR_ODREDDESAT" id="PRIOR_ODREDDESAT" value="<?php echo attr($ODREDDESAT); ?> "/> </td> <td> <input disabled type="text" size="6" name="PRIOR_OSREDDESAT" id="PRIOR_OSREDDESAT" value="<?php echo attr($OSREDDESAT); ?> "/> </td> <td> <span id="" class="fa fa-share-square-o fa-flip-horizontal" name="" title="<?php echo xla('Insert normals - 100/100'); ?> "></span> </td> </tr> <tr> <td class="right" style="white-space: nowrap;font-size:0.9em;"> <span title="<?php echo xla('Variation in white (muscle) light brightness discrimination between the eyes (eg. OD=$1.00, OS=$0.75)'); ?> "><?php echo xlt('Coins'); ?> :</span> </td> <td> <input disabled type="text" size="6" name="PRIOR_ODCOINS" id="PRIOR_ODCOINS" value="<?php echo attr($ODCOINS); ?> "/> </td> <td> <input disabled type="text" size="6" name="PRIOR_OSCOINS" id="PRIOR_OSCOINS" value="<?php echo attr($OSCOINS); ?> "/> </td> <td> <span id="" class="fa fa-share-square-o fa-flip-horizontal" name="" title="<?php echo xla('Insert normals - 100/100'); ?> "></span> </td> </tr> </table> </div> <div class="borderShadow" style="position:relative;float:right;text-align:center;width:238px;height:250px;z-index:1;margin:2 0 2 2;"> <span class="closeButton fa fa-th" id="PRIOR_Close_ACTMAIN" name="PRIOR_Close_ACTMAIN"></span> <table style="position:relative;float:left;font-size:0.9em;width:210px;font-weight:600;"> <tr style="text-align:left;height:26px;vertical-align:middle;width:180px;"> <td > <span id="PRIOR_ACTTRIGGER" name="PRIOR_ACTTRIGGER" style="text-decoration:underline;"><?php echo 'Alternate Cover Test'; ?> :</span> </td> <td> <span id="PRIOR_ACTNORMAL_CHECK" name="PRIOR_ACTNORMAL_CHECK"> <label for="PRIOR_ACT" class="input-helper input-helper--checkbox"><?php echo xlt('Ortho'); ?> </label> <input disabled type="checkbox" name="PRIOR_ACT" id="PRIOR_ACT" checked="<?php if ($ACT == '1') { echo "checked"; } ?> "></span> </td> </tr> <tr> <td colspan="2" style="text-align:center;"> <div id="PRIOR_ACTMAIN" name="PRIOR_ACTMAIN" class="ACT_TEXT nodisplay" style="position:relative;z-index:1;margin 10 auto;"> <table cellpadding="0" style="position:relative;text-align:center;font-size:0.9em;margin: 7 5 19 5;border-collapse: separate;"> <tr> <td id="PRIOR_ACT_tab_SCDIST" name="PRIOR_ACT_tab_SCDIST" class="ACT_selected"> <?php echo xlt('scDist{{ACT without Correction Distance}}'); ?> </td> <td id="PRIOR_ACT_tab_CCDIST" name="PRIOR_ACT_tab_CCDIST" class="ACT_deselected"> <?php echo xlt('ccDist{{ACT with Correction Distance}}'); ?> </td> <td id="PRIOR_ACT_tab_SCNEAR" name="PRIOR_ACT_tab_SCNEAR" class="ACT_deselected"> <?php echo xlt('scNear{{ACT without Correction Near}}'); ?> </td> <td id="PRIOR_ACT_tab_CCNEAR" name="PRIOR_ACT_tab_CCNEAR" class="ACT_deselected"> <?php echo xlt('ccNear{{ACT with Correction Near}}'); ?> </td> </tr> <tr> <td colspan="4" style="text-align:center;font-size:0.8em;"> <div id="PRIOR_ACT_SCDIST" name="PRIOR_ACT_SCDIST" class="ACT_box"> <br /> <table> <tr> <td style="text-align:center;"><?php echo xlt('R{{right}}'); ?> </td> <td style="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT1SCDIST" name="PRIOR_ACT1SCDIST" class="ACT"><?php echo text($ACT1SCDIST); ?> </textarea></td> <td style="border:1pt solid black;border-top:0pt;text-align:center;"> <textarea disabled id="PRIOR_ACT2SCDIST" name="PRIOR_ACT2SCDIST"class="ACT"><?php echo text($ACT2SCDIST); ?> </textarea></td> <td style="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;"> <textarea disabled id="PRIOR_ACT3SCDIST" name="PRIOR_ACT3SCDIST" class="ACT"><?php echo text($ACT3SCDIST); ?> </textarea></td> <td style="text-align:center;"><?php echo xlt('L{{left}}'); ?> </td> </tr> <tr> <td style="text-align:right;"><i class="fa fa-reply rotate-left right"></i></td> <td style="border:1pt solid black;border-left:0pt;text-align:right;"> <textarea disabled id="PRIOR_ACT4SCDIST" name="PRIOR_ACT4SCDIST" class="ACT"><?php echo text($ACT4SCDIST); ?> </textarea></td> <td style="border:1pt solid black;text-align:center;"> <textarea disabled id="PRIOR_ACT5SCDIST" name="PRIOR_ACT5SCDIST" class="ACT"><?php echo text($ACT5SCDIST); ?> </textarea></td> <td style="border:1pt solid black;border-right:0pt;text-align:left;"> <textarea disabled id="PRIOR_ACT6SCDIST" name="PRIOR_ACT6SCDIST" class="ACT"><?php echo text($ACT6SCDIST); ?> </textarea></td> <td><i class="fa fa-share rotate-right"></i></td> </tr> <tr> <td style="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT10SCDIST" name="PRIOR_ACT10SCDIST" class="ACT"><?php echo text($ACT10SCDIST); ?> </textarea></td> <td style="border-right:1pt solid black;border-top:1pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT7SCDIST" name="PRIOR_ACT7SCDIST" class="ACT"><?php echo text($ACT7SCDIST); ?> </textarea></td> <td style="border:1pt solid black;border-bottom:0pt;text-align:center;"> <textarea disabled id="PRIOR_ACT8SCDIST" name="PRIOR_ACT8SCDIST" class="ACT"><?php echo text($ACT8SCDIST); ?> </textarea></td> <td style="border-left:1pt solid black;border-top:1pt solid black;text-align:left;"> <textarea disabled id="PRIOR_ACT9SCDIST" name="PRIOR_ACT9SCDIST" class="ACT"><?php echo text($ACT9SCDIST); ?> </textarea></td> <td style="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;"> <textarea disabled id="PRIOR_ACT11SCDIST" name="PRIOR_ACT11SCDIST" class="ACT"><?php echo text($ACT11SCDIST); ?> </textarea> </td> </tr> </table> <br /> </div> <div id="PRIOR_ACT_CCDIST" name="PRIOR_ACT_CCDIST" class="nodisplay ACT_box"> <br /> <table> <tr> <td style="text-align:center;"><?php echo xlt('R{{right}}'); ?> </td> <td style="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT1CCDIST" name="PRIOR_ACT1CCDIST" class="ACT"><?php echo text($ACT1CCDIST); ?> </textarea></td> <td style="border:1pt solid black;border-top:0pt;text-align:center;"> <textarea disabled id="PRIOR_ACT2CCDIST" name="PRIOR_ACT2CCDIST"class="ACT"><?php echo text($ACT2CCDIST); ?> </textarea></td> <td style="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;"> <textarea disabled id="PRIOR_ACT3CCDIST" name="PRIOR_ACT3CCDIST" class="ACT"><?php echo text($ACT3CCDIST); ?> </textarea></td> <td style="text-align:center;"><?php echo xlt('L{{left}}'); ?> </td> </tr> <tr> <td style="text-align:right;"><i class="fa fa-reply rotate-left"></i></td> <td style="border:1pt solid black;border-left:0pt;text-align:right;"> <textarea disabled id="PRIOR_ACT4CCDIST" name="PRIOR_ACT4CCDIST" class="ACT"><?php echo text($ACT4CCDIST); ?> </textarea></td> <td style="border:1pt solid black;text-align:center;"> <textarea disabled id="PRIOR_ACT5CCDIST" name="PRIOR_ACT5CCDIST" class="ACT"><?php echo text($ACT5CCDIST); ?> </textarea></td> <td style="border:1pt solid black;border-right:0pt;text-align:left;"> <textarea disabled id="PRIOR_ACT6CCDIST" name="PRIOR_ACT6CCDIST" class="ACT"><?php echo text($ACT6CCDIST); ?> </textarea></td> <td><i class="fa fa-share rotate-right"></i></td> </tr> <tr> <td style="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT10CCDIST" name="PRIOR_ACT10CCDIST" class="ACT"><?php echo text($ACT10CCDIST); ?> </textarea></td> <td style="border-right:1pt solid black;border-top:1pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT7CCDIST" name="PRIOR_ACT7CCDIST" class="ACT"><?php echo text($ACT7CCDIST); ?> </textarea></td> <td style="border:1pt solid black;border-bottom:0pt;text-align:center;"> <textarea disabled id="PRIOR_ACT8CCDIST" name="PRIOR_ACT8CCDIST" class="ACT"><?php echo text($ACT8CCDIST); ?> </textarea></td> <td style="border-left:1pt solid black;border-top:1pt solid black;text-align:left;"> <textarea disabled id="PRIOR_ACT9CCDIST" name="PRIOR_ACT9CCDIST" class="ACT"><?php echo text($ACT9CCDIST); ?> </textarea></td> <td style="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;"> <textarea disabled id="PRIOR_ACT11CCDIST" name="PRIOR_ACT11CCDIST" class="ACT"><?php echo text($ACT11CCDIST); ?> </textarea></td> </tr> </table> <br /> </div> <div id="PRIOR_ACT_SCNEAR" name="PRIOR_ACT_SCNEAR" class="nodisplay ACT_box"> <br /> <table> <tr> <td style="text-align:center;"><?php echo xlt('R{{right}}'); ?> </td> <td style="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT1SCNEAR" name="PRIOR_ACT1SCNEAR" class="ACT"><?php echo text($ACT1SCNEAR); ?> </textarea></td> <td style="border:1pt solid black;border-top:0pt;text-align:center;"> <textarea disabled id="PRIOR_ACT2SCNEAR" name="PRIOR_ACT2SCNEAR"class="ACT"><?php echo text($ACT2SCNEAR); ?> </textarea></td> <td style="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;"> <textarea disabled id="PRIOR_ACT3SCNEAR" name="PRIOR_ACT3SCNEAR" class="ACT"><?php echo text($ACT3SCNEAR); ?> </textarea></td> <td style="text-align:center;"><?php echo xlt('L{{left}}'); ?> </td> </tr> <tr> <td style="text-align:right;"><i class="fa fa-reply rotate-left"></i></td> <td style="border:1pt solid black;border-left:0pt;text-align:right;"> <textarea disabled id="PRIOR_ACT4SCNEAR" name="PRIOR_ACT4SCNEAR" class="ACT"><?php echo text($ACT4SCNEAR); ?> </textarea></td> <td style="border:1pt solid black;text-align:center;"> <textarea disabled id="PRIOR_ACT5SCNEAR" name="PRIOR_ACT5SCNEAR" class="ACT"><?php echo text($ACT5SCNEAR); ?> </textarea></td> <td style="border:1pt solid black;border-right:0pt;text-align:left;"> <textarea disabled id="PRIOR_ACT6SCNEAR" name="PRIOR_ACT6SCNEAR" class="ACT"><?php echo text($ACT6SCNEAR); ?> </textarea></td> <td><i class="fa fa-share rotate-right"></i></td> </tr> <tr> <td style="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT10SCNEAR" name="PRIOR_ACT10SCNEAR" class="ACT"><?php echo text($ACT10SCNEAR); ?> </textarea></td> <td style="border-right:1pt solid black;border-top:1pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT7SCNEAR" name="PRIOR_ACT7SCNEAR" class="ACT"><?php echo text($ACT7SCNEAR); ?> </textarea></td> <td style="border:1pt solid black;border-bottom:0pt;text-align:center;"> <textarea disabled id="PRIOR_ACT8SCNEAR" name="PRIOR_ACT8SCNEAR" class="ACT"><?php echo text($ACT8SCNEAR); ?> </textarea></td> <td style="border-left:1pt solid black;border-top:1pt solid black;text-align:left;"> <textarea disabled id="PRIOR_ACT9SCNEAR" name="PRIOR_ACT9SCNEAR" class="ACT"><?php echo text($ACT9SCNEAR); ?> </textarea></td> <td style="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;"> <textarea disabled id="PRIOR_ACT11SCNEAR" name="PRIOR_ACT11SCNEAR" class="ACT"><?php echo text($ACT11SCNEAR); ?> </textarea> </td> </tr> </table> <br /> </div> <div id="PRIOR_ACT_CCNEAR" name="PRIOR_ACT_CCNEAR" class="nodisplay ACT_box"> <br /> <table> <tr> <td style="text-align:center;"><?php echo xlt('R{{right}}'); ?> </td> <td style="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT1CCNEAR" name="PRIOR_ACT1CCNEAR" class="ACT"><?php echo text($ACT1CCNEAR); ?> </textarea></td> <td style="border:1pt solid black;border-top:0pt;text-align:center;"> <textarea disabled id="PRIOR_ACT2CCNEAR" name="PRIOR_ACT2CCNEAR"class="ACT"><?php echo text($ACT2CCNEAR); ?> </textarea></td> <td style="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;"> <textarea disabled id="PRIOR_ACT3CCNEAR" name="PRIOR_ACT3CCNEAR" class="ACT"><?php echo text($ACT3CCNEAR); ?> </textarea></td> <td style="text-align:center;"><?php echo xlt('L{{left}}'); ?> </td> </tr> <tr> <td style="text-align:right;"><i class="fa fa-reply rotate-left"></i></td> <td style="border:1pt solid black;border-left:0pt;text-align:right;"> <textarea disabled id="PRIOR_ACT4CCNEAR" name="PRIOR_ACT4CCNEAR" class="ACT"><?php echo text($ACT4CCNEAR); ?> </textarea></td> <td style="border:1pt solid black;text-align:center;"> <textarea disabled id="PRIOR_ACT5CCNEAR" name="PRIOR_ACT5CCNEAR" class="ACT"><?php echo text($ACT5CCNEAR); ?> </textarea></td> <td style="border:1pt solid black;border-right:0pt;text-align:left;"> <textarea disabled id="PRIOR_ACT6CCNEAR" name="PRIOR_ACT6CCNEAR" class="ACT"><?php echo text($ACT6CCNEAR); ?> </textarea></td><td><i class="fa fa-share rotate-right"></i></td> </tr> <tr> <td style="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT10CCNEAR" name="PRIOR_ACT10CCNEAR" class="ACT"><?php echo text($ACT10CCNEAR); ?> </textarea></td> <td style="border-right:1pt solid black;border-top:1pt solid black;text-align:right;"> <textarea disabled id="PRIOR_ACT7CCNEAR" name="PRIOR_ACT7CCNEAR" class="ACT"><?php echo text($ACT7CCNEAR); ?> </textarea></td> <td style="border:1pt solid black;border-bottom:0pt;text-align:center;"> <textarea disabled id="PRIOR_ACT8CCNEAR" name="PRIOR_ACT8CCNEAR" class="ACT"><?php echo text($ACT8CCNEAR); ?> </textarea></td> <td style="border-left:1pt solid black;border-top:1pt solid black;text-align:left;"> <textarea disabled id="PRIOR_ACT9CCNEAR" name="PRIOR_ACT9CCNEAR" class="ACT"><?php echo text($ACT9CCNEAR); ?> </textarea></td> <td style="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;"> <textarea disabled id="PRIOR_ACT11CCNEAR" name="PRIOR_ACT11CCNEAR" class="ACT"><?php echo text($ACT11CCNEAR); ?> </textarea> </td> </tr> </table> <br /> </div> </td> </tr> </table> </div> </td> </tr> </table> <div id="PRIOR_NPCNPA" name="PRIOR_NPCNPA"> <table style="position:relative;float:left;text-align:center;margin: 4 2;width:100%;font-size:1.0em;padding:4px;"> <tr style=""> <td style="width:50%;"></td> <td style="font-weight:bold;"><?php echo xlt('OD{{right eye}}'); ?> </td> <td style="font-weight:bold;"><?php echo xlt('OS{{left eye}}'); ?> </td> </tr> <tr> <td class="right"><span title="<?php echo xla('Near Point of Accomodation'); ?> "><?php echo xlt('NPA{{near point of accomodation}}'); ?> :</span></td> <td><input disabled type="text" id="PRIOR_ODNPA" style="width:70%;" name="PRIOR_ODNPA" value="<?php echo attr($ODNPA); ?> "></td> <td><input disabled type="text" id="PRIOR_OSNPA" style="width:70%;" name="PRIOR_OSNPA" value="<?php echo attr($OSNPA); ?> "></td> </tr> <tr> <td class="right"><span title="<?php echo xla('Near Point of Convergence'); ?> "><?php echo xlt('NPC{{near point of convergence}}'); ?> :</span></td> <td colspan="2" ><input disabled type="text" style="width:85%;" id="PRIOR_NPC" name="PRIOR_NPC" value="<?php echo attr($NPC); ?> "> </td> </tr> <tr> <td class="right"> <?php echo xlt('Stereopsis'); ?> : </td> <td colspan="2"> <input disabled type="text" style="width:85%;" name="PRIOR_STEREOPSIS" id="PRIOR_STEREOPSIS" value="<?php echo attr($STEREOPSIS); ?> "> </td> </tr> <tr> <td colspan="3" style="font-weight:bold;"><br /><u><?php echo xlt('Amplitudes'); ?> </u><br /> </td> </tr> <tr><td ></td><td ><?php echo xlt('Distance'); ?> </td><td><?php echo xlt('Near'); ?> </td></tr> <tr> <td style="text-align:right;"><?php echo xlt('Divergence'); ?> :</td> <td><input disabled type="text" id="PRIOR_DACCDIST" name="PRIOR_DACCDIST" value="<?php echo attr($DACCDIST); ?> "></td> <td><input disabled type="text" id="PRIOR_DACCNEAR" name="PRIOR_DACCNEAR" value="<?php echo attr($DACCNEAR); ?> "></td></tr> <tr> <td style="text-align:right;"><?php echo xlt('Convergence'); ?> :</td> <td><input disabled type="text" id="PRIOR_CACCDIST" name="PRIOR_CACCDIST" value="<?php echo attr($CACCDIST); ?> "></td> <td><input disabled type="text" id="PRIOR_CACCNEAR" name="PRIOR_CACCNEAR" value="<?php echo attr($CACCNEAR); ?> "></td></tr> </tr> <tr> <td class="right"> <?php echo xlt('Vertical Fusional'); ?> : </td> <td colspan="2"> <input disabled type="text" style="width:90%;" name="PRIOR_VERTFUSAMPS" id="PRIOR_VERTFUSAMPS" value="<?php echo attr($VERTFUSAMPS); ?> "> <br /> </td> </tr> </table> </div> </div> <?php $hash_tag = '<i class="fa fa-minus"></i>'; if ($MOTILITY_RS > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_RS; ++$index) { $here = "PRIOR_MOTILITY_RS_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_RI > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_RI; ++$index) { $here = "PRIOR_MOTILITY_RI_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_LS > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_LS; ++$index) { $here = "PRIOR_MOTILITY_LS_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_LI > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_LI; ++$index) { $here = "PRIOR_MOTILITY_LI_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_RRSO > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_RRSO; ++$index) { $here = "PRIOR_MOTILITY_RRSO_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_LRSO > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_LRSO; ++$index) { $here = "PRIOR_MOTILITY_LRSO_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_RLIO > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_RLIO; ++$index) { $here = "PRIOR_MOTILITY_RLIO_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_LLIO > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_LLIO; ++$index) { $here = "PRIOR_MOTILITY_LLIO_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_RLSO > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_RLSO; ++$index) { $here = "PRIOR_MOTILITY_RLSO_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_LLSO > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_LLSO; ++$index) { $here = "PRIOR_MOTILITY_LLSO_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_RRIO > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_RRIO; ++$index) { $here = "PRIOR_MOTILITY_RRIO_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_LRIO > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_LRIO; ++$index) { $here = "PRIOR_MOTILITY_LRIO_" . $index; ${$here} = $hash_tag; } } $hash_tag = '<i class="fa fa-minus rotate-left"></i>'; if ($MOTILITY_LR > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_LR; ++$index) { $here = "PRIOR_MOTILITY_LR_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_LL > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_LL; ++$index) { $here = "PRIOR_MOTILITY_LL_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_RR > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_RR; ++$index) { $here = "PRIOR_MOTILITY_RR_" . $index; ${$here} = $hash_tag; } } if ($MOTILITY_RL > '0') { $PRIOR_MOTILITYNORMAL = ''; for ($index = 1; $index <= $MOTILITY_RL; ++$index) { $here = "PRIOR_MOTILITY_RL_" . $index; ${$here} = $hash_tag; } } ?> <div id="PRIOR_NEURO_MOTILITY" class="text_clinical borderShadow" style="float:left;font-size:0.9em;margin:2 2;padding: 0 10;font-weight:bold;height:134px;width:175px;"> <div> <table style="width:100%;margin:0 0 1 0;"> <tr> <td style="width:40%;font-size:0.9em;margin:0 auto;font-weight:bold;"><?php echo xlt('Motility'); ?> :</td> <td style="font-size:0.9em;vertical-align:middle;text-align:right;top:0.0in;right:0.1in;height:30px;"> <label for="PRIOR_MOTILITYNORMAL" class="input-helper input-helper--checkbox"><?php echo xlt('Normal'); ?> </label> <input disabled id="PRIOR_MOTILITYNORMAL" name="PRIOR_MOTILITYNORMAL" type="checkbox" value="1" <?php if ($MOTILITYNORMAL > '0') { echo "checked"; } ?> disabled> </td> </tr> </table> </div> <input disabled type="hidden" name="PRIOR_MOTILITY_RS" id="PRIOR_MOTILITY_RS" value="<?php echo attr($MOTILITY_RS); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_RI" id="PRIOR_MOTILITY_RI" value="<?php echo attr($MOTILITY_RI); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_RR" id="PRIOR_MOTILITY_RR" value="<?php echo attr($MOTILITY_RR); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_RL" id="PRIOR_MOTILITY_RL" value="<?php echo attr($MOTILITY_RL); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_LS" id="PRIOR_MOTILITY_LS" value="<?php echo attr($MOTILITY_LS); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_LI" id="PRIOR_MOTILITY_LI" value="<?php echo attr($MOTILITY_LI); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_LR" id="PRIOR_MOTILITY_LR" value="<?php echo attr($MOTILITY_LR); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_LL" id="PRIOR_MOTILITY_LL" value="<?php echo attr($MOTILITY_LL); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_RRSO" id="PRIOR_MOTILITY_RRSO" value="<?php echo attr($MOTILITY_RRSO); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_RLSO" id="PRIOR_MOTILITY_RLSO" value="<?php echo attr($MOTILITY_RLSO); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_RRIO" id="PRIOR_MOTILITY_RRIO" value="<?php echo attr($MOTILITY_RRIO); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_RLIO" id="PRIOR_MOTILITY_RLIO" value="<?php echo attr($MOTILITY_RLIO); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_LRSO" id="PRIOR_MOTILITY_LRSO" value="<?php echo attr($MOTILITY_LRSO); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_LLSO" id="PRIOR_MOTILITY_LLSO" value="<?php echo attr($MOTILITY_LLSO); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_LRIO" id="PRIOR_MOTILITY_LRIO" value="<?php echo attr($MOTILITY_LRIO); ?> "> <input disabled type="hidden" name="PRIOR_MOTILITY_LLIO" id="PRIOR_MOTILITY_LLIO" value="<?php echo attr($MOTILITY_LLIO); ?> "> <div style="float:left;left:0.4in;text-decoration:underline;"><?php echo xlt('OD{{right eye}}'); ?> </div> <div style="float:right;right:0.4in;text-decoration:underline;"><?php echo xlt('OS{{left eye}}'); ?> </div><br /> <div class="divTable" style="background: url(../../forms/<?php echo $form_folder; ?> /images/eom.bmp) no-repeat center center;background-size: 90% 75%;height:0.77in;width:0.71in;padding:1px;margin:6 1 1 2;"> <div class="divRow"> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"><?php echo $PRIOR_MOTILITY_RRSO_4; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_4_3" id="PRIOR_MOTILITY_RS_4_3"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_4_1" id="PRIOR_MOTILITY_RS_4_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_4" id="PRIOR_MOTILITY_RS_4"><?php echo $PRIOR_MOTILITY_RS_4; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_4_2" id="PRIOR_MOTILITY_RS_4_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_4_4" id="PRIOR_MOTILITY_RS_4_4"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RLSO_4; ?> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RRSO_3; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_3_1" id="PRIOR_MOTILITY_RS_3_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_3" id="PRIOR_MOTILITY_RS_3"><?php echo $PRIOR_MOTILITY_RS_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_3_2" id="PRIOR_MOTILITY_RS_3_2"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RLSO_3; ?> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RRSO_2; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_2_1" id="PRIOR_MOTILITY_RS_2_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_2" id="PRIOR_MOTILITY_RS_2"><?php echo $PRIOR_MOTILITY_RS_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_2_2" id="PRIOR_MOTILITY_RS_2_2"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RLSO_2; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RRSO_1; ?> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_1_1" id="PRIOR_MOTILITY_RS_1_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_1" id="PRIOR_MOTILITY_RS_1"><?php echo $PRIOR_MOTILITY_RS_1; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_1_2" id="PRIOR_MOTILITY_RS_1_2"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RLSO_1; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_0_1" id="PRIOR_MOTILITY_RS_0_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_0" id="PRIOR_MOTILITY_RS_0"> </div> <div class="divCell" name="PRIOR_MOTILITY_RS_0_1" id="PRIOR_MOTILITY_RS_0_1"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divMiddleRow"> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RR_4" id="PRIOR_MOTILITY_RR_4"><?php echo $PRIOR_MOTILITY_RR_4; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RR_3" id="PRIOR_MOTILITY_RR_3"><?php echo $PRIOR_MOTILITY_RR_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RR_2" id="PRIOR_MOTILITY_RR_2"><?php echo $PRIOR_MOTILITY_RR_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RR_1" id="PRIOR_MOTILITY_RR_1"><?php echo $PRIOR_MOTILITY_RR_1; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RR_0" id="PRIOR_MOTILITY_RR_0"> </div> <div class="divCell" name="PRIOR_MOTILITY_R0" id="PRIOR_MOTILITY_R0"> </div> <div class="divCell" name="PRIOR_MOTILITY_RL_0" id="PRIOR_MOTILITY_RL_0"> </div> <div class="divCell" name="PRIOR_MOTILITY_RL_1" id="PRIOR_MOTILITY_RL_1"><?php echo $PRIOR_MOTILITY_RL_1; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RL_2" id="PRIOR_MOTILITY_RL_2"><?php echo $PRIOR_MOTILITY_RL_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RL_3" id="PRIOR_MOTILITY_RL_3"><?php echo $PRIOR_MOTILITY_RL_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RL_4" id="PRIOR_MOTILITY_RL_4"><?php echo $PRIOR_MOTILITY_RL_4; ?> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_0_1" id="PRIOR_MOTILITY_RI_0_1"> </div> <div class="divCell" id="PRIOR_MOTILITY_RI_0" name="PRIOR_MOTILITY_RI_0"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_0_2" id="PRIOR_MOTILITY_RI_0_2"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RRIO_1; ?> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_1_1" id="PRIOR_MOTILITY_RI_1_1"> </div> <div class="divCell" id="PRIOR_MOTILITY_RI_1" name="PRIOR_MOTILITY_RI_1"><?php echo $PRIOR_MOTILITY_RI_1; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_1_2" id="PRIOR_MOTILITY_RI_1_2"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RLIO_1; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RRIO_2; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_2_1" id="PRIOR_MOTILITY_RI_2_1"> </div> <div class="divCell" id="PRIOR_MOTILITY_RI_2" name="PRIOR_MOTILITY_RI_2"><?php echo $PRIOR_MOTILITY_RI_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_2_2" id="PRIOR_MOTILITY_RI_2_2"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RLIO_2; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RRIO_3; ?> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_3_5" id="PRIOR_MOTILITY_RI_3_5"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_3_3" id="PRIOR_MOTILITY_RI_3_3"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_3_1" id="PRIOR_MOTILITY_RI_3_1"> </div> <div class="divCell" id="PRIOR_MOTILITY_RI_3" name="PRIOR_MOTILITY_RI_3"><?php echo $PRIOR_MOTILITY_RI_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_3_2" id="PRIOR_MOTILITY_RI_3_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_3_4" id="PRIOR_MOTILITY_RI_3_4"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_3_6" id="PRIOR_MOTILITY_RI_3_6"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RLIO_3; ?> </div> <div class="divCell"></div> </div> <div class="divRow"> <div class="divCell"><?php echo $PRIOR_MOTILITY_RRIO_4; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_4_5" id="PRIOR_MOTILITY_RI_4_5"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_4_3" id="PRIOR_MOTILITY_RI_4_3"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_4_1" id="PRIOR_MOTILITY_RI_4_1"> </div> <div class="divCell" id="PRIOR_MOTILITY_RI_4" name="PRIOR_MOTILITY_RI_4"><?php echo $PRIOR_MOTILITY_RI_4; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_4_2" id="PRIOR_MOTILITY_RI_4_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_4_4" id="PRIOR_MOTILITY_RI_4_4"> </div> <div class="divCell" name="PRIOR_MOTILITY_RI_4_6" id="PRIOR_MOTILITY_RI_4_6"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_RLIO_4; ?> </div> </div> <div class="divRow"> <div class="divCell"> </div> </div> </div> <div class="divTable" style="float:right;background: url(../../forms/<?php echo $form_folder; ?> /images/eom.bmp) no-repeat center center;background-size: 90% 75%;height:0.77in;width:0.71in;padding:1px;margin:6 2 0 0;"> <div class="divRow"> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"><?php echo $PRIOR_MOTILITY_LRSO_4; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_4_3" id="PRIOR_MOTILITY_LS_4_3"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_4_1" id="PRIOR_MOTILITY_LS_4_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_4" id="PRIOR_MOTILITY_LS_4"><?php echo $PRIOR_MOTILITY_LS_4; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_4_2" id="PRIOR_MOTILITY_LS_4_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_4_4" id="PRIOR_MOTILITY_LS_4_4"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LLSO_4; ?> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LRSO_3; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_3_1" id="PRIOR_MOTILITY_LS_3_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_3" id="PRIOR_MOTILITY_LS_3"><?php echo $PRIOR_MOTILITY_LS_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_3_2" id="PRIOR_MOTILITY_LS_3_2"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LLSO_3; ?> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LRSO_2; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_2_1" id="PRIOR_MOTILITY_LS_2_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_2" id="PRIOR_MOTILITY_LS_2"><?php echo $PRIOR_MOTILITY_LS_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_2_2" id="PRIOR_MOTILITY_LS_2_2"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LLSO_2; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LRSO_1; ?> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_1_1" id="PRIOR_MOTILITY_LS_1_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_1" id="PRIOR_MOTILITY_LS_1"><?php echo $PRIOR_MOTILITY_LS_1; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_1_2" id="PRIOR_MOTILITY_LS_1_2"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LLSO_1; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_0_1" id="PRIOR_MOTILITY_LS_0_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_0" id="PRIOR_MOTILITY_LS_0"> </div> <div class="divCell" name="PRIOR_MOTILITY_LS_0_1" id="PRIOR_MOTILITY_LS_0_1"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"> </div> </div> <div class="divMiddleRow"> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_4" id="PRIOR_MOTILITY_LR_4"><?php echo $PRIOR_MOTILITY_LR_4; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_3" id="PRIOR_MOTILITY_LR_3"><?php echo $PRIOR_MOTILITY_LR_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_2" id="PRIOR_MOTILITY_LR_2"><?php echo $PRIOR_MOTILITY_LR_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_1" id="PRIOR_MOTILITY_LR_1"><?php echo $PRIOR_MOTILITY_LR_1; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_0" id="PRIOR_MOTILITY_LR_0"> </div> <div class="divCell" name="PRIOR_MOTILITY_L0" id="PRIOR_MOTILITY_L0"> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_0" id="PRIOR_MOTILITY_LL_0"> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_1" id="PRIOR_MOTILITY_LL_1"><?php echo $PRIOR_MOTILITY_LL_1; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_2" id="PRIOR_MOTILITY_LL_2"><?php echo $PRIOR_MOTILITY_LL_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_3" id="PRIOR_MOTILITY_LL_3"><?php echo $PRIOR_MOTILITY_LL_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_4" id="PRIOR_MOTILITY_LL_4"><?php echo $PRIOR_MOTILITY_LL_4; ?> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_4_1" id="PRIOR_MOTILITY_LR_4_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_3_1" id="PRIOR_MOTILITY_LR_3_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_2_1" id="PRIOR_MOTILITY_LR_2_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_RO_I_1" id="PRIOR_MOTILITY_RO_I_1"> </div> <div class="divCell"> </div> <div class="divCell" id="PRIOR_MOTILITY_LI_0" name="PRIOR_MOTILITY_LI_0"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LO_I_1" id="PRIOR_MOTILITY_LO_I_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_2_2" id="PRIOR_MOTILITY_LL_2_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_3_2" id="PRIOR_MOTILITY_LL_3_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_4_2" id="PRIOR_MOTILITY_LL_4_2"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_4_3" id="PRIOR_MOTILITY_LR_4_3"> </div> <div class="divCell" name="PRIOR_MOTILITY_LR_3_3" id="PRIOR_MOTILITY_LR_3_3"> </div> <div class="divCell" name="PRIOR_MOTILITY_RO_I_2" id="PRIOR_MOTILITY_RO_I_2"><?php echo $PRIOR_MOTILITY_LRIO_1; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" id="PRIOR_MOTILITY_LI_1" name="PRIOR_MOTILITY_LI_1"><?php echo $PRIOR_MOTILITY_LI_1; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LO_I_2" id="PRIOR_MOTILITY_LO_I_2"><?php echo $PRIOR_MOTILITY_LLIO_1; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_3_4" id="PRIOR_MOTILITY_LL_3_4"> </div> <div class="divCell" name="PRIOR_MOTILITY_LL_4_4" id="PRIOR_MOTILITY_LL_4_4"> </div> <div class="divCell"> </div> </div> <div class="divRow"> <div class="divCell" name="PRIOR_MOTILITY_RO_I_3_1" id="PRIOR_MOTILITY_RO_I_3_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_RO_I_3" id="PRIOR_MOTILITY_RO_I_3"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LRIO_2; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_2_1" id="PRIOR_MOTILITY_LI_2_1"> </div> <div class="divCell" id="PRIOR_MOTILITY_LI_2" name="PRIOR_MOTILITY_LI_2"><?php echo $PRIOR_MOTILITY_LI_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_2_2" id="PRIOR_MOTILITY_LI_2_2"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LLIO_2; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LO_I_2" id="PRIOR_MOTILITY_RO_I_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_LO_I_3_1" id="PRIOR_MOTILITY_LO_I_3_1"> </div> </div> <div class="divRow"> <div class="divCell" name="PRIOR_MOTILITY_LO_I_3" id="PRIOR_MOTILITY_RO_I_3"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LRIO_3; ?> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_3_5" id="PRIOR_MOTILITY_LI_3_5"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_3_3" id="PRIOR_MOTILITY_LI_3_3"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_3_1" id="PRIOR_MOTILITY_LI_3_1"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_3" id="PRIOR_MOTILITY_LI_3"><?php echo $PRIOR_MOTILITY_LI_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_3_2" id="PRIOR_MOTILITY_LI_3_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_3_4" id="PRIOR_MOTILITY_LI_3_4"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_3_6" id="PRIOR_MOTILITY_LI_3_6"> </div> <div class="divCell"> </div> <div class="divCell"><?php echo $PRIOR_MOTILITY_LLIO_3; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LO_I_3" id="PRIOR_MOTILITY_LO_I_3"> </div> </div> <div class="divRow"> <div class="divCell" name="PRIOR_MOTILITY_RO_I_4" id="PRIOR_MOTILITY_RO_I_4"><?php echo $PRIOR_MOTILITY_LRIO_4; ?> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_4_5" id="PRIOR_MOTILITY_LI_4_5"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_4_3" id="PRIOR_MOTILITY_LI_4_3"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_4_1" id="PRIOR_MOTILITY_LI_4_1"> </div> <div class="divCell" id="PRIOR_MOTILITY_LI_4" name="PRIOR_MOTILITY_LI_4"><?php echo $PRIOR_MOTILITY_LI_4; ?> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_4_2" id="PRIOR_MOTILITY_LI_4_2"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_4_4" id="PRIOR_MOTILITY_LI_4_4"> </div> <div class="divCell" name="PRIOR_MOTILITY_LI_4_6" id="PRIOR_MOTILITY_LI_4_6"> </div> <div class="divCell"> </div> <div class="divCell"> </div> <div class="divCell" name="PRIOR_MOTILITY_LO_I_4" id="PRIOR_MOTILITY_LO_I_4"><?php echo $PRIOR_MOTILITY_LLIO_4; ?> </div> </div> <div class="divRow"><div class="divCell"> </div> </div> </div> </div> </div> <br /> <div style="position: absolute;bottom:0.05in;clear:both;font-size:0.9em;text-align:left;padding-left:25px;"> <b><?php echo xlt('Comments'); ?> :</b><br /> <textarea disabled id="PRIOR_NEURO_COMMENTS" name="PRIOR_NEURO_COMMENTS" style="width:4.0in;height:3.0em;"><?php echo text($NEURO_COMMENTS); ?> </textarea> </div> <input type="hidden" name="PRIOR_PREFS_ACT_SHOW" id="PRIOR_PREFS_ACT_SHOW" value="<?php echo attr($ACT_SHOW); ?> "> <script type="text/javascript"> $("#PRIOR_ACTTRIGGER").mouseover(function() { $("#PRIOR_ACTTRIGGER").toggleClass('buttonRefraction_selected').toggleClass('underline'); }); $("#PRIOR_ACTTRIGGER").mouseout(function() { $("#PRIOR_ACTTRIGGER").toggleClass('buttonRefraction_selected').toggleClass('underline'); }); $("#PRIOR_ACTTRIGGER").click(function() { $("#PRIOR_ACTMAIN").toggleClass('nodisplay'); //.toggleClass('fullscreen'); $("#PRIOR_NPCNPA").toggleClass('nodisplay'); $("#PRIOR_ACTNORMAL_CHECK").toggleClass('nodisplay'); $("#PRIOR_ACTTRIGGER").toggleClass('underline'); $("#PRIOR_Close_ACTMAIN").toggleClass('fa-random').toggleClass('fa-eye'); }); $("[name^='PRIOR_ACT_tab_']").click(function() { var section = this.id.match(/PRIOR_ACT_tab_(.*)/)[1]; $("[name^='PRIOR_ACT_']").addClass('nodisplay'); $("[name^='PRIOR_ACT_tab_']").removeClass('nodisplay').removeClass('ACT_selected').addClass('ACT_deselected'); $("#PRIOR_ACT_tab_" + section).addClass('ACT_selected').removeClass('ACT_deselected'); $("#PRIOR_ACT_" + section).removeClass('nodisplay'); $("#PRIOR_PREFS_ACT_SHOW").val(section); }); $("[name^='PRIOR_Close_']").click(function() { var section = this.id.match(/PRIOR_Close_(.*)$/)[1]; if (section =="ACTMAIN") { $("#PRIOR_ACTTRIGGER").trigger( "click" ); } else { $("#LayerVision_"+section+"_lightswitch").click(); } }); if ($("#PREFS_ACT_VIEW").val() == '1') { $("#PRIOR_ACTMAIN").toggleClass('nodisplay'); $("#PRIOR_NPCNPA").toggleClass('nodisplay'); $("#PRIOR_ACTNORMAL_CHECK").toggleClass('nodisplay'); $("#PRIOR_ACTTRIGGER").toggleClass('underline'); var show = $("#PREFS_ACT_SHOW").val(); $("#PRIOR_ACT_tab_"+show).trigger('click'); } </script> <?php } elseif ($zone == "IMPPLAN") { if ($report == '0') { $output = priors_select($zone, $orig_id, $id_to_show, $pid); } ?> <input disabled type="hidden" id="PRIORS_<?php echo attr($zone); ?> _prefix" name="PRIORS_<?php echo attr($zone); ?> _prefix" value=""> <span class="closeButton pull-right fa fa-close" id="Close_PRIORS_<?php echo attr($zone); ?> " name="Close_PRIORS_<?php echo attr($zone); ?> "></span> <div name="prior_selector" class="PRIORS"> <?php echo $output; ?> </div> <b> <?php echo xlt('Prior IMP/PLAN'); ?> :</b><br /> <?php $PRIOR_IMPPLAN_items = build_IMPPLAN_items($pid, $id_to_show); if ($PRIOR_IMPPLAN_items) { echo "<br /><br /><div style='width:90%;'>"; $i = '0'; $k = '1'; foreach ($PRIOR_IMPPLAN_items as $item) { echo "<div class='IMPPLAN_class' style='clear:both;margin:10px;'>"; echo " <span>{$k}. " . text($item['title']) . "</span><span class='pull-right'>" . $item['code'] . "</span><br />"; echo ' <div class="fake-textarea-disabled-4">' . nl2br(text($item['plan'])) . '</div>'; echo '</div>'; $i++; $k++; } echo "</div>"; } } elseif ($zone == "ALL") { echo $selector = priors_select($zone, $orig_id, $id_to_show, $pid); } elseif ($zone == "PMSFH") { // Check authorization. if (acl_check('patients', 'med')) { $tmp = getPatientData($pid); } // We are going to build the PMSFH panel. // There are two rows in our panel. echo "<div style='height:auto;'>"; echo $display_PMSFH = display_PMSFH('2'); echo "</div>"; } $output = ob_get_contents(); ob_end_clean(); return $output; }
?> <div id="IMPPLAN_right" class="exam_section_right borderShadow text_clinical"> <?php display_draw_section("IMPPLAN", $encounter, $pid); ?> <div id="PRIORS_IMPPLAN_left_text" name="PRIORS_IMPPLAN_left_text" class="PRIORS_class PRIORS"><i class="fa fa-spinner fa-spin"></i> </div> <div id="QP_IMPPLAN" name="QP_IMPPLAN" class="QP_class2"> <span id="iPLAN_BUILD" name="iPLAN_BUILD" class="bold"><?php echo xlt('Impression/Plan'); ?> </span> <div id="IP_P_1"> <?php echo $selector = priors_select("IMPPLAN", $id, $id, $pid); ?> </div> <span class="closeButton fa fa-close pull-right z100" id="BUTTON_TEXTD_IMPPLAN" name="BUTTON_TEXTD_IMPPLAN" value="1"></span> <br /> <?php /* * Let's discuss 3. Build automatically through workflows - The Impression/Plan Builder * Since POH is our area of concern, use $PMSFH[0]['POH'] & $PMSFH[0]['POS'] first then * $PMSFH[0]['medical_problem'] then * system to extrapolate DXs from user-entered clinical findings (PE) * to build the IMP/PLAN options list * a. Diagnoses are sortable via dragging, to build an order. * b. Diagnoses are selectable and deselectable * then click the BUILD icon to append the selected DXs to the bottom of the IMP/Plan list. * c. Drag a DX across onto the IMP.textarea appends this data to the current IMP.textarea data