Highway to PSR2
[openemr.git] / contrib / forms / prosthesis / FormProsthesis.class.php
blobf9f39e687c370a0a17205ef588606845b990d9f9
1 <?php
6 /**
7 * class Prosthesis
9 */
10 class FormProsthesis extends ORDataObject
13 /**
15 * @access public
20 /**
22 * @access private
25 var $id;
26 var $date;
27 var $pid;
28 var $activity;
29 var $therapist;
30 var $involvement_left;
31 var $involvement_right;
32 var $involvement_bilateral;
33 var $location;
34 var $location_array = array("office" => "Office", "home" => "Home", "skilled_nurse_fac" => "Skilled Nurs. Fac.", "acute_hospital" => "Acute Hosp.",
35 "nursing_home" => "Nursing Home", "rehab_hospital" => "Rehab. Hosp.", "other" => "Other");
36 var $diagnosis;
37 var $hx;
38 var $worn_le_past_five;
39 var $model;
40 var $size;
41 var $new;
42 var $replacement;
43 var $foam_impressions;
44 var $shoe_size;
45 var $calf;
46 var $ankle;
47 var $purpose;
48 var $purpose_array = array("pain_reduction" => "Pain Reduction", "offload_involved_area" => "Offload invloved Area", "immobilize" => "Immobilize",
49 "limit_motion" => "Limit Motion", "accomodation" => "Accomodation", "reduce_edema" => "Reduce Edema",
50 "facilitate_healing" => "Facilitate Healing", "other" => "Other");
51 var $notes;
52 var $goals_discussed;
53 var $use_reviewed;
54 var $wear_reviewed;
55 var $worn_years;
56 var $age_months;
57 var $age_years;
58 var $wear_hours;
59 var $plan_to_order;
60 var $plan_to_order_date;
61 var $receiveded_product;
62 var $received_product_date;
63 var $given_instructions;
64 var $patient_understands;
66 var $cpt_array = array( "L0500" => "L0500 LS corset", "L3010" => "L3010 Molded FO", "L3010" => "L3020 Molded FO + Met pad",
67 "L3221" => "L3221 Men's depth shoes", "L3216" => "L3216 Women's depth shoes", "L3332" => "L3332 In-shoe .5\" heel lift",
68 "L8100" => "L8100 BK comp hose (20-30mmHg)","L8110" => "L8110 BK comp hose (30-40mmHg)", "L8130" => "L8130 AK comp hose (20-30mmHg)",
69 "L8140" => "L8140 AK comp hose (30-40mmHg)");
72 /**
73 * Constructor sets all Form attributes to their default value
76 function FormProsthesis($id = "", $_prefix = "")
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($html = false)
95 $string .= "\n"
96 ."ID: " . $this->id . "\n";
98 if ($html) {
99 return nl2br($string);
100 } else {
101 return $string;
104 function set_id($id)
106 if (!empty($id) && is_numeric($id)) {
107 $this->id = $id;
110 function get_id()
112 return $this->id;
114 function set_pid($pid)
116 if (!empty($pid) && is_numeric($pid)) {
117 $this->pid = $pid;
120 function get_pid()
122 return $this->pid;
124 function set_activity($tf)
126 if (!empty($tf) && is_numeric($tf)) {
127 $this->activity = $tf;
130 function get_activity()
132 return $this->activity;
135 function set_therapist($string)
137 $this->therapist = $string;
140 function get_therapist()
142 return $this->therapist;
145 function set_involvement_left($tf)
147 $this->involvement_left = $tf;
150 function get_involvement_left()
152 return $this->involvement_left;
155 function set_involvement_right($tf)
157 $this->involvement_right = $tf;
160 function get_involvement_right()
162 return $this->involvement_right;
165 function set_involvement_bilateral($tf)
167 $this->involvement_bilateral = $tf;
170 function get_involvement_bilateral()
172 return $this->involvement_bilateral;
175 function set_location($string)
177 $this->location = $string;
180 function get_location()
182 return $this->location;
184 function set_diagnosis($string)
186 $this->diagnosis = $string;
189 function get_diagnosis()
191 return $this->diagnosis;
193 function set_hx($string)
195 $this->hx = $string;
198 function get_hx()
200 return $this->hx;
203 function set_worn_le_past_five($tf)
205 $this->worn_le_past_five = $tf;
208 function get_worn_le_past_five()
210 return $this->worn_le_past_five;
213 function set_model($string)
215 $this->model = $string;
218 function get_model()
220 return $this->model;
223 function set_new($tf)
225 $this->new = $tf;
228 function get_new()
230 return $this->new;
233 function set_size($string)
235 $this->size = $string;
238 function get_size()
240 return $this->size;
243 function set_replacement($tf)
245 $this->replacement = $tf;
248 function get_replacement()
250 return $this->replacement;
253 function set_foam_impressions($tf)
255 $this->foam_impressions = $tf;
258 function get_foam_impressions()
260 return $this->foam_impressions;
263 function set_shoe_size($string)
265 $this->shoe_size = $string;
268 function get_shoe_size()
270 return $this->shoe_size;
272 function set_calf($string)
274 $this->calf = $string;
277 function get_calf()
279 return $this->calf;
281 function set_ankle($string)
283 $this->ankle = $string;
286 function get_ankle()
288 return $this->ankle;
291 function set_purpose($string)
293 $this->purpose = $string;
296 function get_purpose()
298 return $this->purpose;
300 function set_purpose_other($string)
302 $this->purpose_other = $string;
305 function get_purpose_other()
307 return $this->purpose_other;
310 function set_notes($string)
312 $this->notes = $string;
315 function get_notes()
317 return $this->notes;
319 function set_goals_discussed($tf)
321 $this->goals_discussed = $tf;
324 function get_goals_discussed()
326 return $this->goals_discussed;
329 function set_use_reviewed($tf)
331 $this->use_reviewed = $tf;
334 function get_use_reviewed()
336 return $this->use_reviewed;
339 function set_wear_reviewed($tf)
341 $this->wear_reviewed = $tf;
344 function get_wear_reviewed()
346 return $this->wear_reviewed;
349 function get_date()
351 return $this->date;
354 function set_worn_years($string)
356 $this->worn_years = $string;
359 function get_worn_years()
361 return $this->worn_years;
363 function set_age_months($string)
365 $this->age_months = $string;
368 function get_age_months()
370 return $this->age_months;
372 function set_age_years($string)
374 $this->age_years = $string;
377 function get_age_years()
379 return $this->age_years;
381 function set_wear_hours($string)
383 $this->wear_hours = $string;
386 function get_wear_hours()
388 return $this->wear_hours;
391 function set_plan_to_order($tf)
393 $this->plan_to_order = $tf;
396 function get_plan_to_order()
398 return $this->plan_to_order;
401 function set_plan_to_order_date($string)
403 $this->plan_to_order_date = $string;
406 function get_plan_to_order_date()
408 return $this->plan_to_order_date;
411 function set_received_product($tf)
413 $this->received_product = $tf;
416 function get_received_product()
418 return $this->received_product;
420 function set_received_product_date($string)
422 $this->received_product_date = $string;
425 function get_received_product_date()
427 return $this->received_product_date;
430 function set_given_instructions($tf)
432 $this->given_instructions = $tf;
435 function get_given_instructions()
437 return $this->given_instructions;
440 function set_patient_understands($tf)
442 $this->patient_understands = $tf;
445 function get_patient_understands()
447 return $this->patient_understands;
449 } // end of Form