php7 related fixes in the contributed forms
[openemr.git] / contrib / forms / prosthesis / FormProsthesis.class.php
blobe6d305319f7edf744e7b2c559465f44ccd0966bd
1 <?php
6 /**
7 * class Prosthesis
9 */
10 class FormProsthesis extends ORDataObject {
12 /**
14 * @access public
19 /**
21 * @access private
24 var $id;
25 var $date;
26 var $pid;
27 var $activity;
28 var $therapist;
29 var $involvement_left;
30 var $involvement_right;
31 var $involvement_bilateral;
32 var $location;
33 var $location_array = array("office" => "Office", "home" => "Home", "skilled_nurse_fac" => "Skilled Nurs. Fac.", "acute_hospital" => "Acute Hosp.",
34 "nursing_home" => "Nursing Home", "rehab_hospital" => "Rehab. Hosp.", "other" => "Other");
35 var $diagnosis;
36 var $hx;
37 var $worn_le_past_five;
38 var $model;
39 var $size;
40 var $new;
41 var $replacement;
42 var $foam_impressions;
43 var $shoe_size;
44 var $calf;
45 var $ankle;
46 var $purpose;
47 var $purpose_array = array("pain_reduction" => "Pain Reduction", "offload_involved_area" => "Offload invloved Area", "immobilize" => "Immobilize",
48 "limit_motion" => "Limit Motion", "accomodation" => "Accomodation", "reduce_edema" => "Reduce Edema",
49 "facilitate_healing" => "Facilitate Healing", "other" => "Other");
50 var $notes;
51 var $goals_discussed;
52 var $use_reviewed;
53 var $wear_reviewed;
54 var $worn_years;
55 var $age_months;
56 var $age_years;
57 var $wear_hours;
58 var $plan_to_order;
59 var $plan_to_order_date;
60 var $receiveded_product;
61 var $received_product_date;
62 var $given_instructions;
63 var $patient_understands;
65 var $cpt_array = array( "L0500" => "L0500 LS corset", "L3010" => "L3010 Molded FO", "L3010" => "L3020 Molded FO + Met pad",
66 "L3221" => "L3221 Men's depth shoes", "L3216" => "L3216 Women's depth shoes", "L3332" => "L3332 In-shoe .5\" heel lift",
67 "L8100" => "L8100 BK comp hose (20-30mmHg)","L8110" => "L8110 BK comp hose (30-40mmHg)", "L8130" => "L8130 AK comp hose (20-30mmHg)",
68 "L8140" => "L8140 AK comp hose (30-40mmHg)");
71 /**
72 * Constructor sets all Form attributes to their default value
75 function FormProsthesis($id= "", $_prefix = "") {
76 if (is_numeric($id)) {
77 $this->id = $id;
79 else {
80 $id = "";
82 $this->_table = "form_prosthesis";
83 $this->date = date("Y-m-d H:i:s");
84 $this->activity = 1;
85 $this->pid = $GLOBALS['pid'];
86 if ($id != "") {
87 $this->populate();
91 function toString($html = false) {
92 $string .= "\n"
93 ."ID: " . $this->id . "\n";
95 if ($html) {
96 return nl2br($string);
98 else {
99 return $string;
102 function set_id($id) {
103 if (!empty($id) && is_numeric($id)) {
104 $this->id = $id;
107 function get_id() {
108 return $this->id;
110 function set_pid($pid) {
111 if (!empty($pid) && is_numeric($pid)) {
112 $this->pid = $pid;
115 function get_pid() {
116 return $this->pid;
118 function set_activity($tf) {
119 if (!empty($tf) && is_numeric($tf)) {
120 $this->activity = $tf;
123 function get_activity() {
124 return $this->activity;
127 function set_therapist($string) {
128 $this->therapist = $string;
131 function get_therapist() {
132 return $this->therapist;
135 function set_involvement_left($tf) {
136 $this->involvement_left = $tf;
139 function get_involvement_left() {
140 return $this->involvement_left;
143 function set_involvement_right($tf) {
144 $this->involvement_right = $tf;
147 function get_involvement_right() {
148 return $this->involvement_right;
151 function set_involvement_bilateral($tf) {
152 $this->involvement_bilateral = $tf;
155 function get_involvement_bilateral() {
156 return $this->involvement_bilateral;
159 function set_location($string) {
160 $this->location = $string;
163 function get_location() {
164 return $this->location;
166 function set_diagnosis($string) {
167 $this->diagnosis = $string;
170 function get_diagnosis() {
171 return $this->diagnosis;
173 function set_hx($string) {
174 $this->hx = $string;
177 function get_hx() {
178 return $this->hx;
181 function set_worn_le_past_five($tf) {
182 $this->worn_le_past_five = $tf;
185 function get_worn_le_past_five() {
186 return $this->worn_le_past_five;
189 function set_model($string) {
190 $this->model = $string;
193 function get_model() {
194 return $this->model;
197 function set_new($tf) {
198 $this->new = $tf;
201 function get_new() {
202 return $this->new;
205 function set_size($string) {
206 $this->size = $string;
209 function get_size() {
210 return $this->size;
213 function set_replacement($tf) {
214 $this->replacement = $tf;
217 function get_replacement() {
218 return $this->replacement;
221 function set_foam_impressions($tf) {
222 $this->foam_impressions = $tf;
225 function get_foam_impressions() {
226 return $this->foam_impressions;
229 function set_shoe_size($string) {
230 $this->shoe_size = $string;
233 function get_shoe_size() {
234 return $this->shoe_size;
236 function set_calf($string) {
237 $this->calf = $string;
240 function get_calf() {
241 return $this->calf;
243 function set_ankle($string) {
244 $this->ankle = $string;
247 function get_ankle() {
248 return $this->ankle;
251 function set_purpose($string) {
252 $this->purpose = $string;
255 function get_purpose() {
256 return $this->purpose;
258 function set_purpose_other($string) {
259 $this->purpose_other = $string;
262 function get_purpose_other() {
263 return $this->purpose_other;
266 function set_notes($string) {
267 $this->notes = $string;
270 function get_notes() {
271 return $this->notes;
273 function set_goals_discussed($tf) {
274 $this->goals_discussed = $tf;
277 function get_goals_discussed() {
278 return $this->goals_discussed;
281 function set_use_reviewed($tf) {
282 $this->use_reviewed = $tf;
285 function get_use_reviewed() {
286 return $this->use_reviewed;
289 function set_wear_reviewed($tf) {
290 $this->wear_reviewed = $tf;
293 function get_wear_reviewed() {
294 return $this->wear_reviewed;
297 function get_date() {
298 return $this->date;
301 function set_worn_years($string) {
302 $this->worn_years = $string;
305 function get_worn_years() {
306 return $this->worn_years;
308 function set_age_months($string) {
309 $this->age_months = $string;
312 function get_age_months() {
313 return $this->age_months;
315 function set_age_years($string) {
316 $this->age_years = $string;
319 function get_age_years() {
320 return $this->age_years;
322 function set_wear_hours($string) {
323 $this->wear_hours = $string;
326 function get_wear_hours() {
327 return $this->wear_hours;
330 function set_plan_to_order($tf) {
331 $this->plan_to_order = $tf;
334 function get_plan_to_order() {
335 return $this->plan_to_order;
338 function set_plan_to_order_date($string) {
339 $this->plan_to_order_date = $string;
342 function get_plan_to_order_date() {
343 return $this->plan_to_order_date;
346 function set_received_product($tf) {
347 $this->received_product = $tf;
350 function get_received_product() {
351 return $this->received_product;
353 function set_received_product_date($string) {
354 $this->received_product_date = $string;
357 function get_received_product_date() {
358 return $this->received_product_date;
361 function set_given_instructions($tf) {
362 $this->given_instructions = $tf;
365 function get_given_instructions() {
366 return $this->given_instructions;
369 function set_patient_understands($tf) {
370 $this->patient_understands = $tf;
373 function get_patient_understands() {
374 return $this->patient_understands;
377 } // end of Form