psr12 fixes for new PHP_CodeSniffer (#4795)
[openemr.git] / contrib / forms / prosthesis / FormProsthesis.class.php
blobdd6e76167f14b48f1a77e768c2d3697e324258f0
1 <?php
3 use OpenEMR\ORDataObject\ORDataObject;
5 /**
6 * class Prosthesis
8 */
9 class FormProsthesis extends ORDataObject
11 /**
13 * @access public
18 /**
20 * @access private
23 var $id;
24 var $date;
25 var $pid;
26 var $activity;
27 var $therapist;
28 var $involvement_left;
29 var $involvement_right;
30 var $involvement_bilateral;
31 var $location;
32 var $location_array = array("office" => "Office", "home" => "Home", "skilled_nurse_fac" => "Skilled Nurs. Fac.", "acute_hospital" => "Acute Hosp.",
33 "nursing_home" => "Nursing Home", "rehab_hospital" => "Rehab. Hosp.", "other" => "Other");
34 var $diagnosis;
35 var $hx;
36 var $worn_le_past_five;
37 var $model;
38 var $size;
39 var $new;
40 var $replacement;
41 var $foam_impressions;
42 var $shoe_size;
43 var $calf;
44 var $ankle;
45 var $purpose;
46 var $purpose_array = array("pain_reduction" => "Pain Reduction", "offload_involved_area" => "Offload invloved Area", "immobilize" => "Immobilize",
47 "limit_motion" => "Limit Motion", "accomodation" => "Accomodation", "reduce_edema" => "Reduce Edema",
48 "facilitate_healing" => "Facilitate Healing", "other" => "Other");
49 var $notes;
50 var $goals_discussed;
51 var $use_reviewed;
52 var $wear_reviewed;
53 var $worn_years;
54 var $age_months;
55 var $age_years;
56 var $wear_hours;
57 var $plan_to_order;
58 var $plan_to_order_date;
59 var $receiveded_product;
60 var $received_product_date;
61 var $given_instructions;
62 var $patient_understands;
64 var $cpt_array = array( "L0500" => "L0500 LS corset", "L3010" => "L3010 Molded FO", "L3020" => "L3020 Molded FO + Met pad",
65 "L3221" => "L3221 Men's depth shoes", "L3216" => "L3216 Women's depth shoes", "L3332" => "L3332 In-shoe .5\" heel lift",
66 "L8100" => "L8100 BK comp hose (20-30mmHg)","L8110" => "L8110 BK comp hose (30-40mmHg)", "L8130" => "L8130 AK comp hose (20-30mmHg)",
67 "L8140" => "L8140 AK comp hose (30-40mmHg)");
70 /**
71 * Constructor sets all Form attributes to their default value
74 function __construct($id = "", $_prefix = "")
76 parent::__construct();
78 if (is_numeric($id)) {
79 $this->id = $id;
80 } else {
81 $id = "";
84 $this->_table = "form_prosthesis";
85 $this->date = date("Y-m-d H:i:s");
86 $this->activity = 1;
87 $this->pid = $GLOBALS['pid'];
88 if ($id != "") {
89 $this->populate();
93 function __toString()
95 return "ID: " . $this->id . "\n";
98 function set_id($id)
100 if (!empty($id) && is_numeric($id)) {
101 $this->id = $id;
104 function get_id()
106 return $this->id;
108 function set_pid($pid)
110 if (!empty($pid) && is_numeric($pid)) {
111 $this->pid = $pid;
114 function get_pid()
116 return $this->pid;
118 function set_activity($tf)
120 if (!empty($tf) && is_numeric($tf)) {
121 $this->activity = $tf;
124 function get_activity()
126 return $this->activity;
129 function set_therapist($string)
131 $this->therapist = $string;
134 function get_therapist()
136 return $this->therapist;
139 function set_involvement_left($tf)
141 $this->involvement_left = $tf;
144 function get_involvement_left()
146 return $this->involvement_left;
149 function set_involvement_right($tf)
151 $this->involvement_right = $tf;
154 function get_involvement_right()
156 return $this->involvement_right;
159 function set_involvement_bilateral($tf)
161 $this->involvement_bilateral = $tf;
164 function get_involvement_bilateral()
166 return $this->involvement_bilateral;
169 function set_location($string)
171 $this->location = $string;
174 function get_location()
176 return $this->location;
178 function set_diagnosis($string)
180 $this->diagnosis = $string;
183 function get_diagnosis()
185 return $this->diagnosis;
187 function set_hx($string)
189 $this->hx = $string;
192 function get_hx()
194 return $this->hx;
197 function set_worn_le_past_five($tf)
199 $this->worn_le_past_five = $tf;
202 function get_worn_le_past_five()
204 return $this->worn_le_past_five;
207 function set_model($string)
209 $this->model = $string;
212 function get_model()
214 return $this->model;
217 function set_new($tf)
219 $this->new = $tf;
222 function get_new()
224 return $this->new;
227 function set_size($string)
229 $this->size = $string;
232 function get_size()
234 return $this->size;
237 function set_replacement($tf)
239 $this->replacement = $tf;
242 function get_replacement()
244 return $this->replacement;
247 function set_foam_impressions($tf)
249 $this->foam_impressions = $tf;
252 function get_foam_impressions()
254 return $this->foam_impressions;
257 function set_shoe_size($string)
259 $this->shoe_size = $string;
262 function get_shoe_size()
264 return $this->shoe_size;
266 function set_calf($string)
268 $this->calf = $string;
271 function get_calf()
273 return $this->calf;
275 function set_ankle($string)
277 $this->ankle = $string;
280 function get_ankle()
282 return $this->ankle;
285 function set_purpose($string)
287 $this->purpose = $string;
290 function get_purpose()
292 return $this->purpose;
294 function set_purpose_other($string)
296 $this->purpose_other = $string;
299 function get_purpose_other()
301 return $this->purpose_other;
304 function set_notes($string)
306 $this->notes = $string;
309 function get_notes()
311 return $this->notes;
313 function set_goals_discussed($tf)
315 $this->goals_discussed = $tf;
318 function get_goals_discussed()
320 return $this->goals_discussed;
323 function set_use_reviewed($tf)
325 $this->use_reviewed = $tf;
328 function get_use_reviewed()
330 return $this->use_reviewed;
333 function set_wear_reviewed($tf)
335 $this->wear_reviewed = $tf;
338 function get_wear_reviewed()
340 return $this->wear_reviewed;
343 function get_date()
345 return $this->date;
348 function set_worn_years($string)
350 $this->worn_years = $string;
353 function get_worn_years()
355 return $this->worn_years;
357 function set_age_months($string)
359 $this->age_months = $string;
362 function get_age_months()
364 return $this->age_months;
366 function set_age_years($string)
368 $this->age_years = $string;
371 function get_age_years()
373 return $this->age_years;
375 function set_wear_hours($string)
377 $this->wear_hours = $string;
380 function get_wear_hours()
382 return $this->wear_hours;
385 function set_plan_to_order($tf)
387 $this->plan_to_order = $tf;
390 function get_plan_to_order()
392 return $this->plan_to_order;
395 function set_plan_to_order_date($string)
397 $this->plan_to_order_date = $string;
400 function get_plan_to_order_date()
402 return $this->plan_to_order_date;
405 function set_received_product($tf)
407 $this->received_product = $tf;
410 function get_received_product()
412 return $this->received_product;
414 function set_received_product_date($string)
416 $this->received_product_date = $string;
419 function get_received_product_date()
421 return $this->received_product_date;
424 function set_given_instructions($tf)
426 $this->given_instructions = $tf;
429 function get_given_instructions()
431 return $this->given_instructions;
434 function set_patient_understands($tf)
436 $this->patient_understands = $tf;
439 function get_patient_understands()
441 return $this->patient_understands;
443 } // end of Form