3 require_once(dirname(__FILE__
) . "/../../../library/classes/ORDataObject.class.php");
10 class FormROS
extends ORDataObject
{
31 var $weight_change = "N/A";
32 var $weakness = "N/A";
34 var $anorexia = "N/A";
37 var $night_sweats = "N/A";
38 var $insomnia = "N/A";
39 var $irritability = "N/A";
40 var $heat_or_cold = "N/A";
41 var $intolerance = "N/A";
42 var $change_in_vision = "N/A";
43 var $glaucoma_history = "N/A";
44 var $eye_pain = "N/A";
45 var $irritation = "N/A";
47 var $excessive_tearing = "N/A";
48 var $double_vision = "N/A";
49 var $blind_spots = "N/A";
50 var $photophobia = "N/A";
51 var $hearing_loss = "N/A";
52 var $discharge = "N/A";
55 var $tinnitus = "N/A";
56 var $frequent_colds = "N/A";
57 var $sore_throat = "N/A";
58 var $sinus_problems = "N/A";
59 var $post_nasal_drip = "N/A";
60 var $nosebleed = "N/A";
63 var $breast_mass = "N/A";
64 var $breast_discharge = "N/A";
66 var $abnormal_mammogram = "N/A";
69 var $shortness_of_breath = "N/A";
70 var $wheezing = "N/A";
71 var $hemoptsyis = "N/A";
74 var $chest_pain = "N/A";
75 var $palpitation = "N/A";
79 var $orthopnea = "N/A";
80 var $peripheal = "N/A";
82 var $legpain_cramping = "N/A";
83 var $history_murmur = "N/A";
84 var $arryhmia = "N/A";
85 var $heart_problem = "N/A";
86 var $dysphagia = "N/A";
87 var $heartburn = "N/A";
88 var $bloating = "N/A";
89 var $belching = "N/A";
90 var $flatulence = "N/A";
92 var $vomiting = "N/A";
93 var $hematemesis = "N/A";
94 var $gastro_pain = "N/A";
95 var $food_intolerance = "N/A";
96 var $hepatitis = "N/A";
97 var $jaundice = "N/A";
98 var $hematochezia = "N/A";
99 var $changed_bowel = "N/A";
100 var $diarrhea = "N/A";
101 var $constipation = "N/A";
102 var $polyuria = "N/A";
103 var $polydypsia = "N/A";
104 var $dysuria = "N/A";
105 var $hematuria = "N/A";
106 var $frequency = "N/A";
107 var $urgency = "N/A";
108 var $incontinence = "N/A";
109 var $renal_stones = "N/A";
111 var $hesitancy = "N/A";
112 var $dribbling = "N/A";
114 var $nocturia = "N/A";
115 var $erections = "N/A";
116 var $ejaculations = "N/A";
121 var $mearche = "N/A";
122 var $menopause = "N/A";
124 var $f_frequency = "N/A";
126 var $f_symptoms = "N/A";
127 var $abnormal_hair_growth = "N/A";
128 var $f_hirsutism = "N/A";
129 var $joint_pain = "N/A";
130 var $swelling = "N/A";
131 var $m_redness = "N/A";
133 var $m_stiffness = "N/A";
135 var $m_aches = "N/A";
137 var $arthritis = "N/A";
139 var $seizures = "N/A";
142 var $n_numbness = "N/A";
143 var $n_weakness = "N/A";
144 var $paralysis = "N/A";
145 var $intellectual_decline = "N/A";
146 var $memory_problems = "N/A";
147 var $dementia = "N/A";
148 var $n_headache = "N/A";
149 var $s_cancer = "N/A";
150 var $psoriasis = "N/A";
152 var $s_other = "N/A";
153 var $s_disease = "N/A";
154 var $p_diagnosis = "N/A";
155 var $p_medication = "N/A";
156 var $depression = "N/A";
157 var $anxiety = "N/A";
158 var $social_difficulties = "N/A";
159 var $thyroid_problems = "N/A";
160 var $diabetes = "N/A";
161 var $abnormal_blood = "N/A";
163 var $fh_blood_problems = "N/A";
164 var $bleeding_problems = "N/A";
165 var $allergies = "N/A";
166 var $frequent_illness = "N/A";
168 var $hai_status = "N/A";
171 * Constructor sets all Form attributes to their default value
174 function FormROS($id= "", $_prefix = "") {
175 if (is_numeric($id)) {
181 $this->date
= date("Y-m-d H:i:s");
182 $this->date_of_onset
= date("Y-m-d");
183 $this->_table
= "form_ros";
185 $this->pid
= $GLOBALS['pid'];
191 function populate() {
195 function set_id($id) {
196 if (!empty($id) && is_numeric($id)) {
203 function set_pid($pid) {
204 if (!empty($pid) && is_numeric($pid)) {
212 function get_date() {
216 function set_date($date) {
222 function get_weight_change(){
223 return $this->weight_change
;
225 function set_weight_change($data){
227 $this->weight_change
= $data;
231 function get_weakness(){
232 return $this->weakness
;
234 function set_weakness($data){
236 $this->weakness
= $data;
240 function get_fatigue(){
241 return $this->fatigue
;
243 function set_fatigue($data){
245 $this->fatigue
= $data;
249 function get_anorexia(){
250 return $this->anorexia
;
252 function set_anorexia($data){
254 $this->anorexia
= $data;
258 function get_fever(){
261 function set_fever($data){
263 $this->fever
= $data;
267 function get_chills(){
268 return $this->chills
;
270 function set_chills($data){
272 $this->chills
= $data;
276 function get_night_sweats(){
277 return $this->night_sweats
;
279 function set_night_sweats($data){
281 $this->night_sweats
= $data;
285 function get_insomnia(){
286 return $this->insomnia
;
288 function set_insomnia($data){
290 $this->insomnia
= $data;
294 function get_irritability(){
295 return $this->irritability
;
297 function set_irritability($data){
299 $this->irritability
= $data;
303 function get_heat_or_cold(){
304 return $this->heat_or_cold
;
306 function set_heat_or_cold($data){
308 $this->heat_or_cold
= $data;
312 function get_intolerance(){
313 return $this->intolerance
;
315 function set_intolerance($data){
317 $this->intolerance
= $data;
321 function get_change_in_vision(){
322 return $this->change_in_vision
;
324 function set_change_in_vision($data){
326 $this->change_in_vision
= $data;
329 function get_glaucoma_history(){
330 return $this->glaucoma_history
;
332 function set_glaucoma_history($data){
334 $this->glaucoma_history
= $data;
337 function get_eye_pain(){
338 return $this->eye_pain
;
340 function set_eye_pain($data){
342 $this->eye_pain
= $data;
345 function get_irritation(){
346 return $this->irritation
;
348 function set_irritation($data){
350 $this->irritation
= $data;
353 function get_redness(){
354 return $this->redness
;
356 function set_redness($data){
358 $this->redness
= $data;
361 function get_excessive_tearing(){
362 return $this->excessive_tearing
;
364 function set_excessive_tearing($data){
366 $this->excessive_tearing
= $data;
369 function get_double_vision(){
370 return $this->double_vision
;
372 function set_double_vision($data){
374 $this->double_vision
= $data;
377 function get_blind_spots(){
378 return $this->blind_spots
;
380 function set_blind_spots($data){
382 $this->blind_spots
= $data;
385 function get_photophobia(){
386 return $this->photophobia
;
388 function set_photophobia($data){
390 $this->photophobia
= $data;
394 function get_hearing_loss(){
395 return $this->hearing_loss
;
397 function set_hearing_loss($data){
399 $this->hearing_loss
= $data;
402 function get_discharge(){
403 return $this->discharge
;
405 function set_discharge($data){
407 $this->discharge
= $data;
413 function set_pain($data){
418 function get_vertigo(){
419 return $this->vertigo
;
421 function set_vertigo($data){
423 $this->vertigo
= $data;
426 function get_tinnitus(){
427 return $this->tinnitus
;
429 function set_tinnitus($data){
431 $this->tinnitus
= $data;
434 function get_frequent_colds(){
435 return $this->frequent_colds
;
437 function set_frequent_colds($data){
439 $this->frequent_colds
= $data;
442 function get_sore_throat(){
443 return $this->sore_throat
;
445 function set_sore_throat($data){
447 $this->sore_throat
= $data;
450 function get_sinus_problems(){
451 return $this->sinus_problems
;
453 function set_sinus_problems($data){
455 $this->sinus_problems
= $data;
458 function get_post_nasal_drip(){
459 return $this->post_nasal_drip
;
461 function set_post_nasal_drip($data){
463 $this->post_nasal_drip
= $data;
466 function get_nosebleed(){
467 return $this->nosebleed
;
469 function set_nosebleed($data){
471 $this->nosebleed
= $data;
474 function get_snoring(){
475 return $this->snoring
;
477 function set_snoring($data){
479 $this->snoring
= $data;
482 function get_apnea(){
485 function set_apnea($data){
487 $this->apnea
= $data;
490 function get_breast_mass(){
491 return $this->breast_mass
;
493 function set_breast_mass($data){
495 $this->breast_mass
= $data;
498 function get_breast_discharge(){
499 return $this->breast_discharge
;
501 function set_breast_discharge($data){
503 $this->breast_discharge
= $data;
506 function get_biopsy(){
507 return $this->breast_discharge
;
509 function set_biopsy($data){
511 $this->biopsy
= $data;
514 function get_abnormal_mammogram(){
515 return $this->abnormal_mammogram
;
517 function set_abnormal_mammogram($data){
519 $this->abnormal_mammogram
= $data;
522 function get_cough(){
525 function set_cough($data){
527 $this->cough
= $data;
530 function set_sputum($data){
532 $this->sputum
= $data;
535 function get_sputum(){
536 return $this->sputum
;
538 function get_shortness_of_breath(){
539 return $this->shortness_of_breath
;
541 function set_shortness_of_breath($data){
543 $this->shortness_of_breath
= $data;
546 function get_wheezing(){
547 return $this->wheezing
;
549 function set_wheezing($data){
551 $this->wheezing
= $data;
554 function get_hemoptsyis(){
555 return $this->hemoptsyis
;
557 function set_hemoptsyis($data){
559 $this->hemoptsyis
= $data;
562 function get_asthma(){
563 return $this->asthma
;
565 function set_asthma($data){
567 $this->asthma
= $data;
573 function set_copd($data){
579 function get_chest_pain(){
580 return $this->chest_pain
;
582 function set_chest_pain($data){
584 $this->chest_pain
= $data;
587 function get_palpitation(){
588 return $this->palpitation
;
590 function set_palpitation($data){
592 $this->palpitation
= $data;
595 function get_syncope(){
596 return $this->syncope
;
598 function set_syncope($data){
600 $this->syncope
= $data;
606 function set_pnd($data){
614 function set_doe($data){
619 function get_orthopnea(){
620 return $this->orthopnea
;
622 function set_orthopnea($data){
624 $this->orthopnea
= $data;
627 function get_peripheal(){
628 return $this->peripheal
;
630 function set_peripheal($data){
632 $this->peripheal
= $data;
635 function get_edema(){
638 function set_edema($data){
640 $this->edema
= $data;
643 function get_legpain_cramping(){
644 return $this->legpain_cramping
;
646 function set_legpain_cramping($data){
648 $this->legpain_cramping
= $data;
651 function get_history_murmur(){
652 return $this->history_murmur
;
654 function set_history_murmur($data){
656 $this->history_murmur
= $data;
659 function get_arrythmia(){
660 return $this->arrythmia
;
662 function set_arrythmia($data){
664 $this->arrythmia
= $data;
667 function get_heart_problem(){
668 return $this->heart_problem
;
670 function set_heart_problem($data){
672 $this->heart_problem
= $data;
676 function get_polyuria(){
677 return $this->polyuria
;
679 function set_polyuria($data){
681 $this->polyuria
= $data;
684 function get_polydypsia(){
685 return $this->polydypsia
;
687 function set_polydypsia($data){
689 $this->polydypsia
= $data;
692 function get_dysuria(){
693 return $this->dysuria
;
695 function set_dysuria($data){
697 $this->dysuria
= $data;
700 function get_hematuria(){
701 return $this->hematuria
;
703 function set_hematuria($data){
705 $this->hematuria
= $data;
708 function get_frequency(){
709 return $this->frequency
;
711 function set_frequency($data){
713 $this->frequency
= $data;
716 function get_urgency(){
717 return $this->urgency
;
719 function set_urgency($data){
721 $this->urgency
= $data;
724 function get_incontinence(){
725 return $this->incontinence
;
727 function set_incontinence($data){
729 $this->incontinence
= $data;
732 function get_renal_stones(){
733 return $this->renal_stones
;
735 function set_renal_stones($data){
737 $this->renal_stones
= $data;
743 function set_utis($data){
749 function get_hesitancy(){
750 return $this->hesitancy
;
752 function set_hesitancy($data){
754 $this->hesitancy
= $data;
757 function get_dribbling(){
758 return $this->dribbling
;
760 function set_dribbling($data){
762 $this->dribbling
= $data;
765 function get_stream(){
766 return $this->stream
;
768 function set_stream($data){
770 $this->stream
= $data;
773 function get_nocturia(){
774 return $this->nocturia
;
776 function set_nocturia($data){
778 $this->nocturia
= $data;
781 function get_erections(){
782 return $this->erections
;
784 function set_erections($data){
786 $this->erections
= $data;
789 function get_ejaculations(){
790 return $this->ejaculations
;
792 function set_ejaculations($data){
794 $this->ejaculations
= $data;
801 function set_g($data){
809 function set_p($data){
817 function set_ap($data){
825 function set_lc($data){
830 function get_mearche(){
831 return $this->mearche
;
833 function set_mearche($data){
835 $this->mearche
= $data;
838 function get_menopause(){
839 return $this->menopause
;
841 function set_menopause($data){
843 $this->menopause
= $data;
849 function set_lmp($data){
854 function get_f_frequency(){
855 return $this->f_frequency
;
857 function set_f_frequency($data){
859 $this->f_frequency
= $data;
862 function get_f_flow(){
863 return $this->f_flow
;
865 function set_f_flow($data){
867 $this->f_flow
= $data;
870 function get_f_symptoms(){
871 return $this->f_symptoms
;
873 function set_f_symptoms($data){
875 $this->f_symptoms
= $data;
878 function get_abnormal_hair_growth(){
879 return $this->abnormal_hair_growth
;
881 function set_abnormal_hair_growth($data){
883 $this->abnormal_hair_growth
= $data;
886 function get_f_hirsutism(){
887 return $this->f_hirsutism
;
889 function set_f_hirsutism($data){
891 $this->f_hirsutism
= $data;
895 function get_joint_pain(){
896 return $this->joint_pain
;
898 function set_joint_pain($data){
900 $this->joint_pain
= $data;
903 function get_swelling(){
904 return $this->swelling
;
906 function set_swelling($data){
908 $this->swelling
= $data;
911 function get_m_redness(){
912 return $this->m_redness
;
914 function set_m_redness($data){
916 $this->m_redness
= $data;
919 function get_m_warm(){
920 return $this->m_warm
;
922 function set_m_warm($data){
924 $this->m_warm
= $data;
927 function get_m_stiffness(){
928 return $this->m_stiffness
;
930 function set_m_stiffness($data){
932 $this->m_stiffness
= $data;
935 function get_muscle(){
936 return $this->muscle
;
938 function set_muscle($data){
940 $this->muscle
= $data;
943 function get_m_aches(){
944 return $this->m_aches
;
946 function set_m_aches($data){
948 $this->m_aches
= $data;
954 function set_fms($data){
959 function get_arthritis(){
960 return $this->arthritis
;
962 function set_arthritis($data){
964 $this->arthritis
= $data;
971 function set_loc($data){
976 function get_seizures(){
977 return $this->seizures
;
979 function set_seizures($data){
981 $this->seizures
= $data;
984 function get_stroke(){
985 return $this->stroke
;
987 function set_stroke($data){
989 $this->stroke
= $data;
995 function set_tia($data){
1000 function get_n_numbness(){
1001 return $this->n_numbness
;
1003 function set_n_numbness($data){
1005 $this->n_numbness
= $data;
1008 function get_n_weakness(){
1009 return $this->n_weakness
;
1011 function set_n_weakness($data){
1013 $this->n_weakness
= $data;
1016 function get_paralysis(){
1017 return $this->paralysis
;
1019 function set_paralysis($data){
1021 $this->paralysis
= $data;
1024 function get_intellectual_decline(){
1025 return $this->intellectual_decline
;
1027 function set_intellectual_decline($data){
1029 $this->intellectual_decline
= $data;
1032 function get_memory_problems(){
1033 return $this->memory_problems
;
1035 function set_memory_problems($data){
1037 $this->memory_problems
= $data;
1040 function get_dementia(){
1041 return $this->dementia
;
1043 function set_dementia($data){
1045 $this->dementia
= $data;
1048 function get_n_headache(){
1049 return $this->n_headache
;
1051 function set_n_headache($data){
1053 $this->n_headache
= $data;
1057 function get_s_cancer(){
1058 return $this->s_cancer
;
1060 function set_s_cancer($data){
1062 $this->s_cancer
= $data;
1065 function get_psoriasis(){
1066 return $this->psoriasis
;
1068 function set_psoriasis($data){
1070 $this->psoriasis
= $data;
1073 function get_s_acne(){
1074 return $this->s_acne
;
1076 function set_s_acne($data){
1078 $this->s_acne
= $data;
1081 function get_s_other(){
1082 return $this->s_other
;
1084 function set_s_other($data){
1086 $this->s_other
= $data;
1089 function get_s_disease(){
1090 return $this->s_disease
;
1092 function set_s_disease($data){
1094 $this->s_disease
= $data;
1098 function get_p_diagnosis(){
1099 return $this->p_diagnosis
;
1101 function set_p_diagnosis($data){
1103 $this->p_diagnosis
= $data;
1106 function get_p_medication(){
1107 return $this->p_medication
;
1109 function set_p_medication($data){
1111 $this->p_medication
= $data;
1114 function get_depression(){
1115 return $this->depression
;
1117 function set_depression($data){
1119 $this->depression
= $data;
1122 function get_anxiety(){
1123 return $this->anxiety
;
1125 function set_anxiety($data){
1127 $this->anxiety
= $data;
1130 function get_social_difficulties(){
1131 return $this->social_difficulties
;
1133 function set_social_difficulties($data){
1135 $this->social_difficulties
= $data;
1139 function get_thyroid_problems(){
1140 return $this->thyroid_problems
;
1142 function set_thyroid_problems($data){
1144 $this->thyroid_problems
= $data;
1147 function get_diabetes(){
1148 return $this->diabetes
;
1150 function set_diabetes($data){
1152 $this->diabetes
= $data;
1155 function get_abnormal_blood(){
1156 return $this->abnormal_blood
;
1158 function set_abnormal_blood($data){
1160 $this->abnormal_blood
= $data;
1164 function get_anemia(){
1165 return $this->anemia
;
1167 function set_anemia($data){
1169 $this->anemia
= $data;
1172 function get_fh_blood_problems(){
1173 return $this->fh_blood_problems
;
1175 function set_fh_blood_problems($data){
1177 $this->fh_blood_problems
= $data;
1180 function get_bleeding_problems(){
1181 return $this->bleeding_problems
;
1183 function set_bleeding_problems($data){
1185 $this->bleeding_problems
= $data;
1188 function get_allergies(){
1189 return $this->allergies
;
1191 function set_allergies($data){
1193 $this->allergies
= $data;
1196 function get_frequent_illness(){
1197 return $this->frequent_illness
;
1199 function set_frequent_illness($data){
1201 $this->frequent_illness
= $data;
1207 function set_hiv($data){
1212 function get_hai_status(){
1213 return $this->hai_status
;
1215 function set_hai_status($data){
1217 $this->hai_status
= $data;
1221 function get_options(){
1222 $ret = array("N/A" => xl('N/A'),"YES" => xl('YES'),"NO" => xl('NO'));
1226 function get_dysphagia(){
1227 return $this->dysphagia
;
1229 function set_dysphagia($data){
1231 $this->dysphagia
= $data;
1234 function get_heartburn(){
1235 return $this->heartburn
;
1237 function set_heartburn($data){
1239 $this->heartburn
= $data;
1242 function get_bloating(){
1243 return $this->bloating
;
1245 function set_bloating($data){
1247 $this->bloating
= $data;
1250 function get_belching(){
1251 return $this->belching
;
1253 function set_belching($data){
1255 $this->belching
= $data;
1258 function get_flatulence(){
1259 return $this->flatulence
;
1261 function set_flatulence($data){
1263 $this->flatulence
= $data;
1266 function get_nausea(){
1267 return $this->nausea
;
1269 function set_nausea($data){
1271 $this->nausea
= $data;
1274 function get_vomiting(){
1275 return $this->vomiting
;
1277 function set_vomiting($data){
1279 $this->vomiting
= $data;
1282 function get_hematemesis(){
1283 return $this->hematemesis
;
1285 function set_hematemesis($data){
1287 $this->hematemesis
= $data;
1290 function get_gastro_pain(){
1291 return $this->gastro_pain
;
1293 function set_gastro_pain($data){
1295 $this->gastro_pain
= $data;
1298 function get_food_intolerance(){
1299 return $this->food_intolerance
;
1301 function set_food_intolerance($data){
1303 $this->food_intolerance
= $data;
1306 function get_hepatitis(){
1307 return $this->hepatitis
;
1309 function set_hepatitis($data){
1311 $this->hepatitis
= $data;
1314 function get_jaundice(){
1315 return $this->jaundice
;
1317 function set_jaundice($data){
1319 $this->jaundice
= $data;
1322 function get_hematochezia(){
1323 return $this->hematochezia
;
1325 function set_hematochezia($data){
1327 $this->hematochezia
= $data;
1330 function get_changed_bowel(){
1331 return $this->changed_bowel
;
1333 function set_changed_bowel($data){
1335 $this->changed_bowel
= $data;
1338 function get_diarrhea(){
1339 return $this->diarrhea
;
1341 function set_diarrhea($data){
1343 $this->diarrhea
= $data;
1346 function get_constipation(){
1347 return $this->constipation
;
1349 function set_constipation($data){
1351 $this->constipation
= $data;
1354 function toString($html = false) {
1356 ."ID: " . $this->id
. "\n";
1359 return nl2br($string);
1365 function persist() {