Clickmap Graphical API and Pain Form
[openemr.git] / contrib / forms / leg_length / FormLegLength.class.php
blob9186619dd023014aa593c7165425eab2667af36c
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
8 require_once(dirname(__FILE__) . "/../../../library/classes/ORDataObject.class.php");
10 define("EVENT_VEHICLE",1);
11 define("EVENT_WORK_RELATED",2);
12 define("EVENT_SLIP_FALL",3);
13 define("EVENT_OTHER",4);
16 /**
17 * class FormHpTjePrimary
20 class FormLegLength extends ORDataObject {
22 /**
24 * @access public
28 /**
30 * static
32 var $id;
33 var $date;
34 var $pid;
35 var $user;
36 var $groupname;
37 var $activity;
39 var $AE_left;
40 var $AE_right;
41 var $BE_left;
42 var $BE_right;
43 var $AK_left;
44 var $AK_right;
45 var $K_left;
46 var $K_right;
47 var $BK_left;
48 var $BK_right;
49 var $ASIS_left;
50 var $ASIS_right;
51 var $UMB_left;
52 var $UMB_right;
54 /**
55 * Constructor sets all Form attributes to their default value
58 function FormLegLength($id= "", $_prefix = "") {
59 if (is_numeric($id)) {
60 $this->id = $id;
62 else {
63 $id = "";
64 $this->date = date("Y-m-d H:i:s");
67 $this->_table = "form_leg_length";
68 $this->activity = 1;
69 $this->pid = $GLOBALS['pid'];
70 if ($id != "") {
71 $this->populate();
72 //$this->date = $this->get_date();
75 function populate() {
76 parent::populate();
77 //$this->temp_methods = parent::_load_enum("temp_locations",false);
80 function toString($html = false) {
81 $string .= "\n"
82 ."ID: " . $this->id . "\n";
84 if ($html) {
85 return nl2br($string);
87 else {
88 return $string;
91 function set_id($id) {
92 if (!empty($id) && is_numeric($id)) {
93 $this->id = $id;
96 function get_id() {
97 return $this->id;
99 function set_pid($pid) {
100 if (!empty($pid) && is_numeric($pid)) {
101 $this->pid = $pid;
104 function get_pid() {
105 return $this->pid;
108 function get_date() {
109 return $this->date;
111 function set_date($dt) {
112 if (!empty($dt)) {
113 $this->date = $dt;
116 function get_user() {
117 return $this->user;
119 function set_user($u) {
120 if(!empty($u)){
121 $this->user = $u;
125 function set_activity($tf) {
126 if (!empty($tf) && is_numeric($tf)) {
127 $this->activity = $tf;
130 function get_activity() {
131 return $this->activity;
134 function persist() {
135 parent::persist();
140 function get_AE_left() {
141 return $this->AE_left;
143 function set_AE_left($tf) {
144 if (true) {
145 $this->AE_left = $tf;
148 function get_AE_right() {
149 return $this->AE_right;
152 function set_AE_right($tf) {
153 if (true) {
154 $this->AE_right = $tf;
157 function get_BE_left() {
158 return $this->BE_left;
161 function set_BE_left($tf) {
162 if (true) {
163 $this->BE_left = $tf;
166 function get_BE_right() {
167 return $this->BE_right;
170 function set_BE_right($tf) {
171 if (true) {
172 $this->BE_right = $tf;
175 function get_AK_left() {
176 return $this->AK_left;
178 function set_AK_left($tf) {
179 if (true) {
180 $this->AK_left = $tf;
183 function get_AK_right() {
184 return $this->AK_right;
186 function set_AK_right($tf) {
187 if (true) {
188 $this->AK_right = $tf;
191 function get_K_left() {
192 return $this->K_left;
195 function set_K_left($tf) {
196 if (true) {
197 $this->K_left = $tf;
200 function get_K_right() {
201 return $this->K_right;
204 function set_K_right($tf) {
205 if (true) {
206 $this->K_right = $tf;
209 function get_BK_left() {
210 return $this->BK_left;
213 function set_BK_left($tf) {
214 if (true) {
215 $this->BK_left = $tf;
218 function get_BK_right() {
219 return $this->BK_right;
222 function set_BK_right($tf) {
223 if (true) {
224 $this->BK_right = $tf;
227 function get_ASIS_left() {
228 return $this->ASIS_left;
231 function set_ASIS_left($tf) {
232 if (true) {
233 $this->ASIS_left = $tf;
236 function get_ASIS_right() {
237 return $this->ASIS_right;
240 function set_ASIS_right($tf) {
241 if (true) {
242 $this->ASIS_right = $tf;
245 function get_UMB_left() {
246 return $this->UMB_left;
249 function set_UMB_left($tf) {
250 if (true) {
251 $this->UMB_left = $tf;
254 function get_UMB_right() {
255 return $this->UMB_right;
258 function set_UMB_right($tf) {
259 if (true) {
260 $this->UMB_right = $tf;
264 // ----- notes -----
266 var $notes;
267 function get_notes() {
268 return $this->notes;
270 function set_notes($data) {
271 if(!empty($data)) {
272 $this->notes = $data;
276 } // end of Form