Improve flexibility of which code types are used in claims and other misc.
[openemr.git] / contrib / forms / hand / report.php
blob4b12fefd7cfc961f3d815a8bd7d8acfbb9e33677
1 <?php
2 // Copyright (C) 2009 Aron Racho <aron@mi-squared.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 //------------Forms generated from formsWiz
8 include_once("../../globals.php");
9 include_once($GLOBALS["srcdir"] . "/api.inc");
10 function hand_report( $pid, $encounter, $cols, $id) {
11 $count = 0;
12 $cols = 2;
13 $data = formFetch("form_hand", $id);
14 $width = 100/$cols;
15 if ($data) {
18 <table class='text' border='0px' cellpadding='2px' cellspacing='0px'>
19 <tr>
20 <td width='80px'><b>&nbsp;</td>
21 <td width='80px'><b>1st</b></td>
22 <td width='80px'><b>2nd</b></td>
23 <td width='80px'><b>3rd</b></td>
24 </tr>
25 <tr>
26 <td>(L) Hand</td>
27 <td><?php echo $data['left_1'] ? $data['left_1']." fp" : "-"; ?></td>
28 <td><?php echo $data['left_2'] ? $data['left_2']." fp" : "-"; ?></td>
29 <td><?php echo $data['left_3'] ? $data['left_3']." fp" : "-"; ?></td>
30 </tr>
31 <tr>
32 <td>(R) Hand</td>
33 <td><?php echo $data['right_1'] ? $data['right_1']." fp" : "-"; ?></td>
34 <td><?php echo $data['right_2'] ? $data['right_2']." fp" : "-"; ?></td>
35 <td><?php echo $data['right_3'] ? $data['right_3']." fp" : "-"; ?></td>
36 </tr>
37 <tr>
38 <td>Handedness:</td>
39 <td colspan='3'><?php echo $data['handedness']; ?></td>
40 </tr>
42 </table>
44 <?php if ($data['notes'] != '') {?>
45 </p>
46 <table border='0' cellpadding='0' cellspacing='0' class='text'>
47 <tr class='text'>
48 <td><b>NOTES</b></td>
49 </tr>
50 <tr class='text'>
51 <td><p align='left'><?php echo $data['notes']?>&nbsp;</p></td>
52 </tr>
53 </table>
54 <?php } ?>
56 <?php