10 class FormReviewOfSystems
extends ORDataObject
27 var $date_tetnus_shot;
28 var $date_pneumonia_shot;
32 var $date_bone_density_scan;
33 var $abnormal_pap_smear;
34 var $abnormal_mammogram;
38 var $alcohol_per_week;
39 var $recreational_drugs;
44 * Constructor sets all Form attributes to their default value
47 function FormReviewOfSystems($id = "", $_prefix = "")
49 if (is_numeric($id)) {
55 $this->_table
= "form_review_of_systems";
56 $this->date
= date("Y-m-d H:i:s");
58 $this->pid
= $GLOBALS['pid'];
64 function toString($html = false)
67 ."ID: " . $this->id
. "\n";
70 return nl2br($string);
80 $sql = "SELECT name from form_review_of_systems_checks where foreign_id = '" . add_escape_custom($this->id
) . "'";
81 $results = sqlQ($sql);
83 while ($row = sqlFetchArray($results)) {
84 $this->checks
[] = $row['name'];
91 if (is_numeric($this->id
) and !empty($this->checks
)) {
92 $sql = "delete FROM form_review_of_systems_checks where foreign_id = '" . $this->id
. "'";
94 foreach ($this->checks
as $check) {
96 $sql = "INSERT INTO form_review_of_systems_checks set foreign_id='" . add_escape_custom($this->id
) . "', name = '" . add_escape_custom($check) . "'";
106 if (!empty($id) && is_numeric($id)) {
114 function set_pid($pid)
116 if (!empty($pid) && is_numeric($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_date_tetnus_shot($string)
137 $this->date_tetnus_shot
= $string;
139 function get_date_tetnus_shot()
141 return $this->date_tetnus_shot
;
144 function set_date_pneumonia_shot($string)
146 $this->date_pneumonia_shot
= $string;
148 function get_date_pneumonia_shot()
150 return $this->date_pneumonia_shot
;
153 function set_date_flu_shot($string)
155 $this->date_flu_shot
= $string;
157 function get_date_flu_shot()
159 return $this->date_flu_shot
;
162 function set_date_pap_smear($string)
164 $this->date_pap_smear
= $string;
166 function get_date_pap_smear()
168 return $this->date_pap_smear
;
171 function set_date_mammogram($string)
173 $this->date_mammogram
= $string;
175 function get_date_mammogram()
177 return $this->date_mammogram
;
180 function set_date_bone_density_scan($string)
182 $this->date_bone_density_scan
= $string;
184 function get_date_bone_density_scan()
186 return $this->date_bone_density_scan
;
189 function set_abnormal_pap_smear($string)
191 $this->abnormal_pap_smear
= $string;
193 function get_abnormal_pap_smear()
195 return $this->abnormal_pap_smear
;
198 function set_abnormal_mammogram($string)
200 $this->abnormal_mammogram
= $string;
202 function get_abnormal_mammogram()
204 return $this->abnormal_mammogram
;
207 function set_date_last_psa($string)
209 $this->date_last_psa
= $string;
211 function get_date_last_psa()
213 return $this->date_last_psa
;
216 function set_packs_per_day($string)
218 $this->packs_per_day
= $string;
220 function get_packs_per_day()
222 return $this->packs_per_day
;
225 function set_years_smoked($string)
227 $this->years_smoked
= $string;
229 function get_years_smoked()
231 return $this->years_smoked
;
234 function set_alcohol_per_week($string)
236 $this->alcohol_per_week
= $string;
238 function get_alcohol_per_week()
240 return $this->alcohol_per_week
;
243 function set_recreational_drugs($string)
245 $this->recreational_drugs
= $string;
247 function get_recreational_drugs()
249 return $this->recreational_drugs
;
252 function set_checks($check_array)
254 $this->checks
= $check_array;
257 function get_checks()
259 return $this->checks
;
263 function _form_layout()
269 //a_bottom is the textually identified rows of a checkbox group
271 $at[1]['constitutional_fever'] = "Fever";
272 $at[1]['constitutional_chills'] = "Chills";
273 $at[1]['constitutional_fatigue'] = "Fatigue";
274 $at[1]['constitutional_weakness'] = "Weakness";
276 $at[2]['constitutional_night_sweats'] = "Night Sweats";
277 $at[2]['constitutional__unexplained_weight_loss'] = "Unexplained Weight Loss";
278 $at[2]['constitutional_unexplained_weight_gain'] = "Unexplained Weight Gain";
280 $a['Constitutional'] = $at;
284 $at[1]['heent_changes_in_vision'] = "Changes in Vision";
285 $at[1]['heent_light_sensitivity'] = "Light Sensitivity";
286 $at[1]['heent_changes_in_hearing'] = "Changes in Hearing";
287 $at[1]['heent_ringing_in_ears'] = "Ringing in Ears";
289 $at[2]['heent_frequent_nose_bleeds'] = "Frequent Nose Bleeds";
290 $at[2]['heent_pain_with_swallowing'] = "Pain with Swallowing";
291 $at[2]['heent_difficulty_swallowing'] = "Difficulty Swallowing";
297 $at[1]['endocrine_frequent_thirst'] = "Frequent Thirst";
298 $at[1]['endocrine_frequent_urination'] = "Frequent Urination";
299 $at[1]['endocrine_heat_intolerance'] = "Heat Intolerance";
300 $at[1]['endocrine_brittle_hair'] = "Brittle Hair";
302 $a['Enodcrine'] = $at;
306 $at[1]['respiratory_shortness_of_breath'] = "Shortness Of Breath";
307 $at[1]['respiratory_difficulty_breathing'] = "Difficulty Breathing";
308 $at[1]['respiratory_wheezing'] = "Wheezing";
309 $at[1]['respiratory_coughing_up_blood'] = "Coughing up Blood";
311 $a['Respiratory'] = $at;
315 $at[1]['cv_chest_pain'] = "Chest Pain";
316 $at[1]['cv_palpitations'] = "Palpitations";
317 $at[1]['cv_shortness_of_breath_with_exertion'] = "Shortness of Breath with Exertion";
318 $at[1]['cv_swelling_in_ankles'] = "Swelling in Ankles";
324 $at[1]['gi_frequent_heartburn'] = "Frequent Heartburn";
325 $at[1]['gi_vomiting'] = "Vomiting";
326 $at[1]['gi_diarrhea'] = "Diarrhea";
327 $at[1]['gi_constipation'] = "Constipation";
329 $at[2]['gi_unusually_dark_stools'] = "Unusually Dark Stools";
330 $at[2]['gi_vomiting_blood'] = "Vomiting Blood";
336 $at[1]['gu_pain_with_urination'] = "Pain with Urination";
337 $at[1]['gu_difficulty_urinating'] = "Difficulty Urinating";
338 $at[1]['gu_frequent_nightime_urination'] = "Frequent Nightime Urination";
340 $at["Women"]['gu_women_pelvic_pain'] = "Pelvic Pain";
341 $at["Women"]['gu_women_leaking_of_urine'] = "Leaking of Urine";
342 $at["Women"]['gu_women_nipple_discharge'] = "Nipple Discharge";
343 $at["Women"]['gu_women_breast_pain'] = "Breast Pain";
345 $at["Men"]['gu_men_difficulty_attaining_erection'] = "Difficulty Attaining Erection";
346 $at["Men"]['gu_men_testicular_pain'] = "Testicular Pain";
352 $at[1]['musculoskeletal_pain_in_joints'] = "Pain in Joints";
353 $at[1]['musculoskeletal_swollen_joints'] = "Swollen Joints";
354 $at[1]['musculoskeletal_muscle_pain'] = "Muscle Pain";
356 $a['Musculoskeletal'] = $at;
360 $at[1]['skin_rash'] = "Rash";
361 $at[1]['skin_hives'] = "Hives";
362 $at[1]['skin_changing_moles'] = "Changing Moles";
363 $at[1]['skin_sores_wont_heal'] = "Sores that Won't Heal";
369 $at[1]['neurological_seizures'] = "Seizures";
370 $at[1]['neurological_loss_of_conciousness'] = "Loss of Conciousness";
371 $at[1]['neurological_speech_difficulty'] = "Speech Difficulty";
372 $at[1]['neurological_memory_loss'] = "Memory Loss";
374 $at[2]['neurological_numbness'] = "Numbness";
375 $at[2]['neurological_confusion'] = "Confusion";
377 $a['Neurological'] = $at;
381 $at[1]['hematologic_easy_bruising'] = "Easy Bruising";
382 $at[1]['hematologic_bleeding_gums'] = "Bleeding Gums";
384 $a['Hematologic'] = $at;
388 $at["When sexually active,<br> are you active with:"]['sexually_active_men'] = "Men";
389 $at["When sexually active,<br> are you active with:"]['sexually_active_women'] = "Women";
390 $at["When sexually active,<br> are you active with:"]['sexually_active_both'] = "Both";