several constant fixes (removed trailing spaces from new constants)
[openemr.git] / interface / forms / eye_mag / view.php
blob1582ae83c0a2de41afbd85941b6d4faaae10246f
1 <?php
2 /**
3 * forms/eye_mag/view.php
5 * Central view for the eye_mag form. Here is where all new data is entered
6 * New forms are created via new.php and then this script is displayed.
7 * Edit requests come here too...
9 * Copyright (C) 2016 Raymond Magauran <magauran@MedFetch.com>
11 * LICENSE: This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Affero General Public License as
13 * published by the Free Software Foundation, either version 3 of the
14 * License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Affero General Public License for more details.
21 * You should have received a copy of the GNU Affero General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 * @package OpenEMR
25 * @author Ray Magauran <magauran@MedFetch.com>
26 * @link http://www.open-emr.org
30 $fake_register_globals=false;
31 $sanitize_all_escapes=true;
33 require_once("../../globals.php");
34 require_once("$srcdir/acl.inc");
35 require_once("$srcdir/lists.inc");
36 require_once("$srcdir/api.inc");
37 require_once("$srcdir/formatting.inc.php");
38 require_once("$srcdir/forms.inc");
39 require_once("$srcdir/patient.inc");
41 $form_name = "eye_mag";
42 $form_folder = "eye_mag";
43 $Form_Name = "Eye Exam";
45 //since we come through the controller
46 include_once("../../forms/".$form_folder."/php/".$form_folder."_functions.php");
48 $form_id = $_REQUEST['id'];
49 $action = $_REQUEST['action'];
50 $finalize = $_REQUEST['finalize'];
51 $id = $_REQUEST['id'];
52 $display = $_REQUEST['display'];
53 $pid = $_REQUEST['pid'];
54 if ($pid =='') $pid = $_SESSION['pid'];
55 $refresh = $_REQUEST['refresh'];
56 if ($_REQUEST['url']) {
57 redirector($_REQUEST['url']);
58 exit;
60 // Get user preferences, for this user
61 $query = "SELECT * FROM form_eye_mag_prefs where PEZONE='PREFS' AND (id=?) ORDER BY id,ZONE_ORDER,ordering";
62 $result = sqlStatement($query,array($_SESSION['authId']));
63 while ($prefs= sqlFetchArray($result)) {
64 $LOCATION = $prefs['LOCATION'];
65 $$LOCATION = text($prefs['GOVALUE']);
68 $query = "SELECT * FROM patient_data where pid=?";
69 $pat_data = sqlQuery($query,array($pid));
71 $query="select form_encounter.date as encounter_date,form_encounter.*, form_eye_mag.* from form_eye_mag, forms,form_encounter
72 where
73 form_encounter.encounter =? and
74 form_encounter.encounter = forms.encounter and
75 form_eye_mag.id=forms.form_id and
76 forms.deleted != '1' and
77 forms.formdir='eye_mag' and
78 form_eye_mag.pid=? ";
79 $encounter_data =sqlQuery($query,array($encounter,$pid));
80 @extract($encounter_data);
81 //Do we have to have it?
82 //We can iterate through every value and perform openEMR escape-specfific functions?
83 //We can rewrite the code to rename variables eg $encounter_data['RUL'] instead of $RUL?
84 //Isn't this what extract does?
85 //And the goal is to redefine each variable, so overwriting them is actually desirable.
86 //Given others forms may be based off this and we have no idea what those fields will be named,
87 //should we make a decision here to create an openEMR extract like function?
88 //Would it would have to test for "protected variables" by name?
90 $providerID = findProvider($pid,$encounter);
91 $providerNAME = getProviderName($providerID);
92 $query = "SELECT * FROM users where id = ?";
93 $prov_data = sqlQuery($query,array($providerID));
95 // build $PMSFH array
96 global $priors;
97 global $earlier;
98 $PMSFH = build_PMSFH($pid);
101 Two windows anywhere with the same chart open is not compatible with the autosave feature.
102 Data integrity problems will arise.
103 We use a random number generated for each instance - each time the form is opened - == uniqueID.
104 If: the form is LOCKED
105 and the LOCKEDBY variable != uniqueID
106 and less than one hour has passed since it was locked
107 then: a pop-up signals READ-ONLY mode.
108 This user can take control if they wish. If they confirm yes, take control,
109 LOCKEDBY is changed to their uniqueID,
110 Any other instance of the form cannot save data, and if they try,
111 they will receive a popup saying hey buddy, you lost ownership, entering READ-ONLY mode.
112 "Do you want to take control" is offered, should they wish to regain write priviledges.
113 If they stay in READ-ONLY mode, the fields are locked and submit_form is not allowed...
114 In READ-ONLY mode, the form is refreshed via ajax every 15 seconds with changed fields' css
115 background-color attribute set to purple.
116 Once the active user with write priviledges closes their instance of the form, the form_id is unlocked.
117 READ-ONLY users stay read only if they do nothing.
120 $warning = 'nodisplay';
121 $uniqueID = mt_rand();
122 $warning_text ='READ-ONLY mode.';
124 if (!$LOCKED||!$LOCKEDBY) { //no one else has write privs.
125 $LOCKEDBY= $uniqueID;
126 $LOCKED='1';
127 } else {
128 //warning. This form is locked by another user.
129 $warning = ""; //remove nodisplay class
130 $take_ownership = $uniqueID;
132 //drop TIME from encounter_date (which is in DATETIME format)
133 //since OpenEMR assumes input is yyyy-mm-dd
134 //we could do this by changing the MYSQL query in the first place too. Which is better?
135 $dated = new DateTime($encounter_data['encounter_date']);
136 $dated = $dated->format('Y-m-d');
137 $visit_date = oeFormatShortDate($dated);
139 if (!$form_id && !$encounter) { echo text($encounter)."-".text($form_id).xlt('No encounter...'); exit;}
140 //ideally this would point to an error databased by problem #, cause it'd be a problem.
142 if ($refresh and $refresh != 'fullscreen') {
143 if ($refresh == "PMSFH") {
144 echo display_PRIOR_section($refresh,$id,$id,$pid);
145 } else if ($refresh == "PMSFH_panel") {
146 echo show_PMSFH_panel($PMSFH);
147 } else if ($refresh == "page") {
148 echo send_json_values($PMSFH);
149 } else if ($refresh == "GFS") {
150 echo display_GlaucomaFlowSheet($pid);
152 exit;
154 ?><!DOCTYPE html>
155 <html>
156 <head>
157 <title> <?php echo xlt('Chart'); ?>: <?php echo text($pat_data['fname'])." ".text($pat_data['lname'])." ".text($visit_date); ?></title>
158 <script src="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-min-1-10-2/index.js"></script>
159 <script src="<?php echo $GLOBALS['assets_static_relative'] ?>/bootstrap-3-3-4/dist/js/bootstrap.min.js"></script>
160 <script src="<?php echo $GLOBALS['assets_static_relative'] ?>/qtip2-2-2-1/jquery.qtip.min.js"></script>
161 <script type="text/javascript" src="../../../library/dialog.js"></script>
163 <script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative'] ?>/jscolor-2-0-4/jscolor.js"></script>
165 <script language="JavaScript">
166 <?php require_once("$srcdir/restoreSession.php");
168 function dopclick(id) {
169 <?php if ($thisauth != 'write'): ?>
170 dlgopen('../../patient_file/summary/a_issue.php?issue=0&thistype=' + id, '_blank', 550, 400);
171 <?php else: ?>
172 alert("<?php echo xls('You are not authorized to add/edit issues'); ?>");
173 <?php endif; ?>
175 function doscript(type,id,encounter,rx_number) {
176 dlgopen('../../forms/eye_mag/SpectacleRx.php?REFTYPE=' + type + '&id='+id+'&encounter='+ encounter+'&form_id=<?php echo attr(addslashes($form_id)); ?>&rx_number='+rx_number, '_blank', 660, 590);
179 function dispensed(pid) {
180 dlgopen('../../forms/eye_mag/SpectacleRx.php?dispensed=1&pid='+pid, '_blank', 560, 590);
182 function refractions(pid) {
183 dlgopen('../../forms/eye_mag/SpectacleRx.php?dispensed=1&pid='+pid, '_blank', 560, 590);
185 // This invokes the find-code popup.
186 function sel_diagnosis(target,term) {
187 if (target =='') target = "0";
188 IMP_target = target;
189 <?php
191 if($irow['type'] == 'PMH') //or POH
194 dlgopen('<?php echo $rootdir ?>/patient_file/encounter/find_code_popup.php?codetype=<?php echo attr(collect_codetypes("medical_problem","csv")) ?>&search_term='+escape(term), '_blank', 600, 400);
195 <?php
196 } else{
198 dlgopen('<?php echo $rootdir ?>/patient_file/encounter/find_code_popup.php?codetype=<?php echo attr(collect_codetypes("diagnosis","csv")) ?>&search_term='+escape(term), '_blank', 600, 400);
199 <?php
204 var obj =[];
205 <?php
206 //also add in any obj.Clinical data if the form was already opened
207 $codes_found = start_your_engines($encounter_data);
208 if ($codes_found) { ?>
209 obj.Clinical = [<?php echo json_encode($codes_found[0]); ?>];
210 <?php } ?>
212 </script>
214 <!-- Add Font stuff for the look and feel. -->
215 <link rel="stylesheet" href="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-ui-1-11-4/themes/excite-bike/jquery-ui.css">
216 <link rel="stylesheet" href="<?php echo $GLOBALS['assets_static_relative'] ?>/pure-0-5-0/pure-min.css">
217 <link rel="stylesheet" href="<?php echo $GLOBALS['assets_static_relative'] ?>/bootstrap-3-3-4/dist/css/bootstrap.min.css">
218 <link rel="stylesheet" href="<?php echo $GLOBALS['assets_static_relative'] ?>/qtip2-2-2-1/jquery.qtip.min.css" />
219 <link rel="stylesheet" href="<?php echo $GLOBALS['css_header']; ?>" type="text/css">
220 <link rel="stylesheet" href="<?php echo $GLOBALS['assets_static_relative'] ?>/font-awesome-4-6-3/css/font-awesome.min.css">
221 <link rel="stylesheet" href="<?php echo $css_header;?>" type="text/css">
222 <link rel="stylesheet" href="../../forms/<?php echo $form_folder; ?>/css/style.css" type="text/css">
223 <link rel="shortcut icon" href="<?php echo $GLOBALS['images_static_relative']; ?>/favicon.ico" />
225 <meta charset="utf-8">
226 <meta http-equiv="X-UA-Compatible" content="IE=edge">
227 <meta name="description" content="OpenEMR: Eye Exam">
228 <meta name="author" content="OpenEMR: Ophthalmology">
229 <meta name="viewport" content="width=device-width, initial-scale=1">
231 <script language="JavaScript">
232 function openNewForm(sel) {
233 top.restoreSession();
234 FormNameValueArray = sel.split('formname=');
235 if(FormNameValueArray[1] == 'newpatient' || (!parent.Forms))
237 parent.location.href = sel
239 else
241 parent.Forms.location.href = sel;
245 * Function to add a CODE to an IMPRESSION/PLAN item
246 * This is for callback by the find-code popup in IMPPLAN area.
247 * Appends to or erases the current list of diagnoses.
249 function set_related(codetype, code, selector, codedesc) {
250 //target is the index of IMPRESSION[index].code we are searching for.
251 var span = document.getElementById('CODE_'+IMP_target);
252 if ('textContent' in span) {
253 span.textContent = code;
254 } else {
255 span.innerText = code;
257 $('#CODE_'+IMP_target).attr('title',codetype + ':' + code + ' ('+codedesc+')');
259 obj.IMPPLAN_items[IMP_target].code = code;
260 obj.IMPPLAN_items[IMP_target].codetype = codetype;
261 obj.IMPPLAN_items[IMP_target].codedesc = codedesc;
262 obj.IMPPLAN_items[IMP_target].codetext = codetype + ':' + code + ' ('+codedesc+')';
263 // This lists the text for the CODE at the top of the PLAN_
264 // It is already there on mouseover the code itself and is printed in reports//faxes, so it was removed here
265 // obj.IMPPLAN_items[IMP_target].plan = codedesc+"\r"+obj.IMPPLAN_items[IMP_target].plan;
267 if (obj.IMPPLAN_items[IMP_target].PMSFH_link > '') {
268 var data = obj.IMPPLAN_items[IMP_target].PMSFH_link.match(/(.*)_(.*)/);
269 if ((data[1] == "POH")||(data[1] == "PMH")) {
270 obj.PMSFH[data[1]][data[2]].code= code;
271 obj.PMSFH[data[1]][data[2]].codetype = codetype;
272 obj.PMSFH[data[1]][data[2]].codedesc = codedesc;
273 obj.PMSFH[data[1]][data[2]].description = codedesc;
274 obj.PMSFH[data[1]][data[2]].diagnosis = codetype + ':' + code;
275 obj.PMSFH[data[1]][data[2]].codetext = codetype + ':' + code + ' ('+codedesc+')';
276 build_DX_list(obj);
277 update_PMSFH_code(obj.PMSFH[data[1]][data[2]].issue,codetype + ':' +code);
280 store_IMPPLAN(obj.IMPPLAN_items,'1');
282 </script>
283 </head>
284 <body class="bgcolor2" background="<?php echo $GLOBALS['backpic']?>" topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 marginwidth=0 marginheight=0>
285 <?php
286 $input_echo = menu_overhaul_top($pid,$encounter);
287 ?><br /><br />
289 <div id="page-wrapper" data-role="page">
290 <div id="Layer2" name="Layer2" class="nodisplay">
291 </div>
292 <div id="Layer3" name="Layer3" class="container-fluid">
293 <?php
295 $output_priors = priors_select("ALL",$id,$id,$pid);
297 if ($output_priors != '') {
298 // get any orders from the last visit for this visit
299 // $priors[earlier]['PLAN'] contains the orders from last visit
300 // explode '|' and display as needed
302 menu_overhaul_left($pid,$encounter);
306 <!-- start form -->
307 <form method="post" action="<?php echo $rootdir;?>/forms/<?php echo $form_folder; ?>/save.php?mode=update" id="eye_mag" class="eye_mag pure-form" name="eye_mag">
308 <div id="Layer1" name="Layer1" class="display">
309 <div id="warning" name="warning" class="alert alert-warning <?php echo $warning; ?>">
310 <span type="button" class="close" data-dismiss="alert">&times;</span>
311 <h4><?php echo xlt('Warning'); ?>!
312 <?php echo text($warning_text); ?></h4>
313 </div>
315 <!-- start form_container for the main body of the form -->
316 <div class="body_top text-center row" id="form_container" name="form_container">
317 <input type="hidden" name="menustate" id="menustate" value="start">
318 <input type="hidden" name="form_folder" id="form_folder" value="<?php echo attr($form_folder); ?>">
319 <input type="hidden" name="form_id" id="form_id" value="<?php echo attr($form_id); ?>">
320 <input type="hidden" name="pid" id="pid" value="<?php echo attr($pid); ?>">
321 <input type="hidden" name="encounter" id="encounter" value="<?php echo attr($encounter); ?>">
322 <input type="hidden" name="visit_date" id="visit_date" value="<?php echo attr($encounter_date); ?>">
323 <input type="hidden" name="PREFS_VA" id="PREFS_VA" value="<?php echo attr($VA); ?>">
324 <input type="hidden" name="PREFS_W" id="PREFS_W" value="<?php echo attr($W); ?>">
325 <input type="hidden" name="PREFS_W_width" id="PREFS_W_width" value="<?php echo attr($W_width); ?>">
326 <input type="hidden" name="PREFS_MR" id="PREFS_MR" value="<?php echo attr($MR); ?>">
327 <input type="hidden" name="PREFS_MR_width" id="PREFS_MR_width" value="<?php echo attr($MR_width); ?>">
328 <input type="hidden" name="PREFS_CR" id="PREFS_CR" value="<?php echo attr($CR); ?>">
329 <input type="hidden" name="PREFS_CTL" id="PREFS_CTL" value="<?php echo attr($CTL); ?>">
330 <input type="hidden" name="PREFS_VAX" id="PREFS_VAX" value="<?php echo attr($VAX); ?>">
331 <input type="hidden" name="PREFS_ADDITIONAL" id="PREFS_ADDITIONAL" value="<?php echo attr($ADDITIONAL); ?>">
332 <input type="hidden" name="PREFS_CLINICAL" id="PREFS_CLINICAL" value="<?php echo attr($CLINICAL); ?>">
333 <input type="hidden" name="PREFS_IOP" id="PREFS_IOP" value="<?php echo attr($IOP); ?>">
334 <input type="hidden" name="PREFS_EXAM" id="PREFS_EXAM" value="<?php echo attr($EXAM); ?>">
335 <input type="hidden" name="PREFS_CYL" id="PREFS_CYL" value="<?php echo attr($CYLINDER); ?>">
336 <input type="hidden" name="PREFS_HPI_VIEW" id="PREFS_HPI_VIEW" value="<?php echo attr($HPI_VIEW); ?>">
337 <input type="hidden" name="PREFS_EXT_VIEW" id="PREFS_EXT_VIEW" value="<?php echo attr($EXT_VIEW); ?>">
338 <input type="hidden" name="PREFS_ANTSEG_VIEW" id="PREFS_ANTSEG_VIEW" value="<?php echo attr($ANTSEG_VIEW); ?>">
339 <input type="hidden" name="PREFS_RETINA_VIEW" id="PREFS_RETINA_VIEW" value="<?php echo attr($RETINA_VIEW); ?>">
340 <input type="hidden" name="PREFS_NEURO_VIEW" id="PREFS_NEURO_VIEW" value="<?php echo attr($NEURO_VIEW); ?>">
341 <input type="hidden" name="PREFS_ACT_VIEW" id="PREFS_ACT_VIEW" value="<?php echo attr($ACT_VIEW); ?>">
342 <input type="hidden" name="PREFS_PMH_RIGHT" id="PREFS_PMH_RIGHT" value="<?php echo attr($PMH_RIGHT); ?>">
343 <input type="hidden" name="PREFS_HPI_RIGHT" id="PREFS_HPI_RIGHT" value="<?php echo attr($HPI_RIGHT); ?>">
344 <input type="hidden" name="PREFS_EXT_RIGHT" id="PREFS_EXT_RIGHT" value="<?php echo attr($EXT_RIGHT); ?>">
345 <input type="hidden" name="PREFS_ANTSEG_RIGHT" id="PREFS_ANTSEG_RIGHT" value="<?php echo attr($ANTSEG_RIGHT); ?>">
346 <input type="hidden" name="PREFS_RETINA_RIGHT" id="PREFS_RETINA_RIGHT" value="<?php echo attr($RETINA_RIGHT); ?>">
347 <input type="hidden" name="PREFS_NEURO_RIGHT" id="PREFS_NEURO_RIGHT" value="<?php echo attr($NEURO_RIGHT); ?>">
348 <input type="hidden" name="PREFS_IMPPLAN_RIGHT" id="PREFS_IMPPLAN_RIGHT" value="<?php echo attr($IMPPLAN_RIGHT); ?>">
349 <input type="hidden" name="PREFS_PANEL_RIGHT" id="PREFS_PANEL_RIGHT" value="<?php echo attr($PANEL_RIGHT); ?>">
350 <input type="hidden" name="PREFS_KB" id="PREFS_KB" value="<?php echo attr($KB_VIEW); ?>">
351 <input type="hidden" name="PREFS_TOOLTIPS" id="PREFS_TOOLTIPS" value="<?php echo attr($TOOLTIPS); ?>">
352 <input type="hidden" name="ownership" id="ownership" value="<?php echo attr($ownership); ?>">
353 <input type="hidden" name="PREFS_ACT_SHOW" id="PREFS_ACT_SHOW" value="<?php echo attr($ACT_SHOW); ?>">
354 <input type="hidden" name="COPY_SECTION" id="COPY_SECTION" value="">
355 <input type="hidden" name="UNDO_ID" id="UNDO_ID" value="<?php echo attr($UNDO_ID); ?>">
356 <input type="hidden" name="LOCKEDBY" id="LOCKEDBY" value="<?php echo attr($LOCKEDBY); ?>">
357 <input type="hidden" name="LOCKEDDATE" id="LOCKEDDATE" value="<?php echo attr($LOCKEDDATE); ?>">
358 <input type="hidden" name="LOCKED" id="LOCKED" value="<?php echo attr($LOCKED); ?>">
359 <input type="hidden" name="uniqueID" id="uniqueID" value="<?php echo attr($uniqueID); ?>">
360 <input type="hidden" name="chart_status" id="chart_status" value="on">
361 <input type="hidden" name="finalize" id="finalize" value="0">
363 <!-- start first div -->
364 <div id="first" name="first" class="text_clinical">
365 <!-- start HPI spinner -->
366 <div class="loading" id="HPI_sections_loading" name="HPI_sections_loading"><i class="fa fa-spinner fa-spin"></i>
367 </div>
368 <!-- end HPI spinner -->
369 <?php ($CLINICAL =='1') ? ($display_Add = "size100") : ($display_Add = "size50"); ?>
370 <?php ($CLINICAL =='0') ? ($display_Visibility = "display") : ($display_Visibility = "nodisplay"); ?>
371 <!-- start HPI_PMH row -->
372 <div id="HPIPMH_sections" class="nodisplay">
373 <!-- start HPI_section -->
374 <div id="HPI_1" name="HPI_1" class="<?php echo attr($display_Add); ?>">
375 <span class="anchor" id="HPI_anchor"></span>
377 <!-- start HPI Left -->
378 <div id="HPI_left" name="HPI_left" class="exam_section_left borderShadow">
379 <div id="HPI_left_text" class="TEXT_class">
380 <span class="closeButton fa fa-paint-brush" title="<?php echo xla('Open/Close the HPI Canvas'); ?>" id="BUTTON_DRAW_HPI" name="BUTTON_DRAW_HPI"></span>
381 <i class="closeButton_2 fa fa-database" title="<?php echo xla('Open/Close the detailed HPI panel'); ?>" id="BUTTON_QP_HPI" name="BUTTON_QP_HPI"></i>
382 <i class="closeButton_3 fa fa-user-md fa-sm fa-2" name="Shorthand_kb" title="<?php echo xla("Open/Close the Shorthand Window and display Shorthand Codes"); ?>"></i>
384 <b><?php echo xlt('HPI'); ?>:</b> <i class="fa fa-help"></i><br />
385 <div id="tabs_wrapper" >
386 <div id="tabs_container">
387 <ul id="tabs">
388 <li id="tab0_CC" class="inactive"></li>
389 <li id="tab1_CC" class="active" ><a class="fa fa-check" href="#tab1"> <?php echo xlt('CC{{Chief Complaint}}'); ?> 1</a></li>
390 <li id="tab2_CC"><a <?php if ($CC2 >'') echo 'class="fa fa-check"'; ?> href="#tab2"><?php echo xlt('CC{{Chief Complaint}}'); ?> 2</a></li>
391 <li id="tab3_CC"><a <?php if ($CC3 >'') echo 'class="fa fa-check"'; ?> href="#tab3"><?php echo xlt('CC{{Chief Complaint}}'); ?> 3</a></li>
392 </ul>
393 </div>
394 <div id="tabs_content_container" class="borderShadow">
395 <div id="tab1_CC_text" class="tab_content">
396 <table border="0" width="100%" cellspacing="0" cellpadding="0">
397 <tr>
398 <td class="pad10"colspan="2">
399 <div class="kb kb_left">CC</div><b><span title="<?php echo xla('In the patient\'s words'); ?>"><?php echo xlt('Chief Complaint'); ?> 1:
400 </span> </b>
401 <br />
402 <textarea name="CC1" id="CC1" class="HPI_text" tabindex="10"><?php echo text($CC1); ?></textarea>
403 </td>
404 </tr>
405 <tr>
406 <td class="top pad10">
407 <span id="HPI_HELP" title="<?php echo xla('History of Present Illness: A detailed HPI may be completed by using either four or more HPI elements OR the status of three chronic or inactive problems.'); ?>"><?php echo xlt('HPI'); ?>:
408 </span><div class="kb kb_left">HPI</div>
409 <br />
410 <textarea name="HPI1" id="HPI1" class="HPI_text" tabindex="21"><?php echo text($HPI1); ?></textarea>
411 <br />
412 </td>
413 <td class="top pad10"><span id="CHRONIC_HELP" title="<?php echo xla('Chronic/Inactive Problems').":&nbsp\n".xla('document 3 and their status to reach the detailed HPI level')."&nbsp\n";
414 echo "PMH items flagged as Chronic with a comment regarding status will automatically appear here.";?>"><?php echo xlt('Chronic Problems') ?>:</span>
415 <span class="kb_off"><br /></span><div class="kb kb_right">CHRONIC1</div>
416 <textarea name="CHRONIC1" id="CHRONIC1" class="HPI_text chronic_HPI" tabindex="22"><?php echo text($CHRONIC1); ?></textarea>
417 <span class="kb_off"><br /></span><div class="kb kb_right">CHRONIC2</div><textarea name="CHRONIC2" id="CHRONIC2" class="HPI_text chronic_HPI" tabindex="23"><?php echo text($CHRONIC2); ?></textarea>
418 <span class="kb_off"><br /></span><div class="kb kb_right">CHRONIC3</div><textarea name="CHRONIC3" id="CHRONIC3" class="HPI_text chronic_HPI" tabindex="24"><?php echo text($CHRONIC3); ?></textarea>
419 </td>
420 </tr>
421 <tr>
422 <td colspan="2" class="center">
423 <i id="CODE_HIGH_0" name="CODE_HIGH" class="CODE_HIGH fa fa-check nodisplay" value="1"></i>
424 <span id="CODE_HIGH_HELP">
425 <span class="detailed_HPI" name=""><?php echo xlt('Detailed HPI') ?>:</span>
426 <span class="detail_4_elements" name=""><?php echo xlt('> 3 HPI elements'); ?></span> <?php echo xlt('OR{{as in AND/OR, ie. not an abbreviation}}'); ?>
427 <span class="chronic_3_elements"><?php echo xlt('the status of three chronic/inactive problems'); ?></span>
428 </span>
429 </td>
430 </tr>
431 </table>
432 </div>
434 <div id="tab2_CC_text" class="tab_content">
435 <table class="CC_table" border="0" width="100%" cellspacing="0" cellpadding="0">
436 <tr>
437 <td class="top pad10" colspan="2">
438 <b><span title="<?php echo xla('In the patient\'s words'); ?>"><?php echo xlt('Chief Complaint'); ?> 2:
439 </span> </b>
440 <br />
441 <textarea name="CC2" id="CC2" class="HPI_text CC_Box" tabindex="10"><?php echo text($CC2); ?></textarea>
442 </td>
443 </tr>
444 <tr>
445 <td class="top pad10">
446 <span class="HPI_TITLE" title="<?php echo xla('History of Present Illness: A detailed HPI may be completed by using either four or more HPI elements OR the status of three chronic or inactive problems.'); ?>"><?php echo xlt('HPI'); ?> 2:
447 </span>
448 <br />
449 <textarea name="HPI2" id="HPI2" class="HPI_text" tabindex="21"><?php echo text($HPI2); ?></textarea>
450 <br />
451 </td>
452 </tr>
453 </table>
454 </div>
455 <div id="tab3_CC_text" class="tab_content">
456 <table class="CC_table" border="0" width="100%" cellspacing="0" cellpadding="0">
457 <tr>
458 <td class="top pad10" colspan="2">
459 <b><span title="<?php echo xla('In the patient\'s words'); ?>"><?php echo xlt('Chief Complaint'); ?> 3:
460 </span> </b>
461 <br />
462 <textarea name="CC3" id="CC3" class="HPI_text CC_Box" tabindex="10"><?php echo text($CC3); ?></textarea>
463 </td>
464 </tr>
465 <tr>
466 <td class="top pad10">
467 <span class="HPI_TITLE" title="<?php echo xla('History of Present Illness: A detailed HPI may be completed by using either four or more HPI elements OR the status of three chronic or inactive problems.'); ?>"><?php echo xlt('HPI'); ?> 3:
468 </span>
469 <br />
470 <textarea name="HPI3" id="HPI3" class="HPI_text" tabindex="21"><?php echo text($HPI3); ?></textarea>
471 <br />
472 </td>
473 </tr>
474 </table>
475 </div>
476 </div>
477 </div>
479 <?php ($HPI_VIEW !=2) ? ($display_HPI_view = "wide_textarea") : ($display_HPI_view= "narrow_textarea");?>
480 <?php ($display_HPI_view == "wide_textarea") ? ($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?>
481 </div>
482 </div>
483 <!-- end HPI Left -->
485 <!-- start HPI Right -->
486 <div id="HPI_right" name="HPI_right" class="exam_section_right borderShadow">
487 <?php display_draw_section ("HPI",$encounter,$pid); ?>
488 <!-- start QP_HPI_Build -->
489 <div id="QP_HPI" name="QP_HPI" class="QP_class left">
490 <div id="HPI_text_list" name="HPI_text_list">
491 <span class="closeButton fa fa-close pull-right z100" id="BUTTON_TEXTD_HPI" name="BUTTON_TEXTD_HPI" value="1"></span>
492 <b><?php echo xlt('HPI Elements'); ?>:</b> <br />
493 <div id="tabs_wrapper" >
494 <div id="tabs_container">
495 <ul id="tabs">
496 <li id="tab1_HPI_tab" class="active" ><a type="button" <?php if ($CC1 >'') echo 'class="fa fa-check" '; ?> href="#tab1"> <?php echo xlt('HPI'); ?> 1</a></li>
497 <li id="tab2_HPI_tab" ><a <?php if ($CC2 >'') echo 'class="fa fa-check"'; ?> href="#tab2"><?php echo xlt('HPI'); ?> 2</a></li>
498 <li id="tab3_HPI_tab" ><a <?php if ($CC3 >'') echo 'class="fa fa-check"'; ?> href="#tab3"><?php echo xlt('HPI'); ?> 3</a></li>
499 </ul>
500 </div>
501 <div id="tabs_content_container" class="borderShadow">
502 <div id="tab1_HPI_text" class="tab_content">
503 <table>
504 <tr>
505 <td class="right"><b><?php echo xlt('Timing'); ?>:</b></td>
506 <td>
507 <textarea name="TIMING1" id="TIMING1" class="count_HPI" tabindex="30"><?php echo text($TIMING1); ?></textarea>
508 </td>
509 <td><i><?php echo xlt('When and how often?'); ?></i><br /></td>
510 </tr>
511 <tr>
512 <td class="right"><b><?php echo xlt('Context'); ?>:</b></td>
513 <td>
514 <textarea name="CONTEXT1" id="CONTEXT1" class="count_HPI" tabindex="31"><?php echo text($CONTEXT1); ?></textarea>
515 </td>
516 <td>
517 <i><?php echo xlt('Does it occur in certain situations?'); ?></i>
518 </td>
519 </tr>
520 <tr>
521 <td class="right"><b><?php echo xlt('Severity'); ?>:</b></td>
522 <td>
523 <textarea name="SEVERITY1" id="SEVERITY1" class="count_HPI" tabindex="32"><?php echo text($SEVERITY1); ?></textarea>
524 </td>
525 <td><i><?php echo xlt('How bad is it? 0-10, mild, mod, severe?'); ?></i></td>
526 </tr>
527 <tr>
528 <td class="right"><b><?php echo xlt('Modifying'); ?>:</b></td>
529 <td>
530 <textarea name="MODIFY1" id="MODIFY1" class="count_HPI" tabindex="33"><?php echo text($MODIFY1); ?></textarea>
531 </td>
532 <td><i ><?php echo xlt('Does anything make it better? Worse?'); ?></i></td>
533 </tr>
534 <tr>
535 <td class="right"><b><?php echo xlt('Associated'); ?>:</b></td>
536 <td>
537 <textarea name="ASSOCIATED1" id="ASSOCIATED1" class="count_HPI" tabindex="34"><?php echo text($ASSOCIATED1); ?></textarea>
538 </td>
539 <td><i><?php echo xlt('Anything else occur at the same time?'); ?></i></td>
540 </tr>
541 <tr>
542 <td class="right"><b><?php echo xlt('Location'); ?>:</b></td>
543 <td>
544 <textarea name="LOCATION1" id="LOCATION1" class="count_HPI" tabindex="35"><?php echo text($LOCATION1); ?></textarea>
545 </td>
546 <td><i><?php echo xlt('Where on your body does it occur?'); ?></i>
547 </td>
548 </tr>
549 <tr>
550 <td class="right"><b><?php echo xlt('Quality'); ?>:</b></td>
551 <td>
552 <textarea name="QUALITY1" id="QUALITY1" class="count_HPI" tabindex="36"><?php echo text($QUALITY1); ?></textarea>
553 </td>
554 <td>
555 <i><?php echo xlt('eg. aching, burning, radiating pain'); ?></i>
556 </td>
557 </tr>
558 <tr>
559 <td class="right"><b><?php echo xlt('Duration'); ?>:</b></td>
560 <td><textarea name="DURATION1" id="DURATION1" class="count_HPI" tabindex="37"><?php echo text($DURATION1); ?></textarea>
561 </td>
562 <td>
563 <i><?php echo xlt('How long does it last?'); ?></i>
564 </td>
565 </tr>
566 </table>
567 <center>
568 <i id="CODE_HIGH_1" name="CODE_HIGH" class="CODE_HIGH fa fa-check nodisplay" value="1"></i>
569 <span id="CODE_HELP_1">
570 <span class="detailed_HPI"><?php echo xlt('Detailed HPI') ?>:</span>
571 <span class="detail_4_elements"><?php echo xlt('> 3 HPI elements'); ?></span> <?php echo xlt('OR{{as in AND/OR, ie. not an abbreviation}}'); ?>
572 <span class="chronic_3_elements"><?php echo xlt('the status of three chronic/inactive problems'); ?></span>
573 </span>
574 </center>
576 </div>
577 <div id="tab2_HPI_text" class="tab_content">
578 <table>
579 <tr>
580 <td class="right"><b><?php echo xlt('Timing'); ?>:</b></td>
581 <td>
582 <textarea name="TIMING2" id="TIMING2" tabindex="30" class="count_HPI"><?php echo text($TIMING2); ?></textarea>
583 </td>
584 </td><td><i><?php echo xlt('When and how often?'); ?></i><br /></td>
585 </tr>
586 <tr>
587 <td class="right"><b><?php echo xlt('Context'); ?>:</b></td>
588 <td>
589 <textarea name="CONTEXT2" id="CONTEXT2" tabindex="31" class="count_HPI"><?php echo text($CONTEXT2); ?></textarea>
590 <br />
591 </td>
592 <td>
593 <i><?php echo xlt('Does it occur in certain situations?'); ?></i><br />
594 </td>
595 </tr>
596 <tr>
597 <td class="right"><b><?php echo xlt('Severity'); ?>:</b></td>
598 <td>
599 <textarea name="SEVERITY2" id="SEVERITY2" tabindex="32"><?php echo text($SEVERITY2); ?></textarea>
600 </td>
601 <td><i><?php echo xlt('How bad is it? 0-10, mild, mod, severe?'); ?></i>
602 </td>
603 </tr>
604 <tr>
605 <td class="right"><b><?php echo xlt('Modifying'); ?>:</b></td>
606 <td>
607 <textarea name="MODIFY2" id="MODIFY2" tabindex="33" class="count_HPI"><?php echo text($MODIFY2); ?></textarea>
608 </td>
609 <td><i ><?php echo xlt('Does anything make it better? Worse?'); ?></i>
610 </td>
611 </tr>
612 <tr>
613 <td class="right"><b><?php echo xlt('Associated'); ?>:</b></td>
614 <td>
615 <textarea name="ASSOCIATED2" id="ASSOCIATED2" tabindex="34" class="count_HPI"><?php echo text($ASSOCIATED2); ?></textarea>
616 </td>
617 <td><i><?php echo xlt('Anything else occur at the same time?'); ?></i>
618 </td>
619 </tr>
620 <tr>
621 <td class="right"><b><?php echo xlt('Location'); ?>:</b></td>
622 <td>
623 <textarea name="LOCATION2" id="LOCATION2" tabindex="35" class="count_HPI"><?php echo text($LOCATION2); ?></textarea>
624 </td>
625 <td><i><?php echo xlt('Where on your body does it occur?'); ?></i>
626 </td>
627 </tr>
628 <tr>
629 <td class="right"><b><?php echo xlt('Quality'); ?>:</b></td>
630 <td>
631 <textarea name="QUALITY2" id="QUALITY2" tabindex="36" class="count_HPI"><?php echo text($QUALITY2); ?></textarea>
633 </td><td>
634 <i><?php echo xlt('eg. aching, burning, radiating pain'); ?></i>
635 </td>
636 </tr>
637 <tr>
638 <td class="right"><b><?php echo xlt('Duration'); ?>:</b></td>
639 <td><textarea name="DURATION2" id="DURATION2" tabindex="37" class="count_HPI"><?php echo text($DURATION2); ?></textarea>
640 </td>
641 <td>
642 <i><?php echo xlt('How long does it last?'); ?></i>
643 </td>
644 </tr>
645 </table>
646 <center>
647 <i id="CODE_HIGH_2" name="CODE_HIGH" class="CODE_HIGH fa fa-check nodisplay" value="1"></i>
648 <span id="CODE_HELP_2">
649 <span class="detailed_HPI"><?php echo xlt('Detailed HPI') ?>:</span>
650 <span class="detail_4_elements"><?php echo xlt('> 3 HPI elements'); ?></span> <?php echo xlt('OR{{as in AND/OR, ie. not an abbreviation}}'); ?>
651 <span class="chronic_3_elements"><?php echo xlt('the status of three chronic/inactive problems'); ?></span>
652 </span>
653 </center>
654 </div>
655 <div id="tab3_HPI_text" class="tab_content">
656 <table>
657 <tr>
658 <td class="right"><b><?php echo xlt('Timing'); ?>:</b></td>
659 <td>
660 <textarea name="TIMING3" id="TIMING3" tabindex="30" class="count_HPI"><?php echo text($TIMING3); ?></textarea>
661 </td>
662 <td><i><?php echo xlt('When and how often?'); ?></i></td>
663 </tr>
664 <tr>
665 <td class="right"><b><?php echo xlt('Context'); ?>:</b></td>
666 <td>
667 <textarea name="CONTEXT3" id="CONTEXT3" tabindex="31" class="count_HPI"><?php echo text($CONTEXT3); ?></textarea>
668 </td>
669 <td><i><?php echo xlt('Does it occur in certain situations?'); ?></i></td>
670 </tr>
671 <tr>
672 <td class="right"><b><?php echo xlt('Severity'); ?>:</b></td>
673 <td>
674 <textarea name="SEVERITY3" id="SEVERITY3" tabindex="32" class="count_HPI"><?php echo text($SEVERITY3); ?></textarea>
675 </td>
676 <td><i><?php echo xlt('How bad is it? 0-10, mild, mod, severe?'); ?></i></td>
677 </tr>
678 <tr>
679 <td class="right"><b><?php echo xlt('Modifying'); ?>:</b></td>
680 <td>
681 <textarea name="MODIFY3" id="MODIFY3" tabindex="33" class="count_HPI"><?php echo text($MODIFY3); ?></textarea>
682 </td>
683 <td><i ><?php echo xlt('Does anything make it better? Worse?'); ?></i></td>
684 </tr>
685 <tr>
686 <td class="right"><b><?php echo xlt('Associated'); ?>:</b></td>
687 <td>
688 <textarea name="ASSOCIATED3" id="ASSOCIATED3" tabindex="34" class="count_HPI"><?php echo text($ASSOCIATED3); ?></textarea>
689 </td>
690 <td><i><?php echo xlt('Anything else occur at the same time?'); ?></i></td>
691 </tr>
692 <tr>
693 <td class="right"><b><?php echo xlt('Location'); ?>:</b></td>
694 <td>
695 <textarea name="LOCATION3" id="LOCATION3" tabindex="35" class="count_HPI"><?php echo text($LOCATION3); ?></textarea>
696 </td>
697 <td><i><?php echo xlt('Where on your body does it occur?'); ?></i>
698 </td>
699 </tr>
700 <tr>
701 <td class="right"><b><?php echo xlt('Quality'); ?>:</b></td>
702 <td>
703 <textarea name="QUALITY3" id="QUALITY3" tabindex="36" class="count_HPI"><?php echo text($QUALITY3); ?></textarea>
704 </td>
705 <td><i><?php echo xlt('eg. aching, burning, radiating pain'); ?></i></td>
706 </tr>
707 <tr>
708 <td class="right"><b><?php echo xlt('Duration'); ?>:</b></td>
709 <td>
710 <textarea name="DURATION3" id="DURATION3" tabindex="37" class="count_HPI"><?php echo text($DURATION3); ?></textarea>
711 </td>
712 <td><i><?php echo xlt('How long does it last?'); ?></i></td>
713 </tr>
714 </table>
715 <center>
716 <i id="CODE_HIGH_3" name="CODE_HIGH" class="CODE_HIGH fa fa-check nodisplay" value="1"></i>
717 <span ID="CODE_HELP_3">
718 <span class="detailed_HPI"><?php echo xlt('Detailed HPI') ?>:</span>
719 <span class="detail_4_elements"><?php echo xlt('> 3 HPI elements'); ?></span> <?php echo xlt('OR{{as in AND/OR, ie. not an abbreviation}}'); ?>
720 <span class="chronic_3_elements"><?php echo xlt('the status of three chronic/inactive problems'); ?></span>
721 </span>
722 </center>
723 </div>
724 </div>
725 </div>
726 </div>
727 </div>
728 <!-- end QP_HPI -->
729 </div>
730 <!-- end HPI Right -->
731 </div>
732 <!-- end HPI_section -->
733 <!-- start PMH_section -->
734 <div id="PMH_1" name="PMH_1" class="<?php echo attr($display_Add); ?> clear_both">
735 <span class="anchor" id="PMH_anchor"></span>
736 <!-- start PMH Left -->
737 <div id="PMH_left" name="PMH_left" class="exam_section_left borderShadow">
738 <div id="PMH_left_text" class="TEXT_class">
739 <b class="left"><?php echo xlt('PMSFH{{Abbreviation for Past medical Surgical Family and Social History}}'); ?>:</b> <i class="fa fa-help"></i><br />
740 <span class="closeButton_2 fa fa-paint-brush" title="<?php echo xla('Open/Close the PMH draw panel'); ?>" id="BUTTON_DRAW_PMH" name="BUTTON_DRAW_PMH"></span>
741 <i class="closeButton_3 fa fa-database" title="<?php echo xla('Open/Close the PMSFH summary panel'); ?>" id="BUTTON_QP_PMH" name="BUTTON_QP_PMH"></i>
742 <i class="closeButton_4 fa fa-user-md fa-sm fa-2" name="Shorthand_kb" title="<?php echo xla("Open/Close the Shorthand Window and display Shorthand Codes"); ?>"></i>
743 <a class="closeButton fa fa-list" title="<?php echo xla('Toggle the right-sided PMSFH panel'); ?>" id="right-panel-link" name="right-panel-link" href="#right-panel"></a>
745 <?php ($PMH_VIEW !=2) ? ($display_PMH_view = "wide_textarea") : ($display_PMH_view= "narrow_textarea");?>
746 <?php ($display_PMH_view == "wide_textarea") ? ($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?>
747 <div id="PMSFH_sections" name="PMSFH_sections">
748 <div id="Enter_PMH" name="Enter_PMH" class="PMH_class">
749 <center>
750 <iframe id="iframe" name="iframe"
751 src="../../forms/eye_mag/a_issue.php?uniqueID=<?php echo $uniqueID; ?>&form_type=POH&pid=<?php echo $pid; ?>&encounter=<?php echo $encounter; ?>&form_id=<?php echo $form_id; ?>"
752 width="480" height="340" scrolling= "yes" frameBorder= "0" >
753 </iframe>
754 </center>
755 </div>
756 </div>
757 </div>
758 </div>
759 <!-- end PMH Left -->
760 <!-- start PMH Right -->
761 <div id="PMH_right" name="PMH_right" class="exam_section_right borderShadow">
762 <a class="nodisplay left_PMSFH_tab" id="right-panel-link" href="#right-panel">
763 <img src="<?php echo $GLOBALS['webroot']; ?>/interface/forms/eye_mag/images/PMSFHx.png">
764 </a>
765 <span class="fa fa-close pull-right closeButton" id="BUTTON_TEXTD_PMH" name="BUTTON_TEXTD_PMH" value="1"></span>
766 <?php display_draw_section("PMH",$encounter,$pid); ?>
767 <div id="QP_PMH" name="QP_PMH" class="QP_class" style="max-height:100%">
768 <?php echo display_PRIOR_section("PMSFH",$id,$id,$pid); ?>
769 </div>
770 </div>
771 <!-- end PMH Right -->
772 </div>
773 <!-- end PMH_section -->
774 </div>
775 <!-- end HPI_PMH row -->
776 </div>
777 <!-- end first div -->
779 <div id="clinical_anchor" name="clinical_anchor" class="clear_both"></div>
780 <br />
782 <!-- start of the CLINICAL BOX -->
783 <?php
784 $display_W_1 = "nodisplay";
785 $display_W_2 = "nodisplay";
786 $display_W_3 = "nodisplay";
787 $display_W_4 = "nodisplay";
788 $RX_count='1';
790 $query = "select * from form_eye_mag_wearing where PID=? and FORM_ID=? and ENCOUNTER=? ORDER BY RX_NUMBER";
791 $wear = sqlStatement($query,array($pid,$form_id,$encounter));
792 while ($wearing = sqlFetchArray($wear)) {
793 $count_rx++;
794 ${"display_W_$count_rx"} = '';
795 ${"ODSPH_$count_rx"} = $wearing['ODSPH'];
796 ${"ODCYL_$count_rx"} = $wearing['ODCYL'];
797 ${"ODAXIS_$count_rx"} = $wearing['ODAXIS'];
798 ${"OSSPH_$count_rx"} = $wearing['OSSPH'];
799 ${"OSCYL_$count_rx"} = $wearing['OSCYL'];
800 ${"OSAXIS_$count_rx"} = $wearing['OSAXIS'];
801 ${"ODMIDADD_$count_rx"} = $wearing['ODMIDADD'];
802 ${"OSMIDADD_$count_rx"} = $wearing['OSMIDADD'];
803 ${"ODADD_$count_rx"} = $wearing['ODADD'];
804 ${"OSADD_$count_rx"} = $wearing['OSADD'];
805 ${"ODVA_$count_rx"} = $wearing['ODVA'];
806 ${"OSVA_$count_rx"} = $wearing['OSVA'];
807 ${"ODNEARVA_$count_rx"} = $wearing['ODNEARVA'];
808 ${"OSNEARVA_$count_rx"} = $wearing['OSNEARVA'];
809 ${"ODPRISM_$count_rx"} = $wearing['ODPRISM'];
810 ${"OSPRISM_$count_rx"} = $wearing['OSPRISM'];
811 ${"W_$count_rx"} = '1';
812 ${"RX_TYPE_$count_rx"} = $wearing['RX_TYPE'];
813 ${"ODHPD_$count_rx"} = $wearing['ODHPD'];
814 ${"ODHBASE_$count_rx"} = $wearing['ODHBASE'];
815 ${"ODVPD_$count_rx"} = $wearing['ODVPD'];
816 ${"ODVBASE_$count_rx"} = $wearing['ODVBASE'];
817 ${"ODSLABOFF_$count_rx"} = $wearing['ODSLABOFF'];
818 ${"ODVERTEXDIST_$count_rx"} = $wearing['ODVERTEXDIST'];
819 ${"OSHPD_$count_rx"} = $wearing['OSHPD'];
820 ${"OSHBASE_$count_rx"} = $wearing['OSHBASE'];
821 ${"OSVPD_$count_rx"} = $wearing['OSVPD'];
822 ${"OSVBASE_$count_rx"} = $wearing['OSVBASE'];
823 ${"OSSLABOFF_$count_rx"} = $wearing['OSSLABOFF'];
824 ${"OSVERTEXDIST_$count_rx"} = $wearing['OSVERTEXDIST'];
825 ${"ODMPDD_$count_rx"} = $wearing['ODMPDD'];
826 ${"ODMPDN_$count_rx"} = $wearing['ODMPDN'];
827 ${"OSMPDD_$count_rx"} = $wearing['OSMPDD'];
828 ${"OSMPDN_$count_rx"} = $wearing['OSMPDN'];
829 ${"BPDD_$count_rx"} = $wearing['BPDD'];
830 ${"BPDN_$count_rx"} = $wearing['BPDN'];
831 ${"LENS_MATERIAL_$count_rx"} = $wearing['LENS_MATERIAL'];
832 ${"LENS_TREATMENTS_$count_rx"} = $wearing['LENS_TREATMENTS'];
833 ${"COMMENTS_$count_rx"} = $wearing['COMMENTS'];
836 <div class="loading row clear_both" id="LayerTechnical_sections_loading" name="LayerTechnical_sections_loading"><i class="fa fa-spinner fa-spin"></i>
837 </div>
838 <div class="clear_both row" id="LayerTechnical_sections_1" name="LayerTechnical_sections" >
839 <!-- start of the Mood BOX -->
840 <div id="LayerMood" class="vitals">
841 <div id="Lyr2.9" class="top_left">
842 <th class="text_clinical" nowrap><b id="MS_tab"><?php echo xlt('Mental Status'); ?>:</b></th>
843 </div>
844 <br />
845 <input type="checkbox" name="alert" id="alert" <?php if ($alert) echo "checked='checked'"; ?> value="1">
846 <label for="alert" class="input-helper input-helper--checkbox"><?php echo xlt('Alert'); ?></label><br />
847 <input type="checkbox" name="oriented" id="oriented" <?php if ($oriented) echo "checked='checked'"; ?> value="1">
848 <label for="oriented" class="input-helper input-helper--checkbox"><?php echo xlt('Oriented TPP{{oriented to person and place}}'); ?></label><br />
849 <input type="checkbox" name="confused" id="confused" <?php if ($confused) echo "checked='checked'"; ?> value="1">
850 <label for="confused" class="input-helper input-helper--checkbox"><?php echo xlt('Mood/Affect Nml{{Mood and affect normal}}'); ?></label><br />
852 </div>
853 <!-- end of the Mood BOX -->
855 <!-- start of the VISION BOX -->
856 <div id="LayerVision" class="vitals">
857 <div id="Lyr30" class="top_left">
858 <th class="text_clinical"><b id="vision_tab" title="Show/hide the refraction panels"><?php echo xlt('Vision'); ?>:</b></th>
859 </div>
860 <?php
861 //if the prefs show a field, ie visible, the highlight the zone.
862 if ($W == '1') $button_W = "buttonRefraction_selected";
863 if ($MR == '1') $button_MR = "buttonRefraction_selected";
864 if ($CR == '1') $button_AR = "buttonRefraction_selected";
865 if ($CTL == '1') $button_CTL = "buttonRefraction_selected";
866 if ($ADDITIONAL == '1') $button_ADDITIONAL = "buttonRefraction_selected";
867 if ($VAX == '1') $button_VAX = "buttonRefraction_selected";
869 <div class="top_right">
870 <span id="tabs">
871 <ul>
872 <li id="LayerVision_W_lightswitch" class="<?php echo attr($button_W); ?>" value="Current" title="<?php echo xla("Display the patient's current glasses"); ?>"><?php echo xlt('W{{Current Rx - wearing}}'); ?></li> |
873 <li id="LayerVision_MR_lightswitch" class="<?php echo attr($button_MR); ?>" value="Auto" title="<?php echo xla("Display the Manifest Refraction panel"); ?>"><?php echo xlt('MR{{Manifest Refraction}}'); ?></li> |
874 <li id="LayerVision_CR_lightswitch" class="<?php echo attr($button_AR); ?>" value="Cyclo" title="<?php echo xla("Display the Autorefraction Panel"); ?>"><?php echo xlt('AR{{autorefraction}}'); ?></li> |
875 <li id="LayerVision_CTL_lightswitch" class="<?php echo attr($button_CTL); ?>" value="Contact Lens" title="<?php echo xla("Display the Contact Lens Panel"); ?>"><?php echo xlt('CTL{{Contact Lens}}'); ?></li> |
876 <li id="LayerVision_ADDITIONAL_lightswitch" class="<?php echo attr($button_ADDITIONAL); ?>" value="Additional" title="<?php echo xla("Display Additional measurements (Ks, IOL cals, etc)"); ?>"><?php echo xlt('Add.{{Additional Measurements}}'); ?></li> |
877 <li id="LayerVision_VAX_lightswitch" class="<?php echo attr($button_VAX); ?>" value="Visual Acuities" title="<?php echo xla("Summary of Acuities for this patient"); ?>"><?php echo xlt('Va{{Visual Acuities}}'); ?></li>
878 </ul>
879 </span>
880 </div>
882 <div id="Lyr31">
883 <font><?php echo xlt('V{{One letter abbrevation for Vision}}'); ?></font>
884 <font></font>
885 </div>
886 <div id="Visions_A" name="Visions_A">
887 <b>OD </b>
888 <input type="TEXT" tabindex="40" id="SCODVA" name="SCODVA" value="<?php echo attr($SCODVA); ?>">
889 <input type="TEXT" tabindex="42" id="ODVA_1_copy" name="ODVA_1_copy" value="<?php echo attr($ODVA_1); ?>">
890 <input type="TEXT" tabindex="44" id="PHODVA_copy" name="PHODVA_copy" value="<?php echo attr($PHODVA); ?>">
891 <br />
892 <b>OS </b>
893 <input type="TEXT" tabindex="41" id="SCOSVA" name="SCOSVA" value="<?php echo attr($SCOSVA); ?>">
894 <input type="TEXT" tabindex="43" id="OSVA_1_copy" name="OSVA_1_copy" value="<?php echo attr($OSVA_1); ?>">
895 <input type="TEXT" tabindex="45" id="PHOSVA_copy" name="PHOSVA_copy" value="<?php echo attr($PHOSVA); ?>">
896 <br />
897 <span id="more_visions_1" name="more_visions_1"><b><?php echo xlt('Acuity'); ?></b> </span>
898 <span><b><?php echo xlt('SC{{without correction}}'); ?></b></span>
899 <span><b><?php echo xlt('CC{{with correction}}'); ?></b></span>
900 <span><b><?php echo xlt('PH{{pinhole acuity}}'); ?></b></span>
901 </div>
902 <div id="Visions_B" name="Visions_B" class="nodisplay">
903 <b><?php echo xlt('OD'); ?> </b>
904 <input type="TEXT" tabindex="46" id="ARODVA_copy" name="ARODVA_copy" value="<?php echo attr($ARODVA); ?>">
905 <input type="TEXT" tabindex="48" id="MRODVA_copy" name="MRODVA_copy" value="<?php echo attr($MRODVA); ?>">
906 <input type="TEXT" tabindex="50" id="CRODVA_copy" name="CRODVA_copy" value="<?php echo attr($CRODVA); ?>">
907 <br />
908 <b><?php echo xlt('OS'); ?> </b>
909 <input type="TEXT" tabindex="47" id="AROSVA_copy" name="AROSVA_copy" value="<?php echo attr($AROSVA); ?>">
910 <input type="TEXT" tabindex="49" id="MROSVA_copy" name="MROSVA_copy" value="<?php echo attr($MROSVA); ?>">
911 <input type="TEXT" tabindex="51" id="CROSVA_copy" name="CROSVA_copy" value="<?php echo attr($CROSVA); ?>">
912 <br />
913 <span id="more_visions_2" name="more_visions_2"><b><?php echo xlt('Acuity'); ?></b> </span>
914 <span><b><?php echo xlt('AR{{Autorefraction Acuity}}'); ?></b></span>
915 <span><b><?php echo xlt('MR{{Manifest Refraction}}'); ?></b></span>
916 <span><b><?php echo xlt('CR{{Cycloplegic Refraction}}'); ?></b></span>
917 </div>
918 </div>
919 <!-- end of the VISION BOX -->
921 <!-- START OF THE PRESSURE BOX -->
922 <div id="LayerTension" class="vitals">
924 <span title="Display the Glaucoma Flow Sheet" id="LayerVision_IOP_lightswitch" name="LayerVision_IOP_lightswitch" class="closeButton fa fa-line-chart" id="IOP_Graph" name="IOP_Graph"></span>
925 <!-- -->
926 <div id="Lyr40">
927 <span class="top_left">
928 <b id="tension_tab"><?php echo xlt('Tension'); ?>:</b>
929 <div>
930 <?php
931 if (($IOPTIME == '00:00:00')||(!$IOPTIME)) {
932 $IOPTIME = date('G:i A');
934 $show_IOPTIME = date('g:i A',strtotime($IOPTIME));
936 <input type="text" name="IOPTIME" id="IOPTIME" tabindex="-1" value="<?php echo attr($show_IOPTIME); ?>">
938 </div>
939 </span>
940 </div>
941 <div id="Lyr41">
942 <font><?php echo xlt('T{{one letter abbreviation for Tension/Pressure}}'); ?></font>
943 </div>
944 <div id="Lyr42">
945 <b><?php echo xlt('OD{{right eye}}'); ?></b>
946 <input type="text" tabindex="52" name="ODIOPAP" id="ODIOPAP" value="<?php echo attr($ODIOPAP); ?>">
947 <input type="text" tabindex="54" name="ODIOPTPN" id="ODIOPTPN" value="<?php echo attr($ODIOPTPN); ?>">
948 <input type="text" name="ODIOPFTN" id="ODIOPFTN" value="<?php echo attr($ODIOPFTN); ?>">
949 <br />
950 <b><?php echo xlt('OS{{left eye}}'); ?> </b>
951 <input type="text" tabindex="53" name="OSIOPAP" id="OSIOPAP" value="<?php echo attr($OSIOPAP); ?>">
952 <input type="text" tabindex="55" name="OSIOPTPN" id="OSIOPTPN" value="<?php echo attr($OSIOPTPN); ?>">
953 <input type="text" name="OSIOPFTN" id="OSIOPFTN" value="<?php echo attr($OSIOPFTN); ?>">
954 <br /><br />
955 <span name="IOP_AP"><b><?php echo xlt('AP{{applanation}}'); ?></b></span>
956 <span name="IOP_TPN"><b><?php echo xlt('TP{{tonopen}}'); ?></b></span>
957 <span name="IOP_FT"><b><?php echo xlt('FT{{finger tension}}'); ?></b></span>
958 </div>
959 </div>
960 <!-- END OF THE PRESSURE BOX -->
962 <!-- start of the Amsler box -->
963 <div id="LayerAmsler" class="vitals">
964 <div id="Lyr50">
965 <span class="top_left">
966 <b><?php echo xlt('Amsler'); ?>:</b>
967 </span>
968 </div>
969 <?php
970 if (!$AMSLEROD) $AMSLEROD= "0";
971 if (!$AMSLEROS) $AMSLEROS= "0";
972 if ($AMSLEROD || $AMSLEROS) {
973 $checked = 'value="0"';
974 } else {
975 $checked = 'value="1" checked';
979 <input type="hidden" id="AMSLEROD" name="AMSLEROD" value='<?php echo attr($AMSLEROD); ?>'>
980 <input type="hidden" id="AMSLEROS" name="AMSLEROS" value='<?php echo attr($AMSLEROS); ?>'>
982 <div id="Lyr501">
983 <label for="Amsler-Normal" class="input-helper input-helper--checkbox"><?php echo xlt('Normal'); ?></label>
984 <input id="Amsler-Normal" type="checkbox" <?php echo attr($checked); ?> tabindex="56">
985 </div>
986 <div id="Lyr51">
987 <table cellpadding=0 cellspacing=0>
988 <tr>
989 <td colspan=3 class="center"><b><?php echo xlt('OD{{right eye}}'); ?></b>
990 </td>
991 <td></td>
992 <td colspan=3 class="center"><b><?php echo xlt('OS{{left eye}}'); ?></b>
993 </td>
994 </tr>
996 <tr>
997 <td colspan=3>
998 <img src="../../forms/<?php echo $form_folder; ?>/images/Amsler_<?php echo attr($AMSLEROD); ?>.jpg" id="AmslerOD" /></td>
999 <td></td>
1000 <td colspan=3>
1001 <img src="../../forms/<?php echo $form_folder; ?>/images/Amsler_<?php echo attr($AMSLEROS); ?>.jpg" id="AmslerOS" />
1002 </td>
1003 </tr>
1004 <tr>
1005 <td colspan=3 class="center">
1006 <div class="AmslerValue">
1007 <span id="AmslerODvalue"><?php echo text($AMSLEROD); ?></span>/5
1008 </div>
1009 </td>
1010 <td></td>
1011 <td colspan=3 style="text-align:center;">
1012 <div class="AmslerValue">
1013 <span id="AmslerOSvalue"><?php echo text($AMSLEROS); ?></span>/5
1014 </div>
1015 </td>
1016 </tr>
1017 </table>
1018 </div>
1019 </div>
1020 <!-- end of the Amsler box -->
1022 <!-- start of the Fields box -->
1023 <div id="LayerFields" class="vitals">
1024 <div>
1025 <span class="top_left"><b id="fields"><?php echo xlt('Fields{{visual fields}}'); ?>:</b></span>
1026 </div>
1027 <?php
1028 // if the VF zone is checked, display it
1029 // if ODVF1 = 1 (true boolean) the value="0" checked="true"
1030 $bad='';
1031 for ($z=1; $z <5; $z++) {
1032 $ODzone = "ODVF".$z;
1033 if ($$ODzone =='1') {
1034 $ODVF[$z] = 'checked value=1';
1035 $bad++;
1036 } else {
1037 $ODVF[$z] = 'value=0';
1039 $OSzone = "OSVF".$z;
1040 if ($$OSzone =="1") {
1041 $OSVF[$z] = 'checked value=1';
1042 $bad++;
1043 } else {
1044 $OSVF[$z] = 'value=0';
1047 if (!$bad) $VFFTCF = "checked";
1049 <div id="Lyr60">
1050 <label for="FieldsNormal" class="input-helper input-helper--checkbox"><?php echo xlt('FTCF{{Full to count fingers}}'); ?></label>
1051 <input id="FieldsNormal" type="checkbox" value="1" <?php echo attr($VFFTCF); ?>>
1052 </div>
1053 <div id="Lyr511">
1054 <table cellpadding="1" cellspacing="1">
1055 <tr>
1056 <td class="center" colspan="2"><b><?php echo xlt('OD{{right eye}}'); ?></b><br /></td>
1057 <td>&nbsp;&nbsp;</td>
1058 <td class="center" colspan="2"><b><?php echo xlt('OS{{left eye}}'); ?></b></td>
1059 </tr>
1060 <tr>
1061 <td class="VF_1">
1062 <input name="ODVF1" id="ODVF1" type="checkbox" <?php echo attr($ODVF['1'])?> class="hidden">
1063 <label for="ODVF1" class="input-helper input-helper--checkbox boxed"></label>
1064 </td>
1065 <td class="VF_2">
1066 <input name="ODVF2" id="ODVF2" type="checkbox" <?php echo attr($ODVF['2'])?> class="hidden">
1067 <label for="ODVF2" class="input-helper input-helper--checkbox boxed"></label>
1068 </td>
1069 <td></td>
1070 <td class="VF_1">
1071 <input name="OSVF1" id="OSVF1" type="checkbox" <?php echo attr($OSVF['1']); ?> class="hidden" >
1072 <label for="OSVF1" class="input-helper input-helper--checkbox boxed"></label>
1073 </td>
1074 <td class="VF_2">
1075 <input name="OSVF2" id="OSVF2" type="checkbox" <?php echo attr($OSVF['2']); ?> class="hidden">
1076 <label for="OSVF2" class="input-helper input-helper--checkbox boxed"> </label>
1077 </td>
1078 </tr>
1079 <tr>
1080 <td class="VF_3">
1081 <input name="ODVF3" id="ODVF3" type="checkbox" class="hidden" <?php echo attr($ODVF['3']); ?>>
1082 <label for="ODVF3" class="input-helper input-helper--checkbox boxed"></label>
1083 </td>
1084 <td class="VF_4">
1085 <input name="ODVF4" id="ODVF4" type="checkbox" class="hidden" <?php echo attr($ODVF['4']); ?>>
1086 <label for="ODVF4" class="input-helper input-helper--checkbox boxed"></label>
1087 </td>
1088 <td></td>
1089 <td class="VF_3">
1090 <input name="OSVF3" id="OSVF3" type="checkbox" class="hidden" <?php echo attr($OSVF['3']); ?>>
1091 <label for="OSVF3" class="input-helper input-helper--checkbox boxed"></label>
1092 </td>
1093 <td class="VF_4">
1094 <input name="OSVF4" id="OSVF4" type="checkbox" class="hidden" <?php echo attr($OSVF['4']); ?>>
1095 <label for="OSVF4" class="input-helper input-helper--checkbox boxed"></label>
1096 </td>
1097 </tr>
1098 </table>
1099 </div>
1100 </div>
1101 <!-- end of the Fields box -->
1103 <!-- start of the Pupils box -->
1104 <div id="LayerPupils" class="vitals">
1105 <span class="top_left"><b id="pupils"><?php echo xlt('Pupils'); ?>:</b> </span>
1106 <div id="Lyr701">
1107 <label for="PUPIL_NORMAL" class="input-helper input-helper--checkbox"><?php echo xlt('Normal'); ?></label>
1108 <input id="PUPIL_NORMAL" name="PUPIL_NORMAL" type="checkbox" <?php if ($PUPIL_NORMAL =='1') echo 'checked="checked" value="1"'; ?>>
1109 </div>
1110 <div id="Lyr70">
1111 <table>
1112 <tr>
1113 <th> &nbsp;
1114 </th>
1115 <th><?php echo xlt('size'); ?> (<?php echo xlt('mm{{millimeters}}'); ?>)
1116 </th>
1117 <th><?php echo xlt('react{{reactivity}}'); ?>
1118 </th>
1119 <th><?php echo xlt('APD{{afferent pupillary defect}}'); ?>
1120 </th>
1121 </tr>
1122 <tr>
1123 <td><b><?php echo xlt('OD{{right eye}}'); ?></b>
1124 </td>
1125 <td class="pupil_1">
1126 <input type="text" id="ODPUPILSIZE1" name="ODPUPILSIZE1" value="<?php echo attr($ODPUPILSIZE1); ?>">
1127 <font>&#8594;</font>
1128 <input type="text" id="ODPUPILSIZE2" size="1" name="ODPUPILSIZE2" value="<?php echo attr($ODPUPILSIZE2); ?>">
1129 </td>
1130 <td class="pupil_2">
1131 <input type="text" class="pupil_input_2" name='ODPUPILREACTIVITY' id='ODPUPILREACTIVITY' value='<?php echo attr($ODPUPILREACTIVITY); ?>'>
1132 </td>
1133 <td class="pupil_3">
1134 <input type="text" class="pupil_input_2" name="ODAPD" id='ODAPD' value='<?php echo attr($ODAPD); ?>'>
1135 </td>
1136 </tr>
1137 <tr>
1138 <td><b><?php echo xlt('OS{{left eye}}'); ?></b>
1139 </td>
1140 <td class="pupil_4">
1141 <input type="text" size="1" name="OSPUPILSIZE1" id="OSPUPILSIZE1" class="pupil_input" value="<?php echo attr($OSPUPILSIZE1); ?>">
1142 <font>&#8594;</font>
1143 <input type="text" size="1" name="OSPUPILSIZE2" id="OSPUPILSIZE2" class="pupil_input" value="<?php echo attr($OSPUPILSIZE2); ?>">
1144 </td>
1145 <td class="pupil_5">
1146 <input type="text" class="pupil_input_2" name='OSPUPILREACTIVITY' id='OSPUPILREACTIVITY' value="<?php echo attr($OSPUPILREACTIVITY); ?>">
1147 </td>
1148 <td class="pupil_6">
1149 <input type="text" class="pupil_input_2" name="OSAPD" id="OSAPD" value='<?php echo attr($OSAPD); ?>'>
1150 </td>
1151 </tr>
1152 </table>
1153 </div>
1154 </div>
1155 <!-- end of the Pupils box -->
1157 <br />
1158 <!-- end of the CLINICAL BOX -->
1159 <!-- start of slide down pupils_panel -->
1160 <?php ($DIMODPUPILSIZE != '') ? ($display_dim_pupils_panel = "display") : ($display_dim_pupils_panel = "nodisplay"); ?>
1161 <div id="dim_pupils_panel" name="dim_pupils_panel" class="vitals <?php echo attr($display_dim_pupils_panel); ?>"
1162 <span class="top_left"><b id="pupils_DIM"><?php echo xlt('Pupils') ?>: <?php echo xlt('Dim'); ?></b> </span>
1163 <div id="Lyr71">
1164 <table>
1165 <tr>
1166 <th></th>
1167 <th><?php echo xlt('size'); ?> (<?php echo xlt('mm{{millimeters}}'); ?>)</th>
1168 </tr>
1169 <tr>
1170 <td><b><?php echo xlt('OD{{right eye}}'); ?></b>
1171 </td>
1172 <td claa="border-bottom">
1173 <input type="text" id ="DIMODPUPILSIZE1" name="DIMODPUPILSIZE1" value='<?php echo attr($DIMODPUPILSIZE1); ?>'>
1174 <font>&#8594;</font>
1175 <input type="text" id ="DIMODPUPILSIZE2"name="DIMODPUPILSIZE2" value='<?php echo attr($DIMODPUPILSIZE2); ?>'>
1176 </td>
1177 </tr>
1178 <tr>
1179 <td ><b><?php echo xlt('OS{{left eye}}'); ?></b>
1180 </td>
1181 <td class="border-top">
1182 <input type="text" name="DIMOSPUPILSIZE1" id="DIMOSPUPILSIZE1" value="<?php echo attr($DIMOSPUPILSIZE1); ?>">
1183 <font>&#8594;</font>
1184 <input type="text" name="DIMOSPUPILSIZE2" id="DIMOSPUPILSIZE2" value="<?php echo attr($DIMOSPUPILSIZE2); ?>">
1185 </td>
1186 </tr>
1187 </table>
1188 </div>
1189 <div class="pupil_dim_comments">
1190 <b><?php echo xlt('Comments'); ?>:</b><br />
1191 <textarea id="PUPIL_COMMENTS" name="PUPIL_COMMENTS"><?php echo text($PUPIL_COMMENTS); ?></textarea>
1192 </div>
1193 </div>
1194 <!-- end of slide down pupils_panel -->
1195 </div>
1197 <!-- start IOP chart section -->
1198 <?php ($IOP ==1) ? ($display_IOP = "") : ($display_IOP = "nodisplay"); ?>
1199 <div id="LayerVision_IOP" class="borderShadow <?php echo $display_IOP; ?>">
1200 <?php echo display_GlaucomaFlowSheet($pid); ?>
1201 </div>
1202 <!-- end IOP chart section -->
1204 <!-- start of the refraction box -->
1205 <span class="anchor" id="REFRACTION_anchor"></span>
1206 <div class="loading" id="EXAM_sections_loading" name="REFRACTION_sections_loading"><i class="fa fa-spinner fa-spin"></i></div>
1207 <div id="REFRACTION_sections" name="REFRACTION_sections" class="row nodisplay clear_both">
1208 <div id="LayerVision2">
1209 <?php
1210 ($W ==1) ? ($display_W = "") : ($display_W = "nodisplay");
1211 ($W_width =='1') ? ($display_W_width = "refraction_wide") : ($display_W_width = "");
1213 <div id="LayerVision_W" class="<?php echo $display_W; ?> <?php echo $display_W_width; ?> ">
1214 <input type="hidden" id="W_1" name="W_1" value="1">
1215 <div id="LayerVision_W_1" name="currentRX" class="refraction current_W borderShadow <?php echo $display_W_width; ?>">
1216 <i class="closeButton fa fa-close" id="Close_W_1" name="Close_W_1"
1217 title="<?php echo xla('Close All Current Rx Panels and make this a Preference to stay closed'); ?>"></i>
1218 <i class="closeButton2 fa fa-arrows-h " id="W_width_display_1" name="W_width_display"
1219 title="<?php echo xla("Rx Details"); ?>" ></i>
1220 <i onclick="top.restoreSession(); doscript('W','<?php echo attr($pid); ?>','<?php echo attr($encounter); ?>','1'); return false;"
1221 title="<?php echo xla("Dispense this Rx"); ?>" class="closeButton3 fa fa-print"></i>
1222 <i onclick="top.restoreSession(); dispensed('<?php echo attr($pid); ?>');return false;"
1223 title="<?php echo xla("List of previously dispensed Spectacle and Contact Lens Rxs"); ?>" class="closeButton4 fa fa-list-ul"></i>
1224 <table id="wearing_1">
1225 <tr>
1226 <th colspan="7"><?php echo xlt('Current Glasses'); ?>:
1227 <i id="Add_Glasses" name="Add_Glasses" class="button btn"><?php echo xlt('Additonal Rx{{Additional glasses}}'); ?></i>
1228 </th>
1229 </tr>
1230 <tr>
1231 <td>&nbsp;</td>
1232 <td><i class="fa fa-gamepad" name="reverseme" title="<?php echo xla('Convert between plus and minus cylinder'); ?>" aria-hidden="true" id="revW1" ></i></td>
1233 <td><?php echo xlt('Sph{{Sphere}}'); ?></td>
1234 <td><?php echo xlt('Cyl{{Cylinder}}'); ?></td>
1235 <td><?php echo xlt('Axis{{Axis of a glasses prescription}}'); ?></td>
1236 <td><?php echo xlt('Acuity'); ?></td>
1237 <td name="W_wide"></td>
1238 <td name="W_wide" title="<?php echo xla('Horizontal Prism Power'); ?>"><?php echo xlt('HP{{abbreviation for Horizontal Prism Power}}'); ?></td>
1239 <td name="W_wide" title="<?php echo xla('Horizontal Prism Base'); ?>"><?php echo xlt('HB{{abbreviation for Horizontal Prism Base}}'); ?></td>
1240 <td name="W_wide" title="<?php echo xla('Vertical Prism Power'); ?>"><?php echo xlt('VP{{abbreviation for Vertical Prism Power}}'); ?></td>
1241 <td name="W_wide" title="<?php echo xla('Vertical Prism Base'); ?>"><?php echo xlt('VB{{abbreviation for Vertical Prism Base}}'); ?></td>
1242 <td name="W_wide" title="<?php echo xla('Slab Off'); ?>"><?php echo xlt('Slab Off'); ?></td>
1243 <td name="W_wide" title="<?php echo xla('Vertex Distance'); ?>"><?php echo xlt('VD{{abbreviation for Vertex Distance}}'); ?></td>
1244 <td name="W_wide" title="<?php echo xla('Monocular Pupillary Diameter - Distance'); ?>"><?php echo xlt('MPD-D{{abbreviation for Monocular Pupillary Diameter - Distance}}'); ?></td>
1245 <td name="W_wide" title="<?php echo xla('Monocular Pupillary Diameter - Near'); ?>"><?php echo xlt('MPD-N{{abbreviation for Monocular Pupillary Diameter - Near}}'); ?></td>
1247 <td rowspan="6" class="right">
1248 <span class="underline bold"><?php echo xlt('Rx Type{{Type of glasses prescription}}'); ?></span><br />
1249 <label for="Single_1" class="input-helper input-helper--checkbox"><?php echo xlt('Single'); ?></label>
1250 <input type="radio" value="0" id="Single_1" name="RX_TYPE_1" <?php if ($RX_TYPE_1 == '0') echo 'checked="checked"'; ?> /></span><br /><br />
1251 <label for="Bifocal_1" class="input-helper input-helper--checkbox"><?php echo xlt('Bifocal'); ?></label>
1252 <input type="radio" value="1" id="Bifocal_1" name="RX_TYPE_1" <?php if ($RX_TYPE_1 == '1') echo 'checked="checked"'; ?> /></span><br /><br />
1253 <label for="Trifocal_1" class="input-helper input-helper--checkbox"><?php echo xlt('Trifocal'); ?></label>
1254 <input type="radio" value="2" id="Trifocal_1" name="RX_TYPE_1" <?php if ($RX_TYPE_1 == '2') echo 'checked="checked"'; ?> /></span><br /><br />
1255 <label for="Progressive_1" class="input-helper input-helper--checkbox"><?php echo xlt('Prog.{{Progressive lenses}}'); ?></label>
1256 <input type="radio" value="3" id="Progressive_1" name="RX_TYPE_1" <?php if ($RX_TYPE_1 == '3') echo 'checked="checked"'; ?> /></span><br />
1257 </td>
1258 </tr>
1259 <tr>
1260 <td rowspan="2"><?php echo xlt('Dist{{distance}}'); ?></td>
1261 <td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1262 <td><input type="text" class="sphere" id="ODSPH_1" name="ODSPH_1" value="<?php echo attr($ODSPH_1); ?>" tabindex="100"></td>
1263 <td><input type="text" class="cylinder" id="ODCYL_1" name="ODCYL_1" value="<?php echo attr($ODCYL_1); ?>" tabindex="101"></td>
1264 <td><input type="text" class="axis" id="ODAXIS_1" name="ODAXIS_1" value="<?php echo attr($ODAXIS_1); ?>" tabindex="102"></td>
1265 <td><input type="text" class="acuity" id="ODVA_1" name="ODVA_1" value="<?php echo attr($ODVA_1); ?>" tabindex="108"></td>
1267 <td name="W_wide"></td>
1268 <td name="W_wide"><input type="text" class="prism" id="ODHPD_1" name="ODHPD_1" value="<?php echo attr($ODHPD_1); ?>" tabindex="122"></td>
1269 <td name="W_wide"><input type="text" class="prism" id="ODHBASE_1" name="ODHBASE_1" value="<?php echo attr($ODHBASE_1); ?>" tabindex="124"></td>
1270 <td name="W_wide"><input type="text" class="prism" id="ODVPD_1" name="ODVPD_1" value="<?php echo attr($ODVPD_1); ?>" tabindex="126"></td>
1271 <td name="W_wide"><input type="text" class="prism" id="ODVBASE_1" name="ODVBASE_1" value="<?php echo attr($ODVBASE_1); ?>" tabindex="128"></td>
1272 <td name="W_wide"><input type="text" class="prism" id="ODSLABOFF_1" name="ODSLABOFF_1" value="<?php echo attr($ODSLABOFF_1); ?>" tabindex="130"></td>
1273 <td name="W_wide"><input type="text" class="prism" id="ODVERTEXDIST_1" name="ODVERTEXDIST_1" value="<?php echo attr($ODVERTEXDIST_1); ?>" tabindex="132"></td>
1274 <td name="W_wide"><input type="text" class="prism" id="ODMPDD_1" name="ODMPDD_1" value="<?php echo attr($ODMPDD_1); ?>" tabindex="134"></td>
1275 <td name="W_wide"><input type="text" class="prism" id="ODMPDN_1" name="ODMPDN_1" value="<?php echo attr($ODMPDN_1); ?>" tabindex="136"></td>
1276 </tr>
1277 <tr>
1278 <td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1279 <td><input type="text" class="sphere" id="OSSPH_1" name="OSSPH_1" value="<?php echo attr($OSSPH_1); ?>" tabindex="103"></td>
1280 <td><input type="text" class="cylinder" id="OSCYL_1" name="OSCYL_1" value="<?php echo attr($OSCYL_1); ?>" tabindex="104"></td>
1281 <td><input type="text" class="axis" id="OSAXIS_1" name="OSAXIS_1" value="<?php echo attr($OSAXIS_1); ?>" tabindex="105"></td>
1282 <td><input type="text" class="acuity" id="OSVA_1" name="OSVA_1" value="<?php echo attr($OSVA_1); ?>" tabindex="109"></td>
1284 <td name="W_wide"></td>
1285 <td name="W_wide"><input type="text" class="prism" id="OSHPD_1" name="OSHPD_1" value="<?php echo attr($OSHPD_1); ?>" tabindex="123"></td>
1286 <td name="W_wide"><input type="text" class="prism" id="OSHBASE_1" name="OSHBASE_1" value="<?php echo attr($OSHBASE_1); ?>" tabindex="125"></td>
1287 <td name="W_wide"><input type="text" class="prism" id="OSVPD_1" name="OSVPD_1" value="<?php echo attr($OSVPD_1); ?>" tabindex="127"></td>
1288 <td name="W_wide"><input type="text" class="prism" id="OSVBASE_1" name="OSVBASE_1" value="<?php echo attr($OSVBASE_1); ?>" tabindex="129"></td>
1289 <td name="W_wide"><input type="text" class="prism" id="OSSLABOFF_1" name="OSSLABOFF_1" value="<?php echo attr($OSSLABOFF_1); ?>" tabindex="131"></td>
1290 <td name="W_wide"><input type="text" class="prism" id="OSVERTEXDIST_1" name="OSVERTEXDIST_1" value="<?php echo attr($OSVERTEXDIST_1); ?>" tabindex="133"></td>
1291 <td name="W_wide"><input type="text" class="prism" id="OSMPDD_1" name="OSMPDD_1" value="<?php echo attr($OSMPDD_1); ?>" tabindex="135"></td>
1292 <td name="W_wide"><input type="text" class="prism" id="OSMPDN_1" name="OSMPDN_1" value="<?php echo attr($OSMPDN_1); ?>" tabindex="137"></td>
1293 </tr>
1294 <tr class="WNEAR">
1295 <td rowspan=2><?php echo xlt('Mid{{middle Rx strength}}'); ?>/<br /><?php echo xlt('Near'); ?></td>
1296 <td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1297 <?php echo '<input type="hidden" name="RXStart_1" id="RXStart_1" value="'.$RX_TYPE_1.'">'; ?>
1298 <td class="WMid"><input type="text" class="presbyopia" id="ODMIDADD_1" name="ODMIDADD_1" value="<?php echo attr($ODMIDADD_1); ?>"></td>
1299 <td class="WAdd2"><input type="text" class="presbyopia" id="ODADD_1" name="ODADD_1" value="<?php echo attr($ODADD_1); ?>" tabindex="106"></td>
1300 <td></td>
1301 <td><input class="jaeger" type="text" id="ODNEARVA_1" name="ODNEARVA_1" value="<?php echo attr($ODNEARVA_1); ?>" tabindex="110"></td>
1303 <td name="W_wide"></td>
1305 <td name="W_wide" title="<?php echo xla('Binocular Pupillary Diameter - Distance'); ?>"><?php echo xlt('PD-D{{abbreviation for Binocular Pupillary Diameter - Distance}}'); ?></td>
1306 <td name="W_wide" title="<?php echo xla('Binocular Pupillary Diameter - Near'); ?>"><?php echo xlt('PD-N{{abbreviation for Binocular Pupillary Diameter - Near}}'); ?></td>
1307 <td name="W_wide" title="<?php echo xla('Lens Material'); ?>" colspan="2">
1308 <a href="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=Eye_Lens_Material" target="RTop"
1309 title="<?php echo xla('Click here to edit list of available Lens Materials'); ?>"
1310 name="Lens_mat"><span class="underline"><?php echo xlt('Lens Material'); ?></span> <i class="fa fa-pencil fa-fw"></i> </a>
1311 </td>
1312 <td name="W_wide2" colspan="4" rowspan="4">
1313 <a href="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=Eye_Lens_Treatments" target="RTop"
1314 title="<?php echo xla('Click here to edit list of available Lens Treatment Options'); ?>"
1315 name="Lens_txs"><span class="underline"><?php echo xlt('Lens Treatments'); ?></span> <i class="fa fa-pencil fa-fw"></i> </a>
1316 <br />
1317 <?php echo generate_lens_treatments('1',$LENS_TREATMENTS_1); ?>
1318 </td>
1319 </tr>
1320 <tr class="WNEAR">
1321 <td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1322 <td class="WMid"><input type="text" class="presbyopia" id="OSMIDADD_1" name="OSMIDADD_1" value="<?php echo attr($OSMIDADD_1); ?>"></td>
1323 <td class="WAdd2"><input type="text" class="presbyopia" id="OSADD_1" name="OSADD_1" value="<?php echo attr($OSADD_1); ?>" tabindex="107"></td>
1324 <td></td>
1325 <td><input class="jaeger" type="text" id="OSNEARVA_1" name="OSNEARVA_1" value="<?php echo attr($OSNEARVA_1); ?>" tabindex="110"></td>
1327 <td name="W_wide"></td>
1329 <td name="W_wide"><input type="text" class="prism" id="BPDD_1" name="BPDD_1" value="<?php echo attr($BPDD_1); ?>" tabindex="138"></td>
1330 <td name="W_wide"><input type="text" class="prism" id="BPDN_1" name="BPDN_1" value="<?php echo attr($BPDN_1); ?>" tabindex="140"></td>
1331 <td name="W_wide" title="<?php echo xla('Lens Material Options'); ?>" colspan="2" tabindex="142">
1332 <?php echo generate_select_list("LENS_MATERIAL_1", "Eye_Lens_Material", "$LENS_MATERIAL_1",'','--Lens Material--','','restoreSession;submit_form();','',array('style'=>'width:120px')); ?>
1333 </td>
1334 </tr>
1335 <tr>
1336 <td colspan="2"><b><?php echo xlt('Comments'); ?>:</b>
1337 </td>
1338 <td colspan="4" class="up"></td>
1339 </tr>
1340 <tr>
1341 <td colspan="6">
1342 <textarea id="COMMENTS_1" name="COMMENTS_W" tabindex="111"><?php echo text($COMMENTS_1); ?></textarea>
1343 </td>
1344 <td colspan="8">
1345 </td>
1346 </tr>
1347 </table>
1348 </div>
1349 <?php
1350 for ($i=2; $i < 6; $i++) { //limit to a max of 5 pairs
1351 echo generate_specRx($i);
1354 </div>
1356 <?php ($MR==1) ? ($display_AR = "") : ($display_AR = "nodisplay");?>
1357 <div id="LayerVision_MR" class="refraction manifest borderShadow <?php echo $display_AR; ?>">
1358 <i onclick="top.restoreSession(); refractions('<?php echo attr($pid); ?>');return false;"
1359 title="<?php echo xla("List of previous refractions"); ?>" class="closeButton3 fa fa-list-ul"></i>
1360 <span class="closeButton2 fa fa-print" title="<?php echo xla('Dispense this Rx'); ?>" onclick="top.restoreSession();doscript('MR',<?php echo attr($pid); ?>,<?php echo attr($encounter); ?>);return false;"></span>
1361 <span class="closeButton fa fa-close" id="Close_MR" name="Close_MR" title="<?php echo xla('Close this panel and make this a Preference to stay closed'); ?>"></span>
1362 <table id="dry_wet_refraction">
1363 <th colspan="5"><?php echo xlt('Manifest (Dry) Refraction'); ?></th>
1364 <th NOWRAP colspan="2">
1365 <input type="checkbox" name="BALANCED" id="Balanced" value="on" <?php if ($BALANCED =='on') echo "checked='checked'"; ?> tabindex="10182">
1366 <label for="Balanced" class="input-helper input-helper--checkbox"><?php echo xlt('Balanced'); ?></label>
1367 </th>
1369 <tr>
1370 <td><i class="fa fa-gamepad" name="reverseme" title="<?php echo xla('Convert between plus and minus cylinder'); ?>" aria-hidden="true" id="MR" ></i></td>
1371 <td><?php echo xlt('Sph{{Sphere}}'); ?></td>
1372 <td><?php echo xlt('Cyl{{Cylinder}}'); ?></td>
1373 <td><?php echo xlt('Axis{{Axis of a glasses prescription}}'); ?></td>
1374 <td><?php echo xlt('Acuity'); ?></td>
1375 <td><?php echo xlt('ADD'); ?></td>
1376 <td><?php echo xlt('Jaeger'); ?></td>
1377 <td><?php echo xlt('Prism'); ?></td>
1378 </tr>
1379 <tr>
1380 <td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1381 <td><input type="text" id="MRODSPH" name="MRODSPH" value="<?php echo attr($MRODSPH); ?>" tabindex="10170"></td>
1382 <td><input type="text" id="MRODCYL" name="MRODCYL" value="<?php echo attr($MRODCYL); ?>" tabindex="10171"></td>
1383 <td><input type="text" id="MRODAXIS" name="MRODAXIS" value="<?php echo attr($MRODAXIS); ?>" tabindex="10172"></td>
1384 <td><input type="text" id="MRODVA" name="MRODVA" value="<?php echo attr($MRODVA); ?>" tabindex="10176"></td>
1385 <td><input type="text" id="MRODADD" name="MRODADD" value="<?php echo attr($MRODADD); ?>" tabindex="10178"></td>
1386 <td><input class="jaeger" type="text" id="MRNEARODVA" name="MRNEARODVA" value="<?php echo attr($MRNEARODVA); ?>" tabindex="10180"> </td>
1387 <td><input type="text" id="MRODPRISM" name="MRODPRISM" value="<?php echo attr($MRODPRISM); ?>"></td>
1388 </tr>
1389 <tr>
1390 <td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1391 <td><input type="text" id="MROSSPH" name="MROSSPH" value="<?php echo attr($MROSSPH); ?>" tabindex="10173"></td>
1392 <td><input type="text" id="MROSCYL" name="MROSCYL" value="<?php echo attr($MROSCYL); ?>" tabindex="10174"></td>
1393 <td><input type="text" id="MROSAXIS" name="MROSAXIS" value="<?php echo attr($MROSAXIS); ?>" tabindex="10175"></td>
1394 <td><input type="text" id="MROSVA" name="MROSVA" value="<?php echo attr($MROSVA); ?>" tabindex="10177"></td>
1395 <td><input type="text" id="MROSADD" name="MROSADD" value="<?php echo attr($MROSADD); ?>" tabindex="10179"></td>
1396 <td><input class="jaeger" type="text" id="MRNEAROSVA" name="MRNEAROSVA" value="<?php echo attr($MRNEAROSVA); ?>" tabindex="10181"></td>
1397 <td><input type="text" id="MROSPRISM" name="MROSPRISM" value="<?php echo attr($MROSPRISM); ?>"></td>
1398 </tr>
1399 </table>
1401 <table>
1402 <th colspan="7"><?php echo xlt('Cycloplegic (Wet) Refraction'); ?></th>
1403 <th><i title="<?php echo xla("Dispense Rx"); ?>" class="fa fa-print" onclick="top.restoreSession();doscript('CR',<?php echo attr($pid); ?>,<?php echo attr($encounter); ?>);return false;"></i></th>
1405 <tr>
1406 <td><i class="fa fa-gamepad" name="reverseme" title="<?php echo xla('Convert between plus and minus cylinder'); ?>" aria-hidden="true" id="CR" ></i></td>
1407 <td><?php echo xlt('Sph{{Sphere}}'); ?></td>
1408 <td><?php echo xlt('Cyl{{Cylinder}}'); ?></td>
1409 <td><?php echo xlt('Axis{{Axis of a glasses prescription}}'); ?></td>
1410 <td><?php echo xlt('Acuity'); ?></td>
1411 <td></td>
1412 <td id="IOP_dil"><?php echo xlt('IOP Dilated{{Dilated Intraocular Pressure}}'); ?>
1413 <input type="hidden" name="IOPPOSTTIME" id="IOPPOSTTIME" value="">
1414 </td>
1416 </tr>
1417 <tr>
1418 <td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1419 <td><input type="text" id="CRODSPH" name="CRODSPH" value="<?php echo attr($CRODSPH); ?>" tabindex="10183"></td>
1420 <td><input type="text" id="CRODCYL" name="CRODCYL" value="<?php echo attr($CRODCYL); ?>" tabindex="10184"></td>
1421 <td><input type="text" id="CRODAXIS" name="CRODAXIS" value="<?php echo attr($CRODAXIS); ?>" tabindex="10185"></td>
1422 <td><input type="text" id="CRODVA" name="CRODVA" value="<?php echo attr($CRODVA); ?>" tabindex="10189"></td>
1423 <td rowspan="2">
1424 <ul>
1425 <li>
1426 <input type="radio" name="WETTYPE" id="Flash" value="Flash" <?php if ($WETTYPE == "Flash") echo "checked='checked'"; ?>/>
1427 <label for="Flash" class="input-helper input-helper--checkbox"><?php echo xlt('Flash'); ?></label>
1428 </li>
1429 <li>
1430 <input type="radio" name="WETTYPE" id="Auto" value="Auto" <?php if ($WETTYPE == "Auto") echo "checked='checked'"; ?>>
1431 <label for="Auto" class="input-helper input-helper--checkbox"><?php echo xlt('Auto{{autorefraction}}'); ?></label>
1432 </li>
1434 <li>
1435 <input type="radio" name="WETTYPE" id="Manual" value="Manual" <?php if ($WETTYPE == "Manual") echo "checked='checked'"; ?>>
1436 <label for="Manual" class="input-helper input-helper--checkbox"><?php echo xlt('Manual'); ?></label>
1437 </li>
1438 </ul>
1439 </td>
1440 <td><input type="text" id="ODIOPPOST" name="ODIOPPOST" value="<?php echo attr($ODIOPPOST); ?>">
1441 </tr>
1442 <tr>
1443 <td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1444 <td><input type="text" id="CROSSPH" name="CROSSPH" value="<?php echo attr($CROSSPH); ?>" tabindex="10186"></td>
1445 <td><input type="text" id="CROSCYL" name="CROSCYL" value="<?php echo attr($CROSCYL); ?>" tabindex="10187"></td>
1446 <td><input type="text" id="CROSAXIS" name="CROSAXIS" value="<?php echo attr($CROSAXIS); ?>" tabindex="10188"></td>
1447 <td><input type="text" id="CROSVA" name="CROSVA" value="<?php echo attr($CROSVA); ?>" tabindex="10190"></td>
1449 <td><input type="text" id="OSIOPPOST" name="OSIOPPOST" value="<?php echo attr($OSIOPPOST); ?>"></td>
1450 </tr>
1451 </table>
1452 </div>
1454 <?php ($CR==1) ? ($display_Cyclo = "") : ($display_Cyclo = "nodisplay"); ?>
1455 <div id="LayerVision_CR" class="refraction autoref borderShadow <?php echo $display_Cyclo; ?>">
1456 <i title="<?php echo xla('Dispense this Rx'); ?>" class="closeButton2 fa fa-print" onclick="top.restoreSession();doscript('AR',<?php echo attr($pid); ?>,<?php echo attr($encounter); ?>);return false;"></i>
1457 <span title="<?php echo xla('Close this panel and make this a Preference to stay closed'); ?>" class="closeButton fa fa-close" id="Close_CR" name="Close_CR"></span>
1458 <table id="autorefraction">
1459 <th colspan="9"><?php echo xlt('Auto Refraction'); ?></th>
1460 <tr>
1461 <td><i class="fa fa-gamepad" name="reverseme" title="<?php echo xla('Convert between plus and minus cylinder'); ?>" aria-hidden="true" id="AR" ></i></td>
1462 <td><?php echo xlt('Sph{{Sphere}}'); ?></td>
1463 <td><?php echo xlt('Cyl{{Cylinder}}'); ?></td>
1464 <td><?php echo xlt('Axis{{Axis of a glasses prescription}}'); ?></td>
1465 <td><?php echo xlt('Acuity'); ?></td>
1466 <td><?php echo xlt('ADD'); ?></td>
1467 <td><?php echo xlt('Jaeger{{Near Acuity Type Jaeger}}'); ?></td>
1468 <td><?php echo xlt('Prism'); ?></td>
1469 </tr>
1470 <tr>
1471 <td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1472 <td><input type="text" id="ARODSPH" name="ARODSPH" value="<?php echo attr($ARODSPH); ?>" tabindex="10220"></td>
1473 <td><input type="text" id="ARODCYL" name="ARODCYL" value="<?php echo attr($ARODCYL); ?>" tabindex="10221"></td>
1474 <td><input type="text" id="ARODAXIS" name="ARODAXIS" value="<?php echo attr($ARODAXIS); ?>" tabindex="10222"></td>
1475 <td><input type="text" id="ARODVA" name="ARODVA" value="<?php echo attr($ARODVA); ?>" tabindex="10228"></td>
1476 <td><input type="text" id="ARODADD" name="ARODADD" value="<?php echo attr($ARODADD); ?>" tabindex="10226"></td>
1477 <td><input class="jaeger" type="text" id="ARNEARODVA" name="ARNEARODVA" value="<?php echo attr($ARNEARODVA); ?>"></td>
1478 <td><input type="text" id="ARODPRISM" name="ARODPRISM" value="<?php echo attr($ARODPRISM); ?>"></td>
1479 </tr>
1480 <tr>
1481 <td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1482 <td><input type="text" id="AROSSPH" name="AROSSPH" value="<?php echo attr($AROSSPH); ?>" tabindex="10223"></td>
1483 <td><input type="text" id="AROSCYL" name="AROSCYL" value="<?php echo attr($AROSCYL); ?>" tabindex="10224"></td>
1484 <td><input type="text" id="AROSAXIS" name="AROSAXIS" value="<?php echo attr($AROSAXIS); ?>" tabindex="10225"></td>
1485 <td><input type="text" id="AROSVA" name="AROSVA" value="<?php echo attr($AROSVA); ?>" tabindex="10229"></td>
1486 <td><input type="text" id="AROSADD" name="AROSADD" value="<?php echo attr($AROSADD); ?>" tabindex="10227"></td>
1487 <td><input class="jaeger" type="text" id="ARNEAROSVA" name="ARNEAROSVA" value="<?php echo attr($ARNEAROSVA); ?>"></td>
1488 <td><input type="text" id="AROSPRISM" name="AROSPRISM" value="<?php echo attr($AROSPRISM); ?>"></td>
1489 </tr>
1490 <tr>
1491 <td colspan="3" class="bold pad10"><br /><?php echo xlt('Refraction Comments'); ?>:</td>
1492 </tr>
1493 <tr>
1494 <td colspan="9"><textarea id="CRCOMMENTS" name="CRCOMMENTS"><?php echo attr($CRCOMMENTS); ?></textarea>
1495 </td>
1496 </tr>
1497 </table>
1498 </div>
1500 <?php ($CTL==1) ? ($display_CTL = "") : ($display_CTL = "nodisplay"); ?>
1501 <div id="LayerVision_CTL" class="refraction CTL borderShadow <?php echo $display_CTL; ?>">
1502 <i title="<?php echo xla('Dispense this RX'); ?>" class="closeButton2 fa fa-print" onclick="top.restoreSession();doscript('CTL',<?php echo attr($pid); ?>,<?php echo attr($encounter); ?>);return false;"></i>
1503 <span title="<?php echo xla('Close this panel and make this a Preference to stay closed'); ?>" class="closeButton fa fa-close" id="Close_CTL" name="Close_CTL"></span>
1504 <table id="CTL">
1505 <th colspan="9"><?php echo xlt('Contact Lens Refraction'); ?></th>
1506 <tr>
1507 <td class="center">
1508 <div id="CTL_box">
1509 <table>
1510 <tr >
1511 <td></td>
1512 <td><a href="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=CTLManufacturer" target="RTop"
1513 title="<?php echo xla('Click here to Edit the Manufacter List'); ?>"
1514 name="CTL"><?php echo xlt('Manufacturer'); ?> <i class="fa fa-pencil fa-fw"></i> </a>
1515 </td>
1516 <td><a href="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=CTLSupplier" target="RTop"
1517 title="<?php echo xla('Click here to Edit the Supplier List'); ?>"
1518 name="CTL"><?php echo xlt('Supplier'); ?> <i class="fa fa-pencil fa-fw"></i> </a>
1519 </td>
1520 <td><a href="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=CTLBrand" target="RTop"
1521 title="<?php echo xla('Click here to Edit the Contact Lens Brand List'); ?>"
1522 name="CTL"><?php echo xlt('Brand'); ?> <i class="fa fa-pencil fa-fw"></i> </a>
1523 </td>
1524 </tr>
1525 <tr>
1526 <td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1527 <td>
1528 <!-- Pull from CTL data from list_options which user populates the usual way -->
1529 <?php
1530 //build manufacturer list from list_options::list_id::CTLManufacturer
1531 $query = "select * from list_options where list_id like 'CTLManufacturer' order by seq";
1532 $CTLMANUFACTURER_data =sqlStatement($query);
1533 while ($row = sqlFetchArray($CTLMANUFACTURER_data)) {
1534 $CTLMANUFACTURER_list_OD .= '<option value="'.attr($row['option_id']).'"';
1535 if ($CTLMANUFACTUREROD == $row['option_id']) $CTLMANUFACTURER_list_OD .= "selected";
1536 $CTLMANUFACTURER_list_OD .= '>'.text(substr($row['title'],0,12)).'</option>
1538 $CTLMANUFACTURER_list_OS .= '<option value="'.attr($row['option_id']).'"';
1539 if ($CTLMANUFACTUREROS == $row['option_id']) $CTLMANUFACTURER_list_OS .= "selected";
1540 $CTLMANUFACTURER_list_OS .= '>'.text(substr($row['title'],0,12)).'</option>
1543 //build supplier list from list_options::list_id::CTLSupplier
1544 $query = "select * from list_options where list_id like 'CTLSupplier' order by seq";
1545 $CTLSUPPLIER_data =sqlStatement($query);
1546 while ($row = sqlFetchArray($CTLSUPPLIER_data)) {
1547 $CTLSUPPLIER_list_OD .= '<option value="'.attr($row['option_id']).'"';
1548 if ($CTLSUPPLIEROD == $row['option_id']) $CTLSUPPLIER_list_OD .= "selected";
1549 $CTLSUPPLIER_list_OD .= '>'.text(substr($row['title'],0,10)).'</option>
1551 $CTLSUPPLIER_list_OS .= '<option value="'.attr($row['option_id']).'"';
1552 if ($CTLSUPPLIEROS == $row['option_id']) $CTLSUPPLIER_list_OS .= "selected";
1553 $CTLSUPPLIER_list_OS .= '>'.text(substr($row['title'],0,10)).'</option>
1556 //build manufacturer list from list_options::list_id::CTLManufacturer
1557 $query = "select * from list_options where list_id like 'CTLBrand' order by seq";
1558 $CTLBRAND_data =sqlStatement($query);
1559 while ($row = sqlFetchArray($CTLBRAND_data)) {
1560 $CTLBRAND_list_OD .= '<option value="'.attr($row['option_id']).'"';
1561 if ($CTLBRANDOD == $row['option_id']) $CTLBRAND_list_OD .= "selected";
1562 $CTLBRAND_list_OD .= '>'.text(substr($row['title'],0,15)).'</option>
1564 $CTLBRAND_list_OS .= '<option value="'.attr($row['option_id']).'"';
1565 if ($CTLBRANDOS == $row['option_id']) $CTLBRAND_list_OS .= "selected";
1566 $CTLBRAND_list_OS .= '>'.text(substr($row['title'],0,15)).'</option>
1570 <select id="CTLMANUFACTUREROD" name="CTLMANUFACTUREROD" tabindex="10230">
1571 <option></option>
1572 <?php echo $CTLMANUFACTURER_list_OD; ?>
1573 </select>
1574 </td>
1575 <td>
1576 <select id="CTLSUPPLIEROD" name="CTLSUPPLIEROD" tabindex="10231">
1577 <option></option>
1578 <?php echo $CTLSUPPLIER_list_OD; ?>
1579 </select>
1580 </td>
1581 <td>
1582 <select id="CTLBRANDOD" name="CTLBRANDOD" tabindex="10232">
1583 <option></option>
1584 <?php echo $CTLBRAND_list_OD; ?>
1585 </select>
1586 </td>
1587 </tr>
1588 <tr >
1589 <td><b><?php echo xlt('OS'); ?>:</b></td>
1590 <td>
1591 <select id="CTLMANUFACTUREROS" name="CTLMANUFACTUREROS" tabindex="10233">
1592 <option></option>
1593 <?php echo $CTLMANUFACTURER_list_OS; ?>
1594 </select>
1595 </td>
1596 <td>
1597 <select id="CTLSUPPLIEROS" name="CTLSUPPLIEROS" tabindex="10234">
1598 <option></option>
1599 <?php echo $CTLSUPPLIER_list_OS; ?>
1600 </select>
1601 </td>
1602 <td>
1603 <select id="CTLBRANDOS" name="CTLBRANDOS" tabindex="10235">
1604 <option></option>
1605 <?php echo $CTLBRAND_list_OS; ?>
1606 </select>
1607 </td>
1608 </tr>
1609 </table>
1610 </div>
1611 </td>
1612 </tr>
1613 </table>
1614 <table>
1615 <tr>
1616 <td><i class="fa fa-gamepad" name="reverseme" title="<?php echo xla('Convert between plus and minus cylinder'); ?>" aria-hidden="true" id="CTL" ></i></td>
1617 <td><?php echo xlt('Sph{{Sphere}}'); ?></td>
1618 <td><?php echo xlt('Cyl{{Cylinder}}'); ?></td>
1619 <td><?php echo xlt('Axis{{Axis of a glasses prescription}}'); ?></td>
1620 <td><?php echo xlt('BC{{Base Curve}}'); ?></td>
1621 <td><?php echo xlt('Diam{{Diameter}}'); ?></td>
1622 <td><?php echo xlt('ADD'); ?></td>
1623 <td><?php echo xlt('Acuity'); ?></td>
1624 </tr>
1625 <tr>
1626 <td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1627 <td><input type="text" id="CTLODSPH" name="CTLODSPH" value="<?php echo attr($CTLODSPH); ?>" tabindex="10236"></td>
1628 <td><input type="text" id="CTLODCYL" name="CTLODCYL" value="<?php echo attr($CTLODCYL); ?>" tabindex="10240"></td>
1629 <td><input type="text" id="CTLODAXIS" name="CTLODAXIS" value="<?php echo attr($CTLODAXIS); ?>" tabindex="10241"></td>
1630 <td><input type="text" id="CTLODBC" name="CTLODBC" value="<?php echo attr($CTLODBC); ?>" tabindex="10237"></td>
1631 <td><input type="text" id="CTLODDIAM" name="CTLODDIAM" value="<?php echo attr($CTLODDIAM); ?>" tabindex="10238"></td>
1632 <td><input type="text" id="CTLODADD" name="CTLODADD" value="<?php echo attr($CTLODADD); ?>" tabindex="10242"></td>
1633 <td><input type="text" id="CTLODVA" name="CTLODVA" value="<?php echo attr($CTLODVA); ?>" tabindex="10239"></td>
1634 </tr>
1635 <tr >
1636 <td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1637 <td><input type="text" id="CTLOSSPH" name="CTLOSSPH" value="<?php echo attr($CTLOSSPH); ?>" tabindex="10243"></td>
1638 <td><input type="text" id="CTLOSCYL" name="CTLOSCYL" value="<?php echo attr($CTLOSCYL); ?>" tabindex="10247"></td>
1639 <td><input type="text" id="CTLOSAXIS" name="CTLOSAXIS" value="<?php echo attr($CTLOSAXIS); ?>" tabindex="10248"></td>
1640 <td><input type="text" id="CTLOSBC" name="CTLOSBC" value="<?php echo attr($CTLOSBC); ?>" tabindex="10244"></td>
1641 <td><input type="text" id="CTLOSDIAM" name="CTLOSDIAM" value="<?php echo attr($CTLOSDIAM); ?>" tabindex="10245"></td>
1642 <td><input type="text" id="CTLOSADD" name="CTLOSADD" value="<?php echo attr($CTLOSADD); ?>" tabindex="10249"></td>
1643 <td><input type="text" id="CTLOSVA" name="CTLOSVA" value="<?php echo attr($CTLOSVA); ?>" tabindex="10246"></td>
1644 </tr>
1645 <tr>
1646 <td colspan="2" class="right bold">
1647 <?php echo xlt('Comments'); ?>:
1648 </td>
1649 <td colspan="6">
1650 <textarea name="CTL_COMMENTS" id="CTL_COMMENTS" tabindex="10250"><?php echo text($CTL_COMMENTS); ?></textarea>
1651 </td>
1652 </tr>
1653 </table>
1654 </div>
1656 <?php ($ADDITIONAL==1) ? ($display_Add = "") : ($display_Add = "nodisplay"); ?>
1657 <div id="LayerVision_ADDITIONAL" class="refraction borderShadow <?php echo $display_Add; ?>">
1658 <span title="<?php echo xla('Close and make this a Preference to stay closed'); ?>" class="closeButton fa fa-close" id="Close_ADDITIONAL" name="Close_ADDITIONAL"></span>
1660 <table id="Additional">
1661 <th colspan=9><?php echo xlt('Additional Data Points'); ?></th>
1662 <tr><td></td>
1663 <td title="<?php echo xla('Pinhole Vision'); ?>"><?php echo xlt('PH{{pinhole acuity}}'); ?></td>
1664 <td title="<?php echo xla('Potential Acuity Meter'); ?>"><?php echo xlt('PAM{{Potential Acuity Meter}}'); ?></td>
1665 <td title="<?php echo xla('Laser Interferometry Acuity'); ?>"><?php echo xlt('LI{{Laser Interferometry Acuity}}'); ?></td>
1666 <td title="<?php echo xla('Brightness Acuity Testing'); ?>"><?php echo xlt('BAT{{Brightness Acuity Testing}}'); ?></td>
1667 <td><?php echo xlt('K1{{Keratometry 1}}'); ?></td>
1668 <td><?php echo xlt('K2{{Keratometry 2}}'); ?></td>
1669 <td><?php echo xlt('Axis{{Axis of a glasses prescription}}'); ?></td>
1670 </tr>
1671 <tr><td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1672 <td><input type="text" id="PHODVA" name="PHODVA" title="<?php echo xla('Pinhole Vision'); ?>" value="<?php echo attr($PHODVA); ?>" tabindex="10251"></td>
1673 <td><input type="text" id="PAMODVA" name="PAMODVA" title="<?php echo xla('Potential Acuity Meter'); ?>" value="<?php echo attr($PAMODVA); ?>" tabindex="10253"></td>
1674 <td><input type="text" id="LIODVA" name="LIODVA" title="<?php echo xla('Laser Interferometry'); ?>" value="<?php echo attr($LIODVA); ?>" tabindex="10255"></td>
1675 <td><input type="text" id="GLAREODVA" name="GLAREODVA" title="<?php echo xla('Brightness Acuity Testing'); ?>" value="<?php echo attr($GLAREODVA); ?>" tabindex="10257"></td>
1676 <td><input type="text" id="ODK1" name="ODK1" value="<?php echo attr($ODK1); ?>" tabindex="10259"></td>
1677 <td><input type="text" id="ODK2" name="ODK2" value="<?php echo attr($ODK2); ?>" tabindex="10260"></td>
1678 <td><input type="text" id="ODK2AXIS" name="ODK2AXIS" value="<?php echo attr($ODK2AXIS); ?>" tabindex="10261"></td>
1679 </tr>
1680 <tr>
1681 <td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1682 <td><input type="text" id="PHOSVA" name="PHOSVA" title="<?php echo xla('Pinhole Vision'); ?>" value="<?php echo attr($PHOSVA); ?>" tabindex="10252"></td>
1683 <td><input type="text" id="PAMOSVA" name="PAMOSVA" title="<?php echo xla('Potential Acuity Meter'); ?>" value="<?php echo attr($PAMOSVA); ?>" tabindex="10254"></td>
1684 <td><input type="text" id="LIOSVA" name="LIOSVA" title="<?php echo xla('Laser Interferometry'); ?>" value="<?php echo attr($LIOSVA); ?>" tabindex="10256"></td>
1685 <td><input type="text" id="GLAREOSVA" name="GLAREOSVA" title="<?php echo xla('Brightness Acuity Testing'); ?>" value="<?php echo attr($GLAREOSVA); ?>" tabindex="10258"></td>
1686 <td><input type="text" id="OSK1" name="OSK1" value="<?php echo attr($OSK1); ?>" tabindex="10262"></td>
1687 <td><input type="text" id="OSK2" name="OSK2" value="<?php echo attr($OSK2); ?>" tabindex="10263"></td>
1688 <td><input type="text" id="OSK2AXIS" name="OSK2AXIS" value="<?php echo attr($OSK2AXIS); ?>" tabindex="10264"></td>
1689 </tr>
1690 <tr><td>&nbsp;</td></tr>
1691 <tr>
1692 <td></td>
1693 <td title="<?php echo xla('Axial Length'); ?>"><?php echo xlt('AxLength{{axial Length}}'); ?></td>
1694 <td title="<?php echo xla('Anterior Chamber Depth'); ?>"><?php echo xlt('ACD{{anterior chamber depth}}'); ?></td>
1695 <td title="<?php echo xla('Inter-pupillary distance'); ?>"><?php echo xlt('PD{{Inter-pupillary distance}}'); ?></td>
1696 <td title="<?php echo xla('Lens Thickness'); ?>"><?php echo xlt('LT{{lens thickness}}'); ?></td>
1697 <td title="<?php echo xla('White-to-white'); ?>"><?php echo xlt('W2W{{white-to-white}}'); ?></td>
1698 <td title="<?php echo xla('Equivalent contact lens power at the corneal level'); ?>"><?php echo xlt('ECL{{equivalent contact lens power at the corneal level}}'); ?></td>
1699 <!-- <td><?php echo xlt('pend'); ?></td> -->
1700 </tr>
1701 <tr><td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1702 <td><input type="text" id="ODAXIALLENGTH" name="ODAXIALLENGTH" value="<?php echo attr($ODAXIALLENGTH); ?>" tabindex="10265"></td>
1703 <td><input type="text" id="ODACD" name="ODACD" value="<?php echo attr($ODACD); ?>" tabindex="10267"></td>
1704 <td><input type="text" id="ODPDMeasured" name="ODPDMeasured" value="<?php echo attr($ODPDMeasured); ?>" tabindex="10269"></td>
1705 <td><input type="text" id="ODLT" name="ODLT" value="<?php echo attr($ODLT); ?>" tabindex="10271"></td>
1706 <td><input type="text" id="ODW2W" name="ODW2W" value="<?php echo attr($ODW2W); ?>" tabindex="10273"></td>
1707 <td><input type="text" id="ODECL" name="ODECL" value="<?php echo attr($ODECL); ?>" tabindex="10275"></td>
1708 <!-- <td><input type="text" id="pend" name="pend" value="<?php echo attr($pend); ?>"></td> -->
1709 </tr>
1710 <tr>
1711 <td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1712 <td><input type="text" id="OSAXIALLENGTH" name="OSAXIALLENGTH" value="<?php echo attr($OSAXIALLENGTH); ?>" tabindex="10266"></td>
1713 <td><input type="text" id="OSACD" name="OSACD" value="<?php echo attr($OSACD); ?>" tabindex="10268"></td>
1714 <td><input type="text" id="OSPDMeasured" name="OSPDMeasured" value="<?php echo attr($OSPDMeasured); ?>" tabindex="10270"></td>
1715 <td><input type="text" id="OSLT" name="OSLT" value="<?php echo attr($OSLT); ?>" tabindex="10272"></td>
1716 <td><input type="text" id="OSW2W" name="OSW2W" value="<?php echo attr($OSW2W); ?>" tabindex="10274"></td>
1717 <td><input type="text" id="OSECL" name="OSECL" value="<?php echo attr($OSECL); ?>" tabindex="10276"></td>
1718 <!-- <td><input type="text" id="pend" name="pend" value="<?php echo attr($pend); ?>"></td> -->
1719 </tr>
1720 </table>
1721 </div>
1723 <?php ($VAX==1) ? ($display_Add = "") : ($display_Add = "nodisplay"); ?>
1724 <div id="LayerVision_VAX" class="refraction borderShadow <?php echo $display_Add; ?>">
1725 <span title="<?php echo attr('Close this panel and make this a Preference to stay closed'); ?>" class="closeButton fa fa-close" id="Close_VAX" name="Close_VAX"></span>
1726 <table id="Additional_VA">
1727 <th colspan="9"><?php echo xlt('Visual Acuity'); ?></th>
1728 <tr><td></td>
1729 <td title="<?php echo xla('Acuity without correction'); ?>"><?php echo xlt('SC{{Acuity without correction}}'); ?></td>
1730 <td title="<?php echo xla('Acuity with correction'); ?>"><?php echo xlt('W Rx{{Acuity with correction}}'); ?></td>
1731 <td title="<?php echo xla('Acuity with Autorefraction'); ?>"><?php echo xlt('AR{{Autorefraction Acuity}}'); ?></td>
1732 <td title="<?php echo xla('Acuity with Manifest Refraction'); ?>"><?php echo xlt('MR{{Manifest Refraction}}'); ?></td>
1733 <td title="<?php echo xla('Acuity with Cycloplegic Refraction'); ?>"><?php echo xlt('CR{{Cycloplegic Refraction}}'); ?></td>
1734 <td title="<?php echo xla('Acuity with Pinhole'); ?>"><?php echo xlt('PH{{pinhole acuity}}'); ?></td>
1735 <td title="<?php echo xla('Acuity with Contact Lenses'); ?>"><?php echo xlt('CTL{{Contact Lens}}'); ?></td>
1737 </tr>
1738 <tr><td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1739 <td><input type="text" id="SCODVA_copy_brd" name="SCODVA_copy_brd" value="<?php echo attr($SCODVA); ?>" tabindex="10300"></td>
1740 <td><input type="text" id="ODVA_1_copy_brd" name="ODVA_1_copy_brd" value="<?php echo attr($ODVA_1); ?>" tabindex="10302"></td>
1741 <td><input type="text" id="ARODVA_copy_brd" name="ARODVA_copy_brd" value="<?php echo attr($ARODVA); ?>" tabindex="10304"></td>
1742 <td><input type="text" id="MRODVA_copy_brd" name="MRODVA_copy_brd" value="<?php echo attr($MRODVA); ?>" tabindex="10306"></td>
1743 <td><input type="text" id="CRODVA_copy_brd" name="CRODVA_copy_brd" value="<?php echo attr($CRODVA); ?>" tabindex="10308"></td>
1744 <td><input type="text" id="PHODVA_copy_brd" name="PHODVA_copy_brd" value="<?php echo attr($PHODVA); ?>" tabindex="10310"></td>
1745 <td><input type="text" id="CTLODVA_copy_brd" name="CTLODVA_copy_brd" value="<?php echo attr($CTLODVA); ?>" tabindex="10312"></td>
1746 </tr>
1747 <tr><td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1748 <td><input type="text" id="SCOSVA_copy" name="SCOSVA_copy" value="<?php echo attr($SCOSVA); ?>" tabindex="10301"></td>
1749 <td><input type="text" id="OSVA_1_copy_brd" name="OSVA_1_copy_brd" value="<?php echo attr($OSVA_1); ?>" tabindex="10303"></td>
1750 <td><input type="text" id="AROSVA_copy_brd" name="AROSVA_copy_brd" value="<?php echo attr($AROSVA); ?>" tabindex="10305"></td>
1751 <td><input type="text" id="MROSVA_copy_brd" name="MROSVA_copy_brd" value="<?php echo attr($MROSVA); ?>" tabindex="10307"></td>
1752 <td><input type="text" id="CROSVA_copy_brd" name="CROSVA_copy_brd" value="<?php echo attr($CROSVA); ?>" tabindex="10309"></td>
1753 <td><input type="text" id="PHOSVA_copy_brd" name="PHOSVA_copy_brd" value="<?php echo attr($PHOSVA); ?>" tabindex="10311"></td>
1754 <td><input type="text" id="CTLOSVA_copy_brd" name="CTLOSVA_copy_brd" value="<?php echo attr($CTLOSVA); ?>" tabindex="10313"></td>
1755 </tr>
1756 <tr><td>&nbsp;</td></tr>
1757 <tr>
1758 <td></td>
1759 <td title="<?php echo xla('Near Acuity without Correction'); ?>"><?php echo xlt('scNear{{without correction near}}'); ?></td>
1760 <td title="<?php echo xla('Near Acuity with Correction'); ?>"><?php echo xlt('ccNear{{with correction at near}}'); ?></td>
1761 <td title="<?php echo xla('Near Acuity with Autorefraction'); ?>"><?php echo xlt('ARNear{{autorefraction near}}'); ?></td>
1762 <td title="<?php echo xla('Near Acuity with Manifest (Dry) refraction'); ?>"><?php echo xlt('MRNear{{manifest refraction near}}'); ?></td>
1763 <td title="<?php echo xla('Potential Acuity'); ?>"><?php echo xlt('PAM{{Potential Acuity Meter}}'); ?></td>
1764 <td title="<?php echo xla('Brightness Acuity Testing'); ?>"><?php echo xlt('BAT{{Brightness Acuity Testing}}'); ?></td>
1765 <td title="<?php echo xla('Contrast Acuity'); ?>"><?php echo xlt('Contrast{{Constrast Visual Acuity}}'); ?></td>
1766 </tr>
1767 <tr><td><b><?php echo xlt('OD{{right eye}}'); ?>:</b></td>
1768 <td><input class="jaeger" type="text" id="SCNEARODVA" title="<?php echo xla('Near Acuity without Correction'); ?>" name="SCNEARODVA" value="<?php echo attr($SCNEARODVA); ?>" tabindex="10320"></td>
1769 <td><input class="jaeger" type="text" id="ODNEARVA_1_copy_brd" title="<?php echo xla('Near Acuity with Correction'); ?>" name="ODNEARVA_1_copy_brd" value="<?php echo attr($ODNEARVA_1); ?>" tabindex="10322"></td>
1770 <td><input class="jaeger" type="text" id="ARNEARODVA_copy_brd" title="<?php echo xla('Near Acuity AutoRefraction'); ?>" name="ARNEARODVA_copy_brd" value="<?php echo attr($ARNEARODVA); ?>" tabindex="10324"></td>
1771 <td><input class="jaeger" type="text" id="MRNEARODVA_copy_brd" title="<?php echo xla('Near Acuity Manifest Refraction'); ?>" name="MRNEARODVA_copy_brd" value="<?php echo attr($MRNEARODVA); ?>" tabindex="10326"></td>
1772 <td><input type="text" id="PAMODVA_copy_brd" title="<?php echo xla('Potential Acuity Meter'); ?>" name="PAMODVA_copy_brd" value="<?php echo attr($PAMODVA); ?>" tabindex="10328"></td>
1773 <td><input type="text" id="GLAREODVA_copy_brd" title="<?php echo xla('Brightness Acuity Testing'); ?>" name="GLAREODVA_copy_brd" value="<?php echo attr($GLAREODVA); ?>" tabindex="10330"></td>
1774 <td><input type="text" id="CONTRASTODVA_copy_brd" title="<?php echo xla('Contrast Acuity Testing'); ?>" name="CONTRASTODVA_copy_brd" value="<?php echo attr($CONTRASTODVA); ?>" tabindex="10332"></td>
1775 </tr>
1776 <tr><td><b><?php echo xlt('OS{{left eye}}'); ?>:</b></td>
1777 <td><input class="jaeger" type="text" id="SCNEAROSVA" title="<?php echo xla('Near Acuity without Correction'); ?>" name="SCNEAROSVA" value="<?php echo attr($SCNEAROSVA); ?>" tabindex="10321"></td>
1778 <td><input class="jaeger" type="text" id="OSNEARVA_1_copy_brd" title="<?php echo xla('Near Acuity with Correction'); ?>" name="OSNEARVA_1_copy_brd" value="<?php echo attr($OSNEARVA_1); ?>" tabindex="10323"></td>
1779 <td><input class="jaeger" type="text" id="ARNEAROSVA_copy" title="<?php echo xla('Near Acuity AutoRefraction'); ?>" name="ARNEAROSVA_copy" value="<?php echo attr($ARNEAROSVA); ?>" tabindex="10325"></td>
1780 <td><input class="jaeger" type="text" id="MRNEAROSVA_copy" title="<?php echo xla('Near Acuity Manifest Refraction'); ?>" name="MRNEAROSVA_copy" value="<?php echo attr($MRNEAROSVA); ?>" tabindex="10327"></td>
1781 <td><input type="text" id="PAMOSVA_copy_brd" title="<?php echo xla('Potential Acuity Meter'); ?>" name="PAMOSVA_copy_brd" value="<?php echo attr($PAMOSVA); ?>" tabindex="10329"></td>
1782 <td><input type="text" id="GLAREOSVA_copy_brd" title="<?php echo xla('Brightness Acuity Testing'); ?>" name="GLAREOSVA_copy_brd" value="<?php echo attr($GLAREOSVA); ?>" tabindex="10331"></td>
1783 <td><input type="text" id="CONTRASTOSVA" title="<?php echo xla('Contrast Acuity Testing'); ?>" name="CONTRASTOSVA" value="<?php echo attr($CONTRASTOSVA); ?>" tabindex="10333"></td>
1784 </tr>
1785 </table>
1786 </div>
1787 </div>
1788 </div>
1789 <!-- end of the refraction box -->
1790 <!-- start of the exam selection/middle menu row -->
1791 <div class="sections" name="mid_menu" id="mid_menu">
1792 <span id="EXAM_defaults" name="EXAM_defaults" value="Defaults" class="borderShadow"><i class="fa fa-newspaper-o"></i>&nbsp;<b><?php echo xlt('Defaults'); ?></b></span>
1793 <span id="EXAM_TEXT" name="EXAM_TEXT" value="TEXT" class="borderShadow"><i class="fa fa-hospital-o"></i>&nbsp;<b><?php echo xlt('Text'); ?></b></span>
1794 <span id="EXAM_DRAW" name="EXAM_DRAW" value="DRAW" class="borderShadow">
1795 <i class="fa fa-paint-brush fa-sm"> </i>&nbsp;<b><?php echo xlt('Draw'); ?></b></span>
1796 <span id="EXAM_QP" name="EXAM_QP" title="<?php echo xla('Open the Quick Pick panels'); ?>" value="QP" class="borderShadow">
1797 <i class="fa fa-database fa-sm"> </i>&nbsp;<b><?php echo xlt('Quick Picks'); ?></b>
1798 </span>
1799 <?php
1800 // output is defined above and if there are old visits, check for orders in eye_mag_functions:
1801 // $output = priors_select("ALL",$id,$id,$pid);
1802 ($output_priors =='') ? ($title = "There are no prior visits documented to display for this patient.") : ($title="Display old exam findings and copy forward if desired");?>
1803 <span id="PRIORS_ALL_left_text" name="PRIORS_ALL_left_text"
1804 class="borderShadow"><i class="fa fa-paste" title="<?php echo xla($title); ?>"></i>
1805 <?php
1806 if ($output_priors !='') { echo $output_priors; } else { echo "<b>". xlt("First visit: No Old Records")."</b>"; }
1807 ?>&nbsp;
1808 </span>
1809 </div>
1810 <!-- end of the exam selection row -->
1812 <!-- start of the Shorthand Entry Box -->
1813 <div id="EXAM_KB" name="EXAM_KB" class="kb borderShadow nodisplay">
1814 <span class="closeButton fa fa-close" id="CLOSE_kb" name="CLOSE_kb"></span>
1815 <span class="BAR2_kb" title="<?php echo xla('Click to display shorthand field names.'); ?>" class="ke"><b><?php echo xlt('Shorthand'); ?></b>
1816 </span>
1818 <a onclick="top.restoreSession();goto_url('<?php echo $GLOBALS['webroot']; ?>/interface/forms/eye_mag/help.php?zone=all');">
1819 <i title="<?php echo xla('Click for Shorthand Help.'); ?>" class="fa fa-info-circle fa-1"></i>
1820 </a><br />
1821 <textarea id="ALL_keyboard_left" name="ALL_keyboard_left" tabindex='1000'></textarea>
1822 </div>
1823 <!-- end of the Shorthand Entry Box -->
1825 <!-- end reporting div -->
1826 <span class="anchor" id="SELECTION_ROW_anchor"></span>
1828 <!-- Start of the exam sections -->
1829 <div class="loading" id="EXAM_sections_loading" name="EXAM_sections_loading">
1830 <hr></hr>
1831 <i class="fa fa-spinner fa-spin"></i>
1832 </div>
1833 <div class="nodisplay" id="DA_EXAM_sections" name="DA_EXAM_sections">
1834 <!-- start External Exam -->
1835 <div id="EXT_1" name="EXT_1" class="clear_both">
1836 <span class="anchor" id="EXT_anchor"></span>
1837 <div id="EXT_left" class="exam_section_left borderShadow" >
1838 <div id="EXT_left_text" class="TEXT_class">
1839 <span class="closeButton fa fa-paint-brush" title="<?php echo xla('Open/Close the External drawing panel'); ?>" id="BUTTON_DRAW_EXT" name="BUTTON_DRAW_EXT"></span>
1840 <i class="closeButton_2 fa fa-database" title="<?php echo xla('Open/Close the External Exam Quick Picks panel'); ?>" id="BUTTON_QP_EXT" name="BUTTON_QP_EXT"></i>
1841 <i class="closeButton_3 fa fa-user-md fa-sm fa-2" name="Shorthand_kb" title="<?php echo xla("Open/Close the Shorthand Window and display Shorthand Codes"); ?>"></i>
1842 <b><?php echo xlt('External Exam'); ?>:</b><div class="kb kb_left" title="<?php echo xla("External Exam Default Values"); ?>"><?php echo text('DEXT'); ?></div><br />
1843 <div id="EXT_left_1">
1844 <table>
1845 <?php
1846 list($imaging,$episode) = display($pid,$encounter, "EXT");
1847 echo $episode;
1849 </table>
1850 <table>
1851 <tr>
1852 <td></td><td><?php echo xlt('R'); ?></td><td><?php echo xlt('L{{left}}'); ?></td>
1853 </tr>
1854 <tr>
1855 <td class="right" title="<?php echo xla('Levator Function'); ?>">
1856 <div class="kb kb_left"><?php echo xlt('LF{{levator function}}'); ?></div><?php echo xlt('Lev Fn{{levator function}}'); ?></td>
1857 <td><input type="text" name="RLF" id="RLF" class="EXT" value="<?php echo attr($RLF); ?>"></td>
1858 <td><input type="text" name="LLF" id="LLF" class="EXT" value="<?php echo attr($LLF); ?>"></td>
1859 </tr>
1860 <tr>
1861 <td class="right" title="<?php echo xla('Marginal Reflex Distance'); ?>">
1862 <div class="kb kb_left"><?php echo xlt('MRD{{marginal reflex distance}}'); ?></div><?php echo xlt('MRD{{marginal reflex distance}}'); ?></td>
1863 <td><input type="text" size="1" name="RMRD" id="RMRD" class="EXT" value="<?php echo attr($RMRD); ?>"></td>
1864 <td><input type="text" size="1" name="LMRD" id="LMRD" class="EXT" value="<?php echo attr($LMRD); ?>"></td>
1865 </tr>
1866 <tr>
1867 <td class="right" title="<?php echo xla('Vertical Fissure: central height between lid margins'); ?>">
1868 <div class="kb kb_left"><?php echo xlt('VF{{vertical fissure}}'); ?></div><?php echo xlt('Vert Fissure{{vertical fissure}}'); ?></td>
1869 <td><input type="text" size="1" name="RVFISSURE" id="RVFISSURE" class="EXT" value="<?php echo attr($RVFISSURE); ?>"></td>
1870 <td><input type="text" size="1" name="LVFISSURE" id="LVFISSURE" class="EXT" value="<?php echo attr($LVFISSURE); ?>"></td>
1871 </tr>
1872 <tr>
1873 <td class="right" title="<?php echo xla('Any carotid bruits appreciated?'); ?>">
1874 <div class="kb kb_left"><?php echo xlt('CAR{{carotid arteries}}'); ?></div><?php echo xlt('Carotid{{carotid arteries}}'); ?></td>
1875 <td><input type="text" name="RCAROTID" id="RCAROTID" class="EXT" class="EXT" value="<?php echo attr($RCAROTID); ?>"></td>
1876 <td><input type="text" name="LCAROTID" id="LCAROTID" class="EXT" value="<?php echo attr($LCAROTID); ?>"></td>
1877 </tr>
1878 <tr>
1879 <td class="right" title="<?php echo xla('Temporal Arteries'); ?>">
1880 <div class="kb kb_left"><?php echo xlt('TA{{temporal arteries}}'); ?></div>
1881 <?php echo xlt('Temp. Art.{{temporal arteries}}'); ?></td>
1882 <td><input type="text" size="1" name="RTEMPART" id="RTEMPART" class="EXT" value="<?php echo attr($RTEMPART); ?>"></td>
1883 <td><input type="text" size="1" name="LTEMPART" id="LTEMPART" class="EXT" value="<?php echo attr($LTEMPART); ?>"></td>
1884 </tr>
1885 <tr>
1886 <td class="right" title="<?php echo xla('Cranial Nerve 5: Trigeminal Nerve'); ?>">
1887 <div class="kb kb_left"><?php echo xlt('CN5{{cranial nerve five}}'); ?></div><?php echo xlt('CN V{{cranial nerve five}}'); ?></td>
1888 <td><input type="text" size="1" name="RCNV" id="RCNV" class="EXT" value="<?php echo attr($RCNV); ?>"></td>
1889 <td><input type="text" size="1" name="LCNV" id="LCNV" class="EXT" value="<?php echo attr($LCNV); ?>"></td>
1890 </tr>
1891 <tr>
1892 <td class="right" title="<?php echo xla('Cranial Nerve 7: Facial Nerve'); ?>">
1893 <div class="kb kb_left"><?php echo xlt('CN7{{cranial nerve seven}}'); ?></div><?php echo xlt('CN VII{{cranial nerve seven}}'); ?></td>
1894 <td><input type="text" size="1" name="RCNVII" class="EXT" id="RCNVII" value="<?php echo attr($RCNVII); ?>"></td>
1895 <td><input type="text" size="1" name="LCNVII" class="EXT" id="LCNVII" value="<?php echo attr($LCNVII); ?>"></td>
1896 </tr>
1898 <tr><td colspan=3 class="underline"><?php echo xlt('Hertel Exophthalmometry'); ?></td></tr>
1899 <tr class="center">
1900 <td>
1901 <input type="text" size="1" id="ODHERTEL" name="ODHERTEL" class="EXT" value="<?php echo attr($ODHERTEL); ?>">
1902 <i class="fa fa-minus"></i>
1903 </td>
1904 <td>
1905 <input type="text" size=3 id="HERTELBASE" name="HERTELBASE" class="EXT" value="<?php echo attr($HERTELBASE); ?>">
1906 <i class="fa fa-minus"></i>
1907 </td>
1908 <td>
1909 <input type="text" size=1 id="OSHERTEL" name="OSHERTEL" class="EXT" value="<?php echo attr($OSHERTEL); ?>">
1910 </td>
1911 </tr>
1912 <tr>
1913 <td><div class="kb kb_center"><?php echo xlt('RH{{right hertel measurement}}'); ?></div></td>
1914 <td><div class="kb kb_center"><?php echo xlt('HERT{{Hertel exophthalmometry}}'); ?></div></td>
1915 <td><div class="kb kb_center"><?php echo xlt('LH{{left hertel measurement}}'); ?></div></td>
1916 </tr>
1917 </table>
1918 </div>
1920 <?php ($EXT_VIEW ==1) ? ($display_EXT_view = "wide_textarea") : ($display_EXT_view= "narrow_textarea");?>
1921 <?php ($display_EXT_view == "wide_textarea") ? ($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?>
1922 <div id="EXT_text_list" name="EXT_text_list" class="borderShadow <?php echo attr($display_EXT_view); ?>">
1923 <span class="top_right fa <?php echo attr($marker); ?>" name="EXT_text_view" id="EXT_text_view"></span>
1924 <table cellspacing="0" cellpadding="0">
1925 <tr>
1926 <th><?php echo xlt('Right'); ?></th><th></th><th><?php echo xlt('Left'); ?></th>
1927 </tr>
1928 <tr>
1929 <td><textarea name="RBROW" id="RBROW" class="right EXT"><?php echo text($RBROW); ?></textarea></td>
1930 <td><div class="ident"><?php echo xlt('Brow'); ?></div>
1931 <div class="kb kb_left"><?php echo xlt('RB{{right brow}}'); ?></div>
1932 <div class="kb kb_right"><?php echo xlt('LB{{left brow}}'); ?></div>
1933 </td>
1934 <td><textarea name="LBROW" id="LBROW" class="EXT"><?php echo text($LBROW); ?></textarea>
1935 </td>
1936 </tr>
1937 <tr>
1938 <td><textarea name="RUL" id="RUL" class="right EXT"><?php echo text($RUL); ?></textarea></td>
1939 <td><div class="ident"><?php echo xlt('Upper Lids'); ?></div>
1940 <div class="kb kb_left"><?php echo xlt('RUL{{right upper eyelid}}'); ?></div>
1941 <div class="kb kb_right"><?php echo xlt('LUL{{left upper eyelid}}'); ?></div></td>
1942 <td><textarea name="LUL" id="LUL" class="EXT"><?php echo text($LUL); ?></textarea></td>
1943 </tr>
1944 <tr>
1945 <td><textarea name="RLL" id="RLL" class="right EXT"><?php echo text($RLL); ?></textarea></td>
1946 <td><div class="ident"><?php echo xlt('Lower Lids'); ?></div>
1947 <div class="kb kb_left"><?php echo xlt('RLL{{right lower eyelid}}'); ?></div>
1948 <div class="kb kb_right"><?php echo xlt('LLL{{left lower eyelid}}'); ?></div></td>
1949 <td><textarea name="LLL" id="LLL" class="EXT"><?php echo text($LLL); ?></textarea></td>
1950 </tr>
1951 <tr>
1952 <td><textarea name="RMCT" id="RMCT" class="right EXT"><?php echo text($RMCT); ?></textarea></td>
1953 <td><div class="ident"><?php echo xlt('Medial Canthi'); ?></div>
1954 <div class="kb kb_left"><?php echo xlt('RMC{{right medial canthus}}'); ?></div>
1955 <div class="kb kb_right"><?php echo xlt('LMC{{left medial chathus}}'); ?></div></td>
1956 <td><textarea name="LMCT" id="LMCT" class="EXT"><?php echo text($LMCT); ?></textarea></td>
1957 </tr>
1958 <tr>
1959 <td><textarea name="RADNEXA" id="RADNEXA" class="right EXT"><?php echo text($RADNEXA); ?></textarea></td>
1960 <td><div class="ident"><?php echo xlt('Adnexa'); ?></div>
1961 <div class="kb kb_left"><?php echo xlt('RAD{{right adnexa}}'); ?></div>
1962 <div class="kb kb_right"><?php echo xlt('LAD{{left adnexa}}'); ?></div></td>
1963 <td><textarea name="LADNEXA" id="LADNEXA" class=" EXT"><?php echo text($LADNEXA); ?></textarea></td>
1964 </tr>
1965 </table>
1966 </div> <br />
1967 <div id="EXT_COMMENTS_DIV" class="QP_lengthen" >
1968 <b><?php echo xlt('Comments'); ?>:</b><div class="kb kb_left"><?php echo xlt('ECOM{{external comments abbreviation}}'); ?></div>
1969 <br />
1970 <textarea id="EXT_COMMENTS" name="EXT_COMMENTS" class=" EXT"><?php echo text($EXT_COMMENTS); ?></textarea>
1971 </div>
1972 </div>
1973 </div>
1974 <div id="EXT_right" name="EXT_right" class="exam_section_right borderShadow text_clinical">
1975 <?php display_draw_section ("EXT",$encounter,$pid); ?>
1976 <div id="PRIORS_EXT_left_text" name="PRIORS_EXT_left_text" class="PRIORS_class PRIORS">
1977 <i class="fa fa-spinner fa-spin"></i>
1978 </div>
1979 <div id="QP_EXT" name="QP_EXT" class="QP_class">
1980 <input type="hidden" id="EXT_prefix" name="EXT_prefix" value="<?php echo attr($EXT_prefix); ?>">
1982 <span class="closeButton fa fa-close pull-right z100" id="BUTTON_TEXTD_EXT" name="BUTTON_TEXTD_EXT" value="1"></span>
1983 <div class="qp10">
1984 <span class="eye_button eye_button_selected" id="EXT_prefix_off" name="EXT_prefix_off" onclick="$('#EXT_prefix').val('').trigger('change');"><?php echo xlt('Off'); ?></span>
1985 <span class="eye_button" id="EXT_defaults" name="EXT_defaults"><?php echo xlt('Defaults'); ?></span>
1986 <span class="eye_button" id="EXT_prefix_no" name="EXT_prefix_no" onclick="$('#EXT_prefix').val('no').trigger('change');"> <?php echo xlt('no'); ?> </span>
1987 <span class="eye_button" id="EXT_prefix_trace" name="EXT_prefix_trace" onclick="$('#EXT_prefix').val('trace').trigger('change');"> <?php echo xlt('tr'); ?> </span>
1988 <span class="eye_button" id="EXT_prefix_1" name="EXT_prefix_1" onclick="$('#EXT_prefix').val('+1').trigger('change');"> <?php echo xlt('+1'); ?> </span>
1989 <span class="eye_button" id="EXT_prefix_2" name="EXT_prefix_2" onclick="$('#EXT_prefix').val('+2').trigger('change');"> <?php echo xlt('+2'); ?> </span>
1990 <span class="eye_button" id="EXT_prefix_3" name="EXT_prefix_3" onclick="$('#EXT_prefix').val('+3').trigger('change');"> <?php echo xlt('+3'); ?> </span>
1991 <?php echo $selector = priors_select("EXT",$id,$id,$pid); ?>
1992 </div>
1993 <div name="QP_11">
1994 <span class="eye_button" id="EXT_prefix_1mm" name="EXT_prefix_1mm" onclick="$('#EXT_prefix').val('1mm').trigger('change');"> 1<?php echo xlt('mm{{millimeters}}'); ?> </span> <br />
1995 <span class="eye_button" id="EXT_prefix_2mm" name="EXT_prefix_2mm" onclick="$('#EXT_prefix').val('2mm').trigger('change');"> 2<?php echo xlt('mm{{millimeters}}'); ?> </span> <br />
1996 <span class="eye_button" id="EXT_prefix_3mm" name="EXT_prefix_3mm" onclick="$('#EXT_prefix').val('3mm').trigger('change');"> 3<?php echo xlt('mm{{millimeters}}'); ?> </span> <br />
1997 <span class="eye_button" id="EXT_prefix_4mm" name="EXT_prefix_4mm" onclick="$('#EXT_prefix').val('4mm').trigger('change');"> 4<?php echo xlt('mm{{millimeters}}'); ?> </span> <br />
1998 <span class="eye_button" id="EXT_prefix_5mm" name="EXT_prefix_5mm" onclick="$('#EXT_prefix').val('5mm').trigger('change');"> 5<?php echo xlt('mm{{millimeters}}'); ?> </span> <br />
1999 <span class="eye_button" id="EXT_prefix_medial" name="EXT_prefix_medial" onclick="$('#EXT_prefix').val('medial').trigger('change');"><?php echo xlt('med{{medial}}'); ?></span>
2000 <span class="eye_button" id="EXT_prefix_lateral" name="EXT_prefix_lateral" onclick="$('#EXT_prefix').val('lateral').trigger('change');"><?php echo xlt('lat{{lateral}}'); ?></span>
2001 <span class="eye_button" id="EXT_prefix_superior" name="EXT_prefix_superior" onclick="$('#EXT_prefix').val('superior').trigger('change');"><?php echo xlt('sup{{superior}}'); ?></span>
2002 <span class="eye_button" id="EXT_prefix_inferior" name="EXT_prefix_inferior" onclick="$('#EXT_prefix').val('inferior').trigger('change');"><?php echo xlt('inf{{inferior}}'); ?></span>
2003 <span class="eye_button" id="EXT_prefix_anterior" name="EXT_prefix_anterior" onclick="$('#EXT_prefix').val('anterior').trigger('change');"><?php echo xlt('ant{{anterior}}'); ?></span> <br />
2004 <span class="eye_button" id="EXT_prefix_mid" name="EXT_prefix_mid" onclick="$('#EXT_prefix').val('mid').trigger('change');"><?php echo xlt('mid{{middle}}'); ?></span> <br />
2005 <span class="eye_button" id="EXT_prefix_posterior" name="EXT_prefix_posterior" onclick="$('#EXT_prefix').val('posterior').trigger('change');"><?php echo xlt('post{{posterior}}'); ?></span> <br />
2006 <span class="eye_button" id="EXT_prefix_deep" name="EXT_prefix_deep" onclick="$('#EXT_prefix').val('deep').trigger('change');"><?php echo xlt('deep'); ?></span>
2007 <br />
2008 <br />
2009 <span class="eye_button" id="EXT_prefix_clear" name="EXT_prefix_clear"
2010 title="<?php echo xla('This will clear the data from all External Exam fields'); ?>"
2011 onclick="$('#EXT_prefix').val('clear').trigger('change');"><?php echo xlt('clear'); ?></span>
2012 </div>
2014 <div id="EXT_QP_block1" name="EXT_QP_block1" class="QP_block borderShadow text_clinical" >
2016 <?php
2017 echo $QP_ANTSEG = display_QP("EXT",$providerID); ?>
2018 </div>
2019 </div>
2020 </div>
2021 </div>
2022 <!-- end External Exam -->
2024 <!-- start Anterior Segment -->
2025 <div id="ANTSEG_1" class="clear_both">
2026 <div id="ANTSEG_left" name="ANTSEG_left" class="exam_section_left borderShadow">
2027 <span class="anchor" id="ANTSEG_anchor"></span>
2028 <div class="TEXT_class" id="ANTSEG_left_text">
2029 <span class="closeButton fa fa-paint-brush" title="<?php echo xla('Open/Close the Anterior Segment drawing panel'); ?>" id="BUTTON_DRAW_ANTSEG" name="BUTTON_DRAW_ANTSEG"></span>
2030 <i class="closeButton_2 fa fa-database"title="<?php echo xla('Open/Close the Anterior Segment Exam Quick Picks panel'); ?>" id="BUTTON_QP_ANTSEG" name="BUTTON_QP_ANTSEG"></i>
2031 <i class="closeButton_3 fa fa-user-md fa-sm fa-2" name="Shorthand_kb" title="<?php echo xla("Open/Close the Shorthand Window and display Shorthand Codes"); ?>"></i>
2032 <b><?php echo xlt('Anterior Segment'); ?>:</b><div class="kb kb_left" title="<?php echo xla("Anterior Segment Default Values"); ?>"><?php echo text('DAS'); ?></div><br />
2033 <div id="ANTSEG_left_1" class="text_clinical">
2034 <table>
2035 <?php
2036 list($imaging,$episode) = display($pid,$encounter, "ANTSEG");
2037 echo $episode;
2039 </table>
2040 <table>
2041 <tr>
2042 <td></td><td><?php echo xlt('R{{right}}'); ?></td><td><?php echo xlt('L{{left}}'); ?></td>
2043 </tr>
2044 <tr>
2045 <td class="right" title="<?php echo xla('Gonioscopy'); ?>">
2046 <div class="kb kb_left"><?php echo xlt('R/LG{{right/left gonioscopy}}'); ?></div>
2047 <?php echo xlt('Gonio{{Gonioscopy abbreviation}}'); ?>
2048 </td>
2049 <td><input type="text" name="ODGONIO" id="ODGONIO" value="<?php echo attr($ODGONIO); ?>"></td>
2050 <td><input type="text" name="OSGONIO" id="OSGONIO" value="<?php echo attr($OSGONIO); ?>"></td>
2051 </tr>
2052 <tr>
2053 <td class="right" title="<?php echo xla('Pachymetry: Central Corneal Thickness'); ?>">
2054 <div class="kb kb_left"><?php echo xlt('R/LPACH{{right/left pachymetry}}'); ?></div>
2055 <?php echo xlt('Pachy{{Pachymetry}}'); ?>
2056 </td>
2057 <td><input type="text" name="ODKTHICKNESS" id="ODKTHICKNESS" value="<?php echo attr($ODKTHICKNESS); ?>">
2058 </td>
2059 <td><input type="text" name="OSKTHICKNESS" id="OSKTHICKNESS" value="<?php echo attr($OSKTHICKNESS); ?>">
2060 </td>
2061 </tr>
2062 <tr>
2063 <td class="right" title="<?php echo xla('Schirmers I (w/o anesthesia)'); ?>">
2064 <div class="kb kb_left"><?php echo xlt('R/LSCH1{{right/left Schirmers I (w/o anesthesia)}}'); ?></div>
2065 <?php echo xlt('Schirmers I'); ?> </td>
2066 <td><input type="text" name="ODSCHIRMER1" id="ODSCHIRMER1" value="<?php echo attr($ODSCHIRMER1); ?>">
2067 </td>
2068 <td><input type="text" name="OSSCHIRMER1" id="OSSCHIRMER1" value="<?php echo attr($OSSCHIRMER1); ?>">
2069 </td>
2070 </tr>
2071 <tr>
2072 <td class="right" title="<?php echo xla('Schirmers II (w/ anesthesia)'); ?>">
2073 <div class="kb kb_left"><?php echo xlt('R/LSCH2{{right/left Schirmers II (w/ anesthesia)}}'); ?></div>
2074 <?php echo xlt('Schirmers II'); ?> </td>
2075 <td><input type="text" name="ODSCHIRMER2" id="ODSCHIRMER2" value="<?php echo attr($ODSCHIRMER2); ?>">
2076 </td>
2077 <td><input type="text" name="OSSCHIRMER2" id="OSSCHIRMER2" value="<?php echo attr($OSSCHIRMER2); ?>">
2078 </td>
2079 </tr>
2080 <tr>
2081 <td class="right" title="<?php echo xla('Tear Break Up Time'); ?>">
2082 <div class="kb kb_left"><?php echo xlt('R/LTBUT{{right/left Tear Break Up Time}}'); ?></div>
2083 <?php echo xlt('TBUT{{tear breakup time}}'); ?> </td>
2084 <td><input type="text" name="ODTBUT" id="ODTBUT" value="<?php echo attr($ODTBUT); ?>"></td>
2085 <td><input type="text" name="OSTBUT" id="OSTBUT" value="<?php echo attr($OSTBUT); ?>"></td>
2086 </tr>
2087 <tr>
2088 <td colspan="3" rowspan="4" id="dil_box">
2089 <br />
2090 <span id="dil_listbox_title"><?php echo xlt('Dilated with'); ?>:</span><br />
2091 <?php
2092 //TODO: convert to list. How about a jquery multiselect box, stored in DIL_MEDS field with "|" as a delimiter? OK...
2093 //create a list of all our options for dilation Eye_Drug_Dilation
2094 //create the jquery selector. Store results in DB.
2095 //on loading page, and on READ-ONLY, need to convert DIL_MEDS to correct thing here.
2096 //We need times too...
2097 //OK. Second delimiter @ for time, within "|" delimiters
2098 //Do we know what time it is? Yes from IOPTIME code?....
2100 <table id="dil_listbox">
2101 <tr>
2102 <td>
2103 <input type="checkbox" class="dil_drug" id="CycloMydril" name="CYCLOMYDRIL" value="Cyclomydril" <?php if ($CYCLOMYDRIL == 'Cyclomydril') echo "checked='checked'"; ?> />
2104 <label for="CycloMydril" class="input-helper input-helper--checkbox dil_drug_label"><?php echo xlt('CycloMydril'); ?></label>
2105 </td>
2106 <td>
2107 <input type="checkbox" class="dil_drug" id="Tropicamide" name="TROPICAMIDE" value="Tropicamide 2.5%" <?php if ($TROPICAMIDE == 'Tropicamide 2.5%') echo "checked='checked'"; ?> />
2108 <label for="Tropicamide" class="input-helper input-helper--checkbox dil_drug_label"><?php echo xlt('Tropic 2.5%'); ?></label>
2109 </td>
2110 </tr>
2111 <tr>
2112 <td>
2113 <input type="checkbox" class="dil_drug" id="Neo25" name="NEO25" value="Neosynephrine 2.5%" <?php if ($NEO25 =='Neosynephrine 2.5%') echo "checked='checked'"; ?> />
2114 <label for="Neo25" class="input-helper input-helper--checkbox dil_drug_label"><?php echo xlt('Neo 2.5%'); ?></label>
2115 </td>
2116 <td>
2117 <input type="checkbox" class="dil_drug" id="Neo10" name="NEO10" value="Neosynephrine 10%" <?php if ($NEO10 =='Neosynephrine 10%') echo "checked='checked'"; ?> />
2118 <label for="Neo10" class="input-helper input-helper--checkbox dil_drug_label"><?php echo xlt('Neo 10%'); ?></label>
2119 </td>
2120 </tr>
2121 <tr>
2122 <td>
2123 <input type="checkbox" class="dil_drug" id="Cyclogyl" name="CYCLOGYL" value="Cyclopentolate 1%" <?php if ($CYCLOGYL == 'Cyclopentolate 1%') echo "checked='checked'"; ?> />
2124 <label for="Cyclogyl" class="input-helper input-helper--checkbox dil_drug_label"><?php echo xlt('Cyclo 1%'); ?></label>
2125 </td>
2126 <td> <input type="checkbox" class="dil_drug" id="Atropine" name="ATROPINE" value="Atropine 1%" <?php if ($ATROPINE == 'Atropine 1%') echo "checked='checked'"; ?> />
2127 <label for="Atropine" class="input-helper input-helper--checkbox dil_drug_label"><?php echo xlt('Atropine 1%'); ?></label>
2128 </td>
2129 </tr>
2130 </table>
2131 </td>
2132 </tr>
2133 </table>
2134 </div>
2136 <?php ($ANTSEG_VIEW =='1') ? ($display_ANTSEG_view = "wide_textarea") : ($display_ANTSEG_view= "narrow_textarea");?>
2137 <?php ($display_ANTSEG_view == "wide_textarea") ? ($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?>
2138 <div id="ANTSEG_text_list" name="ANTSEG_text_list" class="borderShadow <?php echo attr($display_ANTSEG_view); ?>" >
2139 <span class="top_right fa <?php echo attr($marker); ?>" name="ANTSEG_text_view" id="ANTSEG_text_view"></span>
2140 <table>
2141 <tr>
2142 <th><?php echo xlt('OD{{right eye}}'); ?></th><th></th><th><?php echo xlt('OS{{left eye}}'); ?></th></td>
2143 </tr>
2144 <tr>
2145 <td>
2146 <textarea name="ODCONJ" id="ODCONJ" class="right"><?php echo text($ODCONJ); ?></textarea></td>
2147 <td><div class="ident"><?php echo xlt('Conj{{Conjunctiva}}'); ?> / <?php echo xlt('Sclera'); ?></div>
2148 <div class="kb kb_left"><?php echo xlt('RC{{right conjunctiva}}'); ?></div>
2149 <div class="kb kb_right"><?php echo xlt('LC{{left conjunctiva}}'); ?></div></td>
2150 <td><textarea name="OSCONJ" id="OSCONJ" class="ANTSEG"><?php echo text($OSCONJ); ?></textarea></td>
2151 </tr>
2152 <tr>
2153 <td><textarea name="ODCORNEA" id="ODCORNEA" class="right"><?php echo text($ODCORNEA); ?></textarea></td>
2154 <td><div class="ident"><?php echo xlt('Cornea'); ?></div>
2155 <div class="kb kb_left"><?php echo xlt('RK{{right cornea}}'); ?></div>
2156 <div class="kb kb_right"><?php echo xlt('LK{{left cornea}}'); ?></div></td></td>
2157 <td><textarea name="OSCORNEA" id="OSCORNEA" class="ANTSEG"><?php echo text($OSCORNEA); ?></textarea></td>
2158 </tr>
2159 <tr>
2160 <td><textarea name="ODAC" id="ODAC" class="right"><?php echo text($ODAC); ?></textarea></td>
2161 <td><div class="ident"><?php echo xlt('A/C{{anterior chamber}}'); ?></div>
2162 <div class="kb kb_left"><?php echo xlt('RAC{{right anterior chamber}}'); ?></div>
2163 <div class="kb kb_right"><?php echo xlt('LAC{{left anterior chamber}}'); ?></div></td></td>
2164 <td><textarea name="OSAC" id="OSAC" class="ANTSEG"><?php echo text($OSAC); ?></textarea></td>
2165 </tr>
2166 <tr>
2167 <td><textarea name="ODLENS" id="ODLENS" class="right"><?php echo text($ODLENS); ?></textarea></td>
2168 <td><div class="ident"><?php echo xlt('Lens'); ?></div>
2169 <div class="kb kb_left"><?php echo xlt('RL{{right lens}}'); ?></div>
2170 <div class="kb kb_right"><?php echo xlt('LL{{left lens}}'); ?></div></td></td>
2171 <td><textarea name="OSLENS" id="OSLENS" class="ANTSEG"><?php echo text($OSLENS); ?></textarea></td>
2172 </tr>
2173 <tr>
2174 <td><textarea name="ODIRIS" id="ODIRIS" class="right"><?php echo text($ODIRIS); ?></textarea></td>
2175 <td><div class="ident"><?php echo xlt('Iris'); ?></div>
2176 <div class="kb kb_left"><?php echo xlt('RI{{right iris}}'); ?>RI</div><div class="kb kb_right"><?php echo xlt('LL{{left iris}}'); ?></div></td></td>
2177 <td><textarea name="OSIRIS" id="OSIRIS" class="ANTSEG"><?php echo text($OSIRIS); ?></textarea></td>
2178 </tr>
2179 </table>
2180 </div> <br />
2181 <div class="QP_lengthen" id="ANTSEG_COMMENTS_DIV">
2182 <b><?php echo xlt('Comments'); ?>:</b><div class="kb kb_left"><?php echo xlt('ACOM{{Anterior Segment}}'); ?> </div><br />
2183 <textarea id="ANTSEG_COMMENTS" name="ANTSEG_COMMENTS"><?php echo text($ANTSEG_COMMENTS); ?></textarea>
2184 </div>
2185 </div>
2186 </div>
2188 <div id="ANTSEG_right" NAME=="ANTSEG_right" class="exam_section_right borderShadow text_clinical ">
2189 <div id="PRIORS_ANTSEG_left_text" name="PRIORS_ANTSEG_left_text" class="PRIORS_class PRIORS">
2190 <i class="fa fa-spinner fa-spin"></i>
2191 </div>
2192 <?php display_draw_section ("ANTSEG",$encounter,$pid); ?>
2193 <div id="QP_ANTSEG" name="QP_ANTSEG" class="QP_class">
2194 <input type="hidden" id="ANTSEG_prefix" name="ANTSEG_prefix" value="">
2195 <div class="qp10">
2196 <span class="eye_button eye_button_selected" id="ANTSEG_prefix_off" name="ANTSEG_prefix_off" onclick="$('#ANTSEG_prefix').val('off').trigger('change');"><?php echo xlt('Off'); ?> </span>
2197 <span class="eye_button" id="ANTSEG_defaults" name="ANTSEG_defaults"><?php echo xlt('Defaults'); ?></span>
2198 <span class="eye_button" id="ANTSEG_prefix_no" name="ANTSEG_prefix_no" onclick="$('#ANTSEG_prefix').val('no').trigger('change');"> <?php echo xlt('no'); ?> </span>
2199 <span class="eye_button" id="ANTSEG_prefix_trace" name="ANTSEG_prefix_trace" onclick="$('#ANTSEG_prefix').val('trace').trigger('change');"> <?php echo xlt('tr'); ?> </span>
2200 <span class="eye_button" id="ANTSEG_prefix_1" name="ANTSEG_prefix_1" onclick="$('#ANTSEG_prefix').val('+1').trigger('change');"> <?php echo xlt('+1'); ?> </span>
2201 <span class="eye_button" id="ANTSEG_prefix_2" name="ANTSEG_prefix_2" onclick="$('#ANTSEG_prefix').val('+2').trigger('change');"> <?php echo xlt('+2'); ?> </span>
2202 <span class="eye_button" id="ANTSEG_prefix_3" name="ANTSEG_prefix_3" onclick="$('#ANTSEG_prefix').val('+3').trigger('change');"> <?php echo xlt('+3'); ?> </span>
2203 <?php echo $selector = priors_select("ANTSEG",$id,$id,$pid); ?>
2204 </div>
2205 <div name="QP_11">
2206 <span class="eye_button" id="ANTSEG_prefix_1mm" name="ANTSEG_prefix_1mm" onclick="$('#ANTSEG_prefix').val('1mm').trigger('change');"> <?php echo xlt('1mm'); ?> </span> <br />
2207 <span class="eye_button" id="ANTSEG_prefix_2mm" name="ANTSEG_prefix_2mm" onclick="$('#ANTSEG_prefix').val('2mm').trigger('change');"> <?php echo xlt('2mm'); ?> </span> <br />
2208 <span class="eye_button" id="ANTSEG_prefix_3mm" name="ANTSEG_prefix_3mm" onclick="$('#ANTSEG_prefix').val('3mm').trigger('change');"> <?php echo xlt('3mm'); ?> </span> <br />
2209 <span class="eye_button" id="ANTSEG_prefix_4mm" name="ANTSEG_prefix_4mm" onclick="$('#ANTSEG_prefix').val('4mm').trigger('change');"> <?php echo xlt('4mm'); ?> </span> <br />
2210 <span class="eye_button" id="ANTSEG_prefix_5mm" name="ANTSEG_prefix_5mm" onclick="$('#ANTSEG_prefix').val('5mm').trigger('change');"> <?php echo xlt('5mm'); ?> </span> <br />
2211 <span class="eye_button" id="ANTSEG_prefix_medial" name="ANTSEG_prefix_medial" onclick="$('#ANTSEG_prefix').val('medial').trigger('change');"><?php echo xlt('med{{medial}}'); ?></span>
2212 <span class="eye_button" id="ANTSEG_prefix_lateral" name="ANTSEG_prefix_lateral" onclick="$('#ANTSEG_prefix').val('lateral').trigger('change');"><?php echo xlt('lat{{lateral}}'); ?></span>
2213 <span class="eye_button" id="ANTSEG_prefix_superior" name="ANTSEG_prefix_superior" onclick="$('#ANTSEG_prefix').val('superior').trigger('change');"><?php echo xlt('sup{{superior}}'); ?></span>
2214 <span class="eye_button" id="ANTSEG_prefix_inferior" name="ANTSEG_prefix_inferior" onclick="$('#ANTSEG_prefix').val('inferior').trigger('change');"><?php echo xlt('inf{{inferior}}'); ?></span>
2215 <span class="eye_button" id="ANTSEG_prefix_anterior" name="ANTSEG_prefix_anterior" onclick="$('#ANTSEG_prefix').val('anterior').trigger('change');"><?php echo xlt('ant{{anterior}}'); ?></span> <br />
2216 <span class="eye_button" id="ANTSEG_prefix_mid" name="ANTSEG_prefix_mid" onclick="$('#ANTSEG_prefix').val('mid').trigger('change');"><?php echo xlt('mid'); ?></span> <br />
2217 <span class="eye_button" id="ANTSEG_prefix_posterior" name="ANTSEG_prefix_posterior" onclick="$('#ANTSEG_prefix').val('posterior').trigger('change');"><?php echo xlt('post{{posterior}}'); ?></span> <br />
2218 <span class="eye_button" id="ANTSEG_prefix_deep" name="ANTSEG_prefix_deep" onclick="$('#ANTSEG_prefix').val('deep').trigger('change');"><?php echo xlt('deep'); ?></span>
2219 <br />
2220 <br />
2221 <span class="eye_button" id="ANTSEG_prefix_clear" name="ANTSEG_prefix_clear" title="<?php echo xla('This will clear the data from all Anterior Segment Exam fields'); ?>" onclick="$('#ANTSEG_prefix').val('clear').trigger('change');"><?php echo xlt('clear'); ?></span>
2223 </div>
2224 <div class="QP_block borderShadow text_clinical " >
2225 <?php echo $QP_ANTSEG = display_QP("ANTSEG",$providerID); ?>
2226 </div>
2227 <span class="closeButton fa fa-close pull-right z100" id="BUTTON_TEXTD_ANTSEG" name="BUTTON_TEXTD_ANTSEG"></span>
2228 </div>
2229 </div>
2230 </div>
2231 <!-- end Ant Seg -->
2233 <!-- start Retina -->
2234 <div id="RETINA_1" class="clear_both" >
2235 <div id="RETINA_left" name="RETINA_left" class="exam_section_left borderShadow">
2236 <span class="anchor" id="RETINA_anchor"></span>
2237 <div class="TEXT_class" id="RETINA_left_text" name="RETINA_left_text">
2238 <span class="closeButton fa fa-paint-brush" title="<?php echo xla('Open/Close the Retina drawing panel'); ?>" id="BUTTON_DRAW_RETINA" name="BUTTON_DRAW_RETINA"></span>
2239 <i class="closeButton_2 fa fa-database"title="<?php echo xla('Open/Close the Retinal Exam Quick Picks panel'); ?>" id="BUTTON_QP_RETINA" name="BUTTON_QP_RETINA"></i>
2240 <i class="closeButton_3 fa fa-user-md fa-sm fa-2" name="Shorthand_kb" title="<?php echo xla("Open/Close the Shorthand Window and display Shorthand Codes"); ?>"></i>
2241 <b><?php echo xlt('Retina'); ?>:</b><div class="kb kb_left" title="<?php echo xla("Retina Default Values"); ?>"><?php echo text('DRET'); ?></div>
2242 <input type="checkbox" id="DIL_RISKS" name="DIL_RISKS" value="on" <?php if ($DIL_RISKS =='on') echo "checked='checked'"; ?>>
2243 <label for="DIL_RISKS" class="input-helper input-helper--checkbox"><?php echo xlt('Dilation orders/risks reviewed'); ?></label>
2244 <br />
2245 <div id="RETINA_left_1" class="text_clinical">
2246 <table>
2247 <?php
2248 list($imaging,$episode) = display($pid,$encounter, "POSTSEG");
2249 echo $episode;
2251 </table>
2253 <table>
2254 <tr>
2255 <td></td>
2256 <td> <br /><?php echo xlt('OD{{right eye}}'); ?></td><td> <br /><?php echo xlt('OS{{left eye}}'); ?></td>
2257 </tr>
2258 <tr>
2259 <td>
2260 <span id="CMT" name="CMT" title="<?php echo xla('Central Macular Thickness'); ?>"><?php echo xlt('CMT{{Central Macular Thickness}}'); ?>:</span>
2261 </td>
2262 <td>
2263 <input name="ODCMT" class="RETINA" size="4" id="ODCMT" value="<?php echo attr($ODCMT); ?>">
2264 <div class="kb kb_center"><?php echo xlt('RCMT{{right Central Macular Thickness}}'); ?></div>
2265 </td>
2266 <td>
2267 <input name="OSCMT" class="RETINA" size="4" id="OSCMT" value="<?php echo attr($OSCMT); ?>">
2268 <div class="kb kb_center"><?php echo xlt('LCMT{{left Central Macular Thickness}}'); ?></div>
2269 </td>
2270 </tr>
2271 </table>
2272 <br />
2273 <table>
2274 <?php
2275 list($imaging,$episode) = display($pid,$encounter, "NEURO");
2276 echo $episode;
2278 </table>
2279 </div>
2281 <?php ($RETINA_VIEW ==1) ? ($display_RETINA_view = "wide_textarea") : ($display_RETINA_view= "narrow_textarea");?>
2282 <?php ($display_RETINA_view == "wide_textarea") ? ($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?>
2283 <div>
2284 <div id="RETINA_text_list" name="RETINA_text_list" class="borderShadow <?php echo attr($display_RETINA_view); ?>">
2285 <span class="top_right fa <?php echo attr($marker); ?>" name="RETINA_text_view" id="RETINA_text_view"></span>
2286 <table cellspacing="0" cellpadding="0">
2287 <tr>
2288 <th><?php echo xlt('OD{{right eye}}'); ?></th><th></th><th><?php echo xlt('OS{{left eye}}'); ?></th></td>
2289 </tr>
2290 <tr>
2291 <td><textarea name="ODDISC" id="ODDISC" class="RETINA right"><?php echo text($ODDISC); ?></textarea></td>
2292 <td>
2293 <div class="ident"><?php echo xlt('Disc'); ?></div>
2294 <div class="kb kb_left"><?php echo xlt('RD{{right disc}}'); ?></div>
2295 <div class="kb kb_right"><?php echo xlt('LD{{left disc}}'); ?></div></td>
2296 <td><textarea name="OSDISC" id="OSDISC" class="RETINA"><?php echo text($OSDISC); ?></textarea></td>
2297 </tr>
2298 <tr>
2299 <td><textarea name="ODCUP" id="ODCUP" class="RETINA right"><?php echo text($ODCUP); ?></textarea></td>
2300 <td>
2301 <div class="ident"><?php echo xlt('Cup'); ?></div>
2302 <div class="kb kb_left"><?php echo xlt('RCUP{{right cup}}'); ?></div>
2303 <div class="kb kb_right"><?php echo xlt('LCUP{{left cup}}'); ?></div></td>
2304 <td><textarea name="OSCUP" id="OSCUP" class="RETINA"><?php echo text($OSCUP); ?></textarea></td>
2305 </tr>
2306 <tr>
2307 <td><textarea name="ODMACULA" id="ODMACULA" class="RETINA right"><?php echo text($ODMACULA); ?></textarea></td>
2308 <td>
2309 <div class="ident"><?php echo xlt('Macula'); ?></div>
2310 <div class="kb kb_left"><?php echo xlt('RMAC{{right macula}}'); ?></div>
2311 <div class="kb kb_right"><?php echo xlt('LMAC{{left macula}}'); ?></div></td>
2312 <td><textarea name="OSMACULA" id="OSMACULA" class="RETINA"><?php echo text($OSMACULA); ?></textarea></td>
2313 </tr>
2314 <tr>
2315 <td><textarea name="ODVESSELS" id="ODVESSELS" class="RETINA right"><?php echo text($ODVESSELS); ?></textarea></td>
2316 <td>
2317 <div class="ident"><?php echo xlt('Vessels'); ?></div>
2318 <div class="kb kb_left"><?php echo xlt('RV{{right vessels}}'); ?></div>
2319 <div class="kb kb_right"><?php echo xlt('LV{{left vessels}}'); ?></div></td>
2320 <td><textarea name="OSVESSELS" id="OSVESSELS" class="RETINA"><?php echo text($OSVESSELS); ?></textarea></td>
2321 </tr>
2322 <tr>
2323 <td><textarea name="ODPERIPH" id="ODPERIPH" class="RETINA right"><?php echo text($ODPERIPH); ?></textarea></td>
2324 <td>
2325 <div class="ident"><?php echo xlt('Periph{{peripheral retina}}'); ?></div>
2326 <div class="kb kb_left"><?php echo xlt('RP{{right peripheral retina}}'); ?></div>
2327 <div class="kb kb_right"><?php echo xlt('LP{{left peripheral retina}}'); ?></div></td>
2328 <td><textarea name="OSPERIPH" id="OSPERIPH" class="RETINA"><?php echo text($OSPERIPH); ?></textarea></td>
2329 </tr>
2330 </table>
2331 </div>
2332 </div>
2333 <div class="QP_lengthen" id="RETINA_COMMENTS_DIV">
2334 <b><?php echo xlt('Comments'); ?>:</b><div class="kb kb_left"><?php echo xlt('RCOM{{right comments}}'); ?></div><br />
2335 <textarea id="RETINA_COMMENTS" class="RETINA" name="RETINA_COMMENTS"><?php echo text($RETINA_COMMENTS); ?></textarea>
2336 </div>
2337 </div>
2338 </div>
2340 <div id="RETINA_right" class="exam_section_right borderShadow text_clinical">
2341 <div id="PRIORS_RETINA_left_text"
2342 name="PRIORS_RETINA_left_text"
2343 class="PRIORS_class PRIORS"><i class="fa fa-spinner fa-spin"></i>
2344 </div>
2345 <?php display_draw_section ("RETINA",$encounter,$pid); ?>
2346 <div id="QP_RETINA" name="QP_RETINA" class="QP_class">
2347 <input type="hidden" id="RETINA_prefix" name="RETINA_prefix" value="" />
2348 <div class="qp10">
2349 <span class="eye_button eye_button_selected" id="RETINA_prefix_off" name="RETINA_prefix_off" onclick="$('#RETINA_prefix').val('').trigger('change');"><?php echo xlt('Off'); ?></span>
2350 <span class="eye_button" id="RETINA_defaults" name="RETINA_defaults"><?php echo xlt('Defaults'); ?></span>
2351 <span class="eye_button" id="RETINA_prefix_no" name="RETINA_prefix_no" onclick="$('#RETINA_prefix').val('no').trigger('change');"> <?php echo xlt('no'); ?> </span>
2352 <span class="eye_button" id="RETINA_prefix_trace" name="RETINA_prefix_trace" onclick="$('#RETINA_prefix').val('trace').trigger('change');"> <?php echo xlt('tr'); ?> </span>
2353 <span class="eye_button" id="RETINA_prefix_1" name="RETINA_prefix_1" onclick="$('#RETINA_prefix').val('+1').trigger('change');"> <?php echo xlt('+1'); ?> </span>
2354 <span class="eye_button" id="RETINA_prefix_2" name="RETINA_prefix_2" onclick="$('#RETINA_prefix').val('+2').trigger('change');"> <?php echo xlt('+2'); ?> </span>
2355 <span class="eye_button" id="RETINA_prefix_3" name="RETINA_prefix_3" onclick="$('#RETINA_prefix').val('+3').trigger('change');"> <?php echo xlt('+3'); ?> </span>
2356 <?php echo $selector = priors_select("RETINA",$id,$id,$pid); ?>
2357 </div>
2358 <div name="QP_11">
2359 <span class="eye_button" id="RETINA_prefix_1mm" name="RETINA_prefix_1mm" onclick="$('#RETINA_prefix').val('1mm').trigger('change');"> <?php echo xlt('1mm'); ?> </span> <br />
2360 <span class="eye_button" id="RETINA_prefix_2mm" name="RETINA_prefix_2mm" onclick="$('#RETINA_prefix').val('2mm').trigger('change');"> <?php echo xlt('2mm'); ?> </span> <br />
2361 <span class="eye_button" id="RETINA_prefix_3mm" name="RETINA_prefix_3mm" onclick="$('#RETINA_prefix').val('3mm').trigger('change');"> <?php echo xlt('3mm'); ?> </span> <br />
2362 <span class="eye_button" id="RETINA_prefix_4mm" name="RETINA_prefix_4mm" onclick="$('#RETINA_prefix').val('4mm').trigger('change');"> <?php echo xlt('4mm'); ?> </span> <br />
2363 <span class="eye_button" id="RETINA_prefix_5mm" name="RETINA_prefix_5mm" onclick="$('#RETINA_prefix').val('5mm').trigger('change');"> <?php echo xlt('5mm'); ?> </span> <br />
2364 <span class="eye_button" id="RETINA_prefix_nasal" name="RETINA_prefix_nasal" onclick="$('#RETINA_prefix').val('nasal').trigger('change');"><?php echo xlt('nasal'); ?></span>
2365 <span class="eye_button" id="RETINA_prefix_temp" name="RETINA_prefix_temp" onclick="$('#RETINA_prefix').val('temp').trigger('change');"><?php echo xlt('temp{{temporal}}'); ?></span>
2366 <span class="eye_button" id="RETINA_prefix_superior" name="RETINA_prefix_superior" onclick="$('#RETINA_prefix').val('superior').trigger('change');"><?php echo xlt('sup{{superior}}'); ?></span>
2367 <span class="eye_button" id="RETINA_prefix_inferior" name="RETINA_prefix_inferior" onclick="$('#RETINA_prefix').val('inferior').trigger('change');"><?php echo xlt('inf{{inferior}}'); ?></span>
2368 <span class="eye_button" id="RETINA_prefix_anterior" name="RETINA_prefix_anterior" onclick="$('#RETINA_prefix').val('anterior').trigger('change');"><?php echo xlt('ant{{anterior}}'); ?></span> <br />
2369 <span class="eye_button" id="RETINA_prefix_mid" name="RETINA_prefix_mid" onclick="$('#RETINA_prefix').val('mid').trigger('change');"><?php echo xlt('mid{{middle}}'); ?></span> <br />
2370 <span class="eye_button" id="RETINA_prefix_posterior" name="RETINA_prefix_posterior" onclick="$('#RETINA_prefix').val('posterior').trigger('change');"><?php echo xlt('post{{posterior}}'); ?></span> <br />
2371 <span class="eye_button" id="RETINA_prefix_deep" name="RETINA_prefix_deep" onclick="$('#RETINA_prefix').val('deep').trigger('change');"><?php echo xlt('deep'); ?></span>
2372 <br />
2373 <br />
2374 <span class="eye_button" id="RETINA_prefix_clear" name="RETINA_prefix_clear" title="<?php echo xla('This will clear the data from all Retina Exam fields'); ?>" onclick="$('#RETINA_prefix').val('clear').trigger('change');"><?php echo xlt('clear'); ?></span>
2375 </div>
2376 <div class="QP_block borderShadow text_clinical" >
2377 <?php echo $QP_RETINA = display_QP("RETINA",$providerID); ?>
2378 </div>
2379 <span class="closeButton fa fa-close pull-right z100" id="BUTTON_TEXTD_RETINA" name="BUTTON_TEXTD_RETINA" value="1"></span>
2380 </div>
2381 </div>
2382 </div>
2383 <!-- end Retina -->
2385 <!-- start Neuro -->
2386 <div id="NEURO_1" class="clear_both">
2387 <div id="NEURO_left" class="exam_section_left borderShadow">
2388 <span class="anchor" id="NEURO_anchor"></span>
2389 <div class="TEXT_class" id="NEURO_left_text" name="NEURO_left_text">
2390 <span class="closeButton fa fa-paint-brush" id="BUTTON_DRAW_NEURO" title="<?php echo xla('Open/Close the Neuro drawing panel'); ?>" name="BUTTON_DRAW_NEURO"></span>
2391 <i class="closeButton_2 fa fa-database" title="<?php echo xla('Open/Close the Neuro Exam Quick Picks panel'); ?>" id="BUTTON_QP_NEURO" name="BUTTON_QP_NEURO"></i>
2392 <i class="closeButton_3 fa fa-user-md fa-sm fa-2" name="Shorthand_kb" title="<?php echo xla("Open/Close the Shorthand Window and display Shorthand Codes"); ?>"></i>
2393 <b><?php echo xlt('Neuro'); ?>:</b><div class="kb kb_left" title="<?php echo xla("Neuro/Phys Exam Default Values")." ".xlt('including CVF{{Confrontational Visual Fields}} and Pupils'); ?>"><?php echo text('DNEURO'); ?></div><br />
2394 <div id="NEURO_left_1" class="text_clinical">
2395 <div id="NEURO_color" class="borderShadow">
2396 <table>
2397 <tr>
2398 <td></td><td style="text-align:center;"><?php echo xlt('OD{{right eye}}'); ?></td>
2399 <td style="text-align:center;"><?php echo xlt('OS{{left eye}}'); ?></td>
2400 </tr>
2401 <tr>
2402 <td class="right"><?php echo xlt('Color'); ?>: </td>
2403 <td><input type="text" name="ODCOLOR" id="ODCOLOR" value="<?php if ($ODCOLOR) { echo text($ODCOLOR); } else { echo ""; } ?>"/></td>
2404 <td><input type="text" name="OSCOLOR" id="OSCOLOR" value="<?php if ($OSCOLOR) { echo text($OSCOLOR); } else { echo ""; } ?>"/></td>
2405 <td style="text-align:bottom;"><!-- //Normals may be 11/11 or 15/15. Need to make a preference here for the user.
2406 //or just take the normal they use and incorporate that ongoing? -->
2407 &nbsp;<span title="<?php echo xlt('Insert normals'); ?> - 11/11" class="fa fa-share-square-o fa-flip-horizontal" id="NEURO_COLOR" name="NEURO_COLOR" ></span>
2408 </td>
2409 </tr>
2410 <tr>
2411 <td class="right">
2412 <span title="Variation in red color discrimination between the eyes (eg. OD=100, OS=75)"><?php echo xlt('Red Desat{{red desaturation}}'); ?>:</span>
2413 </td>
2414 <td>
2415 <input type="text" Xsize="6" name="ODREDDESAT" id="ODREDDESAT" value="<?php echo attr($ODREDDESAT); ?>"/>
2416 </td>
2417 <td>
2418 <input type="text" Xsize="6" name="OSREDDESAT" id="OSREDDESAT" value="<?php echo attr($OSREDDESAT); ?>"/>
2419 </td>
2420 <td>
2421 &nbsp; <span title="<?php echo xlt('Insert normals - 100/100'); ?>" class="fa fa-share-square-o fa-flip-horizontal" id="NEURO_REDDESAT" name="NEURO_REDDESAT"></span>
2422 </td>
2423 </tr>
2424 <tr>
2425 <td class="right" style="white-space: nowrap;">
2426 <span title="<?php echo xlt('Variation in white (muscle) light brightness discrimination between the eyes (eg. OD=$1.00, OS=$0.75)'); ?>"><?php echo xlt('Coins'); ?>:</span>
2427 </td>
2428 <td>
2429 <input type="text" name="ODCOINS" id="ODCOINS" value="<?php echo attr($ODCOINS); ?>"/>
2430 </td>
2431 <td>
2432 <input type="text" name="OSCOINS" id="OSCOINS" value="<?php echo attr($OSCOINS); ?>"/>
2433 </td>
2434 <td>
2435 &nbsp;<span title="<?php echo xla('Insert normals'); ?> - 100/100" class="fa fa-share-square-o fa-flip-horizontal" id="NEURO_COINS" name="NEURO_COINS"></span>
2436 </td>
2437 </tr>
2438 </table>
2439 </div>
2440 <div class="borderShadow" id="NEURO_11">
2441 <i class="fa fa-th fa-fw closeButton2" id="Close_ACTMAIN" name="Close_ACTMAIN"></i>
2442 <table >
2443 <tr>
2444 <td >
2445 <span id="ACTTRIGGER" name="ACTTRIGGER"><?php echo xlt('Alternate Cover Test'); ?>:</span>
2446 </td>
2447 <td>
2448 <span id="ACTNORMAL_CHECK" name="ACTNORMAL_CHECK">
2449 <label for="ACT" class="input-helper input-helper--checkbox"><?php echo xlt('Ortho{{orthophoric}}'); ?></label>
2450 <input type="checkbox" name="ACT" id="ACT" <?php if ($ACT =='on' or $ACT=='1') echo "checked='checked'"; ?> /></span>
2451 </td>
2452 </tr>
2453 <tr>
2454 <td colspan="2"> <br />
2455 <div id="ACTMAIN" name="ACTMAIN" class="nodisplay ACT_TEXT">
2456 <table id="ACTTABLE">
2457 <tr>
2458 <td id="ACT_tab_SCDIST" name="ACT_tab_SCDIST" class="ACT_selected"> <?php echo xlt('scDist{{without correction distance}}'); ?> </td>
2459 <td id="ACT_tab_CCDIST" name="ACT_tab_CCDIST" class="ACT_deselected"> <?php echo xlt('ccDist{{with correction distance}}'); ?> </td>
2460 <td id="ACT_tab_SCNEAR" name="ACT_tab_SCNEAR" class="ACT_deselected"> <?php echo xlt('scNear{{without correction near}}'); ?> </td>
2461 <td id="ACT_tab_CCNEAR" name="ACT_tab_CCNEAR" class="ACT_deselected"> <?php echo xlt('ccNear{{with correction at near}}'); ?> </td>
2462 </tr>
2463 <tr>
2464 <td colspan="4"><div id="ACT_SCDIST" name="ACT_SCDIST" class="ACT_box">
2465 <br />
2466 <table>
2467 <tr>
2468 <td><?php echo xlt('R{{right}}'); ?></td>
2469 <td style="border-right:1pt solid black;border-bottom:1pt solid black;">
2470 <textarea id="ACT1SCDIST" name="ACT1SCDIST" class="ACT"><?php echo text($ACT1SCDIST); ?></textarea></td>
2471 <td style="border:1pt solid black;border-top:0pt;">
2472 <textarea id="ACT2SCDIST" name="ACT2SCDIST"class="ACT"><?php echo text($ACT2SCDIST); ?></textarea></td>
2473 <td style="border-left:1pt solid black;border-bottom:1pt solid black;">
2474 <textarea id="ACT3SCDIST" name="ACT3SCDIST" class="ACT"><?php echo text($ACT3SCDIST); ?></textarea></td>
2475 <td><?php echo xlt('L{{left}}'); ?></td>
2476 </tr>
2477 <tr>
2478 <td style="text-align:middle;"><i class="fa fa-reply rotate-left"></i></td>
2479 <td style="border:1pt solid black;border-left:0pt;">
2480 <textarea id="ACT4SCDIST" name="ACT4SCDIST" class="ACT"><?php echo text($ACT4SCDIST); ?></textarea></td>
2481 <td style="border:1pt solid black;">
2482 <textarea id="ACT5SCDIST" class="neurosens2 ACT" name="ACT5SCDIST"><?php echo text($ACT5SCDIST); ?></textarea></td>
2483 <td style="border:1pt solid black;border-right:0pt;">
2484 <textarea id="ACT6SCDIST" name="ACT6SCDIST" class="ACT"><?php echo text($ACT6SCDIST); ?></textarea></td>
2485 <td><i class="fa fa-share rotate-right"></i></td>
2486 </tr>
2487 <tr>
2488 <td style="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;">
2489 <textarea id="ACT10SCDIST" name="ACT10SCDIST" class="ACT"><?php echo text($ACT10SCDIST); ?></textarea></td>
2490 <td style="border-right:1pt solid black;border-top:1pt solid black;text-align:right;">
2491 <textarea id="ACT7SCDIST" name="ACT7SCDIST" class="ACT"><?php echo text($ACT7SCDIST); ?></textarea></td>
2492 <td style="border:1pt solid black;border-bottom:0pt;text-align:center;">
2493 <textarea id="ACT8SCDIST" name="ACT8SCDIST" class="ACT"><?php echo text($ACT8SCDIST); ?></textarea></td>
2494 <td style="border-left:1pt solid black;border-top:1pt solid black;text-align:left;">
2495 <textarea id="ACT9SCDIST" name="ACT9SCDIST" class="ACT"><?php echo text($ACT9SCDIST); ?></textarea></td>
2496 <td style="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;">
2497 <textarea id="ACT11SCDIST" name="ACT11SCDIST" class="ACT"><?php echo text($ACT11SCDIST); ?></textarea>
2498 </td>
2499 </tr>
2500 </table>
2501 <br />
2502 </div>
2503 <div id="ACT_CCDIST" name="ACT_CCDIST" class="nodisplay ACT_box">
2504 <br />
2505 <table>
2506 <tr>
2507 <td style="text-align:center;"><?php echo xlt('R{{right}}'); ?></td>
2508 <td style="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;">
2509 <textarea id="ACT1CCDIST" name="ACT1CCDIST" class="ACT"><?php echo text($ACT1CCDIST); ?></textarea></td>
2510 <td style="border:1pt solid black;border-top:0pt;text-align:center;">
2511 <textarea id="ACT2CCDIST" name="ACT2CCDIST"class="ACT"><?php echo text($ACT2CCDIST); ?></textarea></td>
2512 <td style="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;">
2513 <textarea id="ACT3CCDIST" name="ACT3CCDIST" class="ACT"><?php echo text($ACT3CCDIST); ?></textarea></td>
2514 <td style="text-align:center;"><?php echo xlt('L{{left}}'); ?></td>
2515 </tr>
2516 <tr>
2517 <td style="text-align:middle;"><i class="fa fa-reply rotate-left"></i></td>
2518 <td style="border:1pt solid black;border-left:0pt;text-align:right;">
2519 <textarea id="ACT4CCDIST" name="ACT4CCDIST" class="ACT"><?php echo text($ACT4CCDIST); ?></textarea></td>
2520 <td style="border:1pt solid black;text-align:center;">
2521 <textarea id="ACT5CCDIST" name="ACT5CCDIST" class="neurosens2 ACT"><?php echo text($ACT5CCDIST); ?></textarea></td>
2522 <td style="border:1pt solid black;border-right:0pt;text-align:left;">
2523 <textarea id="ACT6CCDIST" name="ACT6CCDIST" class="ACT"><?php echo text($ACT6CCDIST); ?></textarea></td>
2524 <td><i class="fa fa-share rotate-right"></i></td>
2525 </tr>
2526 <tr>
2527 <td style="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;">
2528 <textarea id="ACT10CCDIST" name="ACT10CCDIST" class="ACT"><?php echo text($ACT10CCDIST); ?></textarea></td>
2529 <td style="border-right:1pt solid black;border-top:1pt solid black;text-align:right;">
2530 <textarea id="ACT7CCDIST" name="ACT7CCDIST" class="ACT"><?php echo text($ACT7CCDIST); ?></textarea></td>
2531 <td style="border:1pt solid black;border-bottom:0pt;text-align:center;">
2532 <textarea id="ACT8CCDIST" name="ACT8CCDIST" class="ACT"><?php echo text($ACT8CCDIST); ?></textarea></td>
2533 <td style="border-left:1pt solid black;border-top:1pt solid black;text-align:left;">
2534 <textarea id="ACT9CCDIST" name="ACT9CCDIST" class="ACT"><?php echo text($ACT9CCDIST); ?></textarea></td>
2535 <td style="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;">
2536 <textarea id="ACT11CCDIST" name="ACT11CCDIST" class="ACT"><?php echo text($ACT11CCDIST); ?></textarea>
2537 </td>
2538 </tr>
2539 </table>
2540 <br />
2541 </div>
2542 <div id="ACT_SCNEAR" name="ACT_SCNEAR" class="nodisplay ACT_box">
2543 <br />
2544 <table>
2545 <tr>
2546 <td style="text-align:center;"><?php echo xlt('R{{right}}'); ?></td>
2547 <td style="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;">
2548 <textarea id="ACT1SCNEAR" name="ACT1SCNEAR" class="ACT"><?php echo text($ACT1SCNEAR); ?></textarea></td>
2549 <td style="border:1pt solid black;border-top:0pt;text-align:center;">
2550 <textarea id="ACT2SCNEAR" name="ACT2SCNEAR"class="ACT"><?php echo text($ACT2SCNEAR); ?></textarea></td>
2551 <td style="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;">
2552 <textarea id="ACT3SCNEAR" name="ACT3SCNEAR" class="ACT"><?php echo text($ACT3SCNEAR); ?></textarea></td>
2553 <td style="text-align:center;"><?php echo xlt('L{{left}}'); ?></td>
2554 </tr>
2555 <tr>
2556 <td style="text-align:middle;"><i class="fa fa-reply rotate-left"></i></td>
2557 <td style="border:1pt solid black;border-left:0pt;text-align:right;">
2558 <textarea id="ACT4SCNEAR" name="ACT4SCNEAR" class="ACT"><?php echo text($ACT4SCNEAR); ?></textarea></td>
2559 <td style="border:1pt solid black;text-align:center;">
2560 <textarea id="ACT5SCNEAR" name="ACT5SCNEAR" class="neurosens2 ACT"><?php echo text($ACT5SCNEAR); ?></textarea></td>
2561 <td style="border:1pt solid black;border-right:0pt;text-align:left;">
2562 <textarea id="ACT6SCNEAR" name="ACT6SCNEAR" class="ACT"><?php echo text($ACT6SCNEAR); ?></textarea></td>
2563 <td><i class="fa fa-share rotate-right"></i></td>
2564 </tr>
2565 <tr>
2566 <td style="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;">
2567 <textarea id="ACT10SCNEAR" name="ACT10SCNEAR" class="ACT"><?php echo text($ACT10SCNEAR); ?></textarea></td>
2568 <td style="border-right:1pt solid black;border-top:1pt solid black;text-align:right;">
2569 <textarea id="ACT7SCNEAR" name="ACT7SCNEAR" class="ACT"><?php echo text($ACT7SCNEAR); ?></textarea></td>
2570 <td style="border:1pt solid black;border-bottom:0pt;text-align:center;">
2571 <textarea id="ACT8SCNEAR" name="ACT8SCNEAR" class="ACT"><?php echo text($ACT8SCNEAR); ?></textarea></td>
2572 <td style="border-left:1pt solid black;border-top:1pt solid black;text-align:left;">
2573 <textarea id="ACT9SCNEAR" name="ACT9SCNEAR" class="ACT"><?php echo text($ACT9SCNEAR); ?></textarea></td>
2574 <td style="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;">
2575 <textarea id="ACT11SCNEAR" name="ACT11SCNEAR" class="ACT"><?php echo text($ACT11SCNEAR); ?></textarea>
2576 </td>
2577 </tr>
2578 </table>
2579 <br />
2580 </div>
2581 <div id="ACT_CCNEAR" name="ACT_CCNEAR" class="nodisplay ACT_box">
2582 <br />
2583 <table>
2584 <tr>
2585 <td style="text-align:center;"><?php echo xlt('R{{right}}'); ?></td>
2586 <td style="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;">
2587 <textarea id="ACT1CCNEAR" name="ACT1CCNEAR" class="ACT"><?php echo text($ACT1CCNEAR); ?></textarea></td>
2588 <td style="border:1pt solid black;border-top:0pt;text-align:center;">
2589 <textarea id="ACT2CCNEAR" name="ACT2CCNEAR"class="ACT"><?php echo text($ACT2CCNEAR); ?></textarea></td>
2590 <td style="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;">
2591 <textarea id="ACT3CCNEAR" name="ACT3CCNEAR" class="ACT"><?php echo text($ACT3CCNEAR); ?></textarea></td>
2592 <td style="text-align:center;"><?php echo xlt('L{{left}}'); ?></td>
2593 </tr>
2594 <tr>
2595 <td style="text-align:middle;"><i class="fa fa-reply rotate-left"></i></td>
2596 <td style="border:1pt solid black;border-left:0pt;text-align:right;">
2597 <textarea id="ACT4CCNEAR" name="ACT4CCNEAR" class="ACT"><?php echo text($ACT4CCNEAR); ?></textarea></td>
2598 <td style="border:1pt solid black;text-align:center;">
2599 <textarea id="ACT5CCNEAR" name="ACT5CCNEAR" class="neurosens2 ACT"><?php echo text($ACT5CCNEAR); ?></textarea></td>
2600 <td style="border:1pt solid black;border-right:0pt;text-align:left;">
2601 <textarea id="ACT6CCNEAR" name="ACT6CCNEAR" class="ACT"><?php echo text($ACT6CCNEAR); ?></textarea></td><td><i class="fa fa-share rotate-right"></i></td>
2602 </tr>
2603 <tr>
2604 <td style="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;">
2605 <textarea id="ACT10CCNEAR" name="ACT10CCNEAR" class="ACT"><?php echo text($ACT10CCNEAR); ?></textarea></td>
2606 <td style="border-right:1pt solid black;border-top:1pt solid black;text-align:right;">
2607 <textarea id="ACT7CCNEAR" name="ACT7CCNEAR" class="ACT"><?php echo text($ACT7CCNEAR); ?></textarea></td>
2608 <td style="border:1pt solid black;border-bottom:0pt;text-align:center;">
2609 <textarea id="ACT8CCNEAR" name="ACT8CCNEAR" class="ACT"><?php echo text($ACT8CCNEAR); ?></textarea></td>
2610 <td style="border-left:1pt solid black;border-top:1pt solid black;text-align:left;">
2611 <textarea id="ACT9CCNEAR" name="ACT9CCNEAR" class="ACT"><?php echo text($ACT9CCNEAR); ?></textarea></td>
2612 <td style="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;">
2613 <textarea id="ACT11CCNEAR" name="ACT11CCNEAR" class="ACT"><?php echo text($ACT11CCNEAR); ?></textarea>
2614 </td>
2615 </tr>
2616 </table>
2617 <br />
2618 </div>
2619 </td>
2620 </tr>
2621 </table>
2622 <br />
2623 </div>
2624 </td>
2625 </tr>
2626 </table>
2627 <div id="NPCNPA" name="NPCNPA">
2628 <table style="position:relative;float:left;text-align:center;margin: 4 2;width:100%;font-size:1.0em;padding:4px;">
2629 <tr style="font-weight:bold;"><td style="width:50%;"></td><td><?php echo xlt('OD{{right eye}}'); ?></td><td><?php echo xlt('OS{{left eye}}'); ?></td></tr>
2630 <tr>
2631 <td class="right"><span title="<?php xla('Near Point of Accomodation'); ?>"><?php echo xlt('NPA{{near point of accomodation}}'); ?>:</span></td>
2632 <td><input type="text" id="ODNPA" style="width:70%;" class="neurosens2" name="ODNPA" value="<?php echo attr($ODNPA); ?>"></td>
2633 <td><input type="text" id="OSNPA" style="width:70%;" class="neurosens2" name="OSNPA" value="<?php echo attr($OSNPA); ?>"></td>
2634 </tr>
2635 <tr>
2636 <td class="right"><span title="<?php xla('Near Point of Convergence'); ?>"><?php echo xlt('NPC{{near point of convergence}}'); ?>:</span></td>
2637 <td colspan="2" ><input type="text" style="width:85%;" class="neurosens2" id="NPC" name="NPC" value="<?php echo attr($NPC); ?>">
2638 </td>
2639 </tr>
2640 <tr>
2641 <td class="right">
2642 <?php echo xlt('Stereopsis'); ?>:
2643 </td>
2644 <td colspan="2">
2645 <input type="text" style="width:85%;" class="neurosens" name="STEREOPSIS" id="STEREOPSIS" value="<?php echo attr($STEREOPSIS); ?>">
2646 </td>
2647 </tr>
2648 <tr><td colspan="3" style="font-weight:bold;"><br /><u><?php echo xlt('Amplitudes'); ?></u><br />
2649 </td></tr>
2650 <tr><td ></td><td ><?php echo xlt('Distance'); ?></td><td><?php echo xlt('Near'); ?></td></tr>
2651 <tr>
2652 <td style="text-align:right;"><?php echo xlt('Divergence'); ?>: </td>
2653 <td><input type="text" id="DACCDIST" class="neurosens2" name="DACCDIST" value="<?php echo attr($DACCDIST); ?>"></td>
2654 <td><input type="text" id="DACCNEAR" class="neurosens2" name="DACCNEAR" value="<?php echo attr($DACCNEAR); ?>"></td></tr>
2655 <tr>
2656 <td style="text-align:right;"><?php echo xlt('Convergence'); ?>: </td>
2657 <td><input type="text" id="CACCDIST" class="neurosens2" name="CACCDIST" value="<?php echo attr($CACCDIST); ?>"></td>
2658 <td><input type="text" id="CACCNEAR" class="neurosens2" name="CACCNEAR" value="<?php echo attr($CACCNEAR); ?>"></td></tr>
2659 </tr>
2660 <tr>
2661 <td class="right">
2662 <?php echo xlt('Vertical Fusional'); ?>:
2663 </td>
2664 <td colspan="2">
2665 <input type="text" style="width:90%;" class="neurosens2" name="VERTFUSAMPS" id="VERTFUSAMPS" value="<?php echo attr($VERTFUSAMPS); ?>">
2666 <br />
2667 </td>
2668 </tr>
2669 </table>
2670 <br />
2671 </div>
2672 </div>
2673 <div id="NEURO_MOTILITY" class="text_clinical borderShadow">
2674 <table>
2675 <tr>
2676 <td class="left"><?php echo xlt('Motility'); ?>:</td>
2677 <td class="right">
2678 <label for="MOTILITYNORMAL" class="input-helper input-helper--checkbox"><?php echo xlt('Normal'); ?></label>
2679 <input id="MOTILITYNORMAL" name="MOTILITYNORMAL" type="checkbox" <?php if ($MOTILITYNORMAL =='on') echo "checked='checked'"; ?>>
2680 </td>
2681 </tr>
2682 <tr>
2683 <td class="left">OD</td><td>OS</td>
2684 </tr>
2685 <tr>
2686 <td colspan="2">
2687 <input type="hidden" name="MOTILITY_RS" id="MOTILITY_RS" value="<?php echo attr($MOTILITY_RS); ?>">
2688 <input type="hidden" name="MOTILITY_RI" id="MOTILITY_RI" value="<?php echo attr($MOTILITY_RI); ?>">
2689 <input type="hidden" name="MOTILITY_RR" id="MOTILITY_RR" value="<?php echo attr($MOTILITY_RR); ?>">
2690 <input type="hidden" name="MOTILITY_RL" id="MOTILITY_RL" value="<?php echo attr($MOTILITY_RL); ?>">
2691 <input type="hidden" name="MOTILITY_LS" id="MOTILITY_LS" value="<?php echo attr($MOTILITY_LS); ?>">
2692 <input type="hidden" name="MOTILITY_LI" id="MOTILITY_LI" value="<?php echo attr($MOTILITY_LI); ?>">
2693 <input type="hidden" name="MOTILITY_LR" id="MOTILITY_LR" value="<?php echo attr($MOTILITY_LR); ?>">
2694 <input type="hidden" name="MOTILITY_LL" id="MOTILITY_LL" value="<?php echo attr($MOTILITY_LL); ?>">
2696 <input type="hidden" name="MOTILITY_RRSO" id="MOTILITY_RRSO" value="<?php echo attr($MOTILITY_RRSO); ?>">
2697 <input type="hidden" name="MOTILITY_RRIO" id="MOTILITY_RRIO" value="<?php echo attr($MOTILITY_RLIO); ?>">
2698 <input type="hidden" name="MOTILITY_RLSO" id="MOTILITY_RLSO" value="<?php echo attr($MOTILITY_RLSO); ?>">
2699 <input type="hidden" name="MOTILITY_RLIO" id="MOTILITY_RLIO" value="<?php echo attr($MOTILITY_RLIO); ?>">
2701 <input type="hidden" name="MOTILITY_LRSO" id="MOTILITY_LRSO" value="<?php echo attr($MOTILITY_LRSO); ?>">
2702 <input type="hidden" name="MOTILITY_LRIO" id="MOTILITY_LRIO" value="<?php echo attr($MOTILITY_LLIO); ?>">
2703 <input type="hidden" name="MOTILITY_LLSO" id="MOTILITY_LLSO" value="<?php echo attr($MOTILITY_LLSO); ?>">
2704 <input type="hidden" name="MOTILITY_LLIO" id="MOTILITY_LLIO" value="<?php echo attr($MOTILITY_LLIO); ?>">
2706 <div class="divTable">
2707 <div class="divRow">
2708 <div class="divCell">&nbsp;</div>
2709 </div>
2710 <div class="divRow">
2711 <div class="divCell" name="MOTILITY_RRSO_4" id="MOTILITY_RRSO_4">&nbsp;</div>
2712 <div class="divCell" name="MOTILITY_RRSO_4_2" id="MOTILITY_RRSO_4_2">&nbsp;</div>
2713 <div class="divCell" name="MOTILITY_RRSO_3_2" id="MOTILITY_RRSO_3_2">&nbsp;</div>
2714 <div class="divCell">&nbsp;</div>
2715 <div class="divCell" name="MOTILITY_RS_4_3" id="MOTILITY_RS_4_3">&nbsp;</div>
2716 <div class="divCell" name="MOTILITY_RS_4_1" id="MOTILITY_RS_4_1">&nbsp;</div>
2717 <div class="divCell" name="MOTILITY_RS_4" id="MOTILITY_RS_4" value="<?php echo attr($MOTILITY_RS); ?>">&nbsp;</div>
2718 <div class="divCell" name="MOTILITY_RS_4_2" id="MOTILITY_RS_4_2">&nbsp;</div>
2719 <div class="divCell" name="MOTILITY_RS_4_4" id="MOTILITY_RS_4_4">&nbsp;</div>
2720 <div class="divCell">&nbsp;</div>
2721 <div class="divCell" name="MOTILITY_RLSO_3_1" id="MOTILITY_RLSO_3_1">&nbsp;</div>
2722 <div class="divCell" name="MOTILITY_RLSO_4_1" id="MOTILITY_RLSO_4_1">&nbsp;</div>
2723 <div class="divCell" name="MOTILITY_RLSO_4" id="MOTILITY_RLSO_4">&nbsp;</div>
2724 </div>
2725 <div class="divRow">
2726 <div class="divCell" name="MOTILITY_RRSO_4_1" id="MOTILITY_RRSO_4_1">&nbsp;</div>
2727 <div class="divCell" name="MOTILITY_RRSO_3" id="MOTILITY_RRSO_3">&nbsp;</div>
2728 <div class="divCell" name="MOTILITY_RRSO_2_2" id="MOTILITY_RRSO_2_2">&nbsp;</div>
2729 <div class="divCell">&nbsp;</div>
2730 <div class="divCell">&nbsp;</div>
2731 <div class="divCell" name="MOTILITY_RS_3_1" id="MOTILITY_RS_3_1">&nbsp;</div>
2732 <div class="divCell" name="MOTILITY_RS_3" id="MOTILITY_RS_3">&nbsp;</div>
2733 <div class="divCell" name="MOTILITY_RS_3_2" id="MOTILITY_RS_3_2">&nbsp;</div>
2734 <div class="divCell">&nbsp;</div>
2735 <div class="divCell">&nbsp;</div>
2736 <div class="divCell" name="MOTILITY_RLSO_2_1" id="MOTILITY_RLSO_2_1">&nbsp;</div>
2737 <div class="divCell" name="MOTILITY_RLSO_3" id="MOTILITY_RLSO_3">&nbsp;</div>
2738 <div class="divCell" name="MOTILITY_RLSO_4_2" id="MOTILITY_RLSO_4_2">&nbsp;</div>
2739 </div>
2740 <div class="divRow">
2741 <div class="divCell" name="MOTILITY_RRSO_3_1" id="MOTILITY_RRSO_3_1">&nbsp;</div>
2742 <div class="divCell" name="MOTILITY_RRSO_2_1" id="MOTILITY_RRSO_2_1">&nbsp;</div>
2743 <div class="divCell" name="MOTILITY_RRSO_2" id="MOTILITY_RRSO_2">&nbsp;</div>
2744 <div class="divCell">&nbsp;</div>
2745 <div class="divCell">&nbsp;</div>
2746 <div class="divCell" name="MOTILITY_RS_2_1" id="MOTILITY_RS_2_1">&nbsp;</div>
2747 <div class="divCell" name="MOTILITY_RS_2" id="MOTILITY_RS_2">&nbsp;</div>
2748 <div class="divCell" name="MOTILITY_RS_2_2" id="MOTILITY_RS_2_2">&nbsp;</div>
2749 <div class="divCell">&nbsp;</div>
2750 <div class="divCell">&nbsp;</div>
2751 <div class="divCell" name="MOTILITY_RLSO_2" id="MOTILITY_RLSO_2">&nbsp;</div>
2752 <div class="divCell" name="MOTILITY_RLSO_2_2" id="MOTILITY_RLSO_2_2">&nbsp;</div>
2753 <div class="divCell" name="MOTILITY_RLSO_232" id="MOTILITY_RLSO_3_2">&nbsp;</div>
2754 </div>
2755 <div class="divRow">
2756 <div class="divCell">&nbsp;</div>
2757 <div class="divCell">&nbsp;</div>
2758 <div class="divCell">&nbsp;</div>
2759 <div class="divCell" name="MOTILITY_RRSO_1" id="MOTILITY_RRSO_1">&nbsp;</div>
2760 <div class="divCell">&nbsp;</div>
2761 <div class="divCell" name="MOTILITY_RS_1_1" id="MOTILITY_RS_1_1">&nbsp;</div>
2762 <div class="divCell" name="MOTILITY_RS_1" id="MOTILITY_RS_1">&nbsp;</div>
2763 <div class="divCell" name="MOTILITY_RS_1_2" id="MOTILITY_RS_1_2">&nbsp;</div>
2764 <div class="divCell">&nbsp;</div>
2765 <div class="divCell" name="MOTILITY_RLSO_1" id="MOTILITY_RLSO_1">&nbsp;</div>
2766 <div class="divCell">&nbsp;</div>
2767 <div class="divCell">&nbsp;</div>
2768 <div class="divCell">&nbsp;</div>
2769 </div>
2770 <div class="divRow">
2771 <div class="divCell" name="MOTILITY_RR_4_3" id="MOTILITY_RR_4_3">&nbsp;</div>
2772 <div class="divCell" name="MOTILITY_RR_4_1" id="MOTILITY_RR_4_1">&nbsp;</div>
2773 <div class="divCell" name="MOTILITY_RR_3_1" id="MOTILITY_RR_3_1">&nbsp;</div>
2774 <div class="divCell">&nbsp;</div>
2775 <div class="divCell">&nbsp;</div>
2776 <div class="divCell" name="MOTILITY_RS_0_1" id="MOTILITY_RS_0_1">&nbsp;</div>
2777 <div class="divCell" name="MOTILITY_RS_0" id="MOTILITY_RS_0">&nbsp;</div>
2778 <div class="divCell" name="MOTILITY_RS_0_2" id="MOTILITY_RS_0_2">&nbsp;</div>
2779 <div class="divCell">&nbsp;</div>
2780 <div class="divCell">&nbsp;</div>
2781 <div class="divCell" name="MOTILITY_RL_3_1" id="MOTILITY_RL_3_1">&nbsp;</div>
2782 <div class="divCell" name="MOTILITY_RL_4_1" id="MOTILITY_RL_4_1">&nbsp;</div>
2783 <div class="divCell" name="MOTILITY_RL_4_3" id="MOTILITY_RL_4_3">&nbsp;</div>
2784 </div>
2785 <div class="divMiddleRow">
2786 <div class="divCell" name="MOTILITY_RR_4_4" id="MOTILITY_RR_4_4">&nbsp;</div>
2787 <div class="divCell" name="MOTILITY_RR_4" id="MOTILITY_RR_4" value="<?php echo attr($MOTILITY_RR); ?>">&nbsp;</div>
2788 <div class="divCell" name="MOTILITY_RR_3" id="MOTILITY_RR_3">&nbsp;</div>
2789 <div class="divCell" name="MOTILITY_RR_2" id="MOTILITY_RR_2">&nbsp;</div>
2790 <div class="divCell" name="MOTILITY_RR_1" id="MOTILITY_RR_1">&nbsp;</div>
2791 <div class="divCell" name="MOTILITY_RR_0" id="MOTILITY_RR_0">&nbsp;</div>
2792 <div class="divCell" name="MOTILITY_R0" id="MOTILITY_R0">&nbsp;</div>
2793 <div class="divCell" name="MOTILITY_RL_0" id="MOTILITY_RL_0">&nbsp;</div>
2794 <div class="divCell" name="MOTILITY_RL_1" id="MOTILITY_RL_1">&nbsp;</div>
2795 <div class="divCell" name="MOTILITY_RL_2" id="MOTILITY_RL_2">&nbsp;</div>
2796 <div class="divCell" name="MOTILITY_RL_3" id="MOTILITY_RL_3">&nbsp;</div>
2797 <div class="divCell" name="MOTILITY_RL_4" id="MOTILITY_RL_4" value="<?php echo attr($MOTILITY_RL); ?>">&nbsp;</div>
2798 <div class="divCell" name="MOTILITY_RL_4_4" id="MOTILITY_RL_4_4">&nbsp;</div>
2799 </div>
2800 <div class="divRow">
2801 <div class="divCell" name="MOTILITY_RR_4_5" id="MOTILITY_RR_4_5">&nbsp;</div>
2802 <div class="divCell" name="MOTILITY_RR_4_2" id="MOTILITY_RR_4_2">&nbsp;</div>
2803 <div class="divCell" name="MOTILITY_RR_3_2" id="MOTILITY_RR_3_2">&nbsp;</div>
2804 <div class="divCell">&nbsp;</div>
2805 <div class="divCell">&nbsp;</div>
2806 <div class="divCell" name="MOTILITY_RI_0_1" id="MOTILITY_RI_0_1">&nbsp;</div>
2807 <div class="divCell" id="MOTILITY_RI_0" name="MOTILITY_RI_0">&nbsp;</div>
2808 <div class="divCell" name="MOTILITY_RI_0_2" id="MOTILITY_RI_0_2">&nbsp;</div>
2809 <div class="divCell">&nbsp;</div>
2810 <div class="divCell">&nbsp;</div>
2811 <div class="divCell" name="MOTILITY_RL_3_2" id="MOTILITY_RL_3_2">&nbsp;</div>
2812 <div class="divCell" name="MOTILITY_RL_4_2" id="MOTILITY_RL_4_2">&nbsp;</div>
2813 <div class="divCell" name="MOTILITY_RL_4_5" id="MOTILITY_RL_4_5">&nbsp;</div>
2814 </div>
2815 <div class="divRow">
2816 <div class="divCell">&nbsp;</div>
2817 <div class="divCell">&nbsp;</div>
2818 <div class="divCell">&nbsp;</div>
2819 <div class="divCell" name="MOTILITY_RRIO_1" id="MOTILITY_RRIO_1">&nbsp;</div>
2820 <div class="divCell">&nbsp;</div>
2821 <div class="divCell" name="MOTILITY_RI_1_1" id="MOTILITY_RI_1_1">&nbsp;</div>
2822 <div class="divCell" id="MOTILITY_RI_1" name="MOTILITY_RI_1">&nbsp;</div>
2823 <div class="divCell" name="MOTILITY_RI_1_2" id="MOTILITY_RI_1_2">&nbsp;</div>
2824 <div class="divCell">&nbsp;</div>
2825 <div class="divCell" name="MOTILITY_RLIO_1" id="MOTILITY_RLIO_1">&nbsp;</div>
2826 <div class="divCell">&nbsp;</div>
2827 <div class="divCell">&nbsp;</div>
2828 <div class="divCell">&nbsp;</div>
2829 </div>
2830 <div class="divRow">
2831 <div class="divCell" name="MOTILITY_RRIO_3_1" id="MOTILITY_RRIO_3_1">&nbsp;</div>
2832 <div class="divCell" name="MOTILITY_RRIO_2_1" id="MOTILITY_RRIO_2_1">&nbsp;</div>
2833 <div class="divCell" name="MOTILITY_RRIO_2" id="MOTILITY_RRIO_2">&nbsp;</div>
2834 <div class="divCell">&nbsp;</div>
2835 <div class="divCell">&nbsp;</div>
2836 <div class="divCell" name="MOTILITY_RI_2_1" id="MOTILITY_RI_2_1">&nbsp;</div>
2837 <div class="divCell" id="MOTILITY_RI_2" name="MOTILITY_RI_2">&nbsp;</div>
2838 <div class="divCell" name="MOTILITY_RI_2_2" id="MOTILITY_RI_2_2">&nbsp;</div>
2839 <div class="divCell">&nbsp;</div>
2840 <div class="divCell">&nbsp;</div>
2841 <div class="divCell" name="MOTILITY_RLIO_2" id="MOTILITY_RLIO_2">&nbsp;</div>
2842 <div class="divCell" name="MOTILITY_RLIO_2_1" id="MOTILITY_RLIO_2_1">&nbsp;</div>
2843 <div class="divCell" name="MOTILITY_RLIO_3_1" id="MOTILITY_RLIO_3_1">&nbsp;</div>
2844 </div>
2845 <div class="divRow">
2846 <div class="divCell" name="MOTILITY_RRIO_4_1" id="MOTILITY_RRIO_4_1">&nbsp;</div>
2847 <div class="divCell" name="MOTILITY_RRIO_3" id="MOTILITY_RRIO_3">&nbsp;</div>
2848 <div class="divCell" name="MOTILITY_RRIO_2_2" id="MOTILITY_RRIO_2_2">&nbsp;</div>
2849 <div class="divCell">&nbsp;</div>
2850 <div class="divCell">&nbsp;</div>
2851 <div class="divCell" name="MOTILITY_RI_3_1" id="MOTILITY_RI_3_1">&nbsp;</div>
2852 <div class="divCell" id="MOTILITY_RI_3" name="MOTILITY_RI_3">&nbsp;</div>
2853 <div class="divCell" name="MOTILITY_RI_3_2" id="MOTILITY_RI_3_2">&nbsp;</div>
2854 <div class="divCell">&nbsp;</div>
2855 <div class="divCell">&nbsp;</div>
2856 <div class="divCell" name="MOTILITY_RLIO_2_2" id="MOTILITY_RLIO_2_2">&nbsp;</div>
2857 <div class="divCell" name="MOTILITY_RLI0_3" id="MOTILITY_RLIO_3">&nbsp;</div>
2858 <div class="divCell" name="MOTILITY_RLIO_4_1" id="MOTILITY_RLIO_4_1">&nbsp;</div>
2859 </div>
2860 <div class="divRow">
2861 <div class="divCell" name="MOTILITY_RRIO_4" id="MOTILITY_RRIO_4" value="<?php echo attr($MOTILITY_RRIO); ?>">&nbsp;</div>
2862 <div class="divCell" name="MOTILITY_RRIO_4_2" id="MOTILITY_RRIO_4_2">&nbsp;</div>
2863 <div class="divCell" name="MOTILITY_RRIO_3_2" id="MOTILITY_RRIO_3_2">&nbsp;</div>
2864 <div class="divCell">&nbsp;</div>
2865 <div class="divCell" name="MOTILITY_RI_4_3" id="MOTILITY_RI_4_3">&nbsp;</div>
2866 <div class="divCell" name="MOTILITY_RI_4_1" id="MOTILITY_RI_4_1">&nbsp;</div>
2867 <div class="divCell" id="MOTILITY_RI_4" name="MOTILITY_RI_4" value="<?php echo attr($MOTILITY_RI); ?>">&nbsp;</div>
2868 <div class="divCell" name="MOTILITY_RI_4_2" id="MOTILITY_RI_4_2">&nbsp;</div>
2869 <div class="divCell" name="MOTILITY_RI_4_4" id="MOTILITY_RI_4_4">&nbsp;</div>
2870 <div class="divCell">&nbsp;</div>
2871 <div class="divCell" name="MOTILITY_RLIO_3_2" id="MOTILITY_RLIO_3_2">&nbsp;</div>
2872 <div class="divCell" name="MOTILITY_RLIO_4_2" id="MOTILITY_RLIO_4_2">&nbsp;</div>
2873 <div class="divCell" name="MOTILITY_RLIO_4" id="MOTILITY_RLIO_4" value="<?php echo attr($MOTILITY_RLIO); ?>">&nbsp;</div>
2874 </div>
2875 <div class="divRow">
2876 <div class="divCell">&nbsp;</div>
2877 </div>
2878 <div class="divRow">
2879 <div class="divCell">&nbsp;</div>
2880 </div>
2881 </div>
2882 <div class="divTable">
2883 <div class="divRow">
2884 <div class="divCell">&nbsp;</div>
2885 </div>
2886 <div class="divRow">
2887 <div class="divCell" name="MOTILITY_LRSO_4" id="MOTILITY_LRSO_4" value="<?php echo attr($MOTILITY_LRSO); ?>">&nbsp;</div>
2888 <div class="divCell" name="MOTILITY_LRSO_4_2" id="MOTILITY_LRSO_4_2">&nbsp;</div>
2889 <div class="divCell" name="MOTILITY_LRSO_3_3" id="MOTILITY_LRSO_3_2">&nbsp;</div>
2890 <div class="divCell">&nbsp;</div>
2891 <div class="divCell" name="MOTILITY_LS_4_3" id="MOTILITY_LS_4_3">&nbsp;</div>
2892 <div class="divCell" name="MOTILITY_LS_4_1" id="MOTILITY_LS_4_1">&nbsp;</div>
2893 <div class="divCell" name="MOTILITY_LS_4" id="MOTILITY_LS_4" value="<?php echo attr($MOTILITY_LS); ?>">&nbsp;</div>
2894 <div class="divCell" name="MOTILITY_LS_4_2" id="MOTILITY_LS_4_2">&nbsp;</div>
2895 <div class="divCell" name="MOTILITY_LS_4_4" id="MOTILITY_LS_4_4">&nbsp;</div>
2896 <div class="divCell">&nbsp;</div>
2897 <div class="divCell" name="MOTILITY_LLSO_3_1" id="MOTILITY_LLSO_3_1">&nbsp;</div>
2898 <div class="divCell" name="MOTILITY_LLSO_4_1" id="MOTILITY_LLSO_4_1">&nbsp;</div>
2899 <div class="divCell" name="MOTILITY_LLSO_4" id="MOTILITY_LLSO_4" value="<?php echo attr($MOTILITY_LLSO); ?>">&nbsp;</div>
2900 </div>
2901 <div class="divRow">
2902 <div class="divCell" name="MOTILITY_LRSO_4_1" id="MOTILITY_LRSO_4_1">&nbsp;</div>
2903 <div class="divCell" name="MOTILITY_LRSO_3" id="MOTILITY_LRSO_3">&nbsp;</div>
2904 <div class="divCell" name="MOTILITY_LRSO_2_2" id="MOTILITY_LRSO_2_2">&nbsp;</div>
2905 <div class="divCell">&nbsp;</div>
2906 <div class="divCell">&nbsp;</div>
2907 <div class="divCell" name="MOTILITY_LS_3_1" id="MOTILITY_LS_3_1">&nbsp;</div>
2908 <div class="divCell" name="MOTILITY_LS_3" id="MOTILITY_LS_3">&nbsp;</div>
2909 <div class="divCell" name="MOTILITY_LS_3_2" id="MOTILITY_LS_3_2">&nbsp;</div>
2910 <div class="divCell">&nbsp;</div>
2911 <div class="divCell">&nbsp;</div>
2912 <div class="divCell" name="MOTILITY_LLSO_2_1" id="MOTILITY_LLSO_2_1">&nbsp;</div>
2913 <div class="divCell" name="MOTILITY_LLSO_3" id="MOTILITY_LLSO_3">&nbsp;</div>
2914 <div class="divCell" name="MOTILITY_LLSO_4_2" id="MOTILITY_LLSO_4_2">&nbsp;</div>
2915 </div>
2916 <div class="divRow">
2917 <div class="divCell" name="MOTILITY_LRSO_3_1" id="MOTILITY_LRSO_3_1">&nbsp;</div>
2918 <div class="divCell" name="MOTILITY_LRSO_2_1" id="MOTILITY_LRSO_2_1">&nbsp;</div>
2919 <div class="divCell" name="MOTILITY_LRSO_2" id="MOTILITY_LRSO_2">&nbsp;</div>
2920 <div class="divCell">&nbsp;</div>
2921 <div class="divCell">&nbsp;</div>
2922 <div class="divCell" name="MOTILITY_LS_2_1" id="MOTILITY_LS_2_1">&nbsp;</div>
2923 <div class="divCell" name="MOTILITY_LS_2" id="MOTILITY_LS_2">&nbsp;</div>
2924 <div class="divCell" name="MOTILITY_LS_2_2" id="MOTILITY_LS_2_2">&nbsp;</div>
2925 <div class="divCell">&nbsp;</div>
2926 <div class="divCell">&nbsp;</div>
2927 <div class="divCell" name="MOTILITY_LLSO_2" id="MOTILITY_LLSO_2">&nbsp;</div>
2928 <div class="divCell" name="MOTILITY_LLSO_2_2" id="MOTILITY_LLSO_2_2">&nbsp;</div>
2929 <div class="divCell" name="MOTILITY_LLSO_3_2" id="MOTILITY_LLSO_3_2">&nbsp;</div>
2930 </div>
2931 <div class="divRow">
2932 <div class="divCell">&nbsp;</div>
2933 <div class="divCell">&nbsp;</div>
2934 <div class="divCell">&nbsp;</div>
2935 <div class="divCell" name="MOTILITY_LRSO_1" id="MOTILITY_LRSO_1">&nbsp;</div>
2936 <div class="divCell">&nbsp;</div>
2937 <div class="divCell" name="MOTILITY_LS_1_1" id="MOTILITY_LS_1_1">&nbsp;</div>
2938 <div class="divCell" name="MOTILITY_LS_1" id="MOTILITY_LS_1">&nbsp;</div>
2939 <div class="divCell" name="MOTILITY_LS_1_2" id="MOTILITY_LS_1_2">&nbsp;</div>
2940 <div class="divCell">&nbsp;</div>
2941 <div class="divCell" name="MOTILITY_LLSO_1" id="MOTILITY_LLSO_1">&nbsp;</div>
2942 <div class="divCell">&nbsp;</div>
2943 <div class="divCell">&nbsp;</div>
2944 <div class="divCell">&nbsp;</div>
2945 </div>
2946 <div class="divRow">
2947 <div class="divCell" name="MOTILITY_LR_4_3" id="MOTILITY_LR_4_3">&nbsp;</div>
2948 <div class="divCell" name="MOTILITY_LR_4_1" id="MOTILITY_LR_4_1">&nbsp;</div>
2949 <div class="divCell" name="MOTILITY_LR_3_1" id="MOTILITY_LR_3_1">&nbsp;</div>
2950 <div class="divCell">&nbsp;</div>
2951 <div class="divCell">&nbsp;</div>
2952 <div class="divCell" name="MOTILITY_LS_0_1" id="MOTILITY_LS_0_1">&nbsp;</div>
2953 <div class="divCell" name="MOTILITY_LS_0" id="MOTILITY_LS_0">&nbsp;</div>
2954 <div class="divCell" name="MOTILITY_LS_0_1" id="MOTILITY_LS_0_1">&nbsp;</div>
2955 <div class="divCell">&nbsp;</div>
2956 <div class="divCell">&nbsp;</div>
2957 <div class="divCell" name="MOTILITY_LL_3_1" id="MOTILITY_LL_3_1">&nbsp;</div>
2958 <div class="divCell" name="MOTILITY_LL_4_1" id="MOTILITY_LL_4_1">&nbsp;</div>
2959 <div class="divCell" name="MOTILITY_LL_4_3" id="MOTILITY_LL_4_3">&nbsp;</div>
2960 </div>
2961 <div class="divMiddleRow">
2962 <div class="divCell" name="MOTILITY_LR_4_4" id="MOTILITY_LR_4_4">&nbsp;</div>
2963 <div class="divCell" name="MOTILITY_LR_4" id="MOTILITY_LR_4" value="<?php echo attr($MOTILITY_LR); ?>">&nbsp;</div>
2964 <div class="divCell" name="MOTILITY_LR_3" id="MOTILITY_LR_3">&nbsp;</div>
2965 <div class="divCell" name="MOTILITY_LR_2" id="MOTILITY_LR_2">&nbsp;</div>
2966 <div class="divCell" name="MOTILITY_LR_1" id="MOTILITY_LR_1">&nbsp;</div>
2967 <div class="divCell" name="MOTILITY_LR_0" id="MOTILITY_LR_0">&nbsp;</div>
2968 <div class="divCell" name="MOTILITY_L0" id="MOTILITY_L0">&nbsp;</div>
2969 <div class="divCell" name="MOTILITY_LL_0" id="MOTILITY_LL_0">&nbsp;</div>
2970 <div class="divCell" name="MOTILITY_LL_1" id="MOTILITY_LL_1">&nbsp;</div>
2971 <div class="divCell" name="MOTILITY_LL_2" id="MOTILITY_LL_2">&nbsp;</div>
2972 <div class="divCell" name="MOTILITY_LL_3" id="MOTILITY_LL_3">&nbsp;</div>
2973 <div class="divCell" name="MOTILITY_LL_4" id="MOTILITY_LL_4" value="<?php echo attr($MOTILITY_LL); ?>">&nbsp;</div>
2974 <div class="divCell" name="MOTILITY_LL_4_4" id="MOTILITY_LL_4_4">&nbsp;</div>
2975 </div>
2976 <div class="divRow">
2977 <div class="divCell" name="MOTILITY_LR_4_5" id="MOTILITY_LR_4_5">&nbsp;</div>
2978 <div class="divCell" name="MOTILITY_LR_4_2" id="MOTILITY_LR_4_2">&nbsp;</div>
2979 <div class="divCell" name="MOTILITY_LR_3_3" id="MOTILITY_LR_3_2">&nbsp;</div>
2980 <div class="divCell">&nbsp;</div>
2981 <div class="divCell">&nbsp;</div>
2982 <div class="divCell" name="MOTILITY_LI_0_1" id="MOTILITY_LI_0_1">&nbsp;</div>
2983 <div class="divCell" id="MOTILITY_LI_0" name="MOTILITY_LI_0">&nbsp;</div>
2984 <div class="divCell" name="MOTILITY_LI_0_2" id="MOTILITY_LI_0_2">&nbsp;</div>
2985 <div class="divCell">&nbsp;</div>
2986 <div class="divCell">&nbsp;</div>
2987 <div class="divCell" name="MOTILITY_LL_3_2" id="MOTILITY_LL_3_2">&nbsp;</div>
2988 <div class="divCell" name="MOTILITY_LL_4_2" id="MOTILITY_LL_4_2">&nbsp;</div>
2989 <div class="divCell" name="MOTILITY_LL_5_2" id="MOTILITY_LL_5_2">&nbsp;</div>
2990 </div>
2991 <div class="divRow">
2992 <div class="divCell">&nbsp;</div>
2993 <div class="divCell">&nbsp;</div>
2994 <div class="divCell">&nbsp;</div>
2995 <div class="divCell" name="MOTILITY_LRIO_1" id="MOTILITY_LRIO_1">&nbsp;</div>
2996 <div class="divCell">&nbsp;</div>
2997 <div class="divCell" name="MOTILITY_LI_1_1" id="MOTILITY_LI_1_1">&nbsp;</div>
2998 <div class="divCell" id="MOTILITY_LI_1" name="MOTILITY_LI_1">&nbsp;</div>
2999 <div class="divCell" name="MOTILITY_LI_1_2" id="MOTILITY_LI_1_2">&nbsp;</div>
3000 <div class="divCell">&nbsp;</div>
3001 <div class="divCell" name="MOTILITY_LLIO_1" id="MOTILITY_LLIO_1">&nbsp;</div>
3002 <div class="divCell">&nbsp;</div>
3003 <div class="divCell">&nbsp;</div>
3004 <div class="divCell">&nbsp;</div>
3005 </div>
3006 <div class="divRow">
3007 <div class="divCell" name="MOTILITY_LRIO_3_1" id="MOTILITY_LRIO_3_1">&nbsp;</div>
3008 <div class="divCell" name="MOTILITY_LRIO_2_1" id="MOTILITY_LRIO_2_1">&nbsp;</div>
3009 <div class="divCell" name="MOTILITY_LRIO_2" id="MOTILITY_LRIO_2">&nbsp;</div>
3010 <div class="divCell">&nbsp;</div>
3011 <div class="divCell">&nbsp;</div>
3012 <div class="divCell" name="MOTILITY_LI_2_1" id="MOTILITY_LI_2_1">&nbsp;</div>
3013 <div class="divCell" name="MOTILITY_LI_2" id="MOTILITY_LI_2">&nbsp;</div>
3014 <div class="divCell" name="MOTILITY_LI_2_2" id="MOTILITY_LI_2_2">&nbsp;</div>
3015 <div class="divCell">&nbsp;</div>
3016 <div class="divCell">&nbsp;</div>
3017 <div class="divCell" name="MOTILITY_LLIO_2" id="MOTILITY_LLIO_2">&nbsp;</div>
3018 <div class="divCell" name="MOTILITY_LLIO_2_1" id="MOTILITY_LLIO_2_1">&nbsp;</div>
3019 <div class="divCell" name="MOTILITY_LLIO_3_1" id="MOTILITY_LLIO_3_1">&nbsp;</div>
3020 </div>
3021 <div class="divRow">
3022 <div class="divCell" name="MOTILITY_LRIO_4_1" id="MOTILITY_LRIO_4_1">&nbsp;</div>
3023 <div class="divCell" name="MOTILITY_LRIO_3" id="MOTILITY_LRIO_3">&nbsp;</div>
3024 <div class="divCell" name="MOTILITY_LRIO_2_2" id="MOTILITY_LRIO_2_2">&nbsp;</div>
3025 <div class="divCell">&nbsp;</div>
3026 <div class="divCell">&nbsp;</div>
3027 <div class="divCell" name="MOTILITY_LI_3_1" id="MOTILITY_LI_3_1">&nbsp;</div>
3028 <div class="divCell" name="MOTILITY_LI_3" id="MOTILITY_LI_3">&nbsp;</div>
3029 <div class="divCell" name="MOTILITY_LI_3_2" id="MOTILITY_LI_3_2">&nbsp;</div>
3030 <div class="divCell">&nbsp;</div>
3031 <div class="divCell">&nbsp;</div>
3032 <div class="divCell" name="MOTILITY_LLIO_2_2" id="MOTILITY_LLIO_2_2">&nbsp;</div>
3033 <div class="divCell" name="MOTILITY_LLIO_3" id="MOTILITY_LLIO_3">&nbsp;</div>
3034 <div class="divCell" name="MOTILITY_LLIO_4_1" id="MOTILITY_LLIO_4_1">&nbsp;</div>
3035 </div>
3036 <div class="divRow">
3037 <div class="divCell" name="MOTILITY_LRIO_4" id="MOTILITY_LRIO_4" value="<?php echo attr($MOTILITY_LRIO); ?>">&nbsp;</div>
3038 <div class="divCell" name="MOTILITY_LRIO_4_2" id="MOTILITY_LRIO_4_2">&nbsp;</div>
3039 <div class="divCell" name="MOTILITY_LRIO_3_2" id="MOTILITY_LRIO_3_2">&nbsp;</div>
3040 <div class="divCell">&nbsp;</div>
3041 <div class="divCell">&nbsp;</div>
3042 <div class="divCell" name="MOTILITY_LI_4_1" id="MOTILITY_LI_4_1">&nbsp;</div>
3043 <div class="divCell" name="MOTILITY_LI_4" id="MOTILITY_LI_4" value="<?php echo attr($MOTILITY_LI); ?>">&nbsp;</div>
3044 <div class="divCell" name="MOTILITY_LI_4_2" id="MOTILITY_LI_4_2">&nbsp;</div>
3045 <div class="divCell">&nbsp;</div>
3046 <div class="divCell">&nbsp;</div>
3047 <div class="divCell" name="MOTILITY_LLIO_3_2" id="MOTILITY_LLIO_3_2">&nbsp;</div>
3048 <div class="divCell" name="MOTILITY_LLIO_4_2" id="MOTILITY_LLIO_4_2">&nbsp;</div>
3049 <div class="divCell" name="MOTILITY_LLIO_4" id="MOTILITY_LLIO_4" value="<?php echo attr($MOTILITY_LLIO); ?>">&nbsp;</div>
3050 </div>
3051 <div class="divRow">
3052 <div class="divCell">&nbsp;</div>
3053 </div><div class="divRow">
3054 <div class="divCell">&nbsp;</div>
3055 </div>
3056 </div>
3057 </td>
3058 </tr>
3059 </table>
3060 </div>
3061 </div>
3062 <br />
3063 <div class="QP_lengthen" id="NEURO_COMMENTS_DIV">
3064 <b><?php echo xlt('Comments'); ?>:</b><div class="kb kb_left"><?php echo xlt('NCOM{{Neuro comments}}'); ?></div><br />
3065 <textarea id="NEURO_COMMENTS" name="NEURO_COMMENTS"><?php echo text($NEURO_COMMENTS); ?></textarea>
3066 </div>
3067 </div>
3068 </div>
3069 <div id="NEURO_right" class="exam_section_right borderShadow text_clinical">
3070 <div id="PRIORS_NEURO_left_text" name="PRIORS_NEURO_left_text" class="PRIORS_class PRIORS"><i class="fa fa-spinner fa-spin"></i>
3071 </div>
3072 <?php display_draw_section ("NEURO",$encounter,$pid); ?>
3073 <div id="QP_NEURO" name="QP_NEURO" class="QP_class">
3074 <input type="hidden" id="NEURO_ACT_zone" name="NEURO_ACT_zone" value="<?php echo $ACT_SHOW; ?>">
3075 <input type="hidden" id="NEURO_ACT_strab" name="NEURO_ACT_strab" value="">
3076 <input type="hidden" id="NEURO_field" name="NEURO_field" value="5">
3077 <input type="hidden" id="NEURO_value" name="NEURO_value" value="ortho">
3078 <input type="hidden" id="NEURO_side" name="NEURO_side" value="">
3080 <div id="NEURO_P_1">
3081 <?php echo $selector = priors_select("NEURO",$id,$id,$pid); ?>
3082 </div>
3083 <div id="NEURO_P_2"><br />
3084 <div class="borderShadow" class="NEURO_P_21"><span class="underline"><?php echo xlt('Laterality'); ?></span><br />
3085 <span class="eye_button" id="NEURO_side_R" name="NEURO_side" style="padding-left:0.06in;padding-right:0.06in;" onclick="$('#NEURO_side').val('R').trigger('change');"><?php echo xlt('Right'); ?></span>
3086 <span class="eye_button" id="NEURO_side_L" name="NEURO_side" style="padding-left:0.06in;padding-right:0.06in;" onclick="$('#NEURO_side').val('L').trigger('change');"><?php echo xlt('Left'); ?></span>
3087 <span class="eye_button eye_button_selected" id="NEURO_side_None" name="NEURO_side" onclick="$('#NEURO_side').val('').trigger('change');"><?php echo xlt('None'); ?></span> <br />
3088 </div>
3089 <div class="borderShadow" class="NEURO_P_21"><span class="underline"><?php echo xlt('Deviation'); ?></span><br />
3090 <span class="eye_button" id="NEURO_ACT_strab_E" name="NEURO_ACT_strab" title="<?php echo xla('Esophoria'); ?>" onclick="$('#NEURO_ACT_strab').val('E').trigger('change');"><?php echo xlt('E{{esophoria}}'); ?></span>
3091 <span class="eye_button" id="NEURO_ACT_strab_ET_int" name="NEURO_ACT_strab" title="<?php echo xla('Intermittent Esotropia'); ?>" onclick="$('#NEURO_ACT_strab').val('E\(T\)').trigger('change');"><?php echo xlt('E(T){{intermittent esotropia}}'); ?></span>
3092 <span class="eye_button" id="NEURO_ACT_strab_ET" name="NEURO_ACT_strab" title="<?php echo xla('Esotropia'); ?>" onclick="$('#NEURO_ACT_strab').val('ET').trigger('change');"><?php echo xlt('ET{{esotropia}}'); ?></span>
3093 <br />
3094 <span class="eye_button" id="NEURO_ACT_strab_X" name="NEURO_ACT_strab" title="<?php echo xla('Exophoria'); ?>" onclick="$('#NEURO_ACT_strab').val('X').trigger('change');"><?php echo xlt('X{{exophoria}}'); ?></span>
3095 <span class="eye_button" id="NEURO_ACT_strab_XT_int" name="NEURO_ACT_strab" title="<?php echo xla('Intermittent Exotropia'); ?>" onclick="$('#NEURO_ACT_strab').val('X\(T\)').trigger('change');"><?php echo xlt('X(T){{intermittent exophoria}}'); ?></span>
3096 <span class="eye_button" id="NEURO_ACT_strab_XT" name="NEURO_ACT_strab" title="<?php echo xla('Exotropia'); ?>" onclick="$('#NEURO_ACT_strab').val('XT').trigger('change');"><?php echo xlt('XT{{exotropia}}'); ?></span>
3098 <br />
3099 <span class="eye_button" id="NEURO_ACT_strab_H" name="NEURO_ACT_strab" title="<?php echo xla('Hyperphoria'); ?>" onclick="$('#NEURO_ACT_strab').val('HT').trigger('change');"><?php echo xlt('HT{{hyperphoria}}'); ?></span>
3100 <span class="eye_button" id="NEURO_ACT_strab_HT_int" name="NEURO_ACT_strab" title="<?php echo xla('intermittent hyperphoria'); ?>" onclick="$('#NEURO_ACT_strab').val('H\(T\)').trigger('change');"><?php echo xlt('H(T){{intermittent hypertropia}}'); ?></span>
3101 <span class="eye_button" id="NEURO_ACT_strab_hypoT" name="NEURO_ACT_strab" title="<?php echo xla('Hypotropia'); ?>" onclick="$('#NEURO_ACT_strab').val('hypoT').trigger('change');"><?php echo xlt('hypoT{{hypotropia}}'); ?></span>
3102 <span class="eye_button" id="NEURO_ACT_strab_hypoT_int" name="NEURO_ACT_strab" title="<?php echo xla('Intermittent hypotropia'); ?>" onclick="$('#NEURO_ACT_strab').val('hypo\(T\)').trigger('change');"><?php echo xlt('hypo(T){{intermittent hypotropia}}'); ?></span>
3103 <br />
3104 </div> <br /><br />
3105 <div>
3106 <button id="NEURO_RECORD" name="NEURO_RECORD"> <?php echo xlt('RECORD'); ?> </button>
3107 </div>
3108 </div>
3109 <div id="NEURO_P_3">
3110 &nbsp;
3111 <div class="borderShadow ACT_boxed"><span class="underline"><?php echo xlt('Rx/Distance'); ?></span><br />
3112 <span class="eye_button <?php if ($ACT_SHOW =='SCDIST') echo "eye_button_selected"; ?>" id="NEURO_ACT_zone_SCDIST" name="NEURO_ACT_zone" onclick="$('#NEURO_ACT_zone').val('SCDIST').trigger('change');"> <?php echo xlt('scDist{{without correction distance}}'); ?> </span>
3113 <span class="eye_button <?php if ($ACT_SHOW =='CCDIST') echo "eye_button_selected"; ?>" id="NEURO_ACT_zone_CCDIST" name="NEURO_ACT_zone" onclick="$('#NEURO_ACT_zone').val('CCDIST').trigger('change');"> <?php echo xlt('ccDist{{with correction distance}}'); ?> </span>
3114 <span class="eye_button <?php if ($ACT_SHOW =='SCNEAR') echo "eye_button_selected"; ?>" id="NEURO_ACT_zone_SCNEAR" name="NEURO_ACT_zone" onclick="$('#NEURO_ACT_zone').val('SCNEAR').trigger('change');"> <?php echo xlt('scNear{{without correction near}}'); ?> </span>
3115 <span class="eye_button <?php if ($ACT_SHOW =='CCNEAR') echo "eye_button_selected"; ?>" id="NEURO_ACT_zone_CCNEAR" name="NEURO_ACT_zone" onclick="$('#NEURO_ACT_zone').val('CCNEAR').trigger('change');"> <?php echo xlt('ccNear{{with correction at near}}'); ?> </span>
3116 </div>
3117 <div class="borderShadow ACT_boxed"><span class="underline"><?php echo xlt('Position of Gaze'); ?></span><br />
3118 <span class="eye_button_blank"> <?php echo xlt('R{{right}}'); ?> </span>
3119 <span class="eye_button" id="NEURO_field_1" name="NEURO_field" onclick="$('#NEURO_field').val('1').trigger('change');"> 1 </span>
3120 <span class="eye_button" id="NEURO_field_2" name="NEURO_field" onclick="$('#NEURO_field').val('2').trigger('change');"> 2 </span>
3121 <span class="eye_button" id="NEURO_field_3" name="NEURO_field" onclick="$('#NEURO_field').val('3').trigger('change');"> 3 </span>
3122 <span class="eye_button_blank"> <?php echo xlt('L{{left}}'); ?> </span>
3124 <span class="eye_button_blank"><i class="fa fa-1 fa-reply rotate-left"></i></span>
3125 <span class="eye_button" id="NEURO_field_4" name="NEURO_field" onclick="$('#NEURO_field').val('4').trigger('change');"> 4 </span>
3126 <span class="eye_button eye_button_selected" id="NEURO_field_5" name="NEURO_field" onclick="$('#NEURO_field').val('5').trigger('change');"> 5 </span>
3127 <span class="eye_button" id="NEURO_field_6" name="NEURO_field" onclick="$('#NEURO_field').val('6').trigger('change');">6</span>
3128 <span class="eye_button_blank"><i class="fa fa-1 fa-share rotate-right"></i></span>
3130 <span class="eye_button" id="NEURO_field_10" name="NEURO_field" onclick="$('#NEURO_field').val('10').trigger('change');">10</span>
3131 <span class="eye_button" id="NEURO_field_7" name="NEURO_field" onclick="$('#NEURO_field').val('7').trigger('change');">7</span>
3132 <span class="eye_button" id="NEURO_field_8" name="NEURO_field" onclick="$('#NEURO_field').val('8').trigger('change');">8</span>
3133 <span class="eye_button" id="NEURO_field_9" name="NEURO_field" onclick="$('#NEURO_field').val('9').trigger('change');">9</span>
3134 <span class="eye_button" id="NEURO_field_11" name="NEURO_field" onclick="$('#NEURO_field').val('11').trigger('change');">11</span>
3135 </div>
3137 <div class="borderShadow ACT_boxed"><span class="underline"><?php echo xlt('Prism Diopters'); ?></span><br />
3138 <span class="eye_button" id="NEURO_value_ortho" name="NEURO_value" onclick="$('#NEURO_value').val('ortho').trigger('change');"><?php echo xlt('Ortho{{orthophoric}}'); ?></span>
3139 <span class="eye_button" id="NEURO_value_1" name="NEURO_value" onclick="$('#NEURO_value').val('1').trigger('change');">1</span>
3140 <span class="eye_button" id="NEURO_value_2" name="NEURO_value" onclick="$('#NEURO_value').val('2').trigger('change');">2</span>
3141 <span class="eye_button" id="NEURO_value_3" name="NEURO_value" onclick="$('#NEURO_value').val('3').trigger('change');">3</span>
3142 <span class="eye_button" id="NEURO_value_4" name="NEURO_value" onclick="$('#NEURO_value').val('4').trigger('change');">4</span>
3143 <span class="eye_button" id="NEURO_value_5" name="NEURO_value" onclick="$('#NEURO_value').val('5').trigger('change');">5</span>
3144 <span class="eye_button" id="NEURO_value_6" name="NEURO_value" onclick="$('#NEURO_value').val('6').trigger('change');">6</span>
3145 <span class="eye_button" id="NEURO_value_8" name="NEURO_value" onclick="$('#NEURO_value').val('8').trigger('change');">8</span>
3146 <span class="eye_button" id="NEURO_value_10" name="NEURO_value" onclick="$('#NEURO_value').val('10').trigger('change');">10</span>
3147 <span class="eye_button" id="NEURO_value_12" name="NEURO_value" onclick="$('#NEURO_value').val('12').trigger('change');">12</span>
3148 <span class="eye_button" id="NEURO_value_14" name="NEURO_value" onclick="$('#NEURO_value').val('14').trigger('change');">14</span>
3149 <span class="eye_button" id="NEURO_value_16" name="NEURO_value" onclick="$('#NEURO_value').val('16').trigger('change');">16</span>
3150 <span class="eye_button" id="NEURO_value_18" name="NEURO_value" onclick="$('#NEURO_value').val('18').trigger('change');">18</span>
3151 <span class="eye_button" id="NEURO_value_20" name="NEURO_value" onclick="$('#NEURO_value').val('20').trigger('change');">20</span>
3152 <span class="eye_button" id="NEURO_value_25" name="NEURO_value" onclick="$('#NEURO_value').val('25').trigger('change');">25</span>
3153 <span class="eye_button" id="NEURO_value_30" name="NEURO_value" onclick="$('#NEURO_value').val('30').trigger('change');">30</span>
3154 <span class="eye_button" id="NEURO_value_35" name="NEURO_value" onclick="$('#NEURO_value').val('35').trigger('change');">35</span>
3155 <span class="eye_button" id="NEURO_value_40" name="NEURO_value" onclick="$('#NEURO_value').val('40').trigger('change');">40</span>
3156 </div>
3157 </div>
3158 <span class="closeButton fa fa-close pull-right z100" id="BUTTON_TEXTD_NEURO" name="BUTTON_TEXTD_NEURO" value="1"></span>
3159 </div>
3160 </div>
3161 </div>
3162 <!-- end Neuro -->
3164 <!-- start IMP/PLAN -->
3165 <div id="IMPPLAN_1" class="clear_both">
3166 <span class="anchor" id="IMPPLAN_anchor"></span>
3167 <div id="IMPPLAN_left" name="IMPPLAN_left" class="exam_section_left borderShadow">
3168 <a class="closeButton_4" title="<?php echo xla('Once completed, view and store this encounter as a PDF file'); ?>" target="_report" href="<?php echo $GLOBALS['webroot']; ?>/interface/patient_file/report/custom_report.php?printable=1&pdf=1&<?php echo $form_folder."_".$form_id."=".$encounter; ?>&"><i class="fa fa-file-pdf-o"></i></a>
3169 <span class="closeButton fa fa-paint-brush" id="BUTTON_DRAW_IMPPLAN" title="<?php echo xla('Open/Close the Imp/Plan drawing panel'); ?>" name="BUTTON_DRAW_IMPPLAN"></span>
3170 <i class="closeButton_2 fa fa-database" title="<?php echo xla('Open/Close the Impression/Plan Builder panel'); ?>" id="BUTTON_QP_IMPPLAN" name="BUTTON_QP_IMPPLAN"></i>
3171 <i class="closeButton_3 fa fa-user-md fa-sm fa-2" name="Shorthand_kb" title="<?php echo xla("Open/Close the Shorthand Window and display Shorthand Codes"); ?>"></i>
3172 <div id="IMPPLAN_left_text" name="IMPPLAN_left_text">
3173 <b><?php echo xlt('Impression/Plan'); ?>:</b><div class="kb kb_left"><?php echo xlt('IMP{{impression}}'); ?></div>
3174 <div id="IMPPLAN_blank" name="IMPPLAN_blank" class="HPI_text">
3175 <br />
3176 <table class="IMPPLAN">
3177 <tr>
3178 <td class="right bold" style="width:75px;padding-right:10px;vertical-align:top;"><?php echo xlt('New Dx{{new diagnosis}}'); ?>: </td>
3179 <td><textarea style="max-width:335px;width:335px;" name="IMP" id="IMP"><?php echo text($IMP); ?></textarea></td>
3180 </tr>
3181 </table>
3182 </div>
3183 <div id="IMPPLAN_text" name="IMPPLAN_text" style="margin:10px 50px;padding-left:30px;">
3184 <?php
3185 echo '<br /><br /><span style="font-weight:bold;">';
3186 echo xlt('How-to Build the Impression/Plan').':';
3187 echo '</span><ol>';
3188 echo '<li>'.xlt('Manually type into the New DX box above.').'<br />'.xlt('The *Tab* key creates each entry.').'</li>';
3189 echo '<span style="font-weight:bold;margin-left:-5px;">'.xlt('or utilize the Impression/Plan Builder').'</span>';
3190 echo '<li>'.xlt('Drag a DX over by its handle').':&nbsp;<i class="fa fa-arrows"></i></li>';
3191 echo '<li>'.xlt('Double click on a DX\'s handle').':&nbsp;<i class="fa fa-arrows"></i></li>';
3192 echo '<li>'.xlt('Multi-select desired DX(s) and click the').' <i class="fa fa-share-square-o fa-flip-horizontal"></i> '.xlt('icon').'</li>';
3193 echo '</ol>';
3195 </div>
3196 <div id="IMPPLAN_zone" name="IMPPLAN_zone" class="nodisplay">
3197 </div>
3199 <input type="hidden" name="IMPPLAN_count" id="IMPPLAN_count" value="<?php echo $IMPPLAN_count; ?>">
3200 </div>
3201 </div>
3202 <?php
3203 /* There are at least 4 ways to build IMP/PLAN
3204 * 1. Freehand - textarea
3205 * 2. Copy Forward (prior_select)
3206 * 3. Build automatically through workflows. (build_PMSFH)
3207 * 4. Draw it in (display_draw_section)
3210 <div id="IMPPLAN_right" class="exam_section_right borderShadow text_clinical">
3211 <?php display_draw_section ("IMPPLAN",$encounter,$pid); ?>
3213 <div id="PRIORS_IMPPLAN_left_text" name="PRIORS_IMPPLAN_left_text" class="PRIORS_class PRIORS"><i class="fa fa-spinner fa-spin"></i>
3214 </div>
3215 <div id="QP_IMPPLAN" name="QP_IMPPLAN" class="QP_class2">
3216 <span id="iPLAN_BUILD" name="iPLAN_BUILD" class="bold"><?php echo xlt('Impression/Plan'); ?></span>
3217 <div id="IP_P_1">
3218 <?php echo $selector = priors_select("IMPPLAN",$id,$id,$pid); ?>
3219 </div>
3220 <span class="closeButton fa fa-close pull-right z100" id="BUTTON_TEXTD_IMPPLAN" name="BUTTON_TEXTD_IMPPLAN" value="1"></span>
3221 <br />
3222 <?php
3224 * Let's discuss 3. Build automatically through workflows - The Impression/Plan Builder
3225 * Since POH is our area of concern, use $PMSFH[0]['POH'] & $PMSFH[0]['POS'] first then
3226 * $PMSFH[0]['medical_problem'] then
3227 * system to extrapolate DXs from user-entered clinical findings (PE)
3228 * to build the IMP/PLAN options list
3229 * a. Diagnoses are sortable via dragging, to build an order.
3230 * b. Diagnoses are selectable and deselectable
3231 * then click the BUILD icon to append the selected DXs to the bottom of the IMP/Plan list.
3232 * c. Drag a DX across onto the IMP.textarea appends this data to the current IMP.textarea data
3233 * d. Drag a DX across onto the IMP/Plan area appends this DX to the bottom of the IMP/Plan list
3234 * e. DoubleClick a DX appends this DX to the bottom of the IMP/Plan list
3237 if (!$PMSFH) $PMSFH = build_PMSFH($pid);
3238 $total_DX='0';
3239 if (($PMSFH[0]['POH'][0] >'') && ($PMSFH[0]['PMH'][0] >'')) $total_DX ='1';
3244 <br />
3245 <dl class="building_blocks" id="building_blocks" name="building_blocks">
3246 <dt class="borderShadow"><i title="<?php echo xla('Drag the arrow for each diagnosis to sort the list.'); echo "\n";
3247 echo xla('Select the diagnoses to include in the Impression/Plan.'). "\n";
3248 echo xla('Press this icon to build your Impression/Plan.'); ?>" class="fa fa-share-square-o fa-flip-horizontal" id="make_new_IMP" name="make_new_IMP"></i>
3249 <span id="IMP_start" name="IMP_start"><?php echo xlt('Impression/Plan Builder'); ?></span>
3250 <div id="IMP_start2">
3251 <input type="checkbox" id="inc_PE" name="inc_PE" checked><label for='inc_PE' class='input-helper input-helper--checkbox'><?php echo xlt('Exam{{Physical Exam}}'); ?></label>&nbsp;
3252 <input type="checkbox" id="inc_POH" name="inc_POH" checked><label for='inc_POH' class='input-helper input-helper--checkbox'><?php echo xlt('POH{{Past Ocular History}}'); ?></label>&nbsp;
3253 <input type="checkbox" id="inc_PMH" name="inc_PMH"><label for='inc_PMH' class='input-helper input-helper--checkbox'><?php echo xlt('PMH{{Past Medical History}}') ?></label>&nbsp;
3254 </div>
3255 </dt>
3256 <dd id="IMP_start_acc" name="IMP_start_acc">
3257 <ol id="build_DX_list" name="build_DX_list">
3258 <?php
3259 $i=0;
3260 if ($total_DX == '1') {
3261 foreach ($PMSFH[0]['POH'] as $k => $v) {
3262 $insert_code='';
3263 if ($v['diagnosis'] >''){
3264 $insert_code = "<code class='pull-right diagnosis'>".$v['diagnosis']."</code>";
3266 $k = xla($k);
3267 $v['title'] = xlt($v['title']);
3268 $insert_code = text($insert_code);
3269 echo "<li class='ui-widget-content'> <span id='DX_POH_".$k."' name='DX_POH_".$k."'>".$v['title']."</span> ".$insert_code."</li>";
3271 foreach ($PMSFH[0]['POS'] as $k => $v) {
3272 $insert_code='';
3273 if ($v['diagnosis'] >''){
3274 $insert_code = "<code class='pull-right diagnosis'>".$v['diagnosis']."</code>";
3276 $k = xla($k);
3277 $v['title'] = xlt($v['title']);
3278 $insert_code = text($insert_code);
3279 echo "<li class='ui-widget-content'> <span id='DX_POS_".$k."' name='DX_POS_".$k."'>".$v['title']."</span> ".$insert_code."</li>";
3281 foreach ($PMSFH[0]['medical_problem'] as $k => $v) {
3282 $insert_code='';
3283 if ($v['diagnosis'] >''){
3284 $insert_code = "<code class='pull-right diagnosis'>".$v['diagnosis']."</code>";
3286 $k = xla($k);
3287 $v['title'] = xlt($v['title']);
3288 $insert_code = text($insert_code);
3289 echo "<li class='ui-widget-content'> <span id='DX_PMH_".$k."' name='DX_PMH_".$k."'>".$v['title']."</span> ".$insert_code."</li>";
3291 } else {
3292 echo "<br /><span class='bold'>";
3293 echo xlt("The Past Ocular History (POH) and Past Medical History (PMH) are negative.");
3294 echo xlt('and').' '.xlt('no diagnosis was auto-generated from the clinical findings.');
3295 echo "</span><br /><br>";
3296 echo xlt("Update the chart to activate the Builder.")."<br />";
3300 </ol>
3301 </dd>
3303 <?php
3305 * The goal here is to auto-code the encounter and link it directly to the billing module.
3306 * Select Visit Type from dropdown (CPT4) built from practice's fee_sheet_options table.
3307 * Active coding system = $default_search_type;
3308 * We present the $default_search_type codes found in the Imp/Plan.
3309 * Perhaps a minor procedure/test was performed?
3310 * Select options drawn from Eye_todo_done_".$providerID list with a CODE
3311 * TODO: Finally we have the "Prior Visit" functionality of the form.
3312 * We should be able to look past codes and perhaps carry this forward?
3315 <script>
3316 var default_search_type = '<?php echo text($default_search_type); ?>';
3317 </script>
3319 <dt class="borderShadow"><span><?php echo xlt('Coding Engine'); ?></span></dt>
3320 <dd>
3321 <div style="padding:5px 10px 5px 10px;">
3322 <table style="width:100%;">
3323 <tr>
3324 <td style="" colspan="2"><b><?php echo xlt('Diagnostic'). " ".xlt('Codes'); ?>:</b>
3325 </td>
3326 </tr>
3327 <tr>
3328 <td colspan="3" style="padding-top:5px;padding-left:15px;"><span id="Coding_DX_Codes"><br /></span>
3329 </td>
3330 </tr>
3331 <tr>
3332 <td style="padding-top:5px;vertical-align:top;"><b><?php echo xlt('Visit'); echo " ".xlt('Codes'); ?>:</b></td>
3333 <td colspan="2" style="text-align:right;padding:left:20px;">
3334 <span class="CODE_LOW" title="<?php echo xla('Documentation for a Detailed HPI requires').":\n ".xla('> 3 HPI elements')."\n ".
3335 xla('OR{{as in AND/OR, ie. not an abbreviation}}')."\n ".
3336 xla('the status of three chronic/inactive problems'); ?>">
3337 <i class="fa fa-check"></i> <?php
3338 echo xlt('Limited HPI');
3339 ?> </span><span class="CODE_HIGH nodisplay"><i class="fa fa-check"></i> <?php
3340 echo xlt('Detailed HPI'); ?></span><span class="EXAM_LOW">, <?php echo xlt('Limited Exam'); ?></span>
3341 <span class="DIL_RISKS nodisplay"><i class="fa fa-check"></i> <?php echo xlt('Detailed exam'); ?></span>
3342 <span id="Coding_Visit_Codes"></span></td>
3343 </tr>
3344 <tr>
3345 <td colspan="3" style="padding-top:5px;padding-left:15px;">
3346 <div class="ui-widget">
3347 <select id="visit_codes">
3348 <?php
3349 $i = 0;
3350 $last_category = '';
3352 // Create drop-lists based on the fee_sheet_options table.
3353 $res = sqlStatement("SELECT * FROM fee_sheet_options " .
3354 "ORDER BY fs_category, fs_option");
3355 while ($row = sqlFetchArray($res)) {
3356 $fs_category = $row['fs_category'];
3357 $fs_option = $row['fs_option'];
3358 $fs_codes = $row['fs_codes'];
3359 list($code_type_here,$code) = explode("|",$fs_codes);
3360 if($fs_category !== $last_category) {
3361 $last_category = $fs_category;
3362 echo " <option value=''> " . text(substr($fs_category, 1)) . "</option>\n";
3364 $code_text = (strlen(substr($fs_option, 1)) > 18) ? substr(substr($fs_option, 1),0,16).'...' : substr($fs_option, 1);
3366 echo " <option value='" . attr($fs_codes) . "'>" . text($code)." ".text(substr($fs_category, 1)).": ".text($code_text) . "</option>\n";
3368 // Create drop-lists based on categories defined within the codes.
3369 $pres = sqlStatement("SELECT option_id, title FROM list_options " .
3370 "WHERE list_id = 'superbill' ORDER BY seq");
3371 while ($prow = sqlFetchArray($pres)) {
3372 global $code_types;
3373 echo " <option value=''> " . text($prow['title']) . "\n";
3374 $res = sqlStatement("SELECT code_type, code, code_text,modifier FROM codes " .
3375 "WHERE superbill = ? AND active = 1 " .
3376 "ORDER BY code_text", array($prow['option_id']) );
3377 while ($row = sqlFetchArray($res)) {
3378 $ctkey = alphaCodeType($row['code_type']);
3379 if ($code_types[$ctkey]['nofs']) continue;
3380 $code_text = (strlen($row['code_text']) > 15) ? substr($row['code_text'],0,13).'...' : $row['code_text'];
3381 echo " <option value='" . attr($ctkey) . "|" .
3382 attr($row['code']) . ':'. attr($row['modifier']) . "|'>" . text($code_text) . "</option>\n";
3386 </select>
3387 <span class="modifier" id="visit_mod_22" value="22" title="<?php echo xla('Modifier 22: Increased Procedural Services: When the work required to provide a service is substantially greater than typically required, it may be identified by adding modifier 22 to the usual procedure code.') ?>">22</span>
3388 <span class="modifier" id="visit_mod_24" value="24" title="<?php echo xla('Modifier 24: Unrelated Evaluation and Management Service by the Same Physician During a Postoperative Period') ?>">24</span>
3389 <span class="modifier" id="visit_mod_25" value="25" title="<?php echo xla('Modifier 25: Significant, separately identifiable evaluation and management (E/M) service by the same physician on the day of a procedure or other service') ?>">25</span>
3390 <span class="modifier" id="visit_mod_57" value="57" title="<?php echo xla('Modifier 57: Indicates an Evaluation and Management (E/M) service resulted in the initial decision to perform surgery either the day before a major surgery (90 day global) or the day of a major surgery.'); ?>">57</span>
3391 </div>
3392 </td>
3393 </tr>
3395 <tr id="neurosens_code" name="neurosens_code" class="nodisplay">
3396 <td colspan="3" style="padding-top:5px;padding-left:15px;"><input type="hidden" id="neurosens" style="width:50px;" value="92060" class="">
3397 <i class="fa fa-check"></i> 92060 Sensorimotor Exam - no modifier required.
3398 </td>
3399 </tr>
3401 <tr>
3402 <td style="padding-top:5px;" colspan="3"><b><?php echo xlt('Tests Performed'); echo " / ".xlt('Modifiers'); ?>:</b>&nbsp;
3403 <a href="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=Eye_todo_done_<?php echo attr($providerID); ?>" target="RTop"
3404 title="<?php echo xla('Click here to Edit this Doctor\'s Plan options').". \n". xlt('Only entries with a Code are billable').". "; ?>"
3405 name="provider_testing_codes" style="color:black;font-weight:600;"><i class="fa fa-pencil fa-fw"></i> </a>
3406 </td>
3407 </tr>
3408 <tr>
3409 <td colspan="3">
3410 <table>
3411 <tr>
3412 <td style="padding-right:20px;padding-left:20px;">
3413 <?php
3415 $counter='0';
3416 $count='0';
3417 $arrTESTS = explode("|",$Resource); //form_eye_mag:Resource = billable things (not visit code) performed today
3418 $query = "select * from list_options where list_id=? and activity='1' order by seq";
3419 $TODO_data = sqlStatement($query,array("Eye_todo_done_".$providerID));
3420 while ($row = sqlFetchArray($TODO_data)) {
3421 if ($row['codes'] ==='') continue;
3422 list($code_type_here,$code) = explode(":",$row['codes']);
3423 $codedesc = lookup_code_descriptions($row['codes']);
3424 $order = array("\r\n", "\n","\r");
3425 $codedesc = str_replace($order,'',$codedesc);
3426 if ($codedesc =='') $codedesc = $row['title'];
3427 $codetext = $codedesc ." (".$row['codes'].")";
3428 $checked ='';
3429 if (in_array($row['codes'],$arrTESTS)) {
3430 $checked = "checked='yes'";
3433 * This will link to a report generator for billable procedures/tests.
3434 * They items need to be read/interpreted/dictated/documented to be billable.
3435 * The reading may already be documented within the scanned item itself.
3436 * Thus this will be optional.
3437 * If needed, these reports should be categoriezed and filed ala the document engine.
3438 * If a procedure/test has a document category and there is a document uploaded for today's encounter
3439 * an icon should be displayed linked to the test/interpretation.
3440 * Procedures/surgeries performed will need an op-note like format.
3441 * This will be another series of forms then.
3442 * echo "<i class='fa fa-file-word-o'></i>";
3444 echo "<input type='checkbox' class='TESTS' id='TEST_$counter' codetext='".attr($codetext)."' title='".attr($codedesc)."' name='TEST[]' $checked value='". attr($row['codes']) ."'> ";
3445 echo '<input type="text" title="'.xla('Modifier').'" style="width:20px;" id="TEST_'.$counter.'_modifier" value="'.$row['modifier'].'">';
3447 $label = text(substr($codedesc,0,25));
3448 echo "<label for='TEST_$counter' class='input-helper input-helper--checkbox'>";
3449 echo $label."</label>";
3450 $count++;$counter++;
3451 if ($count =="2") {
3452 echo '</td><tr><td style="padding-right:20px;padding-left:20px;">';
3453 $count='0';
3454 } else {
3455 echo "</td><td>";
3460 </td>
3461 </tr>
3462 </table>
3463 </td>
3464 </tr>
3465 </table>
3466 <table style="width:100%;">
3467 <tr>
3468 <td>
3469 <button id="code_me_now"><?php echo xlt('Populate Fee Sheet'); ?></button>
3470 </td>
3471 <td>
3472 <div class="widget">
3473 <button id="goto_fee_sheet"
3474 class="nodisplay"
3475 href="../../forms/fee_sheet/view.php" onclick="top.restoreSession()"
3476 tabindex="-1"><?php echo xlt('Open Fee Sheet'); ?></button>
3477 </div>
3478 </td>
3479 </tr>
3480 </table>
3482 </div>
3483 </dd>
3485 <?php
3487 * This a provider-specific PLAN list of items that the user can define.
3488 * Pencil icon links to 'list_options' in DB which opens in the RTop frame.
3489 * If the provider-specific list does not exist, create it and populate it
3490 * with generic starter items from list_options list "Eye_todo_done_defaults".
3491 * This list is used to create the plan for the next visit. Anything with a CODE
3492 * is also listed as a billable item/TEST in the CODING ENGINE.
3494 $query = "select * from list_options where list_id=? and activity='1' order by seq";
3495 $TODO_data = sqlStatement($query,array("Eye_todo_done_".$providerID));
3496 if (sqlNumRows($TODO_data) < '1') {
3497 // Provider list is not created yet, or was deleted.
3498 // Create it fom defaults...
3499 $query = "INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`, `is_default`, `option_value`, `mapping`, `notes`, `codes`, `activity`) VALUES ('lists', ?, ?, '0', '1', '0', '', '', '', '0')";
3500 sqlStatement($query,array('Eye_todo_done_'.$providerID,'Eye Orders '.$prov_data['lname']));
3501 $SQL_INSERT = "INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`, `mapping`, `notes`, `codes`, `activity`, `subtype`) VALUES ";
3502 $number_rows=0;
3503 $query = "SELECT * FROM list_options where list_id =? ORDER BY seq";
3504 $TODO_data = sqlStatement($query,array("Eye_todo_done_defaults"));
3505 while ($TODO= sqlFetchArray($TODO_data)) {
3506 if ($number_rows > 0) $SQL_INSERT .= ",
3508 $SQL_INSERT .= "('Eye_todo_done_".add_escape_custom($providerID)."','".add_escape_custom($TODO['option_id'])."','".add_escape_custom($TODO['title'])."','".add_escape_custom($TODO['seq'])."','".add_escape_custom($TODO['mapping'])."','".add_escape_custom($TODO['notes'])."','".add_escape_custom($TODO['codes'])."','".add_escape_custom($TODO['activity'])."','".add_escape_custom($TODO['subtype'])."')";
3509 $number_rows++;
3511 sqlStatement($SQL_INSERT.";");
3514 <dt class="borderShadow">
3515 <span><?php echo xlt('Next Visit Orders'); ?></span>
3516 <a href="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=Eye_todo_done_<?php echo attr($providerID); ?>" target="RTop"
3517 title="<?php echo xla('Click here to Edit this Doctor\'s Plan options'); ?>"
3518 name="provider_todo" style="color:black;font-weight:600;"><i class="fa fa-pencil fa-fw"></i> </a>
3519 </dt>
3520 <dd>
3521 <table>
3522 <tr class="" style="vertical-align:bottom;margin: 10px;;">
3523 <td></td>
3524 </tr>
3525 <tr>
3526 <td style="padding-right:20px;padding-left:20px;">
3527 <?php
3528 // Iterate through this "provider's" PLAN/to_do list of options.
3529 //could maybe use options.inc checkbox type 21?
3530 $count=0;
3531 $counter=0;
3532 $PLAN_arr = explode("|",$PLAN);
3533 while ($row = sqlFetchArray($TODO_data)) {
3534 $arrPLAN[$counter]['option_id'] = $row['option_id'];
3535 $arrPLAN[$counter]['title'] = $row['title'];
3536 $arrPLAN[$counter]['option_value'] = $row['option_value'];
3537 $arrPLAN[$counter]['mapping'] = $row['mapping'];
3538 $arrPLAN[$counter]['notes'] = $row['notes'];
3539 $arrPLAN[$counter]['codes'] = $row['codes'];
3540 $arrPLAN[$counter]['subtype'] = $row['subtype'];
3541 $checked ='';
3542 $title=$row['title'];
3543 if (in_array($title,$PLAN_arr)) {
3544 $checked = "checked='yes'";
3546 // <!-- <i title="Build your plan." class="fa fa-share-square-o fa-flip-horizontal" id="make_blank_PLAN" name="make_blank_PLAN"></i>-->
3547 echo "<input type='checkbox' id='PLAN$counter' name='PLAN[]' $checked value='".attr($row[title])."'> ";
3548 $label = text(substr($row['title'],0,30));
3549 echo "<label for='PLAN$counter' class='input-helper input-helper--checkbox' title='".attr($row['notes'])."'>";
3550 echo $label."</label><br />";
3551 $count++;$counter++;
3552 if ($count =="3") {
3553 echo '</td><tr><td style="padding-right:20px;padding-left:20px;">';
3554 $count='0';
3555 } else {
3556 echo "</td><td>";
3560 <script>
3561 var PLANoptions = <?php echo json_encode($arrPLAN); ?>;
3562 </script>
3563 </td>
3564 </tr>
3565 <tr>
3566 <td colspan="3" style="padding-left:20px;padding-top:4px;">
3567 <textarea id="Plan<?php echo $counter; ?>" name="PLAN[]"><?php if (($PLAN) && ($PLAN_arr[count($PLAN_arr)-1] > '')) echo $PLAN_arr[count($PLAN_arr)-1]; ?></textarea>
3568 </td>
3569 </tr>
3570 </table>
3571 </dd>
3574 <dt class="borderShadow"><span><?php echo xlt('Communication Engine'); ?></span></dt>
3575 <dd>
3576 <div style="padding:5px 20px 5px 20px;">
3577 <?php
3578 $query ="SELECT * FROM users WHERE id=?";
3579 $pcp_data = sqlQuery($query,array($pat_data['providerID']));
3580 $ref_data = sqlQuery($query,array($pat_data['ref_providerID']));
3582 <table style="width:100%;">
3583 <tr>
3584 <td class="bold underline" style="min-width:50px;"></td>
3585 <td class="bold underline" style="min-width:100px;">PCP</td>
3586 <td class="bold underline" style="min-width:100px;">Referrer</td>
3587 </tr>
3588 <tr>
3589 <td></td>
3590 <td class="bold"><?php echo text($pcp_data['fname'])." ".text($pcp_data['lname']); ?><?php if ($pcp_data['suffix']) echo ", ".text($pcp_data['suffix']); ?></td>
3591 <td class="bold"><?php echo text($ref_data['fname'])." ".text($ref_data['lname']); ?><?php if ($ref_data['suffix']) echo ", ".text($ref_data['suffix']); ?></td>
3592 </tr>
3593 <tr>
3594 <td class="bold top"><?php echo xlt('Phone'); ?>:</td>
3595 <td>
3596 <?php echo text($pcp_data['phonew1']); if ($pcp_data['phonew2']) echo "<br />". text($pcp_data['phonew2']); ?>
3597 </td>
3598 <td>
3599 <?php echo text($ref_data['phonew1']); if ($pcp_data['phonew2']) echo "<br />". text($pcp_data['phonew2']); ?>
3600 </td>
3601 </tr>
3602 <tr>
3603 <td class="bold top"><?php echo xlt('Fax'); ?>:</td>
3604 <td class="bold">
3605 <?php
3606 if ($pcp_data['fax'] > '') {
3607 // does the fax already exist?
3608 $query = "SELECT * FROM documents where encounter_id=? and foreign_id=? and url like '%Fax_".$encounter."_".$pat_data['providerID']."%'";
3609 $FAX_PCP = sqlQuery($query,array($encounter,$pid));
3610 if ($FAX_PCP['id']) { //it is here already, make them print and manually fax it. Show icon
3611 echo text($pcp_data['fax'])."&nbsp;&nbsp;
3612 <span id='status_Fax_pcp'>
3613 <a href='".$webroot."/controller.php?document&view&patient_id=".$pid."&doc_id=".$FAX_PCP['id']."'
3614 target='_blank' title='".xla('View the Summary Report sent to Fax Server.')."''>
3615 <i class='fa fa-file-pdf-o fa-fw'></i></a>
3616 <i class='fa fa-repeat fa-fw'
3617 onclick=\"top.restoreSession(); create_task('".attr($pat_data['providerID'])."','Fax-resend','ref'); return false;\">
3618 </i>";
3619 } else { ?>
3620 <a href="#" onclick="top.restoreSession(); create_task('<?php echo attr($pat_data['providerID']); ?>','Fax','pcp'); return false;">
3621 <?php echo text($pcp_data['fax']); ?></a>&nbsp;&nbsp;
3622 <span id="status_Fax_pcp"><i class="fa fa-fax fa-fw"></i></span>
3623 <?php
3625 } ?>
3626 </td>
3627 <td class="bold">
3628 <?php if ($ref_data['fax'] > '') {
3629 // does the fax already exist?
3630 $query = "SELECT * FROM documents where encounter_id=? and foreign_id=? and url like '%Fax_".$encounter."_".$pat_data['ref_providerID']."%'";
3631 $FAX_REF = sqlQuery($query,array($encounter,$pid));
3632 if ($FAX_REF['id']) { //it is here already, make them print and manually fax it. Show icon
3633 echo text($ref_data['fax'])."&nbsp;&nbsp;
3634 <span id='status_Fax_ref'>
3635 <a href='".$webroot."/controller.php?document&view&patient_id=".$pid."&doc_id=".$FAX_REF['id']."'
3636 target='_blank' title='".xla('View the Summary Report sent to Fax Server.')."''>
3637 <i class='fa fa-file-pdf-o fa-fw'></i></a>
3638 <i class='fa fa-repeat fa-fw'
3639 onclick=\"top.restoreSession(); create_task('".attr($pat_data['ref_providerID'])."','Fax-resend','ref'); return false;\">
3640 </i>";
3641 } else { ?>
3642 <a href="#" onclick="top.restoreSession(); create_task('<?php echo attr($pat_data['ref_providerID']); ?>','Fax','ref'); return false;">
3643 <?php echo text($ref_data['fax']); ?></a>&nbsp;&nbsp;
3644 <span id="status_Fax_ref"><i class="fa fa-fax fa-fw"></i></span>
3645 <?php
3647 } ?>
3648 </td>
3649 </tr>
3650 <tr>
3651 <td class="top bold"><?php echo xlt('Address'); ?>:</td>
3652 <td class="top"><?php
3653 if ($pcp_data['organization'] >'') echo text($pcp_data['organization'])."<br />";
3654 if ($pcp_data['street'] >'') echo text($pcp_data['street'])."<br />";
3655 if ($pcp_data['streetb'] >'') echo text($pcp_data['streetb'])."<br />";
3656 if ($pcp_data['city'] >'') echo text($pcp_data['city']).", ";
3657 if ($pcp_data['state'] >'') echo text($pcp_data['state'])." ";
3658 if ($pcp_data['zip'] >'') echo text($pcp_data['zip'])."<br />";
3660 if ($pcp_data['street2'] >'') echo "<br />".text($pcp_data['street2'])."<br />";
3661 if ($pcp_data['streetb2'] >'') echo text($pcp_data['streetb2'])."<br />";
3662 if ($pcp_data['city2'] >'') echo text($pcp_data['city2']).", ";
3663 if ($pcp_data['state2'] >'') echo text($pcp_data['state2'])." ";
3664 if ($pcp_data['zip2'] >'') echo text($pcp_data['zip2'])."<br />";
3666 </td>
3667 <td class="top"><?php
3668 if ($ref_data['organization'] >'') echo text($ref_data['organization'])."<br />";
3669 if ($ref_data['street'] >'') echo text($ref_data['street'])."<br />";
3670 if ($ref_data['streetb'] >'') echo text($ref_data['streetb'])."<br />";
3671 if ($ref_data['city'] >'') echo text($ref_data['city']).", ";
3672 if ($ref_data['state'] >'') echo text($ref_data['state'])." ";
3673 if ($ref_data['zip'] >'') echo text($ref_data['zip'])."<br />";
3675 if ($ref_data['street2'] >'') echo "<br />".text($ref_data['street2'])."<br />";
3676 if ($ref_data['streetb2'] >'') echo text($ref_data['streetb2'])."<br />";
3677 if ($ref_data['city2'] >'') echo text($ref_data['city2']).", ";
3678 if ($ref_data['state2'] >'') echo text($ref_data['state2'])." ";
3679 if ($ref_data['zip2'] >'') echo text($ref_data['zip2'])."<br />";
3681 </td>
3682 </tr>
3684 </table>
3685 </div>
3686 </dd>
3687 </dl>
3688 </div>
3689 </div>
3690 </div>
3691 <!-- END IMP/PLAN -->
3692 </div>
3693 <br />
3694 </div>
3695 <!-- end form_container for the main body of the form -->
3696 </div>
3697 <!-- end Layer1 -->
3698 </form>
3699 <!-- end form -->
3700 </div> <!-- end Layer3 -->
3701 </div> <!-- end page wrapper -->
3702 <?php
3703 if ($display!="fullscreen") {
3704 // trial fullscreen will lead to tablet versions and bootstrap menu overhaul
3705 // this function is in php/eye_mag_functions.php
3706 $output = menu_overhaul_bottom($pid,$encounter);
3707 echo $output;
3710 <script src="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery-panelslider-0-1-1/jquery.panelslider.js"></script>
3711 <!-- Undo code -->
3712 <script src="<?php echo $GLOBALS['assets_static_relative']; ?>/undone.js-0-0-1/undone.js"></script>
3713 <script src="<?php echo $GLOBALS['assets_static_relative']; ?>/undone.js-0-0-1/jquery.undone.js"></script>
3714 <script>
3715 $.undone();
3717 $("#undo, #redo, #clear").click(function(){
3718 $.undone(this.id);
3721 $(document).on("mouseenter", ".toggle", function () {
3722 var self = $(this);
3723 $.undone("register",
3724 function () { self.addClass("hidden"); },
3725 function () { self.removeClass("hidden"); }
3729 $(document).keydown(function (e) {
3730 var key = e.which;
3731 if (e.ctrlKey) { // ctrl
3732 if (key === 90) $.undone("undo"); // z
3733 if (key === 89) $.undone("redo"); // y
3737 $(window).on("undone:change", function(e, name, undoLen, redoLen){
3738 $("#undo").prop("disabled", !undoLen);
3739 $("#redo").prop("disabled", !redoLen);
3740 $("input").val(undoLen)
3743 // create the items
3744 var items = 800;
3745 while(items--) {
3746 var a = document.createElement("a");
3747 a.href = "#";
3748 a.className = "toggle";
3749 document.getElementsByTagName("div")[0].appendChild(a);
3751 var base = '<?php echo $GLOBALS['webroot']; ?>';
3752 </script>
3753 <script type="text/javascript" src="<?php echo $GLOBALS['webroot']; ?>/interface/forms/<?php echo $form_folder; ?>/js/shorthand_eye.js"></script>
3754 <script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative'] ?>/manual-added-packages/shortcut.js-2-01-B/shortcut.js"></script>
3755 <script type="text/javascript" src="<?php echo $GLOBALS['webroot']; ?>/interface/forms/<?php echo $form_folder; ?>/js/eye_base.php?enc=<?php echo attr($encounter); ?>&providerID=<?php echo attr($providerID); ?>"></script>
3756 <script type="text/javascript" src="<?php echo $GLOBALS['webroot']; ?>/interface/forms/<?php echo $form_folder; ?>/js/canvasdraw.js"></script>
3757 <script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative']; ?>/jscolor-1-4-5/jscolor.js"></script>
3758 <script type="text/javascript" src="<?php echo $GLOBALS['webroot']; ?>/library/dialog.js"></script>
3759 <div id="right-panel" name="right-panel" class="panel_side">
3760 <div style="margin-top:20px;text-align:center;font-size:1.2em;">
3761 <span class="fa fa-file-text-o" id="PANEL_TEXT" name="PANEL_TEXT" style="margin:2px;"></span>
3762 <span class="fa fa-database" id="PANEL_QP" name="PANEL_QP" style="margin:2px;"></span>
3763 <span class="fa fa-paint-brush" id="PANEL_DRAW" name="PANEL_DRAW" style="margin:2px;"></span>
3764 <span class="fa fa-user-md fa-sm" style="margin:2px;" name="Shorthand_kb"></span>
3765 <span class="fa fa-close" id="close-panel-bt" style="margin:2px;"></span>
3766 </div>
3767 <div id="right_panel_refresh" data-role="panel" name="right_panel_refresh">
3768 <?php
3769 // We are building the panel bar with the patient medical info
3770 // Since the "lists" table has a "subtype" field now
3771 // each section could be customized, like SOCHx, subtype "smoking"
3772 // However openEMR stores most of this SocHx data in the layout_options table with
3773 // the form_id='HIS' and group_name='4Lifestyle' fields.
3774 // So we need to conform and pull this information out of the current "History" fields.
3775 // We do this in the eye_mag_functions.php file by creating a new array $PMSFH
3776 // pulling in the issues, Social History, FH and ROS into one place.
3777 // Eye Form uses $PMSFH to build two display options:
3778 // 1. PMH_QP (square panel)
3779 // - function display_PRIOR_section("PMSFH",$id,$id,$pid) in php/eye_mag_functions.php
3780 // - creates/populates the PMSFH values to the right of the PMH zone, in the PMH_2: QP zone.
3781 // 2. Right Panel
3782 // - function show_PMSFH_panel($PMSFH) in php/eye_mag_functions.php
3783 // - creates/populates the right panel NavBar
3784 echo $output_PMSFH_panel = show_PMSFH_panel($PMSFH);
3786 </div>
3787 </div>
3788 <script>
3789 $('#left-panel-link').panelslider({side: 'left', clickClose: false, duration: 600, easingOpen: 'easeInBack', easingClose: 'easeOutBack'});
3790 $('#right-panel-link').panelslider({side: 'right', clickClose: false, duration: 600, easingOpen: 'easeInBack', easingClose: 'easeOutBack'});
3791 $('#right-panel-link_2').panelslider({side: 'right', clickClose: false, duration: 600, easingOpen: 'easeInBack', easingClose: 'easeOutBack'});
3792 $('#close-panel-bt').click(function() {
3793 $.panelslider.close();
3795 <?php
3796 if ($PANEL_RIGHT >'0') { ?>
3797 $("#right-panel-link").trigger("click");
3798 <?php
3801 </script>
3802 <script src="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-ui-1-11-4/jquery-ui.min.js"></script>
3803 </body>
3804 </html>