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/>.
25 * @author Ray Magauran <magauran@MedFetch.com>
26 * @link http://www.open-emr.org
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/forms.inc");
38 require_once("$srcdir/patient.inc");
40 $form_name = "eye_mag";
41 $form_folder = "eye_mag";
42 $Form_Name = "Eye Exam";
44 //since we come through the controller
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'];
54 $pid = $_SESSION['pid'];
57 $refresh = $_REQUEST['refresh'];
58 if ($_REQUEST['url']) {
59 redirector($_REQUEST['url']);
63 // Get user preferences, for this user
64 $query = "SELECT * FROM form_eye_mag_prefs where PEZONE='PREFS' AND (id=?) ORDER BY id,ZONE_ORDER,ordering";
65 $result = sqlStatement($query, array($_SESSION['authId']));
66 while ($prefs= sqlFetchArray($result)) {
67 $LOCATION = $prefs['LOCATION'];
68 $
$LOCATION = text($prefs['GOVALUE']);
71 $query = "SELECT * FROM patient_data where pid=?";
72 $pat_data = sqlQuery($query, array($pid));
74 $query="select form_encounter.date as encounter_date,form_encounter.*, form_eye_mag.* from form_eye_mag, forms,form_encounter
76 form_encounter.encounter =? and
77 form_encounter.encounter = forms.encounter and
78 form_eye_mag.id=forms.form_id and
79 forms.deleted != '1' and
80 forms.formdir='eye_mag' and
82 $encounter_data =sqlQuery($query, array($encounter,$pid));
83 @extract
($encounter_data);
84 //Do we have to have it?
85 //We can iterate through every value and perform openEMR escape-specfific functions?
86 //We can rewrite the code to rename variables eg $encounter_data['RUL'] instead of $RUL?
87 //Isn't this what extract does?
88 //And the goal is to redefine each variable, so overwriting them is actually desirable.
89 //Given others forms may be based off this and we have no idea what those fields will be named,
90 //should we make a decision here to create an openEMR extract like function?
91 //Would it would have to test for "protected variables" by name?
93 $providerID = findProvider($pid, $encounter);
94 $providerNAME = getProviderName($providerID);
95 $query = "SELECT * FROM users where id = ?";
96 $prov_data = sqlQuery($query, array($providerID));
101 $PMSFH = build_PMSFH($pid);
104 Two windows anywhere with the same chart open is not compatible with the autosave feature.
105 Data integrity problems will arise.
106 We use a random number generated for each instance - each time the form is opened - == uniqueID.
107 If: the form is LOCKED
108 and the LOCKEDBY variable != uniqueID
109 and less than one hour has passed since it was locked
110 then: a pop-up signals READ-ONLY mode.
111 This user can take control if they wish. If they confirm yes, take control,
112 LOCKEDBY is changed to their uniqueID,
113 Any other instance of the form cannot save data, and if they try,
114 they will receive a popup saying hey buddy, you lost ownership, entering READ-ONLY mode.
115 "Do you want to take control" is offered, should they wish to regain write priviledges.
116 If they stay in READ-ONLY mode, the fields are locked and submit_form is not allowed...
117 In READ-ONLY mode, the form is refreshed via ajax every 15 seconds with changed fields' css
118 background-color attribute set to purple.
119 Once the active user with write priviledges closes their instance of the form, the form_id is unlocked.
120 READ-ONLY users stay read only if they do nothing.
123 $warning = 'nodisplay';
124 $uniqueID = mt_rand();
125 $warning_text ='READ-ONLY mode.';
127 if (!$LOCKED||
!$LOCKEDBY) { //no one else has write privs.
128 $LOCKEDBY= $uniqueID;
131 //warning. This form is locked by another user.
132 $warning = ""; //remove nodisplay class
133 $take_ownership = $uniqueID;
136 //drop TIME from encounter_date (which is in DATETIME format)
137 //since OpenEMR assumes input is yyyy-mm-dd
138 //we could do this by changing the MYSQL query in the first place too. Which is better?
139 $dated = new DateTime($encounter_data['encounter_date']);
140 $dated = $dated->format('Y-m-d');
141 $visit_date = oeFormatShortDate($dated);
143 if (!$form_id && !$encounter) {
144 echo text($encounter)."-".text($form_id).xlt('No encounter...');
148 //ideally this would point to an error databased by problem #, cause it'd be a problem.
150 if ($refresh and $refresh != 'fullscreen') {
151 if ($refresh == "PMSFH") {
152 echo display_PRIOR_section($refresh, $id, $id, $pid);
153 } else if ($refresh == "PMSFH_panel") {
154 echo show_PMSFH_panel($PMSFH);
155 } else if ($refresh == "page") {
156 echo send_json_values($PMSFH);
157 } else if ($refresh == "GFS") {
158 echo display_GlaucomaFlowSheet($pid);
166 <title
> <?php
echo xlt('Chart'); ?
>: <?php
echo text($pat_data['fname'])." ".text($pat_data['lname'])." ".text($visit_date); ?
></title
>
167 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-min-1-10-2/index.js"></script
>
168 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/bootstrap-3-3-4/dist/js/bootstrap.min.js"></script
>
169 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/qtip2-2-2-1/jquery.qtip.min.js"></script
>
170 <script type
="text/javascript" src
="../../../library/dialog.js?v=<?php echo $v_js_includes; ?>"></script
>
172 <script type
="text/javascript" src
="<?php echo $GLOBALS['assets_static_relative'] ?>/jscolor-2-0-4/jscolor.js"></script
>
174 <script language
="JavaScript">
175 <?php
require_once("$srcdir/restoreSession.php");
177 function dopclick(id
) {
178 <?php
if ($thisauth != 'write') : ?
>
179 dlgopen('../../patient_file/summary/a_issue.php?issue=0&thistype=' + id
, '_blank', 550, 400);
181 alert("<?php echo xls('You are not authorized to add/edit issues'); ?>");
184 function doscript(type
,id
,encounter
,rx_number
) {
185 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);
188 function dispensed(pid
) {
189 dlgopen('../../forms/eye_mag/SpectacleRx.php?dispensed=1&pid='+pid
, '_blank', 560, 590);
191 function refractions(pid
) {
192 dlgopen('../../forms/eye_mag/SpectacleRx.php?dispensed=1&pid='+pid
, '_blank', 560, 590);
194 // This invokes the find-code popup.
195 function sel_diagnosis(target
,term
) {
196 if (target
=='') target
= "0";
200 if ($irow['type'] == 'PMH') { //or POH
202 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);
206 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);
214 //also add in any obj.Clinical data if the form was already opened
215 $codes_found = start_your_engines($encounter_data);
216 if ($codes_found) { ?
>
217 obj
.Clinical
= [<?php
echo json_encode($codes_found[0]); ?
>];
223 <!-- Add Font stuff
for the look
and feel
. -->
224 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/bootstrap-3-3-4/dist/css/bootstrap.min.css">
225 <link rel
="stylesheet" href
="<?php echo $GLOBALS['css_header']; ?>" type
="text/css">
226 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-ui-1-11-4/themes/excite-bike/jquery-ui.css">
227 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/pure-0-5-0/pure-min.css">
228 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/qtip2-2-2-1/jquery.qtip.min.css" />
229 <link rel
="stylesheet" href
="<?php echo $GLOBALS['assets_static_relative'] ?>/font-awesome-4-6-3/css/font-awesome.min.css">
230 <link rel
="stylesheet" href
="../../forms/<?php echo $form_folder; ?>/css/style.css" type
="text/css">
232 <link rel
="shortcut icon" href
="<?php echo $GLOBALS['images_static_relative']; ?>/favicon.ico" />
234 <meta charset
="utf-8">
235 <meta http
-equiv
="X-UA-Compatible" content
="IE=edge">
236 <meta name
="description" content
="OpenEMR: Eye Exam">
237 <meta name
="author" content
="OpenEMR: Ophthalmology">
238 <meta name
="viewport" content
="width=device-width, initial-scale=1">
240 <script language
="JavaScript">
241 function openNewForm(sel
) {
242 top
.restoreSession();
243 FormNameValueArray
= sel
.split('formname=');
244 if(FormNameValueArray
[1] == 'newpatient' ||
(!parent
.Forms
))
246 parent
.location
.href
= sel
250 parent
.Forms
.location
.href
= sel
;
254 * Function to add a CODE to an IMPRESSION/PLAN item
255 * This is for callback by the find-code popup in IMPPLAN area.
256 * Appends to or erases the current list of diagnoses.
258 function set_related(codetype
, code
, selector
, codedesc
) {
259 //target is the index of IMPRESSION[index].code we are searching for.
260 var span
= document
.getElementById('CODE_'+IMP_target
);
261 if ('textContent' in span
) {
262 span
.textContent
= code
;
264 span
.innerText
= code
;
266 $
('#CODE_'+IMP_target
).attr('title',codetype +
':' + code +
' ('+codedesc+
')');
268 obj
.IMPPLAN_items
[IMP_target
].code
= code
;
269 obj
.IMPPLAN_items
[IMP_target
].codetype
= codetype
;
270 obj
.IMPPLAN_items
[IMP_target
].codedesc
= codedesc
;
271 obj
.IMPPLAN_items
[IMP_target
].codetext
= codetype +
':' + code +
' ('+codedesc+
')';
272 // This lists the text for the CODE at the top of the PLAN_
273 // It is already there on mouseover the code itself and is printed in reports//faxes, so it was removed here
274 // obj.IMPPLAN_items[IMP_target].plan = codedesc+"\r"+obj.IMPPLAN_items[IMP_target].plan;
276 if (obj
.IMPPLAN_items
[IMP_target
].PMSFH_link
> '') {
277 var data
= obj
.IMPPLAN_items
[IMP_target
].PMSFH_link
.match(/(.*)_(.*)/);
278 if ((data
[1] == "POH")||
(data
[1] == "PMH")) {
279 obj
.PMSFH
[data
[1]][data
[2]].code
= code
;
280 obj
.PMSFH
[data
[1]][data
[2]].codetype
= codetype
;
281 obj
.PMSFH
[data
[1]][data
[2]].codedesc
= codedesc
;
282 obj
.PMSFH
[data
[1]][data
[2]].description
= codedesc
;
283 obj
.PMSFH
[data
[1]][data
[2]].diagnosis
= codetype +
':' + code
;
284 obj
.PMSFH
[data
[1]][data
[2]].codetext
= codetype +
':' + code +
' ('+codedesc+
')';
286 update_PMSFH_code(obj
.PMSFH
[data
[1]][data
[2]].issue
,codetype +
':' +code
);
289 store_IMPPLAN(obj
.IMPPLAN_items
,'1');
293 <body
class="bgcolor2" background
="<?php echo $GLOBALS['backpic']?>" topmargin
=0 rightmargin
=0 leftmargin
=0 bottommargin
=0 marginwidth
=0 marginheight
=0>
295 $input_echo = menu_overhaul_top($pid, $encounter);
298 <div id
="page-wrapper" data
-role
="page">
299 <div id
="Layer2" name
="Layer2" class="nodisplay">
301 <div id
="Layer3" name
="Layer3" class="container-fluid">
304 $output_priors = priors_select("ALL", $id, $id, $pid);
306 if ($output_priors != '') {
307 // get any orders from the last visit for this visit
308 // $priors[earlier]['PLAN'] contains the orders from last visit
309 // explode '|' and display as needed
312 menu_overhaul_left($pid, $encounter);
317 <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">
318 <div id
="Layer1" name
="Layer1" class="display">
319 <div id
="warning" name
="warning" class="alert alert-warning <?php echo $warning; ?>">
320 <span type
="button" class="close" data
-dismiss
="alert">×
;</span
>
321 <h4
><?php
echo xlt('Warning'); ?
>!
322 <?php
echo text($warning_text); ?
></h4
>
325 <!-- start form_container
for the main body of the form
-->
326 <div
class="body_top text-center row" id
="form_container" name
="form_container">
327 <input type
="hidden" name
="menustate" id
="menustate" value
="start">
328 <input type
="hidden" name
="form_folder" id
="form_folder" value
="<?php echo attr($form_folder); ?>">
329 <input type
="hidden" name
="form_id" id
="form_id" value
="<?php echo attr($form_id); ?>">
330 <input type
="hidden" name
="pid" id
="pid" value
="<?php echo attr($pid); ?>">
331 <input type
="hidden" name
="encounter" id
="encounter" value
="<?php echo attr($encounter); ?>">
332 <input type
="hidden" name
="visit_date" id
="visit_date" value
="<?php echo attr($encounter_date); ?>">
333 <input type
="hidden" name
="PREFS_VA" id
="PREFS_VA" value
="<?php echo attr($VA); ?>">
334 <input type
="hidden" name
="PREFS_W" id
="PREFS_W" value
="<?php echo attr($W); ?>">
335 <input type
="hidden" name
="PREFS_W_width" id
="PREFS_W_width" value
="<?php echo attr($W_width); ?>">
336 <input type
="hidden" name
="PREFS_MR" id
="PREFS_MR" value
="<?php echo attr($MR); ?>">
337 <input type
="hidden" name
="PREFS_MR_width" id
="PREFS_MR_width" value
="<?php echo attr($MR_width); ?>">
338 <input type
="hidden" name
="PREFS_CR" id
="PREFS_CR" value
="<?php echo attr($CR); ?>">
339 <input type
="hidden" name
="PREFS_CTL" id
="PREFS_CTL" value
="<?php echo attr($CTL); ?>">
340 <input type
="hidden" name
="PREFS_VAX" id
="PREFS_VAX" value
="<?php echo attr($VAX); ?>">
341 <input type
="hidden" name
="PREFS_ADDITIONAL" id
="PREFS_ADDITIONAL" value
="<?php echo attr($ADDITIONAL); ?>">
342 <input type
="hidden" name
="PREFS_CLINICAL" id
="PREFS_CLINICAL" value
="<?php echo attr($CLINICAL); ?>">
343 <input type
="hidden" name
="PREFS_IOP" id
="PREFS_IOP" value
="<?php echo attr($IOP); ?>">
344 <input type
="hidden" name
="PREFS_EXAM" id
="PREFS_EXAM" value
="<?php echo attr($EXAM); ?>">
345 <input type
="hidden" name
="PREFS_CYL" id
="PREFS_CYL" value
="<?php echo attr($CYLINDER); ?>">
346 <input type
="hidden" name
="PREFS_HPI_VIEW" id
="PREFS_HPI_VIEW" value
="<?php echo attr($HPI_VIEW); ?>">
347 <input type
="hidden" name
="PREFS_EXT_VIEW" id
="PREFS_EXT_VIEW" value
="<?php echo attr($EXT_VIEW); ?>">
348 <input type
="hidden" name
="PREFS_ANTSEG_VIEW" id
="PREFS_ANTSEG_VIEW" value
="<?php echo attr($ANTSEG_VIEW); ?>">
349 <input type
="hidden" name
="PREFS_RETINA_VIEW" id
="PREFS_RETINA_VIEW" value
="<?php echo attr($RETINA_VIEW); ?>">
350 <input type
="hidden" name
="PREFS_NEURO_VIEW" id
="PREFS_NEURO_VIEW" value
="<?php echo attr($NEURO_VIEW); ?>">
351 <input type
="hidden" name
="PREFS_ACT_VIEW" id
="PREFS_ACT_VIEW" value
="<?php echo attr($ACT_VIEW); ?>">
352 <input type
="hidden" name
="PREFS_PMH_RIGHT" id
="PREFS_PMH_RIGHT" value
="<?php echo attr($PMH_RIGHT); ?>">
353 <input type
="hidden" name
="PREFS_HPI_RIGHT" id
="PREFS_HPI_RIGHT" value
="<?php echo attr($HPI_RIGHT); ?>">
354 <input type
="hidden" name
="PREFS_EXT_RIGHT" id
="PREFS_EXT_RIGHT" value
="<?php echo attr($EXT_RIGHT); ?>">
355 <input type
="hidden" name
="PREFS_ANTSEG_RIGHT" id
="PREFS_ANTSEG_RIGHT" value
="<?php echo attr($ANTSEG_RIGHT); ?>">
356 <input type
="hidden" name
="PREFS_RETINA_RIGHT" id
="PREFS_RETINA_RIGHT" value
="<?php echo attr($RETINA_RIGHT); ?>">
357 <input type
="hidden" name
="PREFS_NEURO_RIGHT" id
="PREFS_NEURO_RIGHT" value
="<?php echo attr($NEURO_RIGHT); ?>">
358 <input type
="hidden" name
="PREFS_IMPPLAN_RIGHT" id
="PREFS_IMPPLAN_RIGHT" value
="<?php echo attr($IMPPLAN_RIGHT); ?>">
359 <input type
="hidden" name
="PREFS_PANEL_RIGHT" id
="PREFS_PANEL_RIGHT" value
="<?php echo attr($PANEL_RIGHT); ?>">
360 <input type
="hidden" name
="PREFS_KB" id
="PREFS_KB" value
="<?php echo attr($KB_VIEW); ?>">
361 <input type
="hidden" name
="PREFS_TOOLTIPS" id
="PREFS_TOOLTIPS" value
="<?php echo attr($TOOLTIPS); ?>">
362 <input type
="hidden" name
="ownership" id
="ownership" value
="<?php echo attr($ownership); ?>">
363 <input type
="hidden" name
="PREFS_ACT_SHOW" id
="PREFS_ACT_SHOW" value
="<?php echo attr($ACT_SHOW); ?>">
364 <input type
="hidden" name
="COPY_SECTION" id
="COPY_SECTION" value
="">
365 <input type
="hidden" name
="UNDO_ID" id
="UNDO_ID" value
="<?php echo attr($UNDO_ID); ?>">
366 <input type
="hidden" name
="LOCKEDBY" id
="LOCKEDBY" value
="<?php echo attr($LOCKEDBY); ?>">
367 <input type
="hidden" name
="LOCKEDDATE" id
="LOCKEDDATE" value
="<?php echo attr($LOCKEDDATE); ?>">
368 <input type
="hidden" name
="LOCKED" id
="LOCKED" value
="<?php echo attr($LOCKED); ?>">
369 <input type
="hidden" name
="uniqueID" id
="uniqueID" value
="<?php echo attr($uniqueID); ?>">
370 <input type
="hidden" name
="chart_status" id
="chart_status" value
="on">
371 <input type
="hidden" name
="finalize" id
="finalize" value
="0">
373 <!-- start first div
-->
374 <div id
="first" name
="first" class="text_clinical">
375 <!-- start HPI spinner
-->
376 <div
class="loading" id
="HPI_sections_loading" name
="HPI_sections_loading"><i
class="fa fa-spinner fa-spin"></i
>
378 <!-- end HPI spinner
-->
379 <?
php ($CLINICAL =='1') ?
($display_Add = "size100") : ($display_Add = "size50"); ?
>
380 <?
php ($CLINICAL =='0') ?
($display_Visibility = "display") : ($display_Visibility = "nodisplay"); ?
>
381 <!-- start HPI_PMH row
-->
382 <div id
="HPIPMH_sections" class="nodisplay">
383 <!-- start HPI_section
-->
384 <div id
="HPI_1" name
="HPI_1" class="<?php echo attr($display_Add); ?>">
385 <span
class="anchor" id
="HPI_anchor"></span
>
387 <!-- start HPI Left
-->
388 <div id
="HPI_left" name
="HPI_left" class="exam_section_left borderShadow">
389 <div id
="HPI_left_text" class="TEXT_class">
390 <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
>
391 <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
>
392 <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 next to each field
").". ".xla('Document clinical findings in Shorthand Format')." <b
>".xla('FIELD: Text(.a); '); ?></b>."></i
>
394 <b
><?php
echo xlt('HPI'); ?
>:</b
> <i
class="fa fa-help"></i
><br
/>
395 <div id
="tabs_wrapper" >
396 <div id
="tabs_container">
398 <li id
="tab0_CC" class="inactive"></li
>
399 <li id
="tab1_CC" class="active" ><a
class="fa fa-check" href
="#tab1"> <?php
echo xlt('CC{{Chief Complaint}}'); ?
> 1</a
></li
>
400 <li id
="tab2_CC"><a
<?php
if ($CC2 >'') {
401 echo 'class="fa fa-check"';
402 } ?
> href
="#tab2"><?php
echo xlt('CC{{Chief Complaint}}'); ?
> 2</a
></li
>
403 <li id
="tab3_CC"><a
<?php
if ($CC3 >'') {
404 echo 'class="fa fa-check"';
405 } ?
> href
="#tab3"><?php
echo xlt('CC{{Chief Complaint}}'); ?
> 3</a
></li
>
408 <div id
="tabs_content_container" class="borderShadow">
409 <div id
="tab1_CC_text" class="tab_content">
410 <table border
="0" width
="100%" cellspacing
="0" cellpadding
="0">
412 <td
class="pad10"colspan
="2">
413 <div
class="kb kb_left">CC
</div
><b
><span title
="<?php echo xla('In the patient\'s words'); ?>"><?php
echo xlt('Chief Complaint'); ?
> 1:
416 <textarea name
="CC1" id
="CC1" class="HPI_text" tabindex
="10"><?php
echo text($CC1); ?
></textarea
>
420 <td
class="top pad10">
421 <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'); ?
>:
422 </span
><div
class="kb kb_left">HPI
</div
>
424 <textarea name
="HPI1" id
="HPI1" class="HPI_text" tabindex
="21"><?php
echo text($HPI1); ?
></textarea
>
427 <td
class="top pad10"><span id
="CHRONIC_HELP" title
="<?php echo xla('Chronic/Inactive Problems').": \n
".xla('document 3 and their status to reach the detailed HPI level')." \n
";
428 echo "PMH items flagged
as Chronic with a comment regarding status will automatically appear here
.";?>"><?php
echo xlt('Chronic Problems') ?
>:</span
>
429 <span
class="kb_off"><br
/></span
><div
class="kb kb_right">CHRONIC1
</div
>
430 <textarea name
="CHRONIC1" id
="CHRONIC1" class="HPI_text chronic_HPI" tabindex
="22"><?php
echo text($CHRONIC1); ?
></textarea
>
431 <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
>
432 <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
>
436 <td colspan
="2" class="center">
437 <i id
="CODE_HIGH_0" name
="CODE_HIGH" class="CODE_HIGH fa fa-check nodisplay" value
="1"></i
>
438 <span id
="CODE_HIGH_HELP">
439 <span
class="detailed_HPI" name
=""><?php
echo xlt('Detailed HPI') ?
>:</span
>
440 <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}}'); ?
>
441 <span
class="chronic_3_elements"><?php
echo xlt('the status of three chronic/inactive problems'); ?
></span
>
448 <div id
="tab2_CC_text" class="tab_content">
449 <table
class="CC_table" border
="0" width
="100%" cellspacing
="0" cellpadding
="0">
451 <td
class="top pad10" colspan
="2">
452 <b
><span title
="<?php echo xla('In the patient\'s words'); ?>"><?php
echo xlt('Chief Complaint'); ?
> 2:
455 <textarea name
="CC2" id
="CC2" class="HPI_text CC_Box" tabindex
="10"><?php
echo text($CC2); ?
></textarea
>
459 <td
class="top pad10">
460 <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:
463 <textarea name
="HPI2" id
="HPI2" class="HPI_text" tabindex
="21"><?php
echo text($HPI2); ?
></textarea
>
469 <div id
="tab3_CC_text" class="tab_content">
470 <table
class="CC_table" border
="0" width
="100%" cellspacing
="0" cellpadding
="0">
472 <td
class="top pad10" colspan
="2">
473 <b
><span title
="<?php echo xla('In the patient\'s words'); ?>"><?php
echo xlt('Chief Complaint'); ?
> 3:
476 <textarea name
="CC3" id
="CC3" class="HPI_text CC_Box" tabindex
="10"><?php
echo text($CC3); ?
></textarea
>
480 <td
class="top pad10">
481 <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:
484 <textarea name
="HPI3" id
="HPI3" class="HPI_text" tabindex
="21"><?php
echo text($HPI3); ?
></textarea
>
493 <?
php ($HPI_VIEW !=2) ?
($display_HPI_view = "wide_textarea") : ($display_HPI_view= "narrow_textarea");?
>
494 <?
php ($display_HPI_view == "wide_textarea") ?
($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?
>
497 <!-- end HPI Left
-->
499 <!-- start HPI Right
-->
500 <div id
="HPI_right" name
="HPI_right" class="exam_section_right borderShadow">
501 <?php
display_draw_section("HPI", $encounter, $pid); ?
>
502 <!-- start QP_HPI_Build
-->
503 <div id
="QP_HPI" name
="QP_HPI" class="QP_class left">
504 <div id
="HPI_text_list" name
="HPI_text_list">
505 <span
class="closeButton fa fa-close pull-right z100" id
="BUTTON_TEXTD_HPI" name
="BUTTON_TEXTD_HPI" value
="1"></span
>
506 <b
><?php
echo xlt('HPI Elements'); ?
>:</b
> <br
/>
507 <div id
="tabs_wrapper" >
508 <div id
="tabs_container">
510 <li id
="tab1_HPI_tab" class="active" ><a type
="button" <?php
if ($CC1 >'') {
511 echo 'class="fa fa-check" ';
512 } ?
> href
="#tab1"> <?php
echo xlt('HPI'); ?
> 1</a
></li
>
513 <li id
="tab2_HPI_tab" ><a
<?php
if ($CC2 >'') {
514 echo 'class="fa fa-check"';
515 } ?
> href
="#tab2"><?php
echo xlt('HPI'); ?
> 2</a
></li
>
516 <li id
="tab3_HPI_tab" ><a
<?php
if ($CC3 >'') {
517 echo 'class="fa fa-check"';
518 } ?
> href
="#tab3"><?php
echo xlt('HPI'); ?
> 3</a
></li
>
521 <div id
="tabs_content_container" class="borderShadow">
522 <div id
="tab1_HPI_text" class="tab_content">
525 <td
class="right"><b
><?php
echo xlt('Timing'); ?
>:</b
></td
>
527 <textarea name
="TIMING1" id
="TIMING1" class="count_HPI" tabindex
="30"><?php
echo text($TIMING1); ?
></textarea
>
529 <td
><i
><?php
echo xlt('When and how often?'); ?
></i
><br
/></td
>
532 <td
class="right"><b
><?php
echo xlt('Context'); ?
>:</b
></td
>
534 <textarea name
="CONTEXT1" id
="CONTEXT1" class="count_HPI" tabindex
="31"><?php
echo text($CONTEXT1); ?
></textarea
>
537 <i
><?php
echo xlt('Does it occur in certain situations?'); ?
></i
>
541 <td
class="right"><b
><?php
echo xlt('Severity'); ?
>:</b
></td
>
543 <textarea name
="SEVERITY1" id
="SEVERITY1" class="count_HPI" tabindex
="32"><?php
echo text($SEVERITY1); ?
></textarea
>
545 <td
><i
><?php
echo xlt('How bad is it? 0-10, mild, mod, severe?'); ?
></i
></td
>
548 <td
class="right"><b
><?php
echo xlt('Modifying'); ?
>:</b
></td
>
550 <textarea name
="MODIFY1" id
="MODIFY1" class="count_HPI" tabindex
="33"><?php
echo text($MODIFY1); ?
></textarea
>
552 <td
><i
><?php
echo xlt('Does anything make it better? Worse?'); ?
></i
></td
>
555 <td
class="right"><b
><?php
echo xlt('Associated'); ?
>:</b
></td
>
557 <textarea name
="ASSOCIATED1" id
="ASSOCIATED1" class="count_HPI" tabindex
="34"><?php
echo text($ASSOCIATED1); ?
></textarea
>
559 <td
><i
><?php
echo xlt('Anything else occur at the same time?'); ?
></i
></td
>
562 <td
class="right"><b
><?php
echo xlt('Location'); ?
>:</b
></td
>
564 <textarea name
="LOCATION1" id
="LOCATION1" class="count_HPI" tabindex
="35"><?php
echo text($LOCATION1); ?
></textarea
>
566 <td
><i
><?php
echo xlt('Where on your body does it occur?'); ?
></i
>
570 <td
class="right"><b
><?php
echo xlt('Quality'); ?
>:</b
></td
>
572 <textarea name
="QUALITY1" id
="QUALITY1" class="count_HPI" tabindex
="36"><?php
echo text($QUALITY1); ?
></textarea
>
575 <i
><?php
echo xlt('eg. aching, burning, radiating pain'); ?
></i
>
579 <td
class="right"><b
><?php
echo xlt('Duration'); ?
>:</b
></td
>
580 <td
><textarea name
="DURATION1" id
="DURATION1" class="count_HPI" tabindex
="37"><?php
echo text($DURATION1); ?
></textarea
>
583 <i
><?php
echo xlt('How long does it last?'); ?
></i
>
588 <i id
="CODE_HIGH_1" name
="CODE_HIGH" class="CODE_HIGH fa fa-check nodisplay" value
="1"></i
>
589 <span id
="CODE_HELP_1">
590 <span
class="detailed_HPI"><?php
echo xlt('Detailed HPI') ?
>:</span
>
591 <span
class="detail_4_elements"><?php
echo xlt('> 3 HPI elements'); ?
></span
> <?php
echo xlt('OR{{as in AND/OR, ie. not an abbreviation}}'); ?
>
592 <span
class="chronic_3_elements"><?php
echo xlt('the status of three chronic/inactive problems'); ?
></span
>
597 <div id
="tab2_HPI_text" class="tab_content">
600 <td
class="right"><b
><?php
echo xlt('Timing'); ?
>:</b
></td
>
602 <textarea name
="TIMING2" id
="TIMING2" tabindex
="30" class="count_HPI"><?php
echo text($TIMING2); ?
></textarea
>
604 </td
><td
><i
><?php
echo xlt('When and how often?'); ?
></i
><br
/></td
>
607 <td
class="right"><b
><?php
echo xlt('Context'); ?
>:</b
></td
>
609 <textarea name
="CONTEXT2" id
="CONTEXT2" tabindex
="31" class="count_HPI"><?php
echo text($CONTEXT2); ?
></textarea
>
613 <i
><?php
echo xlt('Does it occur in certain situations?'); ?
></i
><br
/>
617 <td
class="right"><b
><?php
echo xlt('Severity'); ?
>:</b
></td
>
619 <textarea name
="SEVERITY2" id
="SEVERITY2" tabindex
="32"><?php
echo text($SEVERITY2); ?
></textarea
>
621 <td
><i
><?php
echo xlt('How bad is it? 0-10, mild, mod, severe?'); ?
></i
>
625 <td
class="right"><b
><?php
echo xlt('Modifying'); ?
>:</b
></td
>
627 <textarea name
="MODIFY2" id
="MODIFY2" tabindex
="33" class="count_HPI"><?php
echo text($MODIFY2); ?
></textarea
>
629 <td
><i
><?php
echo xlt('Does anything make it better? Worse?'); ?
></i
>
633 <td
class="right"><b
><?php
echo xlt('Associated'); ?
>:</b
></td
>
635 <textarea name
="ASSOCIATED2" id
="ASSOCIATED2" tabindex
="34" class="count_HPI"><?php
echo text($ASSOCIATED2); ?
></textarea
>
637 <td
><i
><?php
echo xlt('Anything else occur at the same time?'); ?
></i
>
641 <td
class="right"><b
><?php
echo xlt('Location'); ?
>:</b
></td
>
643 <textarea name
="LOCATION2" id
="LOCATION2" tabindex
="35" class="count_HPI"><?php
echo text($LOCATION2); ?
></textarea
>
645 <td
><i
><?php
echo xlt('Where on your body does it occur?'); ?
></i
>
649 <td
class="right"><b
><?php
echo xlt('Quality'); ?
>:</b
></td
>
651 <textarea name
="QUALITY2" id
="QUALITY2" tabindex
="36" class="count_HPI"><?php
echo text($QUALITY2); ?
></textarea
>
654 <i
><?php
echo xlt('eg. aching, burning, radiating pain'); ?
></i
>
658 <td
class="right"><b
><?php
echo xlt('Duration'); ?
>:</b
></td
>
659 <td
><textarea name
="DURATION2" id
="DURATION2" tabindex
="37" class="count_HPI"><?php
echo text($DURATION2); ?
></textarea
>
662 <i
><?php
echo xlt('How long does it last?'); ?
></i
>
667 <i id
="CODE_HIGH_2" name
="CODE_HIGH" class="CODE_HIGH fa fa-check nodisplay" value
="1"></i
>
668 <span id
="CODE_HELP_2">
669 <span
class="detailed_HPI"><?php
echo xlt('Detailed HPI') ?
>:</span
>
670 <span
class="detail_4_elements"><?php
echo xlt('> 3 HPI elements'); ?
></span
> <?php
echo xlt('OR{{as in AND/OR, ie. not an abbreviation}}'); ?
>
671 <span
class="chronic_3_elements"><?php
echo xlt('the status of three chronic/inactive problems'); ?
></span
>
675 <div id
="tab3_HPI_text" class="tab_content">
678 <td
class="right"><b
><?php
echo xlt('Timing'); ?
>:</b
></td
>
680 <textarea name
="TIMING3" id
="TIMING3" tabindex
="30" class="count_HPI"><?php
echo text($TIMING3); ?
></textarea
>
682 <td
><i
><?php
echo xlt('When and how often?'); ?
></i
></td
>
685 <td
class="right"><b
><?php
echo xlt('Context'); ?
>:</b
></td
>
687 <textarea name
="CONTEXT3" id
="CONTEXT3" tabindex
="31" class="count_HPI"><?php
echo text($CONTEXT3); ?
></textarea
>
689 <td
><i
><?php
echo xlt('Does it occur in certain situations?'); ?
></i
></td
>
692 <td
class="right"><b
><?php
echo xlt('Severity'); ?
>:</b
></td
>
694 <textarea name
="SEVERITY3" id
="SEVERITY3" tabindex
="32" class="count_HPI"><?php
echo text($SEVERITY3); ?
></textarea
>
696 <td
><i
><?php
echo xlt('How bad is it? 0-10, mild, mod, severe?'); ?
></i
></td
>
699 <td
class="right"><b
><?php
echo xlt('Modifying'); ?
>:</b
></td
>
701 <textarea name
="MODIFY3" id
="MODIFY3" tabindex
="33" class="count_HPI"><?php
echo text($MODIFY3); ?
></textarea
>
703 <td
><i
><?php
echo xlt('Does anything make it better? Worse?'); ?
></i
></td
>
706 <td
class="right"><b
><?php
echo xlt('Associated'); ?
>:</b
></td
>
708 <textarea name
="ASSOCIATED3" id
="ASSOCIATED3" tabindex
="34" class="count_HPI"><?php
echo text($ASSOCIATED3); ?
></textarea
>
710 <td
><i
><?php
echo xlt('Anything else occur at the same time?'); ?
></i
></td
>
713 <td
class="right"><b
><?php
echo xlt('Location'); ?
>:</b
></td
>
715 <textarea name
="LOCATION3" id
="LOCATION3" tabindex
="35" class="count_HPI"><?php
echo text($LOCATION3); ?
></textarea
>
717 <td
><i
><?php
echo xlt('Where on your body does it occur?'); ?
></i
>
721 <td
class="right"><b
><?php
echo xlt('Quality'); ?
>:</b
></td
>
723 <textarea name
="QUALITY3" id
="QUALITY3" tabindex
="36" class="count_HPI"><?php
echo text($QUALITY3); ?
></textarea
>
725 <td
><i
><?php
echo xlt('eg. aching, burning, radiating pain'); ?
></i
></td
>
728 <td
class="right"><b
><?php
echo xlt('Duration'); ?
>:</b
></td
>
730 <textarea name
="DURATION3" id
="DURATION3" tabindex
="37" class="count_HPI"><?php
echo text($DURATION3); ?
></textarea
>
732 <td
><i
><?php
echo xlt('How long does it last?'); ?
></i
></td
>
736 <i id
="CODE_HIGH_3" name
="CODE_HIGH" class="CODE_HIGH fa fa-check nodisplay" value
="1"></i
>
737 <span ID
="CODE_HELP_3">
738 <span
class="detailed_HPI"><?php
echo xlt('Detailed HPI') ?
>:</span
>
739 <span
class="detail_4_elements"><?php
echo xlt('> 3 HPI elements'); ?
></span
> <?php
echo xlt('OR{{as in AND/OR, ie. not an abbreviation}}'); ?
>
740 <span
class="chronic_3_elements"><?php
echo xlt('the status of three chronic/inactive problems'); ?
></span
>
750 <!-- end HPI Right
-->
752 <!-- end HPI_section
-->
753 <!-- start PMH_section
-->
754 <div id
="PMH_1" name
="PMH_1" class="<?php echo attr($display_Add); ?> clear_both">
755 <span
class="anchor" id
="PMH_anchor"></span
>
756 <!-- start PMH Left
-->
757 <div id
="PMH_left" name
="PMH_left" class="exam_section_left borderShadow">
758 <div id
="PMH_left_text" class="TEXT_class">
759 <b
class="left"><?php
echo xlt('PMSFH{{Abbreviation for Past medical Surgical Family and Social History}}'); ?
>:</b
> <i
class="fa fa-help"></i
><br
/>
760 <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
>
761 <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
>
762 <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
>
763 <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
>
765 <?
php ($PMH_VIEW !=2) ?
($display_PMH_view = "wide_textarea") : ($display_PMH_view= "narrow_textarea");?
>
766 <?
php ($display_PMH_view == "wide_textarea") ?
($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?
>
767 <div id
="PMSFH_sections" name
="PMSFH_sections">
768 <div id
="Enter_PMH" name
="Enter_PMH" class="PMH_class">
770 <iframe id
="iframe" name
="iframe"
771 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; ?>"
772 width
="480" height
="340" scrolling
= "yes" frameBorder
= "0" >
779 <!-- end PMH Left
-->
780 <!-- start PMH Right
-->
781 <div id
="PMH_right" name
="PMH_right" class="exam_section_right borderShadow">
782 <a
class="nodisplay left_PMSFH_tab" id
="right-panel-link" href
="#right-panel">
783 <img src
="<?php echo $GLOBALS['webroot']; ?>/interface/forms/eye_mag/images/PMSFHx.png">
785 <span
class="fa fa-close pull-right closeButton" id
="BUTTON_TEXTD_PMH" name
="BUTTON_TEXTD_PMH" value
="1"></span
>
786 <?php
display_draw_section("PMH", $encounter, $pid); ?
>
787 <div id
="QP_PMH" name
="QP_PMH" class="QP_class" style
="max-height:100%">
788 <?php
echo display_PRIOR_section("PMSFH", $id, $id, $pid); ?
>
791 <!-- end PMH Right
-->
793 <!-- end PMH_section
-->
795 <!-- end HPI_PMH row
-->
797 <!-- end first div
-->
799 <div id
="clinical_anchor" name
="clinical_anchor" class="clear_both"></div
>
802 <!-- start of the CLINICAL BOX
-->
804 $display_W_1 = "nodisplay";
805 $display_W_2 = "nodisplay";
806 $display_W_3 = "nodisplay";
807 $display_W_4 = "nodisplay";
810 $query = "select * from form_eye_mag_wearing where PID=? and FORM_ID=? and ENCOUNTER=? ORDER BY RX_NUMBER";
811 $wear = sqlStatement($query, array($pid,$form_id,$encounter));
812 while ($wearing = sqlFetchArray($wear)) {
814 $
{"display_W_$count_rx"} = '';
815 $
{"ODSPH_$count_rx"} = $wearing['ODSPH'];
816 $
{"ODCYL_$count_rx"} = $wearing['ODCYL'];
817 $
{"ODAXIS_$count_rx"} = $wearing['ODAXIS'];
818 $
{"OSSPH_$count_rx"} = $wearing['OSSPH'];
819 $
{"OSCYL_$count_rx"} = $wearing['OSCYL'];
820 $
{"OSAXIS_$count_rx"} = $wearing['OSAXIS'];
821 $
{"ODMIDADD_$count_rx"} = $wearing['ODMIDADD'];
822 $
{"OSMIDADD_$count_rx"} = $wearing['OSMIDADD'];
823 $
{"ODADD_$count_rx"} = $wearing['ODADD'];
824 $
{"OSADD_$count_rx"} = $wearing['OSADD'];
825 $
{"ODVA_$count_rx"} = $wearing['ODVA'];
826 $
{"OSVA_$count_rx"} = $wearing['OSVA'];
827 $
{"ODNEARVA_$count_rx"} = $wearing['ODNEARVA'];
828 $
{"OSNEARVA_$count_rx"} = $wearing['OSNEARVA'];
829 $
{"ODPRISM_$count_rx"} = $wearing['ODPRISM'];
830 $
{"OSPRISM_$count_rx"} = $wearing['OSPRISM'];
831 $
{"W_$count_rx"} = '1';
832 $
{"RX_TYPE_$count_rx"} = $wearing['RX_TYPE'];
833 $
{"ODHPD_$count_rx"} = $wearing['ODHPD'];
834 $
{"ODHBASE_$count_rx"} = $wearing['ODHBASE'];
835 $
{"ODVPD_$count_rx"} = $wearing['ODVPD'];
836 $
{"ODVBASE_$count_rx"} = $wearing['ODVBASE'];
837 $
{"ODSLABOFF_$count_rx"} = $wearing['ODSLABOFF'];
838 $
{"ODVERTEXDIST_$count_rx"} = $wearing['ODVERTEXDIST'];
839 $
{"OSHPD_$count_rx"} = $wearing['OSHPD'];
840 $
{"OSHBASE_$count_rx"} = $wearing['OSHBASE'];
841 $
{"OSVPD_$count_rx"} = $wearing['OSVPD'];
842 $
{"OSVBASE_$count_rx"} = $wearing['OSVBASE'];
843 $
{"OSSLABOFF_$count_rx"} = $wearing['OSSLABOFF'];
844 $
{"OSVERTEXDIST_$count_rx"} = $wearing['OSVERTEXDIST'];
845 $
{"ODMPDD_$count_rx"} = $wearing['ODMPDD'];
846 $
{"ODMPDN_$count_rx"} = $wearing['ODMPDN'];
847 $
{"OSMPDD_$count_rx"} = $wearing['OSMPDD'];
848 $
{"OSMPDN_$count_rx"} = $wearing['OSMPDN'];
849 $
{"BPDD_$count_rx"} = $wearing['BPDD'];
850 $
{"BPDN_$count_rx"} = $wearing['BPDN'];
851 $
{"LENS_MATERIAL_$count_rx"} = $wearing['LENS_MATERIAL'];
852 $
{"LENS_TREATMENTS_$count_rx"} = $wearing['LENS_TREATMENTS'];
853 $
{"COMMENTS_$count_rx"} = $wearing['COMMENTS'];
856 <div
class="loading row clear_both" id
="LayerTechnical_sections_loading" name
="LayerTechnical_sections_loading"><i
class="fa fa-spinner fa-spin"></i
>
858 <div
class="clear_both row" id
="LayerTechnical_sections_1" name
="LayerTechnical_sections" >
859 <!-- start of the Mood BOX
-->
860 <div id
="LayerMood" class="vitals">
861 <div id
="Lyr2.9" class="top_left">
862 <th
class="text_clinical" nowrap
><b id
="MS_tab"><?php
echo xlt('Mental Status'); ?
>:</b
></th
>
865 <input type
="checkbox" name
="alert" id
="alert" <?php
if ($alert) {
866 echo "checked='checked'";
868 <label
for="alert" class="input-helper input-helper--checkbox"><?php
echo xlt('Alert{{Mental Status}}'); ?
></label
><br
/>
869 <input type
="checkbox" name
="oriented" id
="oriented" <?php
if ($oriented) {
870 echo "checked='checked'";
872 <label
for="oriented" class="input-helper input-helper--checkbox"><?php
echo xlt('Oriented TPP{{oriented to person and place}}'); ?
></label
><br
/>
873 <input type
="checkbox" name
="confused" id
="confused" <?php
if ($confused) {
874 echo "checked='checked'";
876 <label
for="confused" class="input-helper input-helper--checkbox"><?php
echo xlt('Mood/Affect Nml{{Mood and affect normal}}'); ?
></label
><br
/>
879 <!-- end of the Mood BOX
-->
881 <!-- start of the VISION BOX
-->
882 <div id
="LayerVision" class="vitals">
883 <div id
="Lyr30" class="top_left">
884 <th
class="text_clinical"><b id
="vision_tab" title
="Show/hide the refraction panels"><?php
echo xlt('Vision'); ?
>:</b
></th
>
887 //if the prefs show a field, ie visible, the highlight the zone.
889 $button_W = "buttonRefraction_selected";
893 $button_MR = "buttonRefraction_selected";
897 $button_AR = "buttonRefraction_selected";
901 $button_CTL = "buttonRefraction_selected";
904 if ($ADDITIONAL == '1') {
905 $button_ADDITIONAL = "buttonRefraction_selected";
909 $button_VAX = "buttonRefraction_selected";
912 <div
class="top_right">
915 <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> |
916 <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> |
917 <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> |
918 <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> |
919 <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> |
920 <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>
926 <font><?php echo xlt('V
{{One letter abbrevation
for Vision
}}'); ?></font>
929 <div id="Visions_A" name="Visions_A">
931 <input type="TEXT" tabindex="40" id="SCODVA" name="SCODVA" value="<?php echo attr($SCODVA); ?>">
932 <input type="TEXT" tabindex="42" id="ODVA_1_copy" name="ODVA_1_copy" value="<?php echo attr($ODVA_1); ?>">
933 <input type="TEXT" tabindex="44" id="PHODVA_copy" name="PHODVA_copy" value="<?php echo attr($PHODVA); ?>">
936 <input type="TEXT" tabindex="41" id="SCOSVA" name="SCOSVA" value="<?php echo attr($SCOSVA); ?>">
937 <input type="TEXT" tabindex="43" id="OSVA_1_copy" name="OSVA_1_copy" value="<?php echo attr($OSVA_1); ?>">
938 <input type="TEXT" tabindex="45" id="PHOSVA_copy" name="PHOSVA_copy" value="<?php echo attr($PHOSVA); ?>">
940 <span id="more_visions_1" name="more_visions_1"><b><?php echo xlt('Acuity
'); ?></b> </span>
941 <span><b><?php echo xlt('SC
{{without correction
}}'); ?></b></span>
942 <span><b><?php echo xlt('CC
{{with correction
}}'); ?></b></span>
943 <span><b><?php echo xlt('PH
{{pinhole acuity
}}'); ?></b></span>
945 <div id="Visions_B" name="Visions_B" class="nodisplay">
946 <b><?php echo xlt('OD
'); ?> </b>
947 <input type="TEXT" tabindex="46" id="ARODVA_copy" name="ARODVA_copy" value="<?php echo attr($ARODVA); ?>">
948 <input type="TEXT" tabindex="48" id="MRODVA_copy" name="MRODVA_copy" value="<?php echo attr($MRODVA); ?>">
949 <input type="TEXT" tabindex="50" id="CRODVA_copy" name="CRODVA_copy" value="<?php echo attr($CRODVA); ?>">
951 <b><?php echo xlt('OS
'); ?> </b>
952 <input type="TEXT" tabindex="47" id="AROSVA_copy" name="AROSVA_copy" value="<?php echo attr($AROSVA); ?>">
953 <input type="TEXT" tabindex="49" id="MROSVA_copy" name="MROSVA_copy" value="<?php echo attr($MROSVA); ?>">
954 <input type="TEXT" tabindex="51" id="CROSVA_copy" name="CROSVA_copy" value="<?php echo attr($CROSVA); ?>">
956 <span id="more_visions_2" name="more_visions_2"><b><?php echo xlt('Acuity
'); ?></b> </span>
957 <span><b><?php echo xlt('AR
{{Autorefraction Acuity
}}'); ?></b></span>
958 <span><b><?php echo xlt('MR
{{Manifest Refraction
}}'); ?></b></span>
959 <span><b><?php echo xlt('CR
{{Cycloplegic Refraction
}}'); ?></b></span>
962 <!-- end of the VISION BOX -->
964 <!-- START OF THE PRESSURE BOX -->
965 <div id="LayerTension" class="vitals">
967 <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>
970 <span class="top_left">
971 <b id="tension_tab"><?php echo xlt('Tension
'); ?>:</b>
974 if (($IOPTIME == '00:00:00')||(!$IOPTIME)) {
975 $IOPTIME = date('G
:i A
');
978 $show_IOPTIME = date('g
:i A
', strtotime($IOPTIME));
980 <input type="text" name="IOPTIME" id="IOPTIME" tabindex="-1" value="<?php echo attr($show_IOPTIME); ?>">
986 <font><?php echo xlt('T
{{one letter abbreviation
for Tension
/Pressure
}}'); ?></font>
989 <b><?php echo xlt('OD
{{right eye
}}'); ?></b>
990 <input type="text" tabindex="52" name="ODIOPAP" id="ODIOPAP" value="<?php echo attr($ODIOPAP); ?>">
991 <input type="text" tabindex="54" name="ODIOPTPN" id="ODIOPTPN" value="<?php echo attr($ODIOPTPN); ?>">
992 <input type="text" name="ODIOPFTN" id="ODIOPFTN" value="<?php echo attr($ODIOPFTN); ?>">
994 <b><?php echo xlt('OS
{{left eye
}}'); ?> </b>
995 <input type="text" tabindex="53" name="OSIOPAP" id="OSIOPAP" value="<?php echo attr($OSIOPAP); ?>">
996 <input type="text" tabindex="55" name="OSIOPTPN" id="OSIOPTPN" value="<?php echo attr($OSIOPTPN); ?>">
997 <input type="text" name="OSIOPFTN" id="OSIOPFTN" value="<?php echo attr($OSIOPFTN); ?>">
999 <span name="IOP_AP"><b><?php echo xlt('AP
{{applanation
}}'); ?></b></span>
1000 <span name="IOP_TPN"><b><?php echo xlt('TP
{{tonopen
}}'); ?></b></span>
1001 <span name="IOP_FT"><b><?php echo xlt('FT
{{finger tension
}}'); ?></b></span>
1004 <!-- END OF THE PRESSURE BOX -->
1006 <!-- start of the Amsler box -->
1007 <div id="LayerAmsler" class="vitals">
1009 <span class="top_left">
1010 <b><?php echo xlt('Amsler
'); ?>:</b>
1022 if ($AMSLEROD || $AMSLEROS) {
1023 $checked = 'value
="0"';
1025 $checked = 'value
="1" checked
';
1029 <input type="hidden" id="AMSLEROD" name="AMSLEROD" value='<?php
echo attr($AMSLEROD); ?
>'>
1030 <input type="hidden" id="AMSLEROS" name="AMSLEROS" value='<?php
echo attr($AMSLEROS); ?
>'>
1033 <label for="Amsler-Normal" class="input-helper input-helper--checkbox"><?php echo xlt('Normal
'); ?></label>
1034 <input id="Amsler-Normal" type="checkbox" <?php echo attr($checked); ?> tabindex="56">
1037 <table cellpadding=0 cellspacing=0>
1039 <td colspan=3 class="center"><b><?php echo xlt('OD
{{right eye
}}'); ?></b>
1042 <td colspan=3 class="center"><b><?php echo xlt('OS
{{left eye
}}'); ?></b>
1048 <img src="../../forms/<?php echo $form_folder; ?>/images/Amsler_<?php echo attr($AMSLEROD); ?>.jpg" id="AmslerOD" /></td>
1051 <img src="../../forms/<?php echo $form_folder; ?>/images/Amsler_<?php echo attr($AMSLEROS); ?>.jpg" id="AmslerOS" />
1055 <td colspan=3 class="center">
1056 <div class="AmslerValue">
1057 <span id="AmslerODvalue"><?php echo text($AMSLEROD); ?></span>/5
1061 <td colspan=3 style="text-align:center;">
1062 <div class="AmslerValue">
1063 <span id="AmslerOSvalue"><?php echo text($AMSLEROS); ?></span>/5
1070 <!-- end of the Amsler box -->
1072 <!-- start of the Fields box -->
1073 <div id="LayerFields" class="vitals">
1075 <span class="top_left"><b id="fields"><?php echo xlt('Fields
{{visual fields
}}'); ?>:</b></span>
1078 // if the VF zone is checked, display it
1079 // if ODVF1 = 1 (true boolean) the value="0" checked="true"
1081 for ($z=1; $z <5; $z++) {
1082 $ODzone = "ODVF".$z;
1083 if ($$ODzone =='1') {
1084 $ODVF[$z] = 'checked value
=1';
1087 $ODVF[$z] = 'value
=0';
1090 $OSzone = "OSVF".$z;
1091 if ($$OSzone =="1") {
1092 $OSVF[$z] = 'checked value
=1';
1095 $OSVF[$z] = 'value
=0';
1100 $VFFTCF = "checked";
1104 <label for="FieldsNormal" class="input-helper input-helper--checkbox"><?php echo xlt('FTCF
{{Full to count fingers
}}'); ?></label>
1105 <input id="FieldsNormal" type="checkbox" value="1" <?php echo attr($VFFTCF); ?>>
1108 <table cellpadding="1" cellspacing="1">
1110 <td class="center" colspan="2"><b><?php echo xlt('OD
{{right eye
}}'); ?></b><br /></td>
1111 <td> </td>
1112 <td class="center" colspan="2"><b><?php echo xlt('OS
{{left eye
}}'); ?></b></td>
1116 <input name="ODVF1" id="ODVF1" type="checkbox" <?php echo attr($ODVF['1'])?> class="hidden">
1117 <label for="ODVF1" class="input-helper input-helper--checkbox boxed"></label>
1120 <input name="ODVF2" id="ODVF2" type="checkbox" <?php echo attr($ODVF['2'])?> class="hidden">
1121 <label for="ODVF2" class="input-helper input-helper--checkbox boxed"></label>
1125 <input name="OSVF1" id="OSVF1" type="checkbox" <?php echo attr($OSVF['1']); ?> class="hidden" >
1126 <label for="OSVF1" class="input-helper input-helper--checkbox boxed"></label>
1129 <input name="OSVF2" id="OSVF2" type="checkbox" <?php echo attr($OSVF['2']); ?> class="hidden">
1130 <label for="OSVF2" class="input-helper input-helper--checkbox boxed"> </label>
1135 <input name="ODVF3" id="ODVF3" type="checkbox" class="hidden" <?php echo attr($ODVF['3']); ?>>
1136 <label for="ODVF3" class="input-helper input-helper--checkbox boxed"></label>
1139 <input name="ODVF4" id="ODVF4" type="checkbox" class="hidden" <?php echo attr($ODVF['4']); ?>>
1140 <label for="ODVF4" class="input-helper input-helper--checkbox boxed"></label>
1144 <input name="OSVF3" id="OSVF3" type="checkbox" class="hidden" <?php echo attr($OSVF['3']); ?>>
1145 <label for="OSVF3" class="input-helper input-helper--checkbox boxed"></label>
1148 <input name="OSVF4" id="OSVF4" type="checkbox" class="hidden" <?php echo attr($OSVF['4']); ?>>
1149 <label for="OSVF4" class="input-helper input-helper--checkbox boxed"></label>
1155 <!-- end of the Fields box -->
1157 <!-- start of the Pupils box -->
1158 <div id="LayerPupils" class="vitals">
1159 <span class="top_left"><b id="pupils"><?php echo xlt('Pupils
'); ?>:</b> </span>
1161 <label for="PUPIL_NORMAL" class="input-helper input-helper--checkbox"><?php echo xlt('Normal
'); ?></label>
1162 <input id="PUPIL_NORMAL" name="PUPIL_NORMAL" type="checkbox" <?php if ($PUPIL_NORMAL =='1') {
1163 echo 'checked
="checked" value
="1"';
1171 <th><?php echo xlt('size
'); ?> (<?php echo xlt('mm
{{millimeters
}}'); ?>)
1173 <th><?php echo xlt('react
{{reactivity
}}'); ?>
1175 <th><?php echo xlt('APD
{{afferent pupillary defect
}}'); ?>
1179 <td><b><?php echo xlt('OD
{{right eye
}}'); ?></b>
1181 <td class="pupil_1">
1182 <input type="text" id="ODPUPILSIZE1" name="ODPUPILSIZE1" value="<?php echo attr($ODPUPILSIZE1); ?>">
1183 <font>→</font>
1184 <input type="text" id="ODPUPILSIZE2" size="1" name="ODPUPILSIZE2" value="<?php echo attr($ODPUPILSIZE2); ?>">
1186 <td class="pupil_2">
1187 <input type="text" class="pupil_input_2" name='ODPUPILREACTIVITY
' id='ODPUPILREACTIVITY
' value='<?php
echo attr($ODPUPILREACTIVITY); ?
>'>
1189 <td class="pupil_3">
1190 <input type="text" class="pupil_input_2" name="ODAPD" id='ODAPD
' value='<?php
echo attr($ODAPD); ?
>'>
1194 <td><b><?php echo xlt('OS
{{left eye
}}'); ?></b>
1196 <td class="pupil_4">
1197 <input type="text" size="1" name="OSPUPILSIZE1" id="OSPUPILSIZE1" class="pupil_input" value="<?php echo attr($OSPUPILSIZE1); ?>">
1198 <font>→</font>
1199 <input type="text" size="1" name="OSPUPILSIZE2" id="OSPUPILSIZE2" class="pupil_input" value="<?php echo attr($OSPUPILSIZE2); ?>">
1201 <td class="pupil_5">
1202 <input type="text" class="pupil_input_2" name='OSPUPILREACTIVITY
' id='OSPUPILREACTIVITY
' value="<?php echo attr($OSPUPILREACTIVITY); ?>">
1204 <td class="pupil_6">
1205 <input type="text" class="pupil_input_2" name="OSAPD" id="OSAPD" value='<?php
echo attr($OSAPD); ?
>'>
1211 <!-- end of the Pupils box -->
1214 <!-- end of the CLINICAL BOX -->
1215 <!-- start of slide down pupils_panel -->
1216 <?php ($DIMODPUPILSIZE != '') ? ($display_dim_pupils_panel = "display") : ($display_dim_pupils_panel = "nodisplay"); ?>
1217 <div id="dim_pupils_panel" name="dim_pupils_panel" class="vitals <?php echo attr($display_dim_pupils_panel); ?>"
1218 <span class="top_left"><b id="pupils_DIM"><?php echo xlt('Pupils
') ?>: <?php echo xlt('Dim
'); ?></b> </span>
1223 <th><?php echo xlt('size
'); ?> (<?php echo xlt('mm
{{millimeters
}}'); ?>)</th>
1226 <td><b><?php echo xlt('OD
{{right eye
}}'); ?></b>
1228 <td claa="border-bottom">
1229 <input type="text" id ="DIMODPUPILSIZE1" name="DIMODPUPILSIZE1" value='<?php
echo attr($DIMODPUPILSIZE1); ?
>'>
1230 <font>→</font>
1231 <input type="text" id ="DIMODPUPILSIZE2"name="DIMODPUPILSIZE2" value='<?php
echo attr($DIMODPUPILSIZE2); ?
>'>
1235 <td ><b><?php echo xlt('OS
{{left eye
}}'); ?></b>
1237 <td class="border-top">
1238 <input type="text" name="DIMOSPUPILSIZE1" id="DIMOSPUPILSIZE1" value="<?php echo attr($DIMOSPUPILSIZE1); ?>">
1239 <font>→</font>
1240 <input type="text" name="DIMOSPUPILSIZE2" id="DIMOSPUPILSIZE2" value="<?php echo attr($DIMOSPUPILSIZE2); ?>">
1245 <div class="pupil_dim_comments">
1246 <b><?php echo xlt('Comments
'); ?>:</b><br />
1247 <textarea id="PUPIL_COMMENTS" name="PUPIL_COMMENTS"><?php echo text($PUPIL_COMMENTS); ?></textarea>
1250 <!-- end of slide down pupils_panel -->
1253 <!-- start IOP chart section -->
1254 <?php ($IOP ==1) ? ($display_IOP = "") : ($display_IOP = "nodisplay"); ?>
1255 <div id="LayerVision_IOP" class="borderShadow <?php echo $display_IOP; ?>">
1256 <?php echo display_GlaucomaFlowSheet($pid); ?>
1258 <!-- end IOP chart section -->
1260 <!-- start of the refraction box -->
1261 <span class="anchor" id="REFRACTION_anchor"></span>
1262 <div class="loading" id="EXAM_sections_loading" name="REFRACTION_sections_loading"><i class="fa fa-spinner fa-spin"></i></div>
1263 <div id="REFRACTION_sections" name="REFRACTION_sections" class="row nodisplay clear_both">
1264 <div id="LayerVision2">
1266 ($W ==1) ? ($display_W = "") : ($display_W = "nodisplay");
1267 ($W_width =='1') ? ($display_W_width = "refraction_wide") : ($display_W_width = "");
1269 <div id="LayerVision_W" class="<?php echo $display_W; ?> <?php echo $display_W_width; ?> ">
1270 <input type="hidden" id="W_1" name="W_1" value="1">
1271 <div id="LayerVision_W_1" name="currentRX" class="refraction current_W borderShadow <?php echo $display_W_width; ?>">
1272 <i class="closeButton fa fa-close" id="Close_W_1" name="Close_W_1"
1273 title="<?php echo xla('Close All Current Rx Panels
and make this a Preference to stay closed
'); ?>"></i>
1274 <i class="closeButton2 fa fa-arrows-h " id="W_width_display_1" name="W_width_display"
1275 title="<?php echo xla("Rx Details"); ?>" ></i>
1276 <i onclick="top.restoreSession(); doscript('W
','<?php
echo attr($pid); ?
>','<?php
echo attr($encounter); ?
>','1'); return false;"
1277 title="<?php echo xla("Dispense this Rx"); ?>" class="closeButton3 fa fa-print"></i>
1278 <i onclick="top.restoreSession(); dispensed('<?php
echo attr($pid); ?
>');return false;"
1279 title="<?php echo xla("List of previously dispensed Spectacle and Contact Lens Rxs"); ?>" class="closeButton4 fa fa-list-ul"></i>
1280 <table id="wearing_1">
1282 <th colspan="7"><?php echo xlt('Current Glasses
'); ?>:
1283 <i id="Add_Glasses" name="Add_Glasses" class="button btn"><?php echo xlt('Additonal Rx
{{Additional glasses
}}'); ?></i>
1288 <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>
1289 <td><?php echo xlt('Sph
{{Sphere
}}'); ?></td>
1290 <td><?php echo xlt('Cyl
{{Cylinder
}}'); ?></td>
1291 <td><?php echo xlt('Axis
{{Axis of a glasses prescription
}}'); ?></td>
1292 <td><?php echo xlt('Acuity
'); ?></td>
1293 <td name="W_wide"></td>
1294 <td name="W_wide" title="<?php echo xla('Horizontal Prism Power
'); ?>"><?php echo xlt('HP
{{abbreviation
for Horizontal Prism Power
}}'); ?></td>
1295 <td name="W_wide" title="<?php echo xla('Horizontal Prism Base
'); ?>"><?php echo xlt('HB
{{abbreviation
for Horizontal Prism Base
}}'); ?></td>
1296 <td name="W_wide" title="<?php echo xla('Vertical Prism Power
'); ?>"><?php echo xlt('VP
{{abbreviation
for Vertical Prism Power
}}'); ?></td>
1297 <td name="W_wide" title="<?php echo xla('Vertical Prism Base
'); ?>"><?php echo xlt('VB
{{abbreviation
for Vertical Prism Base
}}'); ?></td>
1298 <td name="W_wide" title="<?php echo xla('Slab Off
'); ?>"><?php echo xlt('Slab Off
'); ?></td>
1299 <td name="W_wide" title="<?php echo xla('Vertex Distance
'); ?>"><?php echo xlt('VD
{{abbreviation
for Vertex Distance
}}'); ?></td>
1300 <td name="W_wide" title="<?php echo xla('Monocular Pupillary Diameter
- Distance
'); ?>"><?php echo xlt('MPD
-D
{{abbreviation
for Monocular Pupillary Diameter
- Distance
}}'); ?></td>
1301 <td name="W_wide" title="<?php echo xla('Monocular Pupillary Diameter
- Near
'); ?>"><?php echo xlt('MPD
-N
{{abbreviation
for Monocular Pupillary Diameter
- Near
}}'); ?></td>
1303 <td rowspan="6" class="right">
1304 <span class="underline bold"><?php echo xlt('Rx Type
{{Type of glasses prescription
}}'); ?></span><br />
1305 <label for="Single_1" class="input-helper input-helper--checkbox"><?php echo xlt('Single
'); ?></label>
1306 <input type="radio" value="0" id="Single_1" name="RX_TYPE_1" <?php if ($RX_TYPE_1 == '0') {
1307 echo 'checked
="checked"';
1308 } ?> /></span><br /><br />
1309 <label for="Bifocal_1" class="input-helper input-helper--checkbox"><?php echo xlt('Bifocal
'); ?></label>
1310 <input type="radio" value="1" id="Bifocal_1" name="RX_TYPE_1" <?php if ($RX_TYPE_1 == '1') {
1311 echo 'checked
="checked"';
1312 } ?> /></span><br /><br />
1313 <label for="Trifocal_1" class="input-helper input-helper--checkbox"><?php echo xlt('Trifocal
'); ?></label>
1314 <input type="radio" value="2" id="Trifocal_1" name="RX_TYPE_1" <?php if ($RX_TYPE_1 == '2') {
1315 echo 'checked
="checked"';
1316 } ?> /></span><br /><br />
1317 <label for="Progressive_1" class="input-helper input-helper--checkbox"><?php echo xlt('Prog
.{{Progressive lenses
}}'); ?></label>
1318 <input type="radio" value="3" id="Progressive_1" name="RX_TYPE_1" <?php if ($RX_TYPE_1 == '3') {
1319 echo 'checked
="checked"';
1320 } ?> /></span><br />
1324 <td rowspan="2"><?php echo xlt('Dist
{{distance
}}'); ?></td>
1325 <td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1326 <td><input type="text" class="sphere" id="ODSPH_1" name="ODSPH_1" value="<?php echo attr($ODSPH_1); ?>" tabindex="100"></td>
1327 <td><input type="text" class="cylinder" id="ODCYL_1" name="ODCYL_1" value="<?php echo attr($ODCYL_1); ?>" tabindex="101"></td>
1328 <td><input type="text" class="axis" id="ODAXIS_1" name="ODAXIS_1" value="<?php echo attr($ODAXIS_1); ?>" tabindex="102"></td>
1329 <td><input type="text" class="acuity" id="ODVA_1" name="ODVA_1" value="<?php echo attr($ODVA_1); ?>" tabindex="108"></td>
1331 <td name="W_wide"></td>
1332 <td name="W_wide"><input type="text" class="prism" id="ODHPD_1" name="ODHPD_1" value="<?php echo attr($ODHPD_1); ?>" tabindex="122"></td>
1333 <td name="W_wide"><input type="text" class="prism" id="ODHBASE_1" name="ODHBASE_1" value="<?php echo attr($ODHBASE_1); ?>" tabindex="124"></td>
1334 <td name="W_wide"><input type="text" class="prism" id="ODVPD_1" name="ODVPD_1" value="<?php echo attr($ODVPD_1); ?>" tabindex="126"></td>
1335 <td name="W_wide"><input type="text" class="prism" id="ODVBASE_1" name="ODVBASE_1" value="<?php echo attr($ODVBASE_1); ?>" tabindex="128"></td>
1336 <td name="W_wide"><input type="text" class="prism" id="ODSLABOFF_1" name="ODSLABOFF_1" value="<?php echo attr($ODSLABOFF_1); ?>" tabindex="130"></td>
1337 <td name="W_wide"><input type="text" class="prism" id="ODVERTEXDIST_1" name="ODVERTEXDIST_1" value="<?php echo attr($ODVERTEXDIST_1); ?>" tabindex="132"></td>
1338 <td name="W_wide"><input type="text" class="prism" id="ODMPDD_1" name="ODMPDD_1" value="<?php echo attr($ODMPDD_1); ?>" tabindex="134"></td>
1339 <td name="W_wide"><input type="text" class="prism" id="ODMPDN_1" name="ODMPDN_1" value="<?php echo attr($ODMPDN_1); ?>" tabindex="136"></td>
1342 <td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1343 <td><input type="text" class="sphere" id="OSSPH_1" name="OSSPH_1" value="<?php echo attr($OSSPH_1); ?>" tabindex="103"></td>
1344 <td><input type="text" class="cylinder" id="OSCYL_1" name="OSCYL_1" value="<?php echo attr($OSCYL_1); ?>" tabindex="104"></td>
1345 <td><input type="text" class="axis" id="OSAXIS_1" name="OSAXIS_1" value="<?php echo attr($OSAXIS_1); ?>" tabindex="105"></td>
1346 <td><input type="text" class="acuity" id="OSVA_1" name="OSVA_1" value="<?php echo attr($OSVA_1); ?>" tabindex="109"></td>
1348 <td name="W_wide"></td>
1349 <td name="W_wide"><input type="text" class="prism" id="OSHPD_1" name="OSHPD_1" value="<?php echo attr($OSHPD_1); ?>" tabindex="123"></td>
1350 <td name="W_wide"><input type="text" class="prism" id="OSHBASE_1" name="OSHBASE_1" value="<?php echo attr($OSHBASE_1); ?>" tabindex="125"></td>
1351 <td name="W_wide"><input type="text" class="prism" id="OSVPD_1" name="OSVPD_1" value="<?php echo attr($OSVPD_1); ?>" tabindex="127"></td>
1352 <td name="W_wide"><input type="text" class="prism" id="OSVBASE_1" name="OSVBASE_1" value="<?php echo attr($OSVBASE_1); ?>" tabindex="129"></td>
1353 <td name="W_wide"><input type="text" class="prism" id="OSSLABOFF_1" name="OSSLABOFF_1" value="<?php echo attr($OSSLABOFF_1); ?>" tabindex="131"></td>
1354 <td name="W_wide"><input type="text" class="prism" id="OSVERTEXDIST_1" name="OSVERTEXDIST_1" value="<?php echo attr($OSVERTEXDIST_1); ?>" tabindex="133"></td>
1355 <td name="W_wide"><input type="text" class="prism" id="OSMPDD_1" name="OSMPDD_1" value="<?php echo attr($OSMPDD_1); ?>" tabindex="135"></td>
1356 <td name="W_wide"><input type="text" class="prism" id="OSMPDN_1" name="OSMPDN_1" value="<?php echo attr($OSMPDN_1); ?>" tabindex="137"></td>
1359 <td rowspan=2><?php echo xlt('Mid
{{middle Rx strength
}}'); ?>/<br /><?php echo xlt('Near
'); ?></td>
1360 <td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1361 <?php echo '<input type
="hidden" name
="RXStart_1" id
="RXStart_1" value
="'.$RX_TYPE_1.'">'; ?>
1362 <td class="WMid"><input type="text" class="presbyopia" id="ODMIDADD_1" name="ODMIDADD_1" value="<?php echo attr($ODMIDADD_1); ?>"></td>
1363 <td class="WAdd2"><input type="text" class="presbyopia" id="ODADD_1" name="ODADD_1" value="<?php echo attr($ODADD_1); ?>" tabindex="106"></td>
1365 <td><input class="jaeger" type="text" id="ODNEARVA_1" name="ODNEARVA_1" value="<?php echo attr($ODNEARVA_1); ?>" tabindex="110"></td>
1367 <td name="W_wide"></td>
1369 <td name="W_wide" title="<?php echo xla('Binocular Pupillary Diameter
- Distance
'); ?>"><?php echo xlt('PD
-D
{{abbreviation
for Binocular Pupillary Diameter
- Distance
}}'); ?></td>
1370 <td name="W_wide" title="<?php echo xla('Binocular Pupillary Diameter
- Near
'); ?>"><?php echo xlt('PD
-N
{{abbreviation
for Binocular Pupillary Diameter
- Near
}}'); ?></td>
1371 <td name="W_wide" title="<?php echo xla('Lens Material
'); ?>" colspan="2">
1372 <a href="<?php echo $GLOBALS['webroot
']; ?>/interface/super/edit_list.php?list_id=Eye_Lens_Material" target="RTop"
1373 title="<?php echo xla('Click here to edit
list of available Lens Materials
'); ?>"
1374 name="Lens_mat"><span class="underline"><?php echo xlt('Lens Material
'); ?></span> <i class="fa fa-pencil fa-fw"></i> </a>
1376 <td name="W_wide2" colspan="4" rowspan="4">
1377 <a href="<?php echo $GLOBALS['webroot
']; ?>/interface/super/edit_list.php?list_id=Eye_Lens_Treatments" target="RTop"
1378 title="<?php echo xla('Click here to edit
list of available Lens Treatment Options
'); ?>"
1379 name="Lens_txs"><span class="underline"><?php echo xlt('Lens Treatments
'); ?></span> <i class="fa fa-pencil fa-fw"></i> </a>
1381 <?php echo generate_lens_treatments('1', $LENS_TREATMENTS_1); ?>
1385 <td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1386 <td class="WMid"><input type="text" class="presbyopia" id="OSMIDADD_1" name="OSMIDADD_1" value="<?php echo attr($OSMIDADD_1); ?>"></td>
1387 <td class="WAdd2"><input type="text" class="presbyopia" id="OSADD_1" name="OSADD_1" value="<?php echo attr($OSADD_1); ?>" tabindex="107"></td>
1389 <td><input class="jaeger" type="text" id="OSNEARVA_1" name="OSNEARVA_1" value="<?php echo attr($OSNEARVA_1); ?>" tabindex="110"></td>
1391 <td name="W_wide"></td>
1393 <td name="W_wide"><input type="text" class="prism" id="BPDD_1" name="BPDD_1" value="<?php echo attr($BPDD_1); ?>" tabindex="138"></td>
1394 <td name="W_wide"><input type="text" class="prism" id="BPDN_1" name="BPDN_1" value="<?php echo attr($BPDN_1); ?>" tabindex="140"></td>
1395 <td name="W_wide" title="<?php echo xla('Lens Material Options
'); ?>" colspan="2" tabindex="142">
1396 <?php echo generate_select_list("LENS_MATERIAL_1", "Eye_Lens_Material", "$LENS_MATERIAL_1", '', '--Lens Material
--', '', 'restoreSession
;submit_form();', '', array('style
'=>'width
:120px
')); ?>
1400 <td colspan="2"><b><?php echo xlt('Comments
'); ?>:</b>
1402 <td colspan="4" class="up"></td>
1406 <textarea id="COMMENTS_1" name="COMMENTS_W" tabindex="111"><?php echo text($COMMENTS_1); ?></textarea>
1414 for ($i=2; $i < 6; $i++) { //limit to a max of 5 pairs
1415 echo generate_specRx($i);
1420 <?php ($MR==1) ? ($display_AR = "") : ($display_AR = "nodisplay");?>
1421 <div id="LayerVision_MR" class="refraction manifest borderShadow <?php echo $display_AR; ?>">
1422 <i onclick="top.restoreSession(); refractions('<?php
echo attr($pid); ?
>');return false;"
1423 title="<?php echo xla("List of previous refractions"); ?>" class="closeButton3 fa fa-list-ul"></i>
1424 <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>
1425 <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>
1426 <table id="dry_wet_refraction">
1427 <th colspan="5"><?php echo xlt('Manifest (Dry
) Refraction
'); ?></th>
1428 <th NOWRAP colspan="2">
1429 <input type="checkbox" name="BALANCED" id="Balanced" value="on" <?php if ($BALANCED =='on
') {
1430 echo "checked='checked
'";
1431 } ?> tabindex="10182">
1432 <label for="Balanced" class="input-helper input-helper--checkbox"><?php echo xlt('Balanced
'); ?></label>
1436 <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>
1437 <td><?php echo xlt('Sph
{{Sphere
}}'); ?></td>
1438 <td><?php echo xlt('Cyl
{{Cylinder
}}'); ?></td>
1439 <td><?php echo xlt('Axis
{{Axis of a glasses prescription
}}'); ?></td>
1440 <td><?php echo xlt('Acuity
'); ?></td>
1441 <td><?php echo xlt('ADD
'); ?></td>
1442 <td><?php echo xlt('Jaeger
'); ?></td>
1443 <td><?php echo xlt('Prism
'); ?></td>
1446 <td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1447 <td><input type="text" id="MRODSPH" name="MRODSPH" value="<?php echo attr($MRODSPH); ?>" tabindex="10170"></td>
1448 <td><input type="text" id="MRODCYL" name="MRODCYL" value="<?php echo attr($MRODCYL); ?>" tabindex="10171"></td>
1449 <td><input type="text" id="MRODAXIS" name="MRODAXIS" value="<?php echo attr($MRODAXIS); ?>" tabindex="10172"></td>
1450 <td><input type="text" id="MRODVA" name="MRODVA" value="<?php echo attr($MRODVA); ?>" tabindex="10176"></td>
1451 <td><input type="text" id="MRODADD" name="MRODADD" value="<?php echo attr($MRODADD); ?>" tabindex="10178"></td>
1452 <td><input class="jaeger" type="text" id="MRNEARODVA" name="MRNEARODVA" value="<?php echo attr($MRNEARODVA); ?>" tabindex="10180"> </td>
1453 <td><input type="text" id="MRODPRISM" name="MRODPRISM" value="<?php echo attr($MRODPRISM); ?>"></td>
1456 <td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1457 <td><input type="text" id="MROSSPH" name="MROSSPH" value="<?php echo attr($MROSSPH); ?>" tabindex="10173"></td>
1458 <td><input type="text" id="MROSCYL" name="MROSCYL" value="<?php echo attr($MROSCYL); ?>" tabindex="10174"></td>
1459 <td><input type="text" id="MROSAXIS" name="MROSAXIS" value="<?php echo attr($MROSAXIS); ?>" tabindex="10175"></td>
1460 <td><input type="text" id="MROSVA" name="MROSVA" value="<?php echo attr($MROSVA); ?>" tabindex="10177"></td>
1461 <td><input type="text" id="MROSADD" name="MROSADD" value="<?php echo attr($MROSADD); ?>" tabindex="10179"></td>
1462 <td><input class="jaeger" type="text" id="MRNEAROSVA" name="MRNEAROSVA" value="<?php echo attr($MRNEAROSVA); ?>" tabindex="10181"></td>
1463 <td><input type="text" id="MROSPRISM" name="MROSPRISM" value="<?php echo attr($MROSPRISM); ?>"></td>
1468 <th colspan="7"><?php echo xlt('Cycloplegic (Wet
) Refraction
'); ?></th>
1469 <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>
1472 <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>
1473 <td><?php echo xlt('Sph
{{Sphere
}}'); ?></td>
1474 <td><?php echo xlt('Cyl
{{Cylinder
}}'); ?></td>
1475 <td><?php echo xlt('Axis
{{Axis of a glasses prescription
}}'); ?></td>
1476 <td><?php echo xlt('Acuity
'); ?></td>
1478 <td id="IOP_dil"><?php echo xlt('IOP Dilated
{{Dilated Intraocular Pressure
}}'); ?>
1479 <input type="hidden" name="IOPPOSTTIME" id="IOPPOSTTIME" value="">
1484 <td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1485 <td><input type="text" id="CRODSPH" name="CRODSPH" value="<?php echo attr($CRODSPH); ?>" tabindex="10183"></td>
1486 <td><input type="text" id="CRODCYL" name="CRODCYL" value="<?php echo attr($CRODCYL); ?>" tabindex="10184"></td>
1487 <td><input type="text" id="CRODAXIS" name="CRODAXIS" value="<?php echo attr($CRODAXIS); ?>" tabindex="10185"></td>
1488 <td><input type="text" id="CRODVA" name="CRODVA" value="<?php echo attr($CRODVA); ?>" tabindex="10189"></td>
1492 <input type="radio" name="WETTYPE" id="Flash" value="Flash" <?php if ($WETTYPE == "Flash") {
1493 echo "checked='checked
'";
1495 <label for="Flash" class="input-helper input-helper--checkbox"><?php echo xlt('Flash
'); ?></label>
1498 <input type="radio" name="WETTYPE" id="Auto" value="Auto" <?php if ($WETTYPE == "Auto") {
1499 echo "checked='checked
'";
1501 <label for="Auto" class="input-helper input-helper--checkbox"><?php echo xlt('Auto
{{autorefraction
}}'); ?></label>
1505 <input type="radio" name="WETTYPE" id="Manual" value="Manual" <?php if ($WETTYPE == "Manual") {
1506 echo "checked='checked
'";
1508 <label for="Manual" class="input-helper input-helper--checkbox"><?php echo xlt('Manual
'); ?></label>
1512 <td><input type="text" id="ODIOPPOST" name="ODIOPPOST" value="<?php echo attr($ODIOPPOST); ?>">
1515 <td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1516 <td><input type="text" id="CROSSPH" name="CROSSPH" value="<?php echo attr($CROSSPH); ?>" tabindex="10186"></td>
1517 <td><input type="text" id="CROSCYL" name="CROSCYL" value="<?php echo attr($CROSCYL); ?>" tabindex="10187"></td>
1518 <td><input type="text" id="CROSAXIS" name="CROSAXIS" value="<?php echo attr($CROSAXIS); ?>" tabindex="10188"></td>
1519 <td><input type="text" id="CROSVA" name="CROSVA" value="<?php echo attr($CROSVA); ?>" tabindex="10190"></td>
1521 <td><input type="text" id="OSIOPPOST" name="OSIOPPOST" value="<?php echo attr($OSIOPPOST); ?>"></td>
1526 <?php ($CR==1) ? ($display_Cyclo = "") : ($display_Cyclo = "nodisplay"); ?>
1527 <div id="LayerVision_CR" class="refraction autoref borderShadow <?php echo $display_Cyclo; ?>">
1528 <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>
1529 <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>
1530 <table id="autorefraction">
1531 <th colspan="9"><?php echo xlt('Auto Refraction
'); ?></th>
1533 <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>
1534 <td><?php echo xlt('Sph
{{Sphere
}}'); ?></td>
1535 <td><?php echo xlt('Cyl
{{Cylinder
}}'); ?></td>
1536 <td><?php echo xlt('Axis
{{Axis of a glasses prescription
}}'); ?></td>
1537 <td><?php echo xlt('Acuity
'); ?></td>
1538 <td><?php echo xlt('ADD
'); ?></td>
1539 <td><?php echo xlt('Jaeger
{{Near Acuity Type Jaeger
}}'); ?></td>
1540 <td><?php echo xlt('Prism
'); ?></td>
1543 <td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1544 <td><input type="text" id="ARODSPH" name="ARODSPH" value="<?php echo attr($ARODSPH); ?>" tabindex="10220"></td>
1545 <td><input type="text" id="ARODCYL" name="ARODCYL" value="<?php echo attr($ARODCYL); ?>" tabindex="10221"></td>
1546 <td><input type="text" id="ARODAXIS" name="ARODAXIS" value="<?php echo attr($ARODAXIS); ?>" tabindex="10222"></td>
1547 <td><input type="text" id="ARODVA" name="ARODVA" value="<?php echo attr($ARODVA); ?>" tabindex="10228"></td>
1548 <td><input type="text" id="ARODADD" name="ARODADD" value="<?php echo attr($ARODADD); ?>" tabindex="10226"></td>
1549 <td><input class="jaeger" type="text" id="ARNEARODVA" name="ARNEARODVA" value="<?php echo attr($ARNEARODVA); ?>"></td>
1550 <td><input type="text" id="ARODPRISM" name="ARODPRISM" value="<?php echo attr($ARODPRISM); ?>"></td>
1553 <td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1554 <td><input type="text" id="AROSSPH" name="AROSSPH" value="<?php echo attr($AROSSPH); ?>" tabindex="10223"></td>
1555 <td><input type="text" id="AROSCYL" name="AROSCYL" value="<?php echo attr($AROSCYL); ?>" tabindex="10224"></td>
1556 <td><input type="text" id="AROSAXIS" name="AROSAXIS" value="<?php echo attr($AROSAXIS); ?>" tabindex="10225"></td>
1557 <td><input type="text" id="AROSVA" name="AROSVA" value="<?php echo attr($AROSVA); ?>" tabindex="10229"></td>
1558 <td><input type="text" id="AROSADD" name="AROSADD" value="<?php echo attr($AROSADD); ?>" tabindex="10227"></td>
1559 <td><input class="jaeger" type="text" id="ARNEAROSVA" name="ARNEAROSVA" value="<?php echo attr($ARNEAROSVA); ?>"></td>
1560 <td><input type="text" id="AROSPRISM" name="AROSPRISM" value="<?php echo attr($AROSPRISM); ?>"></td>
1563 <td colspan="3" class="bold pad10"><br /><?php echo xlt('Refraction Comments
'); ?>:</td>
1566 <td colspan="9"><textarea id="CRCOMMENTS" name="CRCOMMENTS"><?php echo attr($CRCOMMENTS); ?></textarea>
1572 <?php ($CTL==1) ? ($display_CTL = "") : ($display_CTL = "nodisplay"); ?>
1573 <div id="LayerVision_CTL" class="refraction CTL borderShadow <?php echo $display_CTL; ?>">
1574 <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>
1575 <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>
1577 <th colspan="9"><?php echo xlt('Contact Lens Refraction
'); ?></th>
1584 <td><a href="<?php echo $GLOBALS['webroot
']; ?>/interface/super/edit_list.php?list_id=CTLManufacturer" target="RTop"
1585 title="<?php echo xla('Click here to Edit the Manufacter
List'); ?>"
1586 name="CTL"><?php echo xlt('Manufacturer
'); ?> <i class="fa fa-pencil fa-fw"></i> </a>
1588 <td><a href="<?php echo $GLOBALS['webroot
']; ?>/interface/super/edit_list.php?list_id=CTLSupplier" target="RTop"
1589 title="<?php echo xla('Click here to Edit the Supplier
List'); ?>"
1590 name="CTL"><?php echo xlt('Supplier
'); ?> <i class="fa fa-pencil fa-fw"></i> </a>
1592 <td><a href="<?php echo $GLOBALS['webroot
']; ?>/interface/super/edit_list.php?list_id=CTLBrand" target="RTop"
1593 title="<?php echo xla('Click here to Edit the Contact Lens Brand
List'); ?>"
1594 name="CTL"><?php echo xlt('Brand
'); ?> <i class="fa fa-pencil fa-fw"></i> </a>
1598 <td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1600 <!-- Pull from CTL data from list_options which user populates the usual way -->
1602 //build manufacturer list from list_options::list_id::CTLManufacturer
1603 $query = "select * from list_options where list_id like 'CTLManufacturer
' order by seq";
1604 $CTLMANUFACTURER_data =sqlStatement($query);
1605 while ($row = sqlFetchArray($CTLMANUFACTURER_data)) {
1606 $CTLMANUFACTURER_list_OD .= '<option value
="'.attr($row['option_id']).'"';
1607 if ($CTLMANUFACTUREROD == $row['option_id
']) {
1608 $CTLMANUFACTURER_list_OD .= "selected";
1611 $CTLMANUFACTURER_list_OD .= '>'.text(substr($row['title
'], 0, 12)).'</option
>
1613 $CTLMANUFACTURER_list_OS .= '<option value
="'.attr($row['option_id']).'"';
1614 if ($CTLMANUFACTUREROS == $row['option_id
']) {
1615 $CTLMANUFACTURER_list_OS .= "selected";
1618 $CTLMANUFACTURER_list_OS .= '>'.text(substr($row['title
'], 0, 12)).'</option
>
1622 //build supplier list from list_options::list_id::CTLSupplier
1623 $query = "select * from list_options where list_id like 'CTLSupplier
' order by seq";
1624 $CTLSUPPLIER_data =sqlStatement($query);
1625 while ($row = sqlFetchArray($CTLSUPPLIER_data)) {
1626 $CTLSUPPLIER_list_OD .= '<option value
="'.attr($row['option_id']).'"';
1627 if ($CTLSUPPLIEROD == $row['option_id
']) {
1628 $CTLSUPPLIER_list_OD .= "selected";
1631 $CTLSUPPLIER_list_OD .= '>'.text(substr($row['title
'], 0, 10)).'</option
>
1633 $CTLSUPPLIER_list_OS .= '<option value
="'.attr($row['option_id']).'"';
1634 if ($CTLSUPPLIEROS == $row['option_id
']) {
1635 $CTLSUPPLIER_list_OS .= "selected";
1638 $CTLSUPPLIER_list_OS .= '>'.text(substr($row['title
'], 0, 10)).'</option
>
1642 //build manufacturer list from list_options::list_id::CTLManufacturer
1643 $query = "select * from list_options where list_id like 'CTLBrand
' order by seq";
1644 $CTLBRAND_data =sqlStatement($query);
1645 while ($row = sqlFetchArray($CTLBRAND_data)) {
1646 $CTLBRAND_list_OD .= '<option value
="'.attr($row['option_id']).'"';
1647 if ($CTLBRANDOD == $row['option_id
']) {
1648 $CTLBRAND_list_OD .= "selected";
1651 $CTLBRAND_list_OD .= '>'.text(substr($row['title
'], 0, 15)).'</option
>
1653 $CTLBRAND_list_OS .= '<option value
="'.attr($row['option_id']).'"';
1654 if ($CTLBRANDOS == $row['option_id
']) {
1655 $CTLBRAND_list_OS .= "selected";
1658 $CTLBRAND_list_OS .= '>'.text(substr($row['title
'], 0, 15)).'</option
>
1662 <select id="CTLMANUFACTUREROD" name="CTLMANUFACTUREROD" tabindex="10230">
1664 <?php echo $CTLMANUFACTURER_list_OD; ?>
1668 <select id="CTLSUPPLIEROD" name="CTLSUPPLIEROD" tabindex="10231">
1670 <?php echo $CTLSUPPLIER_list_OD; ?>
1674 <select id="CTLBRANDOD" name="CTLBRANDOD" tabindex="10232">
1676 <?php echo $CTLBRAND_list_OD; ?>
1681 <td><b><?php echo xlt('OS
'); ?>:</b></td>
1683 <select id="CTLMANUFACTUREROS" name="CTLMANUFACTUREROS" tabindex="10233">
1685 <?php echo $CTLMANUFACTURER_list_OS; ?>
1689 <select id="CTLSUPPLIEROS" name="CTLSUPPLIEROS" tabindex="10234">
1691 <?php echo $CTLSUPPLIER_list_OS; ?>
1695 <select id="CTLBRANDOS" name="CTLBRANDOS" tabindex="10235">
1697 <?php echo $CTLBRAND_list_OS; ?>
1708 <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>
1709 <td><?php echo xlt('Sph
{{Sphere
}}'); ?></td>
1710 <td><?php echo xlt('Cyl
{{Cylinder
}}'); ?></td>
1711 <td><?php echo xlt('Axis
{{Axis of a glasses prescription
}}'); ?></td>
1712 <td><?php echo xlt('BC
{{Base Curve
}}'); ?></td>
1713 <td><?php echo xlt('Diam
{{Diameter
}}'); ?></td>
1714 <td><?php echo xlt('ADD
'); ?></td>
1715 <td><?php echo xlt('Acuity
'); ?></td>
1718 <td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1719 <td><input type="text" id="CTLODSPH" name="CTLODSPH" value="<?php echo attr($CTLODSPH); ?>" tabindex="10236"></td>
1720 <td><input type="text" id="CTLODCYL" name="CTLODCYL" value="<?php echo attr($CTLODCYL); ?>" tabindex="10240"></td>
1721 <td><input type="text" id="CTLODAXIS" name="CTLODAXIS" value="<?php echo attr($CTLODAXIS); ?>" tabindex="10241"></td>
1722 <td><input type="text" id="CTLODBC" name="CTLODBC" value="<?php echo attr($CTLODBC); ?>" tabindex="10237"></td>
1723 <td><input type="text" id="CTLODDIAM" name="CTLODDIAM" value="<?php echo attr($CTLODDIAM); ?>" tabindex="10238"></td>
1724 <td><input type="text" id="CTLODADD" name="CTLODADD" value="<?php echo attr($CTLODADD); ?>" tabindex="10242"></td>
1725 <td><input type="text" id="CTLODVA" name="CTLODVA" value="<?php echo attr($CTLODVA); ?>" tabindex="10239"></td>
1728 <td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1729 <td><input type="text" id="CTLOSSPH" name="CTLOSSPH" value="<?php echo attr($CTLOSSPH); ?>" tabindex="10243"></td>
1730 <td><input type="text" id="CTLOSCYL" name="CTLOSCYL" value="<?php echo attr($CTLOSCYL); ?>" tabindex="10247"></td>
1731 <td><input type="text" id="CTLOSAXIS" name="CTLOSAXIS" value="<?php echo attr($CTLOSAXIS); ?>" tabindex="10248"></td>
1732 <td><input type="text" id="CTLOSBC" name="CTLOSBC" value="<?php echo attr($CTLOSBC); ?>" tabindex="10244"></td>
1733 <td><input type="text" id="CTLOSDIAM" name="CTLOSDIAM" value="<?php echo attr($CTLOSDIAM); ?>" tabindex="10245"></td>
1734 <td><input type="text" id="CTLOSADD" name="CTLOSADD" value="<?php echo attr($CTLOSADD); ?>" tabindex="10249"></td>
1735 <td><input type="text" id="CTLOSVA" name="CTLOSVA" value="<?php echo attr($CTLOSVA); ?>" tabindex="10246"></td>
1738 <td colspan="2" class="right bold">
1739 <?php echo xlt('Comments
'); ?>:
1742 <textarea name="CTL_COMMENTS" id="CTL_COMMENTS" tabindex="10250"><?php echo text($CTL_COMMENTS); ?></textarea>
1748 <?php ($ADDITIONAL==1) ? ($display_Add = "") : ($display_Add = "nodisplay"); ?>
1749 <div id="LayerVision_ADDITIONAL" class="refraction borderShadow <?php echo $display_Add; ?>">
1750 <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>
1752 <table id="Additional">
1753 <th colspan=9><?php echo xlt('Additional Data Points
'); ?></th>
1755 <td title="<?php echo xla('Pinhole Vision
'); ?>"><?php echo xlt('PH
{{pinhole acuity
}}'); ?></td>
1756 <td title="<?php echo xla('Potential Acuity Meter
'); ?>"><?php echo xlt('PAM
{{Potential Acuity Meter
}}'); ?></td>
1757 <td title="<?php echo xla('Laser Interferometry Acuity
'); ?>"><?php echo xlt('LI
{{Laser Interferometry Acuity
}}'); ?></td>
1758 <td title="<?php echo xla('Brightness Acuity Testing
'); ?>"><?php echo xlt('BAT
{{Brightness Acuity Testing
}}'); ?></td>
1759 <td><?php echo xlt('K1
{{Keratometry
1}}'); ?></td>
1760 <td><?php echo xlt('K2
{{Keratometry
2}}'); ?></td>
1761 <td><?php echo xlt('Axis
{{Axis of a glasses prescription
}}'); ?></td>
1763 <tr><td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1764 <td><input type="text" id="PHODVA" name="PHODVA" title="<?php echo xla('Pinhole Vision
'); ?>" value="<?php echo attr($PHODVA); ?>" tabindex="10251"></td>
1765 <td><input type="text" id="PAMODVA" name="PAMODVA" title="<?php echo xla('Potential Acuity Meter
'); ?>" value="<?php echo attr($PAMODVA); ?>" tabindex="10253"></td>
1766 <td><input type="text" id="LIODVA" name="LIODVA" title="<?php echo xla('Laser Interferometry
'); ?>" value="<?php echo attr($LIODVA); ?>" tabindex="10255"></td>
1767 <td><input type="text" id="GLAREODVA" name="GLAREODVA" title="<?php echo xla('Brightness Acuity Testing
'); ?>" value="<?php echo attr($GLAREODVA); ?>" tabindex="10257"></td>
1768 <td><input type="text" id="ODK1" name="ODK1" value="<?php echo attr($ODK1); ?>" tabindex="10259"></td>
1769 <td><input type="text" id="ODK2" name="ODK2" value="<?php echo attr($ODK2); ?>" tabindex="10260"></td>
1770 <td><input type="text" id="ODK2AXIS" name="ODK2AXIS" value="<?php echo attr($ODK2AXIS); ?>" tabindex="10261"></td>
1773 <td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1774 <td><input type="text" id="PHOSVA" name="PHOSVA" title="<?php echo xla('Pinhole Vision
'); ?>" value="<?php echo attr($PHOSVA); ?>" tabindex="10252"></td>
1775 <td><input type="text" id="PAMOSVA" name="PAMOSVA" title="<?php echo xla('Potential Acuity Meter
'); ?>" value="<?php echo attr($PAMOSVA); ?>" tabindex="10254"></td>
1776 <td><input type="text" id="LIOSVA" name="LIOSVA" title="<?php echo xla('Laser Interferometry
'); ?>" value="<?php echo attr($LIOSVA); ?>" tabindex="10256"></td>
1777 <td><input type="text" id="GLAREOSVA" name="GLAREOSVA" title="<?php echo xla('Brightness Acuity Testing
'); ?>" value="<?php echo attr($GLAREOSVA); ?>" tabindex="10258"></td>
1778 <td><input type="text" id="OSK1" name="OSK1" value="<?php echo attr($OSK1); ?>" tabindex="10262"></td>
1779 <td><input type="text" id="OSK2" name="OSK2" value="<?php echo attr($OSK2); ?>" tabindex="10263"></td>
1780 <td><input type="text" id="OSK2AXIS" name="OSK2AXIS" value="<?php echo attr($OSK2AXIS); ?>" tabindex="10264"></td>
1782 <tr><td> </td></tr>
1785 <td title="<?php echo xla('Axial Length
'); ?>"><?php echo xlt('AxLength
{{axial Length
}}'); ?></td>
1786 <td title="<?php echo xla('Anterior Chamber Depth
'); ?>"><?php echo xlt('ACD
{{anterior chamber depth
}}'); ?></td>
1787 <td title="<?php echo xla('Inter
-pupillary distance
'); ?>"><?php echo xlt('PD
{{Inter
-pupillary distance
}}'); ?></td>
1788 <td title="<?php echo xla('Lens Thickness
'); ?>"><?php echo xlt('LT
{{lens thickness
}}'); ?></td>
1789 <td title="<?php echo xla('White
-to
-white
'); ?>"><?php echo xlt('W2W
{{white
-to
-white
}}'); ?></td>
1790 <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>
1791 <!-- <td><?php echo xlt('pend
'); ?></td> -->
1793 <tr><td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1794 <td><input type="text" id="ODAXIALLENGTH" name="ODAXIALLENGTH" value="<?php echo attr($ODAXIALLENGTH); ?>" tabindex="10265"></td>
1795 <td><input type="text" id="ODACD" name="ODACD" value="<?php echo attr($ODACD); ?>" tabindex="10267"></td>
1796 <td><input type="text" id="ODPDMeasured" name="ODPDMeasured" value="<?php echo attr($ODPDMeasured); ?>" tabindex="10269"></td>
1797 <td><input type="text" id="ODLT" name="ODLT" value="<?php echo attr($ODLT); ?>" tabindex="10271"></td>
1798 <td><input type="text" id="ODW2W" name="ODW2W" value="<?php echo attr($ODW2W); ?>" tabindex="10273"></td>
1799 <td><input type="text" id="ODECL" name="ODECL" value="<?php echo attr($ODECL); ?>" tabindex="10275"></td>
1800 <!-- <td><input type="text" id="pend" name="pend" value="<?php echo attr($pend); ?>"></td> -->
1803 <td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1804 <td><input type="text" id="OSAXIALLENGTH" name="OSAXIALLENGTH" value="<?php echo attr($OSAXIALLENGTH); ?>" tabindex="10266"></td>
1805 <td><input type="text" id="OSACD" name="OSACD" value="<?php echo attr($OSACD); ?>" tabindex="10268"></td>
1806 <td><input type="text" id="OSPDMeasured" name="OSPDMeasured" value="<?php echo attr($OSPDMeasured); ?>" tabindex="10270"></td>
1807 <td><input type="text" id="OSLT" name="OSLT" value="<?php echo attr($OSLT); ?>" tabindex="10272"></td>
1808 <td><input type="text" id="OSW2W" name="OSW2W" value="<?php echo attr($OSW2W); ?>" tabindex="10274"></td>
1809 <td><input type="text" id="OSECL" name="OSECL" value="<?php echo attr($OSECL); ?>" tabindex="10276"></td>
1810 <!-- <td><input type="text" id="pend" name="pend" value="<?php echo attr($pend); ?>"></td> -->
1815 <?php ($VAX==1) ? ($display_Add = "") : ($display_Add = "nodisplay"); ?>
1816 <div id="LayerVision_VAX" class="refraction borderShadow <?php echo $display_Add; ?>">
1817 <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>
1818 <table id="Additional_VA">
1819 <th colspan="9"><?php echo xlt('Visual Acuity
'); ?></th>
1821 <td title="<?php echo xla('Acuity without correction
'); ?>"><?php echo xlt('SC
{{Acuity without correction
}}'); ?></td>
1822 <td title="<?php echo xla('Acuity with correction
'); ?>"><?php echo xlt('W Rx
{{Acuity with correction
}}'); ?></td>
1823 <td title="<?php echo xla('Acuity with Autorefraction
'); ?>"><?php echo xlt('AR
{{Autorefraction Acuity
}}'); ?></td>
1824 <td title="<?php echo xla('Acuity with Manifest Refraction
'); ?>"><?php echo xlt('MR
{{Manifest Refraction
}}'); ?></td>
1825 <td title="<?php echo xla('Acuity with Cycloplegic Refraction
'); ?>"><?php echo xlt('CR
{{Cycloplegic Refraction
}}'); ?></td>
1826 <td title="<?php echo xla('Acuity with Pinhole
'); ?>"><?php echo xlt('PH
{{pinhole acuity
}}'); ?></td>
1827 <td title="<?php echo xla('Acuity with Contact Lenses
'); ?>"><?php echo xlt('CTL
{{Contact Lens
}}'); ?></td>
1830 <tr><td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1831 <td><input type="text" id="SCODVA_copy_brd" name="SCODVA_copy_brd" value="<?php echo attr($SCODVA); ?>" tabindex="10300"></td>
1832 <td><input type="text" id="ODVA_1_copy_brd" name="ODVA_1_copy_brd" value="<?php echo attr($ODVA_1); ?>" tabindex="10302"></td>
1833 <td><input type="text" id="ARODVA_copy_brd" name="ARODVA_copy_brd" value="<?php echo attr($ARODVA); ?>" tabindex="10304"></td>
1834 <td><input type="text" id="MRODVA_copy_brd" name="MRODVA_copy_brd" value="<?php echo attr($MRODVA); ?>" tabindex="10306"></td>
1835 <td><input type="text" id="CRODVA_copy_brd" name="CRODVA_copy_brd" value="<?php echo attr($CRODVA); ?>" tabindex="10308"></td>
1836 <td><input type="text" id="PHODVA_copy_brd" name="PHODVA_copy_brd" value="<?php echo attr($PHODVA); ?>" tabindex="10310"></td>
1837 <td><input type="text" id="CTLODVA_copy_brd" name="CTLODVA_copy_brd" value="<?php echo attr($CTLODVA); ?>" tabindex="10312"></td>
1839 <tr><td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1840 <td><input type="text" id="SCOSVA_copy" name="SCOSVA_copy" value="<?php echo attr($SCOSVA); ?>" tabindex="10301"></td>
1841 <td><input type="text" id="OSVA_1_copy_brd" name="OSVA_1_copy_brd" value="<?php echo attr($OSVA_1); ?>" tabindex="10303"></td>
1842 <td><input type="text" id="AROSVA_copy_brd" name="AROSVA_copy_brd" value="<?php echo attr($AROSVA); ?>" tabindex="10305"></td>
1843 <td><input type="text" id="MROSVA_copy_brd" name="MROSVA_copy_brd" value="<?php echo attr($MROSVA); ?>" tabindex="10307"></td>
1844 <td><input type="text" id="CROSVA_copy_brd" name="CROSVA_copy_brd" value="<?php echo attr($CROSVA); ?>" tabindex="10309"></td>
1845 <td><input type="text" id="PHOSVA_copy_brd" name="PHOSVA_copy_brd" value="<?php echo attr($PHOSVA); ?>" tabindex="10311"></td>
1846 <td><input type="text" id="CTLOSVA_copy_brd" name="CTLOSVA_copy_brd" value="<?php echo attr($CTLOSVA); ?>" tabindex="10313"></td>
1848 <tr><td> </td></tr>
1851 <td title="<?php echo xla('Near Acuity without Correction
'); ?>"><?php echo xlt('scNear
{{without correction near
}}'); ?></td>
1852 <td title="<?php echo xla('Near Acuity with Correction
'); ?>"><?php echo xlt('ccNear
{{with correction at near
}}'); ?></td>
1853 <td title="<?php echo xla('Near Acuity with Autorefraction
'); ?>"><?php echo xlt('ARNear
{{autorefraction near
}}'); ?></td>
1854 <td title="<?php echo xla('Near Acuity with
Manifest (Dry
) refraction
'); ?>"><?php echo xlt('MRNear
{{manifest refraction near
}}'); ?></td>
1855 <td title="<?php echo xla('Potential Acuity
'); ?>"><?php echo xlt('PAM
{{Potential Acuity Meter
}}'); ?></td>
1856 <td title="<?php echo xla('Brightness Acuity Testing
'); ?>"><?php echo xlt('BAT
{{Brightness Acuity Testing
}}'); ?></td>
1857 <td title="<?php echo xla('Contrast Acuity
'); ?>"><?php echo xlt('Contrast
{{Constrast Visual Acuity
}}'); ?></td>
1859 <tr><td><b><?php echo xlt('OD
{{right eye
}}'); ?>:</b></td>
1860 <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>
1861 <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>
1862 <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>
1863 <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>
1864 <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>
1865 <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>
1866 <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>
1868 <tr><td><b><?php echo xlt('OS
{{left eye
}}'); ?>:</b></td>
1869 <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>
1870 <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>
1871 <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>
1872 <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>
1873 <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>
1874 <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>
1875 <td><input type="text" id="CONTRASTOSVA" title="<?php echo xla('Contrast Acuity Testing
'); ?>" name="CONTRASTOSVA" value="<?php echo attr($CONTRASTOSVA); ?>" tabindex="10333"></td>
1881 <!-- end of the refraction box -->
1882 <!-- start of the exam selection/middle menu row -->
1883 <div class="sections" name="mid_menu" id="mid_menu">
1884 <span id="EXAM_defaults" name="EXAM_defaults" value="Defaults" class="borderShadow"><i class="fa fa-newspaper-o"></i> <b><?php echo xlt('Defaults
'); ?></b></span>
1885 <span id="EXAM_TEXT" name="EXAM_TEXT" value="TEXT" class="borderShadow"><i class="fa fa-hospital-o"></i> <b><?php echo xlt('Text
'); ?></b></span>
1886 <span id="EXAM_DRAW" name="EXAM_DRAW" value="DRAW" class="borderShadow">
1887 <i class="fa fa-paint-brush fa-sm"> </i> <b><?php echo xlt('Draw
'); ?></b></span>
1888 <span id="EXAM_QP" name="EXAM_QP" title="<?php echo xla('Open the Quick Pick panels
'); ?>" value="QP" class="borderShadow">
1889 <i class="fa fa-database fa-sm"> </i> <b><?php echo xlt('Quick Picks
'); ?></b>
1892 // output is defined above and if there are old visits, check for orders in eye_mag_functions:
1893 // $output = priors_select("ALL",$id,$id,$pid);
1894 ($output_priors =='') ? ($title = "There are no prior visits documented to display for this patient.") : ($title="Display old exam findings and copy forward if desired");?>
1895 <span id="PRIORS_ALL_left_text" name="PRIORS_ALL_left_text"
1896 class="borderShadow"><i class="fa fa-paste" title="<?php echo xla($title); ?>"></i>
1898 if ($output_priors !='') {
1899 echo $output_priors;
1901 echo "<b>". xlt("First visit: No Old Records")."</b>";
1906 <!-- end of the exam selection row -->
1908 <!-- start of the Shorthand Entry Box -->
1909 <div id="EXAM_KB" name="EXAM_KB" class="kb borderShadow nodisplay">
1910 <span class="closeButton fa fa-close" id="CLOSE_kb" name="CLOSE_kb"></span>
1911 <span class="BAR2_kb" title="<?php echo xla('Click to display shorthand field names
.'); ?>" class="ke"><b><?php echo xlt('Shorthand
'); ?></b>
1914 <a onclick="top.restoreSession();goto_url('<?php
echo $GLOBALS['webroot']; ?
>/interface/forms
/eye_mag
/help
.php?zone
=all
');">
1915 <i title="<?php echo xla('Click
for Shorthand Help
.'); ?>" class="fa fa-info-circle fa-1"></i>
1917 <textarea id="ALL_keyboard_left" name="ALL_keyboard_left" tabindex='1000'></textarea>
1919 <!-- end of the Shorthand Entry Box -->
1921 <!-- end reporting div -->
1922 <span class="anchor" id="SELECTION_ROW_anchor"></span>
1924 <!-- Start of the exam sections -->
1925 <div class="loading" id="EXAM_sections_loading" name="EXAM_sections_loading">
1927 <i class="fa fa-spinner fa-spin"></i>
1929 <div class="nodisplay" id="DA_EXAM_sections" name="DA_EXAM_sections">
1930 <!-- start External Exam -->
1931 <div id="EXT_1" name="EXT_1" class="clear_both">
1932 <span class="anchor" id="EXT_anchor"></span>
1933 <div id="EXT_left" class="exam_section_left borderShadow" >
1934 <div id="EXT_left_text" class="TEXT_class">
1935 <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>
1936 <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>
1937 <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>
1938 <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 />
1939 <div id="EXT_left_1">
1942 list($imaging,$episode) = display($pid, $encounter, "EXT");
1948 <td></td><td><?php echo xlt('R
'); ?></td><td><?php echo xlt('L
{{left
}}'); ?></td>
1951 <td class="right" title="<?php echo xla('Levator
Function'); ?>">
1952 <div class="kb kb_left"><?php echo xlt('LF
{{levator
function}}'); ?></div><?php echo xlt('Lev Fn
{{levator
function}}'); ?></td>
1953 <td><input type="text" name="RLF" id="RLF" class="EXT" value="<?php echo attr($RLF); ?>"></td>
1954 <td><input type="text" name="LLF" id="LLF" class="EXT" value="<?php echo attr($LLF); ?>"></td>
1957 <td class="right" title="<?php echo xla('Marginal Reflex Distance
'); ?>">
1958 <div class="kb kb_left"><?php echo xlt('MRD
{{marginal reflex distance
}}'); ?></div><?php echo xlt('MRD
{{marginal reflex distance
}}'); ?></td>
1959 <td><input type="text" size="1" name="RMRD" id="RMRD" class="EXT" value="<?php echo attr($RMRD); ?>"></td>
1960 <td><input type="text" size="1" name="LMRD" id="LMRD" class="EXT" value="<?php echo attr($LMRD); ?>"></td>
1963 <td class="right" title="<?php echo xla('Vertical Fissure
: central height between lid margins
'); ?>">
1964 <div class="kb kb_left"><?php echo xlt('VF
{{vertical fissure
}}'); ?></div><?php echo xlt('Vert Fissure
{{vertical fissure
}}'); ?></td>
1965 <td><input type="text" size="1" name="RVFISSURE" id="RVFISSURE" class="EXT" value="<?php echo attr($RVFISSURE); ?>"></td>
1966 <td><input type="text" size="1" name="LVFISSURE" id="LVFISSURE" class="EXT" value="<?php echo attr($LVFISSURE); ?>"></td>
1969 <td class="right" title="<?php echo xla('Any carotid bruits appreciated?
'); ?>">
1970 <div class="kb kb_left"><?php echo xlt('CAR
{{carotid arteries
}}'); ?></div><?php echo xlt('Carotid
{{carotid arteries
}}'); ?></td>
1971 <td><input type="text" name="RCAROTID" id="RCAROTID" class="EXT" class="EXT" value="<?php echo attr($RCAROTID); ?>"></td>
1972 <td><input type="text" name="LCAROTID" id="LCAROTID" class="EXT" value="<?php echo attr($LCAROTID); ?>"></td>
1975 <td class="right" title="<?php echo xla('Temporal Arteries
'); ?>">
1976 <div class="kb kb_left"><?php echo xlt('TA
{{temporal arteries
}}'); ?></div>
1977 <?php echo xlt('Temp
. Art
.{{temporal arteries
}}'); ?></td>
1978 <td><input type="text" size="1" name="RTEMPART" id="RTEMPART" class="EXT" value="<?php echo attr($RTEMPART); ?>"></td>
1979 <td><input type="text" size="1" name="LTEMPART" id="LTEMPART" class="EXT" value="<?php echo attr($LTEMPART); ?>"></td>
1982 <td class="right" title="<?php echo xla('Cranial Nerve
5: Trigeminal Nerve
'); ?>">
1983 <div class="kb kb_left"><?php echo xlt('CN5
{{cranial nerve five
}}'); ?></div><?php echo xlt('CN V
{{cranial nerve five
}}'); ?></td>
1984 <td><input type="text" size="1" name="RCNV" id="RCNV" class="EXT" value="<?php echo attr($RCNV); ?>"></td>
1985 <td><input type="text" size="1" name="LCNV" id="LCNV" class="EXT" value="<?php echo attr($LCNV); ?>"></td>
1988 <td class="right" title="<?php echo xla('Cranial Nerve
7: Facial Nerve
'); ?>">
1989 <div class="kb kb_left"><?php echo xlt('CN7
{{cranial nerve seven
}}'); ?></div><?php echo xlt('CN VII
{{cranial nerve seven
}}'); ?></td>
1990 <td><input type="text" size="1" name="RCNVII" class="EXT" id="RCNVII" value="<?php echo attr($RCNVII); ?>"></td>
1991 <td><input type="text" size="1" name="LCNVII" class="EXT" id="LCNVII" value="<?php echo attr($LCNVII); ?>"></td>
1994 <tr><td colspan=3 class="underline"><?php echo xlt('Hertel Exophthalmometry
'); ?></td></tr>
1997 <input type="text" size="1" id="ODHERTEL" name="ODHERTEL" class="EXT" value="<?php echo attr($ODHERTEL); ?>">
1998 <i class="fa fa-minus"></i>
2001 <input type="text" size=3 id="HERTELBASE" name="HERTELBASE" class="EXT" value="<?php echo attr($HERTELBASE); ?>">
2002 <i class="fa fa-minus"></i>
2005 <input type="text" size=1 id="OSHERTEL" name="OSHERTEL" class="EXT" value="<?php echo attr($OSHERTEL); ?>">
2009 <td><div class="kb kb_center"><?php echo xlt('RH
{{right hertel measurement
}}'); ?></div></td>
2010 <td><div class="kb kb_center"><?php echo xlt('HERT
{{Hertel exophthalmometry
}}'); ?></div></td>
2011 <td><div class="kb kb_center"><?php echo xlt('LH
{{left hertel measurement
}}'); ?></div></td>
2016 <?php ($EXT_VIEW ==1) ? ($display_EXT_view = "wide_textarea") : ($display_EXT_view= "narrow_textarea");?>
2017 <?php ($display_EXT_view == "wide_textarea") ? ($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?>
2018 <div id="EXT_text_list" name="EXT_text_list" class="borderShadow <?php echo attr($display_EXT_view); ?>">
2019 <span class="top_right fa <?php echo attr($marker); ?>" name="EXT_text_view" id="EXT_text_view"></span>
2020 <table cellspacing="0" cellpadding="0">
2022 <th><?php echo xlt('Right
'); ?></th><th></th><th><?php echo xlt('Left
'); ?></th>
2025 <td><textarea name="RBROW" id="RBROW" class="right EXT"><?php echo text($RBROW); ?></textarea></td>
2026 <td><div class="ident"><?php echo xlt('Brow
'); ?></div>
2027 <div class="kb kb_left"><?php echo xlt('RB
{{right brow
}}'); ?></div>
2028 <div class="kb kb_right"><?php echo xlt('LB
{{left brow
}}'); ?></div>
2030 <td><textarea name="LBROW" id="LBROW" class="EXT"><?php echo text($LBROW); ?></textarea>
2034 <td><textarea name="RUL" id="RUL" class="right EXT"><?php echo text($RUL); ?></textarea></td>
2035 <td><div class="ident"><?php echo xlt('Upper Lids
'); ?></div>
2036 <div class="kb kb_left"><?php echo xlt('RUL
{{right upper eyelid
}}'); ?></div>
2037 <div class="kb kb_right"><?php echo xlt('LUL
{{left upper eyelid
}}'); ?></div></td>
2038 <td><textarea name="LUL" id="LUL" class="EXT"><?php echo text($LUL); ?></textarea></td>
2041 <td><textarea name="RLL" id="RLL" class="right EXT"><?php echo text($RLL); ?></textarea></td>
2042 <td><div class="ident"><?php echo xlt('Lower Lids
'); ?></div>
2043 <div class="kb kb_left"><?php echo xlt('RLL
{{right lower eyelid
}}'); ?></div>
2044 <div class="kb kb_right"><?php echo xlt('LLL
{{left lower eyelid
}}'); ?></div></td>
2045 <td><textarea name="LLL" id="LLL" class="EXT"><?php echo text($LLL); ?></textarea></td>
2048 <td><textarea name="RMCT" id="RMCT" class="right EXT"><?php echo text($RMCT); ?></textarea></td>
2049 <td><div class="ident"><?php echo xlt('Medial Canthi
'); ?></div>
2050 <div class="kb kb_left"><?php echo xlt('RMC
{{right medial canthus
}}'); ?></div>
2051 <div class="kb kb_right"><?php echo xlt('LMC
{{left medial chathus
}}'); ?></div></td>
2052 <td><textarea name="LMCT" id="LMCT" class="EXT"><?php echo text($LMCT); ?></textarea></td>
2055 <td><textarea name="RADNEXA" id="RADNEXA" class="right EXT"><?php echo text($RADNEXA); ?></textarea></td>
2056 <td><div class="ident"><?php echo xlt('Adnexa
'); ?></div>
2057 <div class="kb kb_left"><?php echo xlt('RAD
{{right adnexa
}}'); ?></div>
2058 <div class="kb kb_right"><?php echo xlt('LAD
{{left adnexa
}}'); ?></div></td>
2059 <td><textarea name="LADNEXA" id="LADNEXA" class=" EXT"><?php echo text($LADNEXA); ?></textarea></td>
2063 <div id="EXT_COMMENTS_DIV" class="QP_lengthen" >
2064 <b><?php echo xlt('Comments
'); ?>:</b><div class="kb kb_left"><?php echo xlt('ECOM
{{external comments abbreviation
}}'); ?></div>
2066 <textarea id="EXT_COMMENTS" name="EXT_COMMENTS" class=" EXT"><?php echo text($EXT_COMMENTS); ?></textarea>
2070 <div id="EXT_right" name="EXT_right" class="exam_section_right borderShadow text_clinical">
2071 <?php display_draw_section("EXT", $encounter, $pid); ?>
2072 <div id="PRIORS_EXT_left_text" name="PRIORS_EXT_left_text" class="PRIORS_class PRIORS">
2073 <i class="fa fa-spinner fa-spin"></i>
2075 <div id="QP_EXT" name="QP_EXT" class="QP_class">
2076 <input type="hidden" id="EXT_prefix" name="EXT_prefix" value="<?php echo attr($EXT_prefix); ?>">
2078 <span class="closeButton fa fa-close pull-right z100" id="BUTTON_TEXTD_EXT" name="BUTTON_TEXTD_EXT" value="1"></span>
2080 <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>
2081 <span
class="eye_button" id
="EXT_defaults" name
="EXT_defaults"><?php
echo xlt('Defaults'); ?
></span
>
2082 <span
class="eye_button" id
="EXT_prefix_no" name
="EXT_prefix_no" onclick
="$('#EXT_prefix').val('no').trigger('change');"> <?php
echo xlt('no'); ?
> </span
>
2083 <span
class="eye_button" id
="EXT_prefix_trace" name
="EXT_prefix_trace" onclick
="$('#EXT_prefix').val('trace').trigger('change');"> <?php
echo xlt('tr'); ?
> </span
>
2084 <span
class="eye_button" id
="EXT_prefix_1" name
="EXT_prefix_1" onclick
="$('#EXT_prefix').val('+1').trigger('change');"> <?php
echo xlt('+1'); ?
> </span
>
2085 <span
class="eye_button" id
="EXT_prefix_2" name
="EXT_prefix_2" onclick
="$('#EXT_prefix').val('+2').trigger('change');"> <?php
echo xlt('+2'); ?
> </span
>
2086 <span
class="eye_button" id
="EXT_prefix_3" name
="EXT_prefix_3" onclick
="$('#EXT_prefix').val('+3').trigger('change');"> <?php
echo xlt('+3'); ?
> </span
>
2087 <?php
echo $selector = priors_select("EXT", $id, $id, $pid); ?
>
2090 <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
/>
2091 <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
/>
2092 <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
/>
2093 <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
/>
2094 <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
/>
2095 <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
>
2096 <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
>
2097 <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
>
2098 <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
>
2099 <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
/>
2100 <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
/>
2101 <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
/>
2102 <span
class="eye_button" id
="EXT_prefix_deep" name
="EXT_prefix_deep" onclick
="$('#EXT_prefix').val('deep').trigger('change');"><?php
echo xlt('deep'); ?
></span
>
2105 <span
class="eye_button" id
="EXT_prefix_clear" name
="EXT_prefix_clear"
2106 title
="<?php echo xla('This will clear the data from all External Exam fields'); ?>"
2107 onclick
="$('#EXT_prefix').val('clear').trigger('change');"><?php
echo xlt('clear'); ?
></span
>
2110 <div id
="EXT_QP_block1" name
="EXT_QP_block1" class="QP_block borderShadow text_clinical" >
2113 echo $QP_ANTSEG = display_QP("EXT", $providerID); ?
>
2118 <!-- end External Exam
-->
2120 <!-- start Anterior Segment
-->
2121 <div id
="ANTSEG_1" class="clear_both">
2122 <div id
="ANTSEG_left" name
="ANTSEG_left" class="exam_section_left borderShadow">
2123 <span
class="anchor" id
="ANTSEG_anchor"></span
>
2124 <div
class="TEXT_class" id
="ANTSEG_left_text">
2125 <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
>
2126 <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
>
2127 <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
>
2128 <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
/>
2129 <div id
="ANTSEG_left_1" class="text_clinical">
2132 list($imaging,$episode) = display($pid, $encounter, "ANTSEG");
2138 <td
></td
><td
><?php
echo xlt('R{{right}}'); ?
></td
><td
><?php
echo xlt('L{{left}}'); ?
></td
>
2141 <td
class="right" title
="<?php echo xla('Gonioscopy'); ?>">
2142 <div
class="kb kb_left"><?php
echo xlt('R/LG{{right/left gonioscopy}}'); ?
></div
>
2143 <?php
echo xlt('Gonio{{Gonioscopy abbreviation}}'); ?
>
2145 <td
><input type
="text" name
="ODGONIO" id
="ODGONIO" value
="<?php echo attr($ODGONIO); ?>"></td
>
2146 <td
><input type
="text" name
="OSGONIO" id
="OSGONIO" value
="<?php echo attr($OSGONIO); ?>"></td
>
2149 <td
class="right" title
="<?php echo xla('Pachymetry: Central Corneal Thickness'); ?>">
2150 <div
class="kb kb_left"><?php
echo xlt('R/LPACH{{right/left pachymetry}}'); ?
></div
>
2151 <?php
echo xlt('Pachy{{Pachymetry}}'); ?
>
2153 <td
><input type
="text" name
="ODKTHICKNESS" id
="ODKTHICKNESS" value
="<?php echo attr($ODKTHICKNESS); ?>">
2155 <td
><input type
="text" name
="OSKTHICKNESS" id
="OSKTHICKNESS" value
="<?php echo attr($OSKTHICKNESS); ?>">
2159 <td
class="right" title
="<?php echo xla('Schirmers I (w/o anesthesia)'); ?>">
2160 <div
class="kb kb_left"><?php
echo xlt('R/LSCH1{{right/left Schirmers I (w/o anesthesia)}}'); ?
></div
>
2161 <?php
echo xlt('Schirmers I'); ?
> </td
>
2162 <td
><input type
="text" name
="ODSCHIRMER1" id
="ODSCHIRMER1" value
="<?php echo attr($ODSCHIRMER1); ?>">
2164 <td
><input type
="text" name
="OSSCHIRMER1" id
="OSSCHIRMER1" value
="<?php echo attr($OSSCHIRMER1); ?>">
2168 <td
class="right" title
="<?php echo xla('Schirmers II (w/ anesthesia)'); ?>">
2169 <div
class="kb kb_left"><?php
echo xlt('R/LSCH2{{right/left Schirmers II (w/ anesthesia)}}'); ?
></div
>
2170 <?php
echo xlt('Schirmers II'); ?
> </td
>
2171 <td
><input type
="text" name
="ODSCHIRMER2" id
="ODSCHIRMER2" value
="<?php echo attr($ODSCHIRMER2); ?>">
2173 <td
><input type
="text" name
="OSSCHIRMER2" id
="OSSCHIRMER2" value
="<?php echo attr($OSSCHIRMER2); ?>">
2177 <td
class="right" title
="<?php echo xla('Tear Break Up Time'); ?>">
2178 <div
class="kb kb_left"><?php
echo xlt('R/LTBUT{{right/left Tear Break Up Time}}'); ?
></div
>
2179 <?php
echo xlt('TBUT{{tear breakup time}}'); ?
> </td
>
2180 <td
><input type
="text" name
="ODTBUT" id
="ODTBUT" value
="<?php echo attr($ODTBUT); ?>"></td
>
2181 <td
><input type
="text" name
="OSTBUT" id
="OSTBUT" value
="<?php echo attr($OSTBUT); ?>"></td
>
2184 <td colspan
="3" rowspan
="4" id
="dil_box">
2186 <span id
="dil_listbox_title"><?php
echo xlt('Dilated with'); ?
>:</span
><br
/>
2188 //TODO: convert to list. How about a jquery multiselect box, stored in DIL_MEDS field with "|" as a delimiter? OK...
2189 //create a list of all our options for dilation Eye_Drug_Dilation
2190 //create the jquery selector. Store results in DB.
2191 //on loading page, and on READ-ONLY, need to convert DIL_MEDS to correct thing here.
2192 //We need times too...
2193 //OK. Second delimiter @ for time, within "|" delimiters
2194 //Do we know what time it is? Yes from IOPTIME code?....
2196 <table id
="dil_listbox">
2199 <input type
="checkbox" class="dil_drug" id
="CycloMydril" name
="CYCLOMYDRIL" value
="Cyclomydril" <?php
if ($CYCLOMYDRIL == 'Cyclomydril') {
2200 echo "checked='checked'";
2202 <label
for="CycloMydril" class="input-helper input-helper--checkbox dil_drug_label"><?php
echo xlt('CycloMydril'); ?
></label
>
2205 <input type
="checkbox" class="dil_drug" id
="Tropicamide" name
="TROPICAMIDE" value
="Tropicamide 2.5%" <?php
if ($TROPICAMIDE == 'Tropicamide 2.5%') {
2206 echo "checked='checked'";
2208 <label
for="Tropicamide" class="input-helper input-helper--checkbox dil_drug_label"><?php
echo xlt('Tropic 2.5%'); ?
></label
>
2213 <input type
="checkbox" class="dil_drug" id
="Neo25" name
="NEO25" value
="Neosynephrine 2.5%" <?php
if ($NEO25 =='Neosynephrine 2.5%') {
2214 echo "checked='checked'";
2216 <label
for="Neo25" class="input-helper input-helper--checkbox dil_drug_label"><?php
echo xlt('Neo 2.5%'); ?
></label
>
2219 <input type
="checkbox" class="dil_drug" id
="Neo10" name
="NEO10" value
="Neosynephrine 10%" <?php
if ($NEO10 =='Neosynephrine 10%') {
2220 echo "checked='checked'";
2222 <label
for="Neo10" class="input-helper input-helper--checkbox dil_drug_label"><?php
echo xlt('Neo 10%'); ?
></label
>
2227 <input type
="checkbox" class="dil_drug" id
="Cyclogyl" name
="CYCLOGYL" value
="Cyclopentolate 1%" <?php
if ($CYCLOGYL == 'Cyclopentolate 1%') {
2228 echo "checked='checked'";
2230 <label
for="Cyclogyl" class="input-helper input-helper--checkbox dil_drug_label"><?php
echo xlt('Cyclo 1%'); ?
></label
>
2232 <td
> <input type
="checkbox" class="dil_drug" id
="Atropine" name
="ATROPINE" value
="Atropine 1%" <?php
if ($ATROPINE == 'Atropine 1%') {
2233 echo "checked='checked'";
2235 <label
for="Atropine" class="input-helper input-helper--checkbox dil_drug_label"><?php
echo xlt('Atropine 1%'); ?
></label
>
2244 <?
php ($ANTSEG_VIEW =='1') ?
($display_ANTSEG_view = "wide_textarea") : ($display_ANTSEG_view= "narrow_textarea");?
>
2245 <?
php ($display_ANTSEG_view == "wide_textarea") ?
($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?
>
2246 <div id
="ANTSEG_text_list" name
="ANTSEG_text_list" class="borderShadow <?php echo attr($display_ANTSEG_view); ?>" >
2247 <span
class="top_right fa <?php echo attr($marker); ?>" name
="ANTSEG_text_view" id
="ANTSEG_text_view"></span
>
2250 <th
><?php
echo xlt('OD{{right eye}}'); ?
></th
><th
></th
><th
><?php
echo xlt('OS{{left eye}}'); ?
></th
></td
>
2254 <textarea name
="ODCONJ" id
="ODCONJ" class="right"><?php
echo text($ODCONJ); ?
></textarea
></td
>
2255 <td
><div
class="ident"><?php
echo xlt('Conj{{Conjunctiva}}'); ?
> / <?php
echo xlt('Sclera'); ?
></div
>
2256 <div
class="kb kb_left"><?php
echo xlt('RC{{right conjunctiva}}'); ?
></div
>
2257 <div
class="kb kb_right"><?php
echo xlt('LC{{left conjunctiva}}'); ?
></div
></td
>
2258 <td
><textarea name
="OSCONJ" id
="OSCONJ" class="ANTSEG"><?php
echo text($OSCONJ); ?
></textarea
></td
>
2261 <td
><textarea name
="ODCORNEA" id
="ODCORNEA" class="right"><?php
echo text($ODCORNEA); ?
></textarea
></td
>
2262 <td
><div
class="ident"><?php
echo xlt('Cornea'); ?
></div
>
2263 <div
class="kb kb_left"><?php
echo xlt('RK{{right cornea}}'); ?
></div
>
2264 <div
class="kb kb_right"><?php
echo xlt('LK{{left cornea}}'); ?
></div
></td
></td
>
2265 <td
><textarea name
="OSCORNEA" id
="OSCORNEA" class="ANTSEG"><?php
echo text($OSCORNEA); ?
></textarea
></td
>
2268 <td
><textarea name
="ODAC" id
="ODAC" class="right"><?php
echo text($ODAC); ?
></textarea
></td
>
2269 <td
><div
class="ident"><?php
echo xlt('A/C{{anterior chamber}}'); ?
></div
>
2270 <div
class="kb kb_left"><?php
echo xlt('RAC{{right anterior chamber}}'); ?
></div
>
2271 <div
class="kb kb_right"><?php
echo xlt('LAC{{left anterior chamber}}'); ?
></div
></td
></td
>
2272 <td
><textarea name
="OSAC" id
="OSAC" class="ANTSEG"><?php
echo text($OSAC); ?
></textarea
></td
>
2275 <td
><textarea name
="ODLENS" id
="ODLENS" class="right"><?php
echo text($ODLENS); ?
></textarea
></td
>
2276 <td
><div
class="ident"><?php
echo xlt('Lens'); ?
></div
>
2277 <div
class="kb kb_left"><?php
echo xlt('RL{{right lens}}'); ?
></div
>
2278 <div
class="kb kb_right"><?php
echo xlt('LL{{left lens}}'); ?
></div
></td
></td
>
2279 <td
><textarea name
="OSLENS" id
="OSLENS" class="ANTSEG"><?php
echo text($OSLENS); ?
></textarea
></td
>
2282 <td
><textarea name
="ODIRIS" id
="ODIRIS" class="right"><?php
echo text($ODIRIS); ?
></textarea
></td
>
2283 <td
><div
class="ident"><?php
echo xlt('Iris'); ?
></div
>
2284 <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
>
2285 <td
><textarea name
="OSIRIS" id
="OSIRIS" class="ANTSEG"><?php
echo text($OSIRIS); ?
></textarea
></td
>
2289 <div
class="QP_lengthen" id
="ANTSEG_COMMENTS_DIV">
2290 <b
><?php
echo xlt('Comments'); ?
>:</b
><div
class="kb kb_left"><?php
echo xlt('ACOM{{Anterior Segment}}'); ?
> </div
><br
/>
2291 <textarea id
="ANTSEG_COMMENTS" name
="ANTSEG_COMMENTS"><?php
echo text($ANTSEG_COMMENTS); ?
></textarea
>
2296 <div id
="ANTSEG_right" NAME
=="ANTSEG_right" class="exam_section_right borderShadow text_clinical ">
2297 <div id
="PRIORS_ANTSEG_left_text" name
="PRIORS_ANTSEG_left_text" class="PRIORS_class PRIORS">
2298 <i
class="fa fa-spinner fa-spin"></i
>
2300 <?php
display_draw_section("ANTSEG", $encounter, $pid); ?
>
2301 <div id
="QP_ANTSEG" name
="QP_ANTSEG" class="QP_class">
2302 <input type
="hidden" id
="ANTSEG_prefix" name
="ANTSEG_prefix" value
="">
2304 <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
>
2305 <span
class="eye_button" id
="ANTSEG_defaults" name
="ANTSEG_defaults"><?php
echo xlt('Defaults'); ?
></span
>
2306 <span
class="eye_button" id
="ANTSEG_prefix_no" name
="ANTSEG_prefix_no" onclick
="$('#ANTSEG_prefix').val('no').trigger('change');"> <?php
echo xlt('no'); ?
> </span
>
2307 <span
class="eye_button" id
="ANTSEG_prefix_trace" name
="ANTSEG_prefix_trace" onclick
="$('#ANTSEG_prefix').val('trace').trigger('change');"> <?php
echo xlt('tr'); ?
> </span
>
2308 <span
class="eye_button" id
="ANTSEG_prefix_1" name
="ANTSEG_prefix_1" onclick
="$('#ANTSEG_prefix').val('+1').trigger('change');"> <?php
echo xlt('+1'); ?
> </span
>
2309 <span
class="eye_button" id
="ANTSEG_prefix_2" name
="ANTSEG_prefix_2" onclick
="$('#ANTSEG_prefix').val('+2').trigger('change');"> <?php
echo xlt('+2'); ?
> </span
>
2310 <span
class="eye_button" id
="ANTSEG_prefix_3" name
="ANTSEG_prefix_3" onclick
="$('#ANTSEG_prefix').val('+3').trigger('change');"> <?php
echo xlt('+3'); ?
> </span
>
2311 <?php
echo $selector = priors_select("ANTSEG", $id, $id, $pid); ?
>
2314 <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
/>
2315 <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
/>
2316 <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
/>
2317 <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
/>
2318 <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
/>
2319 <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
>
2320 <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
>
2321 <span
class="eye_button" id
="ANTSEG_prefix_superior" name
="ANTSEG_prefix_superior" onclick
="$('#ANTSEG_prefix').val('superior').trigger('change');"><?php
echo xlt('sup{{superior}}'); ?
></span
>
2322 <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
>
2323 <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
/>
2324 <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
/>
2325 <span
class="eye_button" id
="ANTSEG_prefix_posterior" name
="ANTSEG_prefix_posterior" onclick
="$('#ANTSEG_prefix').val('posterior').trigger('change');"><?php
echo xlt('post{{posterior}}'); ?
></span
> <br
/>
2326 <span
class="eye_button" id
="ANTSEG_prefix_deep" name
="ANTSEG_prefix_deep" onclick
="$('#ANTSEG_prefix').val('deep').trigger('change');"><?php
echo xlt('deep'); ?
></span
>
2329 <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
>
2332 <div
class="QP_block borderShadow text_clinical " >
2333 <?php
echo $QP_ANTSEG = display_QP("ANTSEG", $providerID); ?
>
2335 <span
class="closeButton fa fa-close pull-right z100" id
="BUTTON_TEXTD_ANTSEG" name
="BUTTON_TEXTD_ANTSEG"></span
>
2339 <!-- end Ant Seg
-->
2341 <!-- start Retina
-->
2342 <div id
="RETINA_1" class="clear_both" >
2343 <div id
="RETINA_left" name
="RETINA_left" class="exam_section_left borderShadow">
2344 <span
class="anchor" id
="RETINA_anchor"></span
>
2345 <div
class="TEXT_class" id
="RETINA_left_text" name
="RETINA_left_text">
2346 <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
>
2347 <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
>
2348 <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
>
2349 <b
><?php
echo xlt('Retina'); ?
>:</b
><div
class="kb kb_left" title
="<?php echo xla("Retina
Default Values
"); ?>"><?php
echo text('DRET'); ?
></div
>
2350 <input type
="checkbox" id
="DIL_RISKS" name
="DIL_RISKS" value
="on" <?php
if ($DIL_RISKS =='on') {
2351 echo "checked='checked'";
2353 <label
for="DIL_RISKS" class="input-helper input-helper--checkbox"><?php
echo xlt('Dilation orders/risks reviewed'); ?
></label
>
2355 <div id
="RETINA_left_1" class="text_clinical">
2358 list($imaging,$episode) = display($pid, $encounter, "POSTSEG");
2366 <td
> <br
/><?php
echo xlt('OD{{right eye}}'); ?
></td
><td
> <br
/><?php
echo xlt('OS{{left eye}}'); ?
></td
>
2370 <span id
="CMT" name
="CMT" title
="<?php echo xla('Central Macular Thickness'); ?>"><?php
echo xlt('CMT{{Central Macular Thickness}}'); ?
>:</span
>
2373 <input name
="ODCMT" class="RETINA" size
="4" id
="ODCMT" value
="<?php echo attr($ODCMT); ?>">
2374 <div
class="kb kb_center"><?php
echo xlt('RCMT{{right Central Macular Thickness}}'); ?
></div
>
2377 <input name
="OSCMT" class="RETINA" size
="4" id
="OSCMT" value
="<?php echo attr($OSCMT); ?>">
2378 <div
class="kb kb_center"><?php
echo xlt('LCMT{{left Central Macular Thickness}}'); ?
></div
>
2385 list($imaging,$episode) = display($pid, $encounter, "NEURO");
2391 <?
php ($RETINA_VIEW ==1) ?
($display_RETINA_view = "wide_textarea") : ($display_RETINA_view= "narrow_textarea");?
>
2392 <?
php ($display_RETINA_view == "wide_textarea") ?
($marker ="fa-minus-square-o") : ($marker ="fa-plus-square-o");?
>
2394 <div id
="RETINA_text_list" name
="RETINA_text_list" class="borderShadow <?php echo attr($display_RETINA_view); ?>">
2395 <span
class="top_right fa <?php echo attr($marker); ?>" name
="RETINA_text_view" id
="RETINA_text_view"></span
>
2396 <table cellspacing
="0" cellpadding
="0">
2398 <th
><?php
echo xlt('OD{{right eye}}'); ?
></th
><th
></th
><th
><?php
echo xlt('OS{{left eye}}'); ?
></th
></td
>
2401 <td
><textarea name
="ODDISC" id
="ODDISC" class="RETINA right"><?php
echo text($ODDISC); ?
></textarea
></td
>
2403 <div
class="ident"><?php
echo xlt('Disc'); ?
></div
>
2404 <div
class="kb kb_left"><?php
echo xlt('RD{{right disc}}'); ?
></div
>
2405 <div
class="kb kb_right"><?php
echo xlt('LD{{left disc}}'); ?
></div
></td
>
2406 <td
><textarea name
="OSDISC" id
="OSDISC" class="RETINA"><?php
echo text($OSDISC); ?
></textarea
></td
>
2409 <td
><textarea name
="ODCUP" id
="ODCUP" class="RETINA right"><?php
echo text($ODCUP); ?
></textarea
></td
>
2411 <div
class="ident"><?php
echo xlt('Cup'); ?
></div
>
2412 <div
class="kb kb_left"><?php
echo xlt('RCUP{{right cup}}'); ?
></div
>
2413 <div
class="kb kb_right"><?php
echo xlt('LCUP{{left cup}}'); ?
></div
></td
>
2414 <td
><textarea name
="OSCUP" id
="OSCUP" class="RETINA"><?php
echo text($OSCUP); ?
></textarea
></td
>
2417 <td
><textarea name
="ODMACULA" id
="ODMACULA" class="RETINA right"><?php
echo text($ODMACULA); ?
></textarea
></td
>
2419 <div
class="ident"><?php
echo xlt('Macula'); ?
></div
>
2420 <div
class="kb kb_left"><?php
echo xlt('RMAC{{right macula}}'); ?
></div
>
2421 <div
class="kb kb_right"><?php
echo xlt('LMAC{{left macula}}'); ?
></div
></td
>
2422 <td
><textarea name
="OSMACULA" id
="OSMACULA" class="RETINA"><?php
echo text($OSMACULA); ?
></textarea
></td
>
2425 <td
><textarea name
="ODVESSELS" id
="ODVESSELS" class="RETINA right"><?php
echo text($ODVESSELS); ?
></textarea
></td
>
2427 <div
class="ident"><?php
echo xlt('Vessels'); ?
></div
>
2428 <div
class="kb kb_left"><?php
echo xlt('RV{{right vessels}}'); ?
></div
>
2429 <div
class="kb kb_right"><?php
echo xlt('LV{{left vessels}}'); ?
></div
></td
>
2430 <td
><textarea name
="OSVESSELS" id
="OSVESSELS" class="RETINA"><?php
echo text($OSVESSELS); ?
></textarea
></td
>
2433 <td
><textarea name
="ODPERIPH" id
="ODPERIPH" class="RETINA right"><?php
echo text($ODPERIPH); ?
></textarea
></td
>
2435 <div
class="ident"><?php
echo xlt('Periph{{peripheral retina}}'); ?
></div
>
2436 <div
class="kb kb_left"><?php
echo xlt('RP{{right peripheral retina}}'); ?
></div
>
2437 <div
class="kb kb_right"><?php
echo xlt('LP{{left peripheral retina}}'); ?
></div
></td
>
2438 <td
><textarea name
="OSPERIPH" id
="OSPERIPH" class="RETINA"><?php
echo text($OSPERIPH); ?
></textarea
></td
>
2443 <div
class="QP_lengthen" id
="RETINA_COMMENTS_DIV">
2444 <b
><?php
echo xlt('Comments'); ?
>:</b
><div
class="kb kb_left"><?php
echo xlt('RCOM{{right comments}}'); ?
></div
><br
/>
2445 <textarea id
="RETINA_COMMENTS" class="RETINA" name
="RETINA_COMMENTS"><?php
echo text($RETINA_COMMENTS); ?
></textarea
>
2450 <div id
="RETINA_right" class="exam_section_right borderShadow text_clinical">
2451 <div id
="PRIORS_RETINA_left_text"
2452 name
="PRIORS_RETINA_left_text"
2453 class="PRIORS_class PRIORS"><i
class="fa fa-spinner fa-spin"></i
>
2455 <?php
display_draw_section("RETINA", $encounter, $pid); ?
>
2456 <div id
="QP_RETINA" name
="QP_RETINA" class="QP_class">
2457 <input type
="hidden" id
="RETINA_prefix" name
="RETINA_prefix" value
="" />
2459 <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
>
2460 <span
class="eye_button" id
="RETINA_defaults" name
="RETINA_defaults"><?php
echo xlt('Defaults'); ?
></span
>
2461 <span
class="eye_button" id
="RETINA_prefix_no" name
="RETINA_prefix_no" onclick
="$('#RETINA_prefix').val('no').trigger('change');"> <?php
echo xlt('no'); ?
> </span
>
2462 <span
class="eye_button" id
="RETINA_prefix_trace" name
="RETINA_prefix_trace" onclick
="$('#RETINA_prefix').val('trace').trigger('change');"> <?php
echo xlt('tr'); ?
> </span
>
2463 <span
class="eye_button" id
="RETINA_prefix_1" name
="RETINA_prefix_1" onclick
="$('#RETINA_prefix').val('+1').trigger('change');"> <?php
echo xlt('+1'); ?
> </span
>
2464 <span
class="eye_button" id
="RETINA_prefix_2" name
="RETINA_prefix_2" onclick
="$('#RETINA_prefix').val('+2').trigger('change');"> <?php
echo xlt('+2'); ?
> </span
>
2465 <span
class="eye_button" id
="RETINA_prefix_3" name
="RETINA_prefix_3" onclick
="$('#RETINA_prefix').val('+3').trigger('change');"> <?php
echo xlt('+3'); ?
> </span
>
2466 <?php
echo $selector = priors_select("RETINA", $id, $id, $pid); ?
>
2469 <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
/>
2470 <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
/>
2471 <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
/>
2472 <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
/>
2473 <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
/>
2474 <span
class="eye_button" id
="RETINA_prefix_nasal" name
="RETINA_prefix_nasal" onclick
="$('#RETINA_prefix').val('nasal').trigger('change');"><?php
echo xlt('nasal'); ?
></span
>
2475 <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
>
2476 <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
>
2477 <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
>
2478 <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
/>
2479 <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
/>
2480 <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
/>
2481 <span
class="eye_button" id
="RETINA_prefix_deep" name
="RETINA_prefix_deep" onclick
="$('#RETINA_prefix').val('deep').trigger('change');"><?php
echo xlt('deep'); ?
></span
>
2484 <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
>
2486 <div
class="QP_block borderShadow text_clinical" >
2487 <?php
echo $QP_RETINA = display_QP("RETINA", $providerID); ?
>
2489 <span
class="closeButton fa fa-close pull-right z100" id
="BUTTON_TEXTD_RETINA" name
="BUTTON_TEXTD_RETINA" value
="1"></span
>
2495 <!-- start Neuro
-->
2496 <div id
="NEURO_1" class="clear_both">
2497 <div id
="NEURO_left" class="exam_section_left borderShadow">
2498 <span
class="anchor" id
="NEURO_anchor"></span
>
2499 <div
class="TEXT_class" id
="NEURO_left_text" name
="NEURO_left_text">
2500 <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
>
2501 <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
>
2502 <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
>
2503 <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
/>
2504 <div id
="NEURO_left_1" class="text_clinical">
2505 <div id
="NEURO_color" class="borderShadow">
2508 <td
></td
><td style
="text-align:center;"><?php
echo xlt('OD{{right eye}}'); ?
></td
>
2509 <td style
="text-align:center;"><?php
echo xlt('OS{{left eye}}'); ?
></td
>
2512 <td
class="right"><?php
echo xlt('Color'); ?
>: </td
>
2513 <td
><input type
="text" name
="ODCOLOR" id
="ODCOLOR" value
="<?php if ($ODCOLOR) {
2514 echo text($ODCOLOR);
2518 <td
><input type
="text" name
="OSCOLOR" id
="OSCOLOR" value
="<?php if ($OSCOLOR) {
2519 echo text($OSCOLOR);
2523 <td style
="text-align:bottom;"><!-- //Normals may be 11/11 or 15/15. Need to make a preference here for the user.
2524 //or just take the normal they use and incorporate that ongoing? -->
2525  
;<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
>
2530 <span title
="Variation in red color discrimination between the eyes (eg. OD=100, OS=75)"><?php
echo xlt('Red Desat{{red desaturation}}'); ?
>:</span
>
2533 <input type
="text" Xsize
="6" name
="ODREDDESAT" id
="ODREDDESAT" value
="<?php echo attr($ODREDDESAT); ?>"/>
2536 <input type
="text" Xsize
="6" name
="OSREDDESAT" id
="OSREDDESAT" value
="<?php echo attr($OSREDDESAT); ?>"/>
2539  
; <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
>
2543 <td
class="right" style
="white-space: nowrap;">
2544 <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
>
2547 <input type
="text" name
="ODCOINS" id
="ODCOINS" value
="<?php echo attr($ODCOINS); ?>"/>
2550 <input type
="text" name
="OSCOINS" id
="OSCOINS" value
="<?php echo attr($OSCOINS); ?>"/>
2553  
;<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
>
2558 <div
class="borderShadow" id
="NEURO_11">
2559 <i
class="fa fa-th fa-fw closeButton2" id
="Close_ACTMAIN" name
="Close_ACTMAIN"></i
>
2563 <span id
="ACTTRIGGER" name
="ACTTRIGGER"><?php
echo xlt('Alternate Cover Test'); ?
>:</span
>
2566 <span id
="ACTNORMAL_CHECK" name
="ACTNORMAL_CHECK">
2567 <label
for="ACT" class="input-helper input-helper--checkbox"><?php
echo xlt('Ortho{{orthophoric}}'); ?
></label
>
2568 <input type
="checkbox" name
="ACT" id
="ACT" <?php
if ($ACT =='on' or $ACT=='1') {
2569 echo "checked='checked'";
2574 <td colspan
="2"> <br
/>
2575 <div id
="ACTMAIN" name
="ACTMAIN" class="nodisplay ACT_TEXT">
2576 <table id
="ACTTABLE">
2578 <td id
="ACT_tab_SCDIST" name
="ACT_tab_SCDIST" class="ACT_selected"> <?php
echo xlt('scDist{{without correction distance}}'); ?
> </td
>
2579 <td id
="ACT_tab_CCDIST" name
="ACT_tab_CCDIST" class="ACT_deselected"> <?php
echo xlt('ccDist{{with correction distance}}'); ?
> </td
>
2580 <td id
="ACT_tab_SCNEAR" name
="ACT_tab_SCNEAR" class="ACT_deselected"> <?php
echo xlt('scNear{{without correction near}}'); ?
> </td
>
2581 <td id
="ACT_tab_CCNEAR" name
="ACT_tab_CCNEAR" class="ACT_deselected"> <?php
echo xlt('ccNear{{with correction at near}}'); ?
> </td
>
2584 <td colspan
="4"><div id
="ACT_SCDIST" name
="ACT_SCDIST" class="ACT_box">
2588 <td
><?php
echo xlt('R{{right}}'); ?
></td
>
2589 <td style
="border-right:1pt solid black;border-bottom:1pt solid black;">
2590 <textarea id
="ACT1SCDIST" name
="ACT1SCDIST" class="ACT"><?php
echo text($ACT1SCDIST); ?
></textarea
></td
>
2591 <td style
="border:1pt solid black;border-top:0pt;">
2592 <textarea id
="ACT2SCDIST" name
="ACT2SCDIST"class="ACT"><?php
echo text($ACT2SCDIST); ?
></textarea
></td
>
2593 <td style
="border-left:1pt solid black;border-bottom:1pt solid black;">
2594 <textarea id
="ACT3SCDIST" name
="ACT3SCDIST" class="ACT"><?php
echo text($ACT3SCDIST); ?
></textarea
></td
>
2595 <td
><?php
echo xlt('L{{left}}'); ?
></td
>
2598 <td style
="text-align:middle;"><i
class="fa fa-reply rotate-left"></i
></td
>
2599 <td style
="border:1pt solid black;border-left:0pt;">
2600 <textarea id
="ACT4SCDIST" name
="ACT4SCDIST" class="ACT"><?php
echo text($ACT4SCDIST); ?
></textarea
></td
>
2601 <td style
="border:1pt solid black;">
2602 <textarea id
="ACT5SCDIST" class="neurosens2 ACT" name
="ACT5SCDIST"><?php
echo text($ACT5SCDIST); ?
></textarea
></td
>
2603 <td style
="border:1pt solid black;border-right:0pt;">
2604 <textarea id
="ACT6SCDIST" name
="ACT6SCDIST" class="ACT"><?php
echo text($ACT6SCDIST); ?
></textarea
></td
>
2605 <td
><i
class="fa fa-share rotate-right"></i
></td
>
2608 <td style
="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;">
2609 <textarea id
="ACT10SCDIST" name
="ACT10SCDIST" class="ACT"><?php
echo text($ACT10SCDIST); ?
></textarea
></td
>
2610 <td style
="border-right:1pt solid black;border-top:1pt solid black;text-align:right;">
2611 <textarea id
="ACT7SCDIST" name
="ACT7SCDIST" class="ACT"><?php
echo text($ACT7SCDIST); ?
></textarea
></td
>
2612 <td style
="border:1pt solid black;border-bottom:0pt;text-align:center;">
2613 <textarea id
="ACT8SCDIST" name
="ACT8SCDIST" class="ACT"><?php
echo text($ACT8SCDIST); ?
></textarea
></td
>
2614 <td style
="border-left:1pt solid black;border-top:1pt solid black;text-align:left;">
2615 <textarea id
="ACT9SCDIST" name
="ACT9SCDIST" class="ACT"><?php
echo text($ACT9SCDIST); ?
></textarea
></td
>
2616 <td style
="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;">
2617 <textarea id
="ACT11SCDIST" name
="ACT11SCDIST" class="ACT"><?php
echo text($ACT11SCDIST); ?
></textarea
>
2623 <div id
="ACT_CCDIST" name
="ACT_CCDIST" class="nodisplay ACT_box">
2627 <td style
="text-align:center;"><?php
echo xlt('R{{right}}'); ?
></td
>
2628 <td style
="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;">
2629 <textarea id
="ACT1CCDIST" name
="ACT1CCDIST" class="ACT"><?php
echo text($ACT1CCDIST); ?
></textarea
></td
>
2630 <td style
="border:1pt solid black;border-top:0pt;text-align:center;">
2631 <textarea id
="ACT2CCDIST" name
="ACT2CCDIST"class="ACT"><?php
echo text($ACT2CCDIST); ?
></textarea
></td
>
2632 <td style
="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;">
2633 <textarea id
="ACT3CCDIST" name
="ACT3CCDIST" class="ACT"><?php
echo text($ACT3CCDIST); ?
></textarea
></td
>
2634 <td style
="text-align:center;"><?php
echo xlt('L{{left}}'); ?
></td
>
2637 <td style
="text-align:middle;"><i
class="fa fa-reply rotate-left"></i
></td
>
2638 <td style
="border:1pt solid black;border-left:0pt;text-align:right;">
2639 <textarea id
="ACT4CCDIST" name
="ACT4CCDIST" class="ACT"><?php
echo text($ACT4CCDIST); ?
></textarea
></td
>
2640 <td style
="border:1pt solid black;text-align:center;">
2641 <textarea id
="ACT5CCDIST" name
="ACT5CCDIST" class="neurosens2 ACT"><?php
echo text($ACT5CCDIST); ?
></textarea
></td
>
2642 <td style
="border:1pt solid black;border-right:0pt;text-align:left;">
2643 <textarea id
="ACT6CCDIST" name
="ACT6CCDIST" class="ACT"><?php
echo text($ACT6CCDIST); ?
></textarea
></td
>
2644 <td
><i
class="fa fa-share rotate-right"></i
></td
>
2647 <td style
="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;">
2648 <textarea id
="ACT10CCDIST" name
="ACT10CCDIST" class="ACT"><?php
echo text($ACT10CCDIST); ?
></textarea
></td
>
2649 <td style
="border-right:1pt solid black;border-top:1pt solid black;text-align:right;">
2650 <textarea id
="ACT7CCDIST" name
="ACT7CCDIST" class="ACT"><?php
echo text($ACT7CCDIST); ?
></textarea
></td
>
2651 <td style
="border:1pt solid black;border-bottom:0pt;text-align:center;">
2652 <textarea id
="ACT8CCDIST" name
="ACT8CCDIST" class="ACT"><?php
echo text($ACT8CCDIST); ?
></textarea
></td
>
2653 <td style
="border-left:1pt solid black;border-top:1pt solid black;text-align:left;">
2654 <textarea id
="ACT9CCDIST" name
="ACT9CCDIST" class="ACT"><?php
echo text($ACT9CCDIST); ?
></textarea
></td
>
2655 <td style
="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;">
2656 <textarea id
="ACT11CCDIST" name
="ACT11CCDIST" class="ACT"><?php
echo text($ACT11CCDIST); ?
></textarea
>
2662 <div id
="ACT_SCNEAR" name
="ACT_SCNEAR" class="nodisplay ACT_box">
2666 <td style
="text-align:center;"><?php
echo xlt('R{{right}}'); ?
></td
>
2667 <td style
="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;">
2668 <textarea id
="ACT1SCNEAR" name
="ACT1SCNEAR" class="ACT"><?php
echo text($ACT1SCNEAR); ?
></textarea
></td
>
2669 <td style
="border:1pt solid black;border-top:0pt;text-align:center;">
2670 <textarea id
="ACT2SCNEAR" name
="ACT2SCNEAR"class="ACT"><?php
echo text($ACT2SCNEAR); ?
></textarea
></td
>
2671 <td style
="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;">
2672 <textarea id
="ACT3SCNEAR" name
="ACT3SCNEAR" class="ACT"><?php
echo text($ACT3SCNEAR); ?
></textarea
></td
>
2673 <td style
="text-align:center;"><?php
echo xlt('L{{left}}'); ?
></td
>
2676 <td style
="text-align:middle;"><i
class="fa fa-reply rotate-left"></i
></td
>
2677 <td style
="border:1pt solid black;border-left:0pt;text-align:right;">
2678 <textarea id
="ACT4SCNEAR" name
="ACT4SCNEAR" class="ACT"><?php
echo text($ACT4SCNEAR); ?
></textarea
></td
>
2679 <td style
="border:1pt solid black;text-align:center;">
2680 <textarea id
="ACT5SCNEAR" name
="ACT5SCNEAR" class="neurosens2 ACT"><?php
echo text($ACT5SCNEAR); ?
></textarea
></td
>
2681 <td style
="border:1pt solid black;border-right:0pt;text-align:left;">
2682 <textarea id
="ACT6SCNEAR" name
="ACT6SCNEAR" class="ACT"><?php
echo text($ACT6SCNEAR); ?
></textarea
></td
>
2683 <td
><i
class="fa fa-share rotate-right"></i
></td
>
2686 <td style
="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;">
2687 <textarea id
="ACT10SCNEAR" name
="ACT10SCNEAR" class="ACT"><?php
echo text($ACT10SCNEAR); ?
></textarea
></td
>
2688 <td style
="border-right:1pt solid black;border-top:1pt solid black;text-align:right;">
2689 <textarea id
="ACT7SCNEAR" name
="ACT7SCNEAR" class="ACT"><?php
echo text($ACT7SCNEAR); ?
></textarea
></td
>
2690 <td style
="border:1pt solid black;border-bottom:0pt;text-align:center;">
2691 <textarea id
="ACT8SCNEAR" name
="ACT8SCNEAR" class="ACT"><?php
echo text($ACT8SCNEAR); ?
></textarea
></td
>
2692 <td style
="border-left:1pt solid black;border-top:1pt solid black;text-align:left;">
2693 <textarea id
="ACT9SCNEAR" name
="ACT9SCNEAR" class="ACT"><?php
echo text($ACT9SCNEAR); ?
></textarea
></td
>
2694 <td style
="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;">
2695 <textarea id
="ACT11SCNEAR" name
="ACT11SCNEAR" class="ACT"><?php
echo text($ACT11SCNEAR); ?
></textarea
>
2701 <div id
="ACT_CCNEAR" name
="ACT_CCNEAR" class="nodisplay ACT_box">
2705 <td style
="text-align:center;"><?php
echo xlt('R{{right}}'); ?
></td
>
2706 <td style
="border-right:1pt solid black;border-bottom:1pt solid black;text-align:right;">
2707 <textarea id
="ACT1CCNEAR" name
="ACT1CCNEAR" class="ACT"><?php
echo text($ACT1CCNEAR); ?
></textarea
></td
>
2708 <td style
="border:1pt solid black;border-top:0pt;text-align:center;">
2709 <textarea id
="ACT2CCNEAR" name
="ACT2CCNEAR"class="ACT"><?php
echo text($ACT2CCNEAR); ?
></textarea
></td
>
2710 <td style
="border-left:1pt solid black;border-bottom:1pt solid black;text-align:left;">
2711 <textarea id
="ACT3CCNEAR" name
="ACT3CCNEAR" class="ACT"><?php
echo text($ACT3CCNEAR); ?
></textarea
></td
>
2712 <td style
="text-align:center;"><?php
echo xlt('L{{left}}'); ?
></td
>
2715 <td style
="text-align:middle;"><i
class="fa fa-reply rotate-left"></i
></td
>
2716 <td style
="border:1pt solid black;border-left:0pt;text-align:right;">
2717 <textarea id
="ACT4CCNEAR" name
="ACT4CCNEAR" class="ACT"><?php
echo text($ACT4CCNEAR); ?
></textarea
></td
>
2718 <td style
="border:1pt solid black;text-align:center;">
2719 <textarea id
="ACT5CCNEAR" name
="ACT5CCNEAR" class="neurosens2 ACT"><?php
echo text($ACT5CCNEAR); ?
></textarea
></td
>
2720 <td style
="border:1pt solid black;border-right:0pt;text-align:left;">
2721 <textarea id
="ACT6CCNEAR" name
="ACT6CCNEAR" class="ACT"><?php
echo text($ACT6CCNEAR); ?
></textarea
></td
><td
><i
class="fa fa-share rotate-right"></i
></td
>
2724 <td style
="border:0; border-top:2pt solid black;border-right:2pt solid black;text-align:right;">
2725 <textarea id
="ACT10CCNEAR" name
="ACT10CCNEAR" class="ACT"><?php
echo text($ACT10CCNEAR); ?
></textarea
></td
>
2726 <td style
="border-right:1pt solid black;border-top:1pt solid black;text-align:right;">
2727 <textarea id
="ACT7CCNEAR" name
="ACT7CCNEAR" class="ACT"><?php
echo text($ACT7CCNEAR); ?
></textarea
></td
>
2728 <td style
="border:1pt solid black;border-bottom:0pt;text-align:center;">
2729 <textarea id
="ACT8CCNEAR" name
="ACT8CCNEAR" class="ACT"><?php
echo text($ACT8CCNEAR); ?
></textarea
></td
>
2730 <td style
="border-left:1pt solid black;border-top:1pt solid black;text-align:left;">
2731 <textarea id
="ACT9CCNEAR" name
="ACT9CCNEAR" class="ACT"><?php
echo text($ACT9CCNEAR); ?
></textarea
></td
>
2732 <td style
="border:0; border-top:2pt solid black;border-left:2pt solid black;text-align:left;vertical-align:middle;">
2733 <textarea id
="ACT11CCNEAR" name
="ACT11CCNEAR" class="ACT"><?php
echo text($ACT11CCNEAR); ?
></textarea
>
2747 <div id
="NPCNPA" name
="NPCNPA">
2748 <table style
="position:relative;float:left;text-align:center;margin: 4 2;width:100%;font-size:1.0em;padding:4px;">
2749 <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
>
2751 <td
class="right"><span title
="<?php xla('Near Point of Accomodation'); ?>"><?php
echo xlt('NPA{{near point of accomodation}}'); ?
>:</span
></td
>
2752 <td
><input type
="text" id
="ODNPA" style
="width:70%;" class="neurosens2" name
="ODNPA" value
="<?php echo attr($ODNPA); ?>"></td
>
2753 <td
><input type
="text" id
="OSNPA" style
="width:70%;" class="neurosens2" name
="OSNPA" value
="<?php echo attr($OSNPA); ?>"></td
>
2756 <td
class="right"><span title
="<?php xla('Near Point of Convergence'); ?>"><?php
echo xlt('NPC{{near point of convergence}}'); ?
>:</span
></td
>
2757 <td colspan
="2" ><input type
="text" style
="width:85%;" class="neurosens2" id
="NPC" name
="NPC" value
="<?php echo attr($NPC); ?>">
2762 <?php
echo xlt('Stereopsis'); ?
>:
2765 <input type
="text" style
="width:85%;" class="neurosens" name
="STEREOPSIS" id
="STEREOPSIS" value
="<?php echo attr($STEREOPSIS); ?>">
2768 <tr
><td colspan
="3" style
="font-weight:bold;"><br
/><u
><?php
echo xlt('Amplitudes'); ?
></u
><br
/>
2770 <tr
><td
></td
><td
><?php
echo xlt('Distance'); ?
></td
><td
><?php
echo xlt('Near'); ?
></td
></tr
>
2772 <td style
="text-align:right;"><?php
echo xlt('Divergence'); ?
>: </td
>
2773 <td
><input type
="text" id
="DACCDIST" class="neurosens2" name
="DACCDIST" value
="<?php echo attr($DACCDIST); ?>"></td
>
2774 <td
><input type
="text" id
="DACCNEAR" class="neurosens2" name
="DACCNEAR" value
="<?php echo attr($DACCNEAR); ?>"></td
></tr
>
2776 <td style
="text-align:right;"><?php
echo xlt('Convergence'); ?
>: </td
>
2777 <td
><input type
="text" id
="CACCDIST" class="neurosens2" name
="CACCDIST" value
="<?php echo attr($CACCDIST); ?>"></td
>
2778 <td
><input type
="text" id
="CACCNEAR" class="neurosens2" name
="CACCNEAR" value
="<?php echo attr($CACCNEAR); ?>"></td
></tr
>
2782 <?php
echo xlt('Vertical Fusional'); ?
>:
2785 <input type
="text" style
="width:90%;" class="neurosens2" name
="VERTFUSAMPS" id
="VERTFUSAMPS" value
="<?php echo attr($VERTFUSAMPS); ?>">
2793 <div id
="NEURO_MOTILITY" class="text_clinical borderShadow">
2796 <td
class="left"><?php
echo xlt('Motility'); ?
>:</td
>
2798 <label
for="MOTILITYNORMAL" class="input-helper input-helper--checkbox"><?php
echo xlt('Normal'); ?
></label
>
2799 <input id
="MOTILITYNORMAL" name
="MOTILITYNORMAL" type
="checkbox" <?php
if ($MOTILITYNORMAL =='on') {
2800 echo "checked='checked'";
2805 <td
class="left">OD
</td
><td
>OS
</td
>
2809 <input type
="hidden" name
="MOTILITY_RS" id
="MOTILITY_RS" value
="<?php echo attr($MOTILITY_RS); ?>">
2810 <input type
="hidden" name
="MOTILITY_RI" id
="MOTILITY_RI" value
="<?php echo attr($MOTILITY_RI); ?>">
2811 <input type
="hidden" name
="MOTILITY_RR" id
="MOTILITY_RR" value
="<?php echo attr($MOTILITY_RR); ?>">
2812 <input type
="hidden" name
="MOTILITY_RL" id
="MOTILITY_RL" value
="<?php echo attr($MOTILITY_RL); ?>">
2813 <input type
="hidden" name
="MOTILITY_LS" id
="MOTILITY_LS" value
="<?php echo attr($MOTILITY_LS); ?>">
2814 <input type
="hidden" name
="MOTILITY_LI" id
="MOTILITY_LI" value
="<?php echo attr($MOTILITY_LI); ?>">
2815 <input type
="hidden" name
="MOTILITY_LR" id
="MOTILITY_LR" value
="<?php echo attr($MOTILITY_LR); ?>">
2816 <input type
="hidden" name
="MOTILITY_LL" id
="MOTILITY_LL" value
="<?php echo attr($MOTILITY_LL); ?>">
2818 <input type
="hidden" name
="MOTILITY_RRSO" id
="MOTILITY_RRSO" value
="<?php echo attr($MOTILITY_RRSO); ?>">
2819 <input type
="hidden" name
="MOTILITY_RRIO" id
="MOTILITY_RRIO" value
="<?php echo attr($MOTILITY_RLIO); ?>">
2820 <input type
="hidden" name
="MOTILITY_RLSO" id
="MOTILITY_RLSO" value
="<?php echo attr($MOTILITY_RLSO); ?>">
2821 <input type
="hidden" name
="MOTILITY_RLIO" id
="MOTILITY_RLIO" value
="<?php echo attr($MOTILITY_RLIO); ?>">
2823 <input type
="hidden" name
="MOTILITY_LRSO" id
="MOTILITY_LRSO" value
="<?php echo attr($MOTILITY_LRSO); ?>">
2824 <input type
="hidden" name
="MOTILITY_LRIO" id
="MOTILITY_LRIO" value
="<?php echo attr($MOTILITY_LLIO); ?>">
2825 <input type
="hidden" name
="MOTILITY_LLSO" id
="MOTILITY_LLSO" value
="<?php echo attr($MOTILITY_LLSO); ?>">
2826 <input type
="hidden" name
="MOTILITY_LLIO" id
="MOTILITY_LLIO" value
="<?php echo attr($MOTILITY_LLIO); ?>">
2828 <div
class="divTable">
2829 <div
class="divRow">
2830 <div
class="divCell"> 
;</div
>
2832 <div
class="divRow">
2833 <div
class="divCell" name
="MOTILITY_RRSO_4" id
="MOTILITY_RRSO_4"> 
;</div
>
2834 <div
class="divCell" name
="MOTILITY_RRSO_4_2" id
="MOTILITY_RRSO_4_2"> 
;</div
>
2835 <div
class="divCell" name
="MOTILITY_RRSO_3_2" id
="MOTILITY_RRSO_3_2"> 
;</div
>
2836 <div
class="divCell"> 
;</div
>
2837 <div
class="divCell" name
="MOTILITY_RS_4_3" id
="MOTILITY_RS_4_3"> 
;</div
>
2838 <div
class="divCell" name
="MOTILITY_RS_4_1" id
="MOTILITY_RS_4_1"> 
;</div
>
2839 <div
class="divCell" name
="MOTILITY_RS_4" id
="MOTILITY_RS_4" value
="<?php echo attr($MOTILITY_RS); ?>"> 
;</div
>
2840 <div
class="divCell" name
="MOTILITY_RS_4_2" id
="MOTILITY_RS_4_2"> 
;</div
>
2841 <div
class="divCell" name
="MOTILITY_RS_4_4" id
="MOTILITY_RS_4_4"> 
;</div
>
2842 <div
class="divCell"> 
;</div
>
2843 <div
class="divCell" name
="MOTILITY_RLSO_3_1" id
="MOTILITY_RLSO_3_1"> 
;</div
>
2844 <div
class="divCell" name
="MOTILITY_RLSO_4_1" id
="MOTILITY_RLSO_4_1"> 
;</div
>
2845 <div
class="divCell" name
="MOTILITY_RLSO_4" id
="MOTILITY_RLSO_4"> 
;</div
>
2847 <div
class="divRow">
2848 <div
class="divCell" name
="MOTILITY_RRSO_4_1" id
="MOTILITY_RRSO_4_1"> 
;</div
>
2849 <div
class="divCell" name
="MOTILITY_RRSO_3" id
="MOTILITY_RRSO_3"> 
;</div
>
2850 <div
class="divCell" name
="MOTILITY_RRSO_2_2" id
="MOTILITY_RRSO_2_2"> 
;</div
>
2851 <div
class="divCell"> 
;</div
>
2852 <div
class="divCell"> 
;</div
>
2853 <div
class="divCell" name
="MOTILITY_RS_3_1" id
="MOTILITY_RS_3_1"> 
;</div
>
2854 <div
class="divCell" name
="MOTILITY_RS_3" id
="MOTILITY_RS_3"> 
;</div
>
2855 <div
class="divCell" name
="MOTILITY_RS_3_2" id
="MOTILITY_RS_3_2"> 
;</div
>
2856 <div
class="divCell"> 
;</div
>
2857 <div
class="divCell"> 
;</div
>
2858 <div
class="divCell" name
="MOTILITY_RLSO_2_1" id
="MOTILITY_RLSO_2_1"> 
;</div
>
2859 <div
class="divCell" name
="MOTILITY_RLSO_3" id
="MOTILITY_RLSO_3"> 
;</div
>
2860 <div
class="divCell" name
="MOTILITY_RLSO_4_2" id
="MOTILITY_RLSO_4_2"> 
;</div
>
2862 <div
class="divRow">
2863 <div
class="divCell" name
="MOTILITY_RRSO_3_1" id
="MOTILITY_RRSO_3_1"> 
;</div
>
2864 <div
class="divCell" name
="MOTILITY_RRSO_2_1" id
="MOTILITY_RRSO_2_1"> 
;</div
>
2865 <div
class="divCell" name
="MOTILITY_RRSO_2" id
="MOTILITY_RRSO_2"> 
;</div
>
2866 <div
class="divCell"> 
;</div
>
2867 <div
class="divCell"> 
;</div
>
2868 <div
class="divCell" name
="MOTILITY_RS_2_1" id
="MOTILITY_RS_2_1"> 
;</div
>
2869 <div
class="divCell" name
="MOTILITY_RS_2" id
="MOTILITY_RS_2"> 
;</div
>
2870 <div
class="divCell" name
="MOTILITY_RS_2_2" id
="MOTILITY_RS_2_2"> 
;</div
>
2871 <div
class="divCell"> 
;</div
>
2872 <div
class="divCell"> 
;</div
>
2873 <div
class="divCell" name
="MOTILITY_RLSO_2" id
="MOTILITY_RLSO_2"> 
;</div
>
2874 <div
class="divCell" name
="MOTILITY_RLSO_2_2" id
="MOTILITY_RLSO_2_2"> 
;</div
>
2875 <div
class="divCell" name
="MOTILITY_RLSO_232" id
="MOTILITY_RLSO_3_2"> 
;</div
>
2877 <div
class="divRow">
2878 <div
class="divCell"> 
;</div
>
2879 <div
class="divCell"> 
;</div
>
2880 <div
class="divCell"> 
;</div
>
2881 <div
class="divCell" name
="MOTILITY_RRSO_1" id
="MOTILITY_RRSO_1"> 
;</div
>
2882 <div
class="divCell"> 
;</div
>
2883 <div
class="divCell" name
="MOTILITY_RS_1_1" id
="MOTILITY_RS_1_1"> 
;</div
>
2884 <div
class="divCell" name
="MOTILITY_RS_1" id
="MOTILITY_RS_1"> 
;</div
>
2885 <div
class="divCell" name
="MOTILITY_RS_1_2" id
="MOTILITY_RS_1_2"> 
;</div
>
2886 <div
class="divCell"> 
;</div
>
2887 <div
class="divCell" name
="MOTILITY_RLSO_1" id
="MOTILITY_RLSO_1"> 
;</div
>
2888 <div
class="divCell"> 
;</div
>
2889 <div
class="divCell"> 
;</div
>
2890 <div
class="divCell"> 
;</div
>
2892 <div
class="divRow">
2893 <div
class="divCell" name
="MOTILITY_RR_4_3" id
="MOTILITY_RR_4_3"> 
;</div
>
2894 <div
class="divCell" name
="MOTILITY_RR_4_1" id
="MOTILITY_RR_4_1"> 
;</div
>
2895 <div
class="divCell" name
="MOTILITY_RR_3_1" id
="MOTILITY_RR_3_1"> 
;</div
>
2896 <div
class="divCell"> 
;</div
>
2897 <div
class="divCell"> 
;</div
>
2898 <div
class="divCell" name
="MOTILITY_RS_0_1" id
="MOTILITY_RS_0_1"> 
;</div
>
2899 <div
class="divCell" name
="MOTILITY_RS_0" id
="MOTILITY_RS_0"> 
;</div
>
2900 <div
class="divCell" name
="MOTILITY_RS_0_2" id
="MOTILITY_RS_0_2"> 
;</div
>
2901 <div
class="divCell"> 
;</div
>
2902 <div
class="divCell"> 
;</div
>
2903 <div
class="divCell" name
="MOTILITY_RL_3_1" id
="MOTILITY_RL_3_1"> 
;</div
>
2904 <div
class="divCell" name
="MOTILITY_RL_4_1" id
="MOTILITY_RL_4_1"> 
;</div
>
2905 <div
class="divCell" name
="MOTILITY_RL_4_3" id
="MOTILITY_RL_4_3"> 
;</div
>
2907 <div
class="divMiddleRow">
2908 <div
class="divCell" name
="MOTILITY_RR_4_4" id
="MOTILITY_RR_4_4"> 
;</div
>
2909 <div
class="divCell" name
="MOTILITY_RR_4" id
="MOTILITY_RR_4" value
="<?php echo attr($MOTILITY_RR); ?>"> 
;</div
>
2910 <div
class="divCell" name
="MOTILITY_RR_3" id
="MOTILITY_RR_3"> 
;</div
>
2911 <div
class="divCell" name
="MOTILITY_RR_2" id
="MOTILITY_RR_2"> 
;</div
>
2912 <div
class="divCell" name
="MOTILITY_RR_1" id
="MOTILITY_RR_1"> 
;</div
>
2913 <div
class="divCell" name
="MOTILITY_RR_0" id
="MOTILITY_RR_0"> 
;</div
>
2914 <div
class="divCell" name
="MOTILITY_R0" id
="MOTILITY_R0"> 
;</div
>
2915 <div
class="divCell" name
="MOTILITY_RL_0" id
="MOTILITY_RL_0"> 
;</div
>
2916 <div
class="divCell" name
="MOTILITY_RL_1" id
="MOTILITY_RL_1"> 
;</div
>
2917 <div
class="divCell" name
="MOTILITY_RL_2" id
="MOTILITY_RL_2"> 
;</div
>
2918 <div
class="divCell" name
="MOTILITY_RL_3" id
="MOTILITY_RL_3"> 
;</div
>
2919 <div
class="divCell" name
="MOTILITY_RL_4" id
="MOTILITY_RL_4" value
="<?php echo attr($MOTILITY_RL); ?>"> 
;</div
>
2920 <div
class="divCell" name
="MOTILITY_RL_4_4" id
="MOTILITY_RL_4_4"> 
;</div
>
2922 <div
class="divRow">
2923 <div
class="divCell" name
="MOTILITY_RR_4_5" id
="MOTILITY_RR_4_5"> 
;</div
>
2924 <div
class="divCell" name
="MOTILITY_RR_4_2" id
="MOTILITY_RR_4_2"> 
;</div
>
2925 <div
class="divCell" name
="MOTILITY_RR_3_2" id
="MOTILITY_RR_3_2"> 
;</div
>
2926 <div
class="divCell"> 
;</div
>
2927 <div
class="divCell"> 
;</div
>
2928 <div
class="divCell" name
="MOTILITY_RI_0_1" id
="MOTILITY_RI_0_1"> 
;</div
>
2929 <div
class="divCell" id
="MOTILITY_RI_0" name
="MOTILITY_RI_0"> 
;</div
>
2930 <div
class="divCell" name
="MOTILITY_RI_0_2" id
="MOTILITY_RI_0_2"> 
;</div
>
2931 <div
class="divCell"> 
;</div
>
2932 <div
class="divCell"> 
;</div
>
2933 <div
class="divCell" name
="MOTILITY_RL_3_2" id
="MOTILITY_RL_3_2"> 
;</div
>
2934 <div
class="divCell" name
="MOTILITY_RL_4_2" id
="MOTILITY_RL_4_2"> 
;</div
>
2935 <div
class="divCell" name
="MOTILITY_RL_4_5" id
="MOTILITY_RL_4_5"> 
;</div
>
2937 <div
class="divRow">
2938 <div
class="divCell"> 
;</div
>
2939 <div
class="divCell"> 
;</div
>
2940 <div
class="divCell"> 
;</div
>
2941 <div
class="divCell" name
="MOTILITY_RRIO_1" id
="MOTILITY_RRIO_1"> 
;</div
>
2942 <div
class="divCell"> 
;</div
>
2943 <div
class="divCell" name
="MOTILITY_RI_1_1" id
="MOTILITY_RI_1_1"> 
;</div
>
2944 <div
class="divCell" id
="MOTILITY_RI_1" name
="MOTILITY_RI_1"> 
;</div
>
2945 <div
class="divCell" name
="MOTILITY_RI_1_2" id
="MOTILITY_RI_1_2"> 
;</div
>
2946 <div
class="divCell"> 
;</div
>
2947 <div
class="divCell" name
="MOTILITY_RLIO_1" id
="MOTILITY_RLIO_1"> 
;</div
>
2948 <div
class="divCell"> 
;</div
>
2949 <div
class="divCell"> 
;</div
>
2950 <div
class="divCell"> 
;</div
>
2952 <div
class="divRow">
2953 <div
class="divCell" name
="MOTILITY_RRIO_3_1" id
="MOTILITY_RRIO_3_1"> 
;</div
>
2954 <div
class="divCell" name
="MOTILITY_RRIO_2_1" id
="MOTILITY_RRIO_2_1"> 
;</div
>
2955 <div
class="divCell" name
="MOTILITY_RRIO_2" id
="MOTILITY_RRIO_2"> 
;</div
>
2956 <div
class="divCell"> 
;</div
>
2957 <div
class="divCell"> 
;</div
>
2958 <div
class="divCell" name
="MOTILITY_RI_2_1" id
="MOTILITY_RI_2_1"> 
;</div
>
2959 <div
class="divCell" id
="MOTILITY_RI_2" name
="MOTILITY_RI_2"> 
;</div
>
2960 <div
class="divCell" name
="MOTILITY_RI_2_2" id
="MOTILITY_RI_2_2"> 
;</div
>
2961 <div
class="divCell"> 
;</div
>
2962 <div
class="divCell"> 
;</div
>
2963 <div
class="divCell" name
="MOTILITY_RLIO_2" id
="MOTILITY_RLIO_2"> 
;</div
>
2964 <div
class="divCell" name
="MOTILITY_RLIO_2_1" id
="MOTILITY_RLIO_2_1"> 
;</div
>
2965 <div
class="divCell" name
="MOTILITY_RLIO_3_1" id
="MOTILITY_RLIO_3_1"> 
;</div
>
2967 <div
class="divRow">
2968 <div
class="divCell" name
="MOTILITY_RRIO_4_1" id
="MOTILITY_RRIO_4_1"> 
;</div
>
2969 <div
class="divCell" name
="MOTILITY_RRIO_3" id
="MOTILITY_RRIO_3"> 
;</div
>
2970 <div
class="divCell" name
="MOTILITY_RRIO_2_2" id
="MOTILITY_RRIO_2_2"> 
;</div
>
2971 <div
class="divCell"> 
;</div
>
2972 <div
class="divCell"> 
;</div
>
2973 <div
class="divCell" name
="MOTILITY_RI_3_1" id
="MOTILITY_RI_3_1"> 
;</div
>
2974 <div
class="divCell" id
="MOTILITY_RI_3" name
="MOTILITY_RI_3"> 
;</div
>
2975 <div
class="divCell" name
="MOTILITY_RI_3_2" id
="MOTILITY_RI_3_2"> 
;</div
>
2976 <div
class="divCell"> 
;</div
>
2977 <div
class="divCell"> 
;</div
>
2978 <div
class="divCell" name
="MOTILITY_RLIO_2_2" id
="MOTILITY_RLIO_2_2"> 
;</div
>
2979 <div
class="divCell" name
="MOTILITY_RLI0_3" id
="MOTILITY_RLIO_3"> 
;</div
>
2980 <div
class="divCell" name
="MOTILITY_RLIO_4_1" id
="MOTILITY_RLIO_4_1"> 
;</div
>
2982 <div
class="divRow">
2983 <div
class="divCell" name
="MOTILITY_RRIO_4" id
="MOTILITY_RRIO_4" value
="<?php echo attr($MOTILITY_RRIO); ?>"> 
;</div
>
2984 <div
class="divCell" name
="MOTILITY_RRIO_4_2" id
="MOTILITY_RRIO_4_2"> 
;</div
>
2985 <div
class="divCell" name
="MOTILITY_RRIO_3_2" id
="MOTILITY_RRIO_3_2"> 
;</div
>
2986 <div
class="divCell"> 
;</div
>
2987 <div
class="divCell" name
="MOTILITY_RI_4_3" id
="MOTILITY_RI_4_3"> 
;</div
>
2988 <div
class="divCell" name
="MOTILITY_RI_4_1" id
="MOTILITY_RI_4_1"> 
;</div
>
2989 <div
class="divCell" id
="MOTILITY_RI_4" name
="MOTILITY_RI_4" value
="<?php echo attr($MOTILITY_RI); ?>"> 
;</div
>
2990 <div
class="divCell" name
="MOTILITY_RI_4_2" id
="MOTILITY_RI_4_2"> 
;</div
>
2991 <div
class="divCell" name
="MOTILITY_RI_4_4" id
="MOTILITY_RI_4_4"> 
;</div
>
2992 <div
class="divCell"> 
;</div
>
2993 <div
class="divCell" name
="MOTILITY_RLIO_3_2" id
="MOTILITY_RLIO_3_2"> 
;</div
>
2994 <div
class="divCell" name
="MOTILITY_RLIO_4_2" id
="MOTILITY_RLIO_4_2"> 
;</div
>
2995 <div
class="divCell" name
="MOTILITY_RLIO_4" id
="MOTILITY_RLIO_4" value
="<?php echo attr($MOTILITY_RLIO); ?>"> 
;</div
>
2997 <div
class="divRow">
2998 <div
class="divCell"> 
;</div
>
3000 <div
class="divRow">
3001 <div
class="divCell"> 
;</div
>
3004 <div
class="divTable">
3005 <div
class="divRow">
3006 <div
class="divCell"> 
;</div
>
3008 <div
class="divRow">
3009 <div
class="divCell" name
="MOTILITY_LRSO_4" id
="MOTILITY_LRSO_4" value
="<?php echo attr($MOTILITY_LRSO); ?>"> 
;</div
>
3010 <div
class="divCell" name
="MOTILITY_LRSO_4_2" id
="MOTILITY_LRSO_4_2"> 
;</div
>
3011 <div
class="divCell" name
="MOTILITY_LRSO_3_3" id
="MOTILITY_LRSO_3_2"> 
;</div
>
3012 <div
class="divCell"> 
;</div
>
3013 <div
class="divCell" name
="MOTILITY_LS_4_3" id
="MOTILITY_LS_4_3"> 
;</div
>
3014 <div
class="divCell" name
="MOTILITY_LS_4_1" id
="MOTILITY_LS_4_1"> 
;</div
>
3015 <div
class="divCell" name
="MOTILITY_LS_4" id
="MOTILITY_LS_4" value
="<?php echo attr($MOTILITY_LS); ?>"> 
;</div
>
3016 <div
class="divCell" name
="MOTILITY_LS_4_2" id
="MOTILITY_LS_4_2"> 
;</div
>
3017 <div
class="divCell" name
="MOTILITY_LS_4_4" id
="MOTILITY_LS_4_4"> 
;</div
>
3018 <div
class="divCell"> 
;</div
>
3019 <div
class="divCell" name
="MOTILITY_LLSO_3_1" id
="MOTILITY_LLSO_3_1"> 
;</div
>
3020 <div
class="divCell" name
="MOTILITY_LLSO_4_1" id
="MOTILITY_LLSO_4_1"> 
;</div
>
3021 <div
class="divCell" name
="MOTILITY_LLSO_4" id
="MOTILITY_LLSO_4" value
="<?php echo attr($MOTILITY_LLSO); ?>"> 
;</div
>
3023 <div
class="divRow">
3024 <div
class="divCell" name
="MOTILITY_LRSO_4_1" id
="MOTILITY_LRSO_4_1"> 
;</div
>
3025 <div
class="divCell" name
="MOTILITY_LRSO_3" id
="MOTILITY_LRSO_3"> 
;</div
>
3026 <div
class="divCell" name
="MOTILITY_LRSO_2_2" id
="MOTILITY_LRSO_2_2"> 
;</div
>
3027 <div
class="divCell"> 
;</div
>
3028 <div
class="divCell"> 
;</div
>
3029 <div
class="divCell" name
="MOTILITY_LS_3_1" id
="MOTILITY_LS_3_1"> 
;</div
>
3030 <div
class="divCell" name
="MOTILITY_LS_3" id
="MOTILITY_LS_3"> 
;</div
>
3031 <div
class="divCell" name
="MOTILITY_LS_3_2" id
="MOTILITY_LS_3_2"> 
;</div
>
3032 <div
class="divCell"> 
;</div
>
3033 <div
class="divCell"> 
;</div
>
3034 <div
class="divCell" name
="MOTILITY_LLSO_2_1" id
="MOTILITY_LLSO_2_1"> 
;</div
>
3035 <div
class="divCell" name
="MOTILITY_LLSO_3" id
="MOTILITY_LLSO_3"> 
;</div
>
3036 <div
class="divCell" name
="MOTILITY_LLSO_4_2" id
="MOTILITY_LLSO_4_2"> 
;</div
>
3038 <div
class="divRow">
3039 <div
class="divCell" name
="MOTILITY_LRSO_3_1" id
="MOTILITY_LRSO_3_1"> 
;</div
>
3040 <div
class="divCell" name
="MOTILITY_LRSO_2_1" id
="MOTILITY_LRSO_2_1"> 
;</div
>
3041 <div
class="divCell" name
="MOTILITY_LRSO_2" id
="MOTILITY_LRSO_2"> 
;</div
>
3042 <div
class="divCell"> 
;</div
>
3043 <div
class="divCell"> 
;</div
>
3044 <div
class="divCell" name
="MOTILITY_LS_2_1" id
="MOTILITY_LS_2_1"> 
;</div
>
3045 <div
class="divCell" name
="MOTILITY_LS_2" id
="MOTILITY_LS_2"> 
;</div
>
3046 <div
class="divCell" name
="MOTILITY_LS_2_2" id
="MOTILITY_LS_2_2"> 
;</div
>
3047 <div
class="divCell"> 
;</div
>
3048 <div
class="divCell"> 
;</div
>
3049 <div
class="divCell" name
="MOTILITY_LLSO_2" id
="MOTILITY_LLSO_2"> 
;</div
>
3050 <div
class="divCell" name
="MOTILITY_LLSO_2_2" id
="MOTILITY_LLSO_2_2"> 
;</div
>
3051 <div
class="divCell" name
="MOTILITY_LLSO_3_2" id
="MOTILITY_LLSO_3_2"> 
;</div
>
3053 <div
class="divRow">
3054 <div
class="divCell"> 
;</div
>
3055 <div
class="divCell"> 
;</div
>
3056 <div
class="divCell"> 
;</div
>
3057 <div
class="divCell" name
="MOTILITY_LRSO_1" id
="MOTILITY_LRSO_1"> 
;</div
>
3058 <div
class="divCell"> 
;</div
>
3059 <div
class="divCell" name
="MOTILITY_LS_1_1" id
="MOTILITY_LS_1_1"> 
;</div
>
3060 <div
class="divCell" name
="MOTILITY_LS_1" id
="MOTILITY_LS_1"> 
;</div
>
3061 <div
class="divCell" name
="MOTILITY_LS_1_2" id
="MOTILITY_LS_1_2"> 
;</div
>
3062 <div
class="divCell"> 
;</div
>
3063 <div
class="divCell" name
="MOTILITY_LLSO_1" id
="MOTILITY_LLSO_1"> 
;</div
>
3064 <div
class="divCell"> 
;</div
>
3065 <div
class="divCell"> 
;</div
>
3066 <div
class="divCell"> 
;</div
>
3068 <div
class="divRow">
3069 <div
class="divCell" name
="MOTILITY_LR_4_3" id
="MOTILITY_LR_4_3"> 
;</div
>
3070 <div
class="divCell" name
="MOTILITY_LR_4_1" id
="MOTILITY_LR_4_1"> 
;</div
>
3071 <div
class="divCell" name
="MOTILITY_LR_3_1" id
="MOTILITY_LR_3_1"> 
;</div
>
3072 <div
class="divCell"> 
;</div
>
3073 <div
class="divCell"> 
;</div
>
3074 <div
class="divCell" name
="MOTILITY_LS_0_1" id
="MOTILITY_LS_0_1"> 
;</div
>
3075 <div
class="divCell" name
="MOTILITY_LS_0" id
="MOTILITY_LS_0"> 
;</div
>
3076 <div
class="divCell" name
="MOTILITY_LS_0_1" id
="MOTILITY_LS_0_1"> 
;</div
>
3077 <div
class="divCell"> 
;</div
>
3078 <div
class="divCell"> 
;</div
>
3079 <div
class="divCell" name
="MOTILITY_LL_3_1" id
="MOTILITY_LL_3_1"> 
;</div
>
3080 <div
class="divCell" name
="MOTILITY_LL_4_1" id
="MOTILITY_LL_4_1"> 
;</div
>
3081 <div
class="divCell" name
="MOTILITY_LL_4_3" id
="MOTILITY_LL_4_3"> 
;</div
>
3083 <div
class="divMiddleRow">
3084 <div
class="divCell" name
="MOTILITY_LR_4_4" id
="MOTILITY_LR_4_4"> 
;</div
>
3085 <div
class="divCell" name
="MOTILITY_LR_4" id
="MOTILITY_LR_4" value
="<?php echo attr($MOTILITY_LR); ?>"> 
;</div
>
3086 <div
class="divCell" name
="MOTILITY_LR_3" id
="MOTILITY_LR_3"> 
;</div
>
3087 <div
class="divCell" name
="MOTILITY_LR_2" id
="MOTILITY_LR_2"> 
;</div
>
3088 <div
class="divCell" name
="MOTILITY_LR_1" id
="MOTILITY_LR_1"> 
;</div
>
3089 <div
class="divCell" name
="MOTILITY_LR_0" id
="MOTILITY_LR_0"> 
;</div
>
3090 <div
class="divCell" name
="MOTILITY_L0" id
="MOTILITY_L0"> 
;</div
>
3091 <div
class="divCell" name
="MOTILITY_LL_0" id
="MOTILITY_LL_0"> 
;</div
>
3092 <div
class="divCell" name
="MOTILITY_LL_1" id
="MOTILITY_LL_1"> 
;</div
>
3093 <div
class="divCell" name
="MOTILITY_LL_2" id
="MOTILITY_LL_2"> 
;</div
>
3094 <div
class="divCell" name
="MOTILITY_LL_3" id
="MOTILITY_LL_3"> 
;</div
>
3095 <div
class="divCell" name
="MOTILITY_LL_4" id
="MOTILITY_LL_4" value
="<?php echo attr($MOTILITY_LL); ?>"> 
;</div
>
3096 <div
class="divCell" name
="MOTILITY_LL_4_4" id
="MOTILITY_LL_4_4"> 
;</div
>
3098 <div
class="divRow">
3099 <div
class="divCell" name
="MOTILITY_LR_4_5" id
="MOTILITY_LR_4_5"> 
;</div
>
3100 <div
class="divCell" name
="MOTILITY_LR_4_2" id
="MOTILITY_LR_4_2"> 
;</div
>
3101 <div
class="divCell" name
="MOTILITY_LR_3_3" id
="MOTILITY_LR_3_2"> 
;</div
>
3102 <div
class="divCell"> 
;</div
>
3103 <div
class="divCell"> 
;</div
>
3104 <div
class="divCell" name
="MOTILITY_LI_0_1" id
="MOTILITY_LI_0_1"> 
;</div
>
3105 <div
class="divCell" id
="MOTILITY_LI_0" name
="MOTILITY_LI_0"> 
;</div
>
3106 <div
class="divCell" name
="MOTILITY_LI_0_2" id
="MOTILITY_LI_0_2"> 
;</div
>
3107 <div
class="divCell"> 
;</div
>
3108 <div
class="divCell"> 
;</div
>
3109 <div
class="divCell" name
="MOTILITY_LL_3_2" id
="MOTILITY_LL_3_2"> 
;</div
>
3110 <div
class="divCell" name
="MOTILITY_LL_4_2" id
="MOTILITY_LL_4_2"> 
;</div
>
3111 <div
class="divCell" name
="MOTILITY_LL_5_2" id
="MOTILITY_LL_5_2"> 
;</div
>
3113 <div
class="divRow">
3114 <div
class="divCell"> 
;</div
>
3115 <div
class="divCell"> 
;</div
>
3116 <div
class="divCell"> 
;</div
>
3117 <div
class="divCell" name
="MOTILITY_LRIO_1" id
="MOTILITY_LRIO_1"> 
;</div
>
3118 <div
class="divCell"> 
;</div
>
3119 <div
class="divCell" name
="MOTILITY_LI_1_1" id
="MOTILITY_LI_1_1"> 
;</div
>
3120 <div
class="divCell" id
="MOTILITY_LI_1" name
="MOTILITY_LI_1"> 
;</div
>
3121 <div
class="divCell" name
="MOTILITY_LI_1_2" id
="MOTILITY_LI_1_2"> 
;</div
>
3122 <div
class="divCell"> 
;</div
>
3123 <div
class="divCell" name
="MOTILITY_LLIO_1" id
="MOTILITY_LLIO_1"> 
;</div
>
3124 <div
class="divCell"> 
;</div
>
3125 <div
class="divCell"> 
;</div
>
3126 <div
class="divCell"> 
;</div
>
3128 <div
class="divRow">
3129 <div
class="divCell" name
="MOTILITY_LRIO_3_1" id
="MOTILITY_LRIO_3_1"> 
;</div
>
3130 <div
class="divCell" name
="MOTILITY_LRIO_2_1" id
="MOTILITY_LRIO_2_1"> 
;</div
>
3131 <div
class="divCell" name
="MOTILITY_LRIO_2" id
="MOTILITY_LRIO_2"> 
;</div
>
3132 <div
class="divCell"> 
;</div
>
3133 <div
class="divCell"> 
;</div
>
3134 <div
class="divCell" name
="MOTILITY_LI_2_1" id
="MOTILITY_LI_2_1"> 
;</div
>
3135 <div
class="divCell" name
="MOTILITY_LI_2" id
="MOTILITY_LI_2"> 
;</div
>
3136 <div
class="divCell" name
="MOTILITY_LI_2_2" id
="MOTILITY_LI_2_2"> 
;</div
>
3137 <div
class="divCell"> 
;</div
>
3138 <div
class="divCell"> 
;</div
>
3139 <div
class="divCell" name
="MOTILITY_LLIO_2" id
="MOTILITY_LLIO_2"> 
;</div
>
3140 <div
class="divCell" name
="MOTILITY_LLIO_2_1" id
="MOTILITY_LLIO_2_1"> 
;</div
>
3141 <div
class="divCell" name
="MOTILITY_LLIO_3_1" id
="MOTILITY_LLIO_3_1"> 
;</div
>
3143 <div
class="divRow">
3144 <div
class="divCell" name
="MOTILITY_LRIO_4_1" id
="MOTILITY_LRIO_4_1"> 
;</div
>
3145 <div
class="divCell" name
="MOTILITY_LRIO_3" id
="MOTILITY_LRIO_3"> 
;</div
>
3146 <div
class="divCell" name
="MOTILITY_LRIO_2_2" id
="MOTILITY_LRIO_2_2"> 
;</div
>
3147 <div
class="divCell"> 
;</div
>
3148 <div
class="divCell"> 
;</div
>
3149 <div
class="divCell" name
="MOTILITY_LI_3_1" id
="MOTILITY_LI_3_1"> 
;</div
>
3150 <div
class="divCell" name
="MOTILITY_LI_3" id
="MOTILITY_LI_3"> 
;</div
>
3151 <div
class="divCell" name
="MOTILITY_LI_3_2" id
="MOTILITY_LI_3_2"> 
;</div
>
3152 <div
class="divCell"> 
;</div
>
3153 <div
class="divCell"> 
;</div
>
3154 <div
class="divCell" name
="MOTILITY_LLIO_2_2" id
="MOTILITY_LLIO_2_2"> 
;</div
>
3155 <div
class="divCell" name
="MOTILITY_LLIO_3" id
="MOTILITY_LLIO_3"> 
;</div
>
3156 <div
class="divCell" name
="MOTILITY_LLIO_4_1" id
="MOTILITY_LLIO_4_1"> 
;</div
>
3158 <div
class="divRow">
3159 <div
class="divCell" name
="MOTILITY_LRIO_4" id
="MOTILITY_LRIO_4" value
="<?php echo attr($MOTILITY_LRIO); ?>"> 
;</div
>
3160 <div
class="divCell" name
="MOTILITY_LRIO_4_2" id
="MOTILITY_LRIO_4_2"> 
;</div
>
3161 <div
class="divCell" name
="MOTILITY_LRIO_3_2" id
="MOTILITY_LRIO_3_2"> 
;</div
>
3162 <div
class="divCell"> 
;</div
>
3163 <div
class="divCell"> 
;</div
>
3164 <div
class="divCell" name
="MOTILITY_LI_4_1" id
="MOTILITY_LI_4_1"> 
;</div
>
3165 <div
class="divCell" name
="MOTILITY_LI_4" id
="MOTILITY_LI_4" value
="<?php echo attr($MOTILITY_LI); ?>"> 
;</div
>
3166 <div
class="divCell" name
="MOTILITY_LI_4_2" id
="MOTILITY_LI_4_2"> 
;</div
>
3167 <div
class="divCell"> 
;</div
>
3168 <div
class="divCell"> 
;</div
>
3169 <div
class="divCell" name
="MOTILITY_LLIO_3_2" id
="MOTILITY_LLIO_3_2"> 
;</div
>
3170 <div
class="divCell" name
="MOTILITY_LLIO_4_2" id
="MOTILITY_LLIO_4_2"> 
;</div
>
3171 <div
class="divCell" name
="MOTILITY_LLIO_4" id
="MOTILITY_LLIO_4" value
="<?php echo attr($MOTILITY_LLIO); ?>"> 
;</div
>
3173 <div
class="divRow">
3174 <div
class="divCell"> 
;</div
>
3175 </div
><div
class="divRow">
3176 <div
class="divCell"> 
;</div
>
3185 <div
class="QP_lengthen" id
="NEURO_COMMENTS_DIV">
3186 <b
><?php
echo xlt('Comments'); ?
>:</b
><div
class="kb kb_left"><?php
echo xlt('NCOM{{Neuro comments}}'); ?
></div
><br
/>
3187 <textarea id
="NEURO_COMMENTS" name
="NEURO_COMMENTS"><?php
echo text($NEURO_COMMENTS); ?
></textarea
>
3191 <div id
="NEURO_right" class="exam_section_right borderShadow text_clinical">
3192 <div id
="PRIORS_NEURO_left_text" name
="PRIORS_NEURO_left_text" class="PRIORS_class PRIORS"><i
class="fa fa-spinner fa-spin"></i
>
3194 <?php
display_draw_section("NEURO", $encounter, $pid); ?
>
3195 <div id
="QP_NEURO" name
="QP_NEURO" class="QP_class">
3196 <input type
="hidden" id
="NEURO_ACT_zone" name
="NEURO_ACT_zone" value
="<?php echo $ACT_SHOW; ?>">
3197 <input type
="hidden" id
="NEURO_ACT_strab" name
="NEURO_ACT_strab" value
="">
3198 <input type
="hidden" id
="NEURO_field" name
="NEURO_field" value
="5">
3199 <input type
="hidden" id
="NEURO_value" name
="NEURO_value" value
="ortho">
3200 <input type
="hidden" id
="NEURO_side" name
="NEURO_side" value
="">
3202 <div id
="NEURO_P_1">
3203 <?php
echo $selector = priors_select("NEURO", $id, $id, $pid); ?
>
3205 <div id
="NEURO_P_2"><br
/>
3206 <div
class="borderShadow" class="NEURO_P_21"><span
class="underline"><?php
echo xlt('Laterality'); ?
></span
><br
/>
3207 <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
>
3208 <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
>
3209 <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
/>
3211 <div
class="borderShadow" class="NEURO_P_21"><span
class="underline"><?php
echo xlt('Deviation'); ?
></span
><br
/>
3212 <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
>
3213 <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
>
3214 <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
>
3216 <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
>
3217 <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
>
3218 <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
>
3221 <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
>
3222 <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
>
3223 <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
>
3224 <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
>
3228 <button id
="NEURO_RECORD" name
="NEURO_RECORD"> <?php
echo xlt('RECORD'); ?
> </button
>
3231 <div id
="NEURO_P_3">
3233 <div
class="borderShadow ACT_boxed"><span
class="underline"><?php
echo xlt('Rx/Distance'); ?
></span
><br
/>
3234 <span
class="eye_button <?php if ($ACT_SHOW =='SCDIST') {
3235 echo "eye_button_selected
";
3236 } ?>" 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
>
3237 <span
class="eye_button <?php if ($ACT_SHOW =='CCDIST') {
3238 echo "eye_button_selected
";
3239 } ?>" 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
>
3240 <span
class="eye_button <?php if ($ACT_SHOW =='SCNEAR') {
3241 echo "eye_button_selected
";
3242 } ?>" 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
>
3243 <span
class="eye_button <?php if ($ACT_SHOW =='CCNEAR') {
3244 echo "eye_button_selected
";
3245 } ?>" id
="NEURO_ACT_zone_CCNEAR" name
="NEURO_ACT_zone" onclick
="$('#NEURO_ACT_zone').val('CCNEAR').trigger('change');"> <?php
echo xlt('ccNear{{with correction at near}}'); ?
> </span
>
3247 <div
class="borderShadow ACT_boxed"><span
class="underline"><?php
echo xlt('Position of Gaze'); ?
></span
><br
/>
3248 <span
class="eye_button_blank"> <?php
echo xlt('R{{right}}'); ?
> </span
>
3249 <span
class="eye_button" id
="NEURO_field_1" name
="NEURO_field" onclick
="$('#NEURO_field').val('1').trigger('change');"> 1 </span
>
3250 <span
class="eye_button" id
="NEURO_field_2" name
="NEURO_field" onclick
="$('#NEURO_field').val('2').trigger('change');"> 2 </span
>
3251 <span
class="eye_button" id
="NEURO_field_3" name
="NEURO_field" onclick
="$('#NEURO_field').val('3').trigger('change');"> 3 </span
>
3252 <span
class="eye_button_blank"> <?php
echo xlt('L{{left}}'); ?
> </span
>
3254 <span
class="eye_button_blank"><i
class="fa fa-1 fa-reply rotate-left"></i
></span
>
3255 <span
class="eye_button" id
="NEURO_field_4" name
="NEURO_field" onclick
="$('#NEURO_field').val('4').trigger('change');"> 4 </span
>
3256 <span
class="eye_button eye_button_selected" id
="NEURO_field_5" name
="NEURO_field" onclick
="$('#NEURO_field').val('5').trigger('change');"> 5 </span
>
3257 <span
class="eye_button" id
="NEURO_field_6" name
="NEURO_field" onclick
="$('#NEURO_field').val('6').trigger('change');">6</span
>
3258 <span
class="eye_button_blank"><i
class="fa fa-1 fa-share rotate-right"></i
></span
>
3260 <span
class="eye_button" id
="NEURO_field_10" name
="NEURO_field" onclick
="$('#NEURO_field').val('10').trigger('change');">10</span
>
3261 <span
class="eye_button" id
="NEURO_field_7" name
="NEURO_field" onclick
="$('#NEURO_field').val('7').trigger('change');">7</span
>
3262 <span
class="eye_button" id
="NEURO_field_8" name
="NEURO_field" onclick
="$('#NEURO_field').val('8').trigger('change');">8</span
>
3263 <span
class="eye_button" id
="NEURO_field_9" name
="NEURO_field" onclick
="$('#NEURO_field').val('9').trigger('change');">9</span
>
3264 <span
class="eye_button" id
="NEURO_field_11" name
="NEURO_field" onclick
="$('#NEURO_field').val('11').trigger('change');">11</span
>
3267 <div
class="borderShadow ACT_boxed"><span
class="underline"><?php
echo xlt('Prism Diopters'); ?
></span
><br
/>
3268 <span
class="eye_button" id
="NEURO_value_ortho" name
="NEURO_value" onclick
="$('#NEURO_value').val('ortho').trigger('change');"><?php
echo xlt('Ortho{{orthophoric}}'); ?
></span
>
3269 <span
class="eye_button" id
="NEURO_value_1" name
="NEURO_value" onclick
="$('#NEURO_value').val('1').trigger('change');">1</span
>
3270 <span
class="eye_button" id
="NEURO_value_2" name
="NEURO_value" onclick
="$('#NEURO_value').val('2').trigger('change');">2</span
>
3271 <span
class="eye_button" id
="NEURO_value_3" name
="NEURO_value" onclick
="$('#NEURO_value').val('3').trigger('change');">3</span
>
3272 <span
class="eye_button" id
="NEURO_value_4" name
="NEURO_value" onclick
="$('#NEURO_value').val('4').trigger('change');">4</span
>
3273 <span
class="eye_button" id
="NEURO_value_5" name
="NEURO_value" onclick
="$('#NEURO_value').val('5').trigger('change');">5</span
>
3274 <span
class="eye_button" id
="NEURO_value_6" name
="NEURO_value" onclick
="$('#NEURO_value').val('6').trigger('change');">6</span
>
3275 <span
class="eye_button" id
="NEURO_value_8" name
="NEURO_value" onclick
="$('#NEURO_value').val('8').trigger('change');">8</span
>
3276 <span
class="eye_button" id
="NEURO_value_10" name
="NEURO_value" onclick
="$('#NEURO_value').val('10').trigger('change');">10</span
>
3277 <span
class="eye_button" id
="NEURO_value_12" name
="NEURO_value" onclick
="$('#NEURO_value').val('12').trigger('change');">12</span
>
3278 <span
class="eye_button" id
="NEURO_value_14" name
="NEURO_value" onclick
="$('#NEURO_value').val('14').trigger('change');">14</span
>
3279 <span
class="eye_button" id
="NEURO_value_16" name
="NEURO_value" onclick
="$('#NEURO_value').val('16').trigger('change');">16</span
>
3280 <span
class="eye_button" id
="NEURO_value_18" name
="NEURO_value" onclick
="$('#NEURO_value').val('18').trigger('change');">18</span
>
3281 <span
class="eye_button" id
="NEURO_value_20" name
="NEURO_value" onclick
="$('#NEURO_value').val('20').trigger('change');">20</span
>
3282 <span
class="eye_button" id
="NEURO_value_25" name
="NEURO_value" onclick
="$('#NEURO_value').val('25').trigger('change');">25</span
>
3283 <span
class="eye_button" id
="NEURO_value_30" name
="NEURO_value" onclick
="$('#NEURO_value').val('30').trigger('change');">30</span
>
3284 <span
class="eye_button" id
="NEURO_value_35" name
="NEURO_value" onclick
="$('#NEURO_value').val('35').trigger('change');">35</span
>
3285 <span
class="eye_button" id
="NEURO_value_40" name
="NEURO_value" onclick
="$('#NEURO_value').val('40').trigger('change');">40</span
>
3288 <span
class="closeButton fa fa-close pull-right z100" id
="BUTTON_TEXTD_NEURO" name
="BUTTON_TEXTD_NEURO" value
="1"></span
>
3294 <!-- start IMP
/PLAN
-->
3295 <div id
="IMPPLAN_1" class="clear_both">
3296 <span
class="anchor" id
="IMPPLAN_anchor"></span
>
3297 <div id
="IMPPLAN_left" name
="IMPPLAN_left" class="exam_section_left borderShadow">
3298 <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
>
3299 <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
>
3300 <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
>
3301 <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
>
3302 <div id
="IMPPLAN_left_text" name
="IMPPLAN_left_text">
3303 <b
><?php
echo xlt('Impression/Plan'); ?
>:</b
><div
class="kb kb_left"><?php
echo xlt('IMP{{impression}}'); ?
></div
>
3304 <div id
="IMPPLAN_blank" name
="IMPPLAN_blank" class="HPI_text">
3306 <table
class="IMPPLAN">
3308 <td
class="right bold" style
="width:75px;padding-right:10px;vertical-align:top;"><?php
echo xlt('New Dx{{new diagnosis}}'); ?
>: </td
>
3309 <td
><textarea style
="max-width:335px;width:335px;" name
="IMP" id
="IMP"><?php
echo text($IMP); ?
></textarea
></td
>
3313 <div id
="IMPPLAN_text" name
="IMPPLAN_text" style
="margin:10px 50px;padding-left:30px;">
3315 echo '<br /><br /><span style="font-weight:bold;">';
3316 echo xlt('How-to Build the Impression/Plan').':';
3318 echo '<li>'.xlt('Manually type into the New DX box above.').'<br />'.xlt('The *Tab* key creates each entry.').'</li>';
3319 echo '<span style="font-weight:bold;margin-left:-5px;">'.xlt('or utilize the Impression/Plan Builder').'</span>';
3320 echo '<li>'.xlt('Drag a DX over by its handle').': <i class="fa fa-arrows"></i></li>';
3321 echo '<li>'.xlt('Double click on a DX\'s handle').': <i class="fa fa-arrows"></i></li>';
3322 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>';
3326 <div id
="IMPPLAN_zone" name
="IMPPLAN_zone" class="nodisplay">
3329 <input type
="hidden" name
="IMPPLAN_count" id
="IMPPLAN_count" value
="<?php echo $IMPPLAN_count; ?>">
3333 /* There are at least 4 ways to build IMP/PLAN
3334 * 1. Freehand - textarea
3335 * 2. Copy Forward (prior_select)
3336 * 3. Build automatically through workflows. (build_PMSFH)
3337 * 4. Draw it in (display_draw_section)
3340 <div id
="IMPPLAN_right" class="exam_section_right borderShadow text_clinical">
3341 <?php
display_draw_section("IMPPLAN", $encounter, $pid); ?
>
3343 <div id
="PRIORS_IMPPLAN_left_text" name
="PRIORS_IMPPLAN_left_text" class="PRIORS_class PRIORS"><i
class="fa fa-spinner fa-spin"></i
>
3345 <div id
="QP_IMPPLAN" name
="QP_IMPPLAN" class="QP_class2">
3346 <span id
="iPLAN_BUILD" name
="iPLAN_BUILD" class="bold"><?php
echo xlt('Impression/Plan'); ?
></span
>
3348 <?php
echo $selector = priors_select("IMPPLAN", $id, $id, $pid); ?
>
3350 <span
class="closeButton fa fa-close pull-right z100" id
="BUTTON_TEXTD_IMPPLAN" name
="BUTTON_TEXTD_IMPPLAN" value
="1"></span
>
3354 * Let's discuss 3. Build automatically through workflows - The Impression/Plan Builder
3355 * Since POH is our area of concern, use $PMSFH[0]['POH'] & $PMSFH[0]['POS'] first then
3356 * $PMSFH[0]['medical_problem'] then
3357 * system to extrapolate DXs from user-entered clinical findings (PE)
3358 * to build the IMP/PLAN options list
3359 * a. Diagnoses are sortable via dragging, to build an order.
3360 * b. Diagnoses are selectable and deselectable
3361 * then click the BUILD icon to append the selected DXs to the bottom of the IMP/Plan list.
3362 * c. Drag a DX across onto the IMP.textarea appends this data to the current IMP.textarea data
3363 * d. Drag a DX across onto the IMP/Plan area appends this DX to the bottom of the IMP/Plan list
3364 * e. DoubleClick a DX appends this DX to the bottom of the IMP/Plan list
3368 $PMSFH = build_PMSFH($pid);
3372 if (($PMSFH[0]['POH'][0] >'') && ($PMSFH[0]['PMH'][0] >'')) {
3380 <dl
class="building_blocks" id
="building_blocks" name
="building_blocks">
3381 <dt
class="borderShadow"><i title
="<?php echo xla('Drag the arrow for each diagnosis to sort the list.');
3383 echo xla('Select the diagnoses to include in the Impression/Plan.'). "\n
";
3384 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
>
3385 <span id
="IMP_start" name
="IMP_start"><?php
echo xlt('Impression/Plan Builder'); ?
></span
>
3386 <div id
="IMP_start2">
3387 <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
> 
;
3388 <input type
="checkbox" id
="inc_POH" name
="inc_POH" checked
><label
for='inc_POH' class='input-helper input-helper--checkbox'><?php
echo xlt('POH{{Past Ocular History}}'); ?
></label
> 
;
3389 <input type
="checkbox" id
="inc_PMH" name
="inc_PMH"><label
for='inc_PMH' class='input-helper input-helper--checkbox'><?php
echo xlt('PMH{{Past Medical History}}') ?
></label
> 
;
3392 <dd id
="IMP_start_acc" name
="IMP_start_acc">
3393 <ol id
="build_DX_list" name
="build_DX_list">
3396 if ($total_DX == '1') {
3397 foreach ($PMSFH[0]['POH'] as $k => $v) {
3399 if ($v['diagnosis'] >'') {
3400 $insert_code = "<code class='pull-right diagnosis'>".$v['diagnosis']."</code>";
3404 $v['title'] = xlt($v['title']);
3405 $insert_code = text($insert_code);
3406 echo "<li class='ui-widget-content'> <span id='DX_POH_".$k."' name='DX_POH_".$k."'>".$v['title']."</span> ".$insert_code."</li>";
3409 foreach ($PMSFH[0]['POS'] as $k => $v) {
3411 if ($v['diagnosis'] >'') {
3412 $insert_code = "<code class='pull-right diagnosis'>".$v['diagnosis']."</code>";
3416 $v['title'] = xlt($v['title']);
3417 $insert_code = text($insert_code);
3418 echo "<li class='ui-widget-content'> <span id='DX_POS_".$k."' name='DX_POS_".$k."'>".$v['title']."</span> ".$insert_code."</li>";
3421 foreach ($PMSFH[0]['medical_problem'] as $k => $v) {
3423 if ($v['diagnosis'] >'') {
3424 $insert_code = "<code class='pull-right diagnosis'>".$v['diagnosis']."</code>";
3428 $v['title'] = xlt($v['title']);
3429 $insert_code = text($insert_code);
3430 echo "<li class='ui-widget-content'> <span id='DX_PMH_".$k."' name='DX_PMH_".$k."'>".$v['title']."</span> ".$insert_code."</li>";
3433 echo "<br /><span class='bold'>";
3434 echo xlt("The Past Ocular History (POH) and Past Medical History (PMH) are negative.");
3435 echo xlt('and').' '.xlt('no diagnosis was auto-generated from the clinical findings.');
3436 echo "</span><br /><br>";
3437 echo xlt("Update the chart to activate the Builder.")."<br />";
3445 * The goal here is to auto-code the encounter and link it directly to the billing module.
3446 * Select Visit Type from dropdown (CPT4) built from practice's fee_sheet_options table.
3447 * Active coding system = $default_search_type;
3448 * We present the $default_search_type codes found in the Imp/Plan.
3449 * Perhaps a minor procedure/test was performed?
3450 * Select options drawn from Eye_todo_done_".$providerID list with a CODE
3451 * TODO: Finally we have the "Prior Visit" functionality of the form.
3452 * We should be able to look past codes and perhaps carry this forward?
3456 var default_search_type
= '<?php echo text($default_search_type); ?>';
3459 <dt
class="borderShadow"><span
><?php
echo xlt('Coding Engine'); ?
></span
></dt
>
3461 <div style
="padding:5px 10px 5px 10px;">
3462 <table style
="width:100%;">
3464 <td style
="" colspan
="2"><b
><?php
echo xlt('Diagnostic'). " ".xlt('Codes'); ?
>:</b
>
3468 <td colspan
="3" style
="padding-top:5px;padding-left:15px;"><span id
="Coding_DX_Codes"><br
/></span
>
3472 <td style
="padding-top:5px;vertical-align:top;"><b
><?php
echo xlt('Visit');
3473 echo " ".xlt('Codes'); ?
>:</b
></td
>
3474 <td colspan
="2" style
="text-align:right;padding:left:20px;">
3475 <span
class="CODE_LOW" title
="<?php echo xla('Documentation for a Detailed HPI requires').":\n ".xla('> 3 HPI elements')."\n
".
3476 xla('OR{{as in AND/OR, ie. not an abbreviation}}')."\n
".
3477 xla('the status of three chronic/inactive problems'); ?>">
3478 <i
class="fa fa-check"></i
> <?php
3479 echo xlt('Limited HPI');
3480 ?
> </span
><span
class="CODE_HIGH nodisplay"><i
class="fa fa-check"></i
> <?php
3481 echo xlt('Detailed HPI'); ?
></span
><span
class="EXAM_LOW">, <?php
echo xlt('Limited Exam'); ?
></span
>
3482 <span
class="DIL_RISKS nodisplay"><i
class="fa fa-check"></i
> <?php
echo xlt('Detailed exam'); ?
></span
>
3483 <span id
="Coding_Visit_Codes"></span
></td
>
3486 <td colspan
="3" style
="padding-top:5px;padding-left:15px;">
3487 <div
class="ui-widget">
3488 <select id
="visit_codes">
3491 $last_category = '';
3493 // Create drop-lists based on the fee_sheet_options table.
3494 $res = sqlStatement("SELECT * FROM fee_sheet_options " .
3495 "ORDER BY fs_category, fs_option");
3496 while ($row = sqlFetchArray($res)) {
3497 $fs_category = $row['fs_category'];
3498 $fs_option = $row['fs_option'];
3499 $fs_codes = $row['fs_codes'];
3500 list($code_type_here,$code) = explode("|", $fs_codes);
3501 if ($fs_category !== $last_category) {
3502 $last_category = $fs_category;
3503 echo " <option value=''> " . text(substr($fs_category, 1)) . "</option>\n";
3506 $code_text = (strlen(substr($fs_option, 1)) > 18) ?
substr(substr($fs_option, 1), 0, 16).'...' : substr($fs_option, 1);
3508 echo " <option value='" . attr($fs_codes) . "'>" . text($code)." ".text(substr($fs_category, 1)).": ".text($code_text) . "</option>\n";
3511 // Create drop-lists based on categories defined within the codes.
3512 $pres = sqlStatement("SELECT option_id, title FROM list_options " .
3513 "WHERE list_id = 'superbill' ORDER BY seq");
3514 while ($prow = sqlFetchArray($pres)) {
3516 echo " <option value=''> " . text($prow['title']) . "\n";
3517 $res = sqlStatement("SELECT code_type, code, code_text,modifier FROM codes " .
3518 "WHERE superbill = ? AND active = 1 " .
3519 "ORDER BY code_text", array($prow['option_id']));
3520 while ($row = sqlFetchArray($res)) {
3521 $ctkey = alphaCodeType($row['code_type']);
3522 if ($code_types[$ctkey]['nofs']) {
3526 $code_text = (strlen($row['code_text']) > 15) ?
substr($row['code_text'], 0, 13).'...' : $row['code_text'];
3527 echo " <option value='" . attr($ctkey) . "|" .
3528 attr($row['code']) . ':'. attr($row['modifier']) . "|'>" . text($code_text) . "</option>\n";
3533 <span
class="modifier" id
="visit_mod_22" value
="22" title
="<?php echo xla('Modifier 22: Increased Procedural Services: When the work required to provide a service is substantially greater than typically required, it may be identified by adding modifier 22 to the usual procedure code.') ?>">22</span
>
3534 <span
class="modifier" id
="visit_mod_24" value
="24" title
="<?php echo xla('Modifier 24: Unrelated Evaluation and Management Service by the Same Physician During a Postoperative Period') ?>">24</span
>
3535 <span
class="modifier" id
="visit_mod_25" value
="25" title
="<?php echo xla('Modifier 25: Significant, separately identifiable evaluation and management (E/M) service by the same physician on the day of a procedure or other service') ?>">25</span
>
3536 <span
class="modifier" id
="visit_mod_57" value
="57" title
="<?php echo xla('Modifier 57: Indicates an Evaluation and Management (E/M) service resulted in the initial decision to perform surgery either the day before a major surgery (90 day global) or the day of a major surgery.'); ?>">57</span
>
3541 <tr id
="neurosens_code" name
="neurosens_code" class="nodisplay">
3542 <td colspan
="3" style
="padding-top:5px;padding-left:15px;"><input type
="hidden" id
="neurosens" style
="width:50px;" value
="92060" class="">
3543 <i
class="fa fa-check"></i
> 92060 Sensorimotor Exam
- no modifier required
.
3548 <td style
="padding-top:5px;" colspan
="3"><b
><?php
echo xlt('Tests Performed');
3549 echo " / ".xlt('Modifiers'); ?
>:</b
> 
;
3550 <a href
="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=Eye_todo_done_<?php echo attr($providerID); ?>" target
="RTop"
3551 title
="<?php echo xla('Click here to Edit this Doctor\'s Plan options').". \n". xlt('Only entries with a Code are billable').". "; ?>"
3552 name
="provider_testing_codes" style
="color:black;font-weight:600;"><i
class="fa fa-pencil fa-fw"></i
> </a
>
3559 <td style
="padding-right:20px;padding-left:20px;">
3564 $arrTESTS = explode("|", $Resource); //form_eye_mag:Resource = billable things (not visit code) performed today
3565 $query = "select * from list_options where list_id=? and activity='1' order by seq";
3566 $TODO_data = sqlStatement($query, array("Eye_todo_done_".$providerID));
3567 while ($row = sqlFetchArray($TODO_data)) {
3568 if ($row['codes'] ==='') {
3572 list($code_type_here,$code) = explode(":", $row['codes']);
3573 $codedesc = lookup_code_descriptions($row['codes']);
3574 $order = array("\r\n", "\n","\r");
3575 $codedesc = str_replace($order, '', $codedesc);
3576 if ($codedesc =='') {
3577 $codedesc = $row['title'];
3580 $codetext = $codedesc ." (".$row['codes'].")";
3582 if (in_array($row['codes'], $arrTESTS)) {
3583 $checked = "checked='yes'";
3587 * This will link to a report generator for billable procedures/tests.
3588 * They items need to be read/interpreted/dictated/documented to be billable.
3589 * The reading may already be documented within the scanned item itself.
3590 * Thus this will be optional.
3591 * If needed, these reports should be categoriezed and filed ala the document engine.
3592 * If a procedure/test has a document category and there is a document uploaded for today's encounter
3593 * an icon should be displayed linked to the test/interpretation.
3594 * Procedures/surgeries performed will need an op-note like format.
3595 * This will be another series of forms then.
3596 * echo "<i class='fa fa-file-word-o'></i>";
3598 echo "<input type='checkbox' class='TESTS' id='TEST_$counter' codetext='".attr($codetext)."' title='".attr($codedesc)."' name='TEST[]' $checked value='". attr($row['codes']) ."'> ";
3599 echo '<input type="text" title="'.xla('Modifier').'" style="width:20px;" id="TEST_'.$counter.'_modifier" value="'.$row['modifier'].'">';
3601 $label = text(substr($codedesc, 0, 25));
3602 echo "<label for='TEST_$counter' class='input-helper input-helper--checkbox'>";
3603 echo $label."</label>";
3607 echo '</td><tr><td style="padding-right:20px;padding-left:20px;">';
3621 <table style
="width:100%;">
3624 <button id
="code_me_now"><?php
echo xlt('Populate Fee Sheet'); ?
></button
>
3627 <div
class="widget">
3628 <button id
="goto_fee_sheet"
3630 href
="../../forms/fee_sheet/view.php" onclick
="top.restoreSession()"
3631 tabindex
="-1"><?php
echo xlt('Open Fee Sheet'); ?
></button
>
3642 * This a provider-specific PLAN list of items that the user can define.
3643 * Pencil icon links to 'list_options' in DB which opens in the RTop frame.
3644 * If the provider-specific list does not exist, create it and populate it
3645 * with generic starter items from list_options list "Eye_todo_done_defaults".
3646 * This list is used to create the plan for the next visit. Anything with a CODE
3647 * is also listed as a billable item/TEST in the CODING ENGINE.
3649 $query = "select * from list_options where list_id=? and activity='1' order by seq";
3650 $TODO_data = sqlStatement($query, array("Eye_todo_done_".$providerID));
3651 if (sqlNumRows($TODO_data) < '1') {
3652 // Provider list is not created yet, or was deleted.
3653 // Create it fom defaults...
3654 $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')";
3655 sqlStatement($query, array('Eye_todo_done_'.$providerID,'Eye Orders '.$prov_data['lname']));
3656 $SQL_INSERT = "INSERT INTO `list_options` (`list_id`, `option_id`, `title`, `seq`, `mapping`, `notes`, `codes`, `activity`, `subtype`) VALUES ";
3658 $query = "SELECT * FROM list_options where list_id =? ORDER BY seq";
3659 $TODO_data = sqlStatement($query, array("Eye_todo_done_defaults"));
3660 while ($TODO= sqlFetchArray($TODO_data)) {
3661 if ($number_rows > 0) {
3666 $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'])."')";
3670 sqlStatement($SQL_INSERT.";");
3673 <dt
class="borderShadow">
3674 <span
><?php
echo xlt('Next Visit Orders'); ?
></span
>
3675 <a href
="<?php echo $GLOBALS['webroot']; ?>/interface/super/edit_list.php?list_id=Eye_todo_done_<?php echo attr($providerID); ?>" target
="RTop"
3676 title
="<?php echo xla('Click here to Edit this Doctor\'s Plan options'); ?>"
3677 name
="provider_todo" style
="color:black;font-weight:600;"><i
class="fa fa-pencil fa-fw"></i
> </a
>
3681 <tr
class="" style
="vertical-align:bottom;margin: 10px;;">
3685 <td style
="padding-right:20px;padding-left:20px;">
3687 // Iterate through this "provider's" PLAN/to_do list of options.
3688 //could maybe use options.inc checkbox type 21?
3691 $PLAN_arr = explode("|", $PLAN);
3692 while ($row = sqlFetchArray($TODO_data)) {
3693 $arrPLAN[$counter]['option_id'] = $row['option_id'];
3694 $arrPLAN[$counter]['title'] = $row['title'];
3695 $arrPLAN[$counter]['option_value'] = $row['option_value'];
3696 $arrPLAN[$counter]['mapping'] = $row['mapping'];
3697 $arrPLAN[$counter]['notes'] = $row['notes'];
3698 $arrPLAN[$counter]['codes'] = $row['codes'];
3699 $arrPLAN[$counter]['subtype'] = $row['subtype'];
3701 $title=$row['title'];
3702 if (in_array($title, $PLAN_arr)) {
3703 $checked = "checked='yes'";
3706 // <!-- <i title="Build your plan." class="fa fa-share-square-o fa-flip-horizontal" id="make_blank_PLAN" name="make_blank_PLAN"></i>-->
3707 echo "<input type='checkbox' id='PLAN$counter' name='PLAN[]' $checked value='".attr($row[title
])."'> ";
3708 $label = text(substr($row['title'], 0, 30));
3709 echo "<label for='PLAN$counter' class='input-helper input-helper--checkbox' title='".attr($row['notes'])."'>";
3710 echo $label."</label><br />";
3714 echo '</td><tr><td style="padding-right:20px;padding-left:20px;">';
3722 var PLANoptions
= <?php
echo json_encode($arrPLAN); ?
>;
3727 <td colspan
="3" style
="padding-left:20px;padding-top:4px;">
3728 <textarea id
="Plan<?php echo $counter; ?>" name
="PLAN[]"><?php
if (($PLAN) && ($PLAN_arr[count($PLAN_arr)-1] > '')) {
3729 echo $PLAN_arr[count($PLAN_arr)-1];
3737 <dt
class="borderShadow"><span
><?php
echo xlt('Communication Engine'); ?
></span
></dt
>
3739 <div style
="padding:5px 20px 5px 20px;">
3741 $query ="SELECT * FROM users WHERE id=?";
3742 $pcp_data = sqlQuery($query, array($pat_data['providerID']));
3743 $ref_data = sqlQuery($query, array($pat_data['ref_providerID']));
3745 <table style
="width:100%;">
3747 <td
class="bold underline" style
="min-width:50px;"></td
>
3748 <td
class="bold underline" style
="min-width:100px;">PCP
</td
>
3749 <td
class="bold underline" style
="min-width:100px;">Referrer
</td
>
3753 <td
class="bold"><?php
echo text($pcp_data['fname'])." ".text($pcp_data['lname']); ?
><?php
if ($pcp_data['suffix']) {
3754 echo ", ".text($pcp_data['suffix']);
3756 <td
class="bold"><?php
echo text($ref_data['fname'])." ".text($ref_data['lname']); ?
><?php
if ($ref_data['suffix']) {
3757 echo ", ".text($ref_data['suffix']);
3761 <td
class="bold top"><?php
echo xlt('Phone'); ?
>:</td
>
3763 <?php
echo text($pcp_data['phonew1']);
3764 if ($pcp_data['phonew2']) {
3765 echo "<br />". text($pcp_data['phonew2']);
3769 <?php
echo text($ref_data['phonew1']);
3770 if ($pcp_data['phonew2']) {
3771 echo "<br />". text($pcp_data['phonew2']);
3776 <td
class="bold top"><?php
echo xlt('Fax'); ?
>:</td
>
3779 if ($pcp_data['fax'] > '') {
3780 // does the fax already exist?
3781 $query = "SELECT * FROM form_taskman WHERE TO_ID=? and PATIENT_ID=? and ENC_ID=?";
3782 $FAX_PCP = sqlQuery($query, array($pat_data['providerID'],$pid,$encounter));
3783 if ($FAX_PCP['ID']) { //it is here already, make them print and manually fax it. Show icon
3784 echo text($pcp_data['fax'])."
3785 <span id='status_Fax_pcp'>
3786 <a href='".$webroot."/controller.php?document&view&patient_id=".$pid."&doc_id=".$FAX_PCP['DOC_ID']."'
3787 target='_blank' title='".xla('View the Summary Report sent via Fax Server on')." ".$FAX_PCP['COMPLETED_DATE'].".'>
3788 <i class='fa fa-file-pdf-o fa-fw'></i></a>
3789 <i class='fa fa-repeat fa-fw'
3790 onclick=\"top.restoreSession(); create_task('".attr($pat_data['providerID'])."','Fax-resend','ref'); return false;\">
3793 <a href
="#" onclick
="top.restoreSession(); create_task('<?php echo attr($pat_data['providerID']); ?>','Fax','pcp'); return false;">
3794 <?php
echo text($pcp_data['fax']); ?
></a
> 
; 
;
3795 <span id
="status_Fax_pcp"><i
class="fa fa-fax fa-fw"></i
></span
>
3801 <?php
if ($ref_data['fax'] > '') {
3802 // does the fax already exist?
3803 $query = "SELECT * FROM form_taskman WHERE TO_ID=? and PATIENT_ID=? and ENC_ID=?";
3804 $FAX_REF = sqlQuery($query, array($pat_data['ref_providerID'],$pid,$encounter));
3805 if ($FAX_REF['ID']) { //it is here already, make them print and manually fax it. Show icon
3806 echo text($ref_data['fax'])."
3807 <span id='status_Fax_ref'>
3808 <a href='".$webroot."/controller.php?document&view&patient_id=".$pid."&doc_id=".$FAX_REF['DOC_ID']."'
3809 target='_blank' title='".xla('View the Summary Report sent via Fax Server on')." ".$FAX_REF['COMPLETED_DATE'].".'>
3810 <i class='fa fa-file-pdf-o fa-fw'></i></a>
3811 <i class='fa fa-repeat fa-fw'
3812 onclick=\"top.restoreSession(); create_task('".attr($pat_data['ref_providerID'])."','Fax-resend','ref'); return false;\">
3815 <a href
="#" onclick
="top.restoreSession(); create_task('<?php echo attr($pat_data['ref_providerID']); ?>','Fax','ref'); return false;">
3816 <?php
echo text($ref_data['fax']); ?
></a
> 
; 
;
3817 <span id
="status_Fax_ref"><i
class="fa fa-fax fa-fw"></i
></span
>
3824 <td
class="top bold"><?php
echo xlt('Address'); ?
>:</td
>
3825 <td
class="top"><?php
3826 if ($pcp_data['organization'] >'') {
3827 echo text($pcp_data['organization'])."<br />";
3830 if ($pcp_data['street'] >'') {
3831 echo text($pcp_data['street'])."<br />";
3834 if ($pcp_data['streetb'] >'') {
3835 echo text($pcp_data['streetb'])."<br />";
3838 if ($pcp_data['city'] >'') {
3839 echo text($pcp_data['city']).", ";
3842 if ($pcp_data['state'] >'') {
3843 echo text($pcp_data['state'])." ";
3846 if ($pcp_data['zip'] >'') {
3847 echo text($pcp_data['zip'])."<br />";
3850 if ($pcp_data['street2'] >'') {
3851 echo "<br />".text($pcp_data['street2'])."<br />";
3854 if ($pcp_data['streetb2'] >'') {
3855 echo text($pcp_data['streetb2'])."<br />";
3858 if ($pcp_data['city2'] >'') {
3859 echo text($pcp_data['city2']).", ";
3862 if ($pcp_data['state2'] >'') {
3863 echo text($pcp_data['state2'])." ";
3866 if ($pcp_data['zip2'] >'') {
3867 echo text($pcp_data['zip2'])."<br />";
3871 <td
class="top"><?php
3872 if ($ref_data['organization'] >'') {
3873 echo text($ref_data['organization'])."<br />";
3876 if ($ref_data['street'] >'') {
3877 echo text($ref_data['street'])."<br />";
3880 if ($ref_data['streetb'] >'') {
3881 echo text($ref_data['streetb'])."<br />";
3884 if ($ref_data['city'] >'') {
3885 echo text($ref_data['city']).", ";
3888 if ($ref_data['state'] >'') {
3889 echo text($ref_data['state'])." ";
3892 if ($ref_data['zip'] >'') {
3893 echo text($ref_data['zip'])."<br />";
3896 if ($ref_data['street2'] >'') {
3897 echo "<br />".text($ref_data['street2'])."<br />";
3900 if ($ref_data['streetb2'] >'') {
3901 echo text($ref_data['streetb2'])."<br />";
3904 if ($ref_data['city2'] >'') {
3905 echo text($ref_data['city2']).", ";
3908 if ($ref_data['state2'] >'') {
3909 echo text($ref_data['state2'])." ";
3912 if ($ref_data['zip2'] >'') {
3913 echo text($ref_data['zip2'])."<br />";
3926 <!-- END IMP
/PLAN
-->
3930 <!-- end form_container
for the main body of the form
-->
3935 </div
> <!-- end Layer3
-->
3936 </div
> <!-- end page wrapper
-->
3938 if ($display!="fullscreen") {
3939 // trial fullscreen will lead to tablet versions and bootstrap menu overhaul
3940 // this function is in php/eye_mag_functions.php
3941 $output = menu_overhaul_bottom($pid, $encounter);
3945 <script src
="<?php echo $GLOBALS['assets_static_relative']; ?>/jquery-panelslider-0-1-1/jquery.panelslider.js"></script
>
3947 <script src
="<?php echo $GLOBALS['assets_static_relative']; ?>/undone.js-0-0-1/undone.js"></script
>
3948 <script src
="<?php echo $GLOBALS['assets_static_relative']; ?>/undone.js-0-0-1/jquery.undone.js"></script
>
3952 $
("#undo, #redo, #clear").click(function(){
3956 $
(document
).on("mouseenter", ".toggle", function () {
3958 $
.undone("register",
3959 function () { self
.addClass("hidden"); },
3960 function () { self
.removeClass("hidden"); }
3964 $
(document
).keydown(function (e
) {
3966 if (e
.ctrlKey
) { // ctrl
3967 if (key
=== 90) $
.undone("undo"); // z
3968 if (key
=== 89) $
.undone("redo"); // y
3972 $
(window
).on("undone:change", function(e
, name
, undoLen
, redoLen
){
3973 $
("#undo").prop("disabled", !undoLen
);
3974 $
("#redo").prop("disabled", !redoLen
);
3975 $
("input").val(undoLen
)
3981 var a
= document
.createElement("a");
3983 a
.className
= "toggle";
3984 document
.getElementsByTagName("div")[0].appendChild(a
);
3986 var base
= '<?php echo $GLOBALS['webroot
']; ?>';
3988 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/interface/forms/<?php echo $form_folder; ?>/js/shorthand_eye.js"></script
>
3989 <script type
="text/javascript" src
="<?php echo $GLOBALS['assets_static_relative'] ?>/manual-added-packages/shortcut.js-2-01-B/shortcut.js"></script
>
3990 <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
>
3991 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/interface/forms/<?php echo $form_folder; ?>/js/canvasdraw.js"></script
>
3992 <script type
="text/javascript" src
="<?php echo $GLOBALS['assets_static_relative']; ?>/jscolor-1-4-5/jscolor.js"></script
>
3993 <script type
="text/javascript" src
="<?php echo $GLOBALS['webroot']; ?>/library/dialog.js?v=<?php echo $v_js_includes; ?>"></script
>
3994 <div id
="right-panel" name
="right-panel" class="panel_side">
3995 <div style
="margin-top:20px;text-align:center;font-size:1.2em;">
3996 <span
class="fa fa-file-text-o" id
="PANEL_TEXT" name
="PANEL_TEXT" style
="margin:2px;"></span
>
3997 <span
class="fa fa-database" id
="PANEL_QP" name
="PANEL_QP" style
="margin:2px;"></span
>
3998 <span
class="fa fa-paint-brush" id
="PANEL_DRAW" name
="PANEL_DRAW" style
="margin:2px;"></span
>
3999 <span
class="fa fa-user-md fa-sm" style
="margin:2px;" name
="Shorthand_kb"></span
>
4000 <span
class="fa fa-close" id
="close-panel-bt" style
="margin:2px;"></span
>
4002 <div id
="right_panel_refresh" data
-role
="panel" name
="right_panel_refresh">
4004 // We are building the panel bar with the patient medical info
4005 // Since the "lists" table has a "subtype" field now
4006 // each section could be customized, like SOCHx, subtype "smoking"
4007 // However openEMR stores most of this SocHx data in the layout_options table with
4008 // the form_id='HIS' and group_name='4Lifestyle' fields.
4009 // So we need to conform and pull this information out of the current "History" fields.
4010 // We do this in the eye_mag_functions.php file by creating a new array $PMSFH
4011 // pulling in the issues, Social History, FH and ROS into one place.
4012 // Eye Form uses $PMSFH to build two display options:
4013 // 1. PMH_QP (square panel)
4014 // - function display_PRIOR_section("PMSFH",$id,$id,$pid) in php/eye_mag_functions.php
4015 // - creates/populates the PMSFH values to the right of the PMH zone, in the PMH_2: QP zone.
4017 // - function show_PMSFH_panel($PMSFH) in php/eye_mag_functions.php
4018 // - creates/populates the right panel NavBar
4019 echo $output_PMSFH_panel = show_PMSFH_panel($PMSFH);
4024 $
('#left-panel-link').panelslider({side
: 'left', clickClose
: false, duration
: 600, easingOpen
: 'easeInBack', easingClose
: 'easeOutBack'});
4025 $
('#right-panel-link').panelslider({side
: 'right', clickClose
: false, duration
: 600, easingOpen
: 'easeInBack', easingClose
: 'easeOutBack'});
4026 $
('#right-panel-link_2').panelslider({side
: 'right', clickClose
: false, duration
: 600, easingOpen
: 'easeInBack', easingClose
: 'easeOutBack'});
4027 $
('#close-panel-bt').click(function() {
4028 $
.panelslider
.close();
4031 if ($PANEL_RIGHT >'0') { ?
>
4032 $
("#right-panel-link").trigger("click");
4037 <script src
="<?php echo $GLOBALS['assets_static_relative'] ?>/jquery-ui-1-11-4/jquery-ui.min.js"></script
>