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