7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
18 use OpenEMR\Common\ORDataObject\ORDataObject
;
20 class FormROS
extends ORDataObject
42 var $weight_change = "N/A";
43 var $weakness = "N/A";
45 var $anorexia = "N/A";
48 var $night_sweats = "N/A";
49 var $insomnia = "N/A";
50 var $irritability = "N/A";
51 var $heat_or_cold = "N/A";
52 var $intolerance = "N/A";
53 var $change_in_vision = "N/A";
54 var $glaucoma_history = "N/A";
55 var $eye_pain = "N/A";
56 var $irritation = "N/A";
58 var $excessive_tearing = "N/A";
59 var $double_vision = "N/A";
60 var $blind_spots = "N/A";
61 var $photophobia = "N/A";
62 var $hearing_loss = "N/A";
63 var $discharge = "N/A";
66 var $tinnitus = "N/A";
67 var $frequent_colds = "N/A";
68 var $sore_throat = "N/A";
69 var $sinus_problems = "N/A";
70 var $post_nasal_drip = "N/A";
71 var $nosebleed = "N/A";
74 var $breast_mass = "N/A";
75 var $breast_discharge = "N/A";
77 var $abnormal_mammogram = "N/A";
80 var $shortness_of_breath = "N/A";
81 var $wheezing = "N/A";
82 var $hemoptsyis = "N/A";
85 var $chest_pain = "N/A";
86 var $palpitation = "N/A";
90 var $orthopnea = "N/A";
91 var $peripheal = "N/A";
93 var $legpain_cramping = "N/A";
94 var $history_murmur = "N/A";
95 var $arrythmia = "N/A";
96 var $heart_problem = "N/A";
97 var $dysphagia = "N/A";
98 var $heartburn = "N/A";
99 var $bloating = "N/A";
100 var $belching = "N/A";
101 var $flatulence = "N/A";
103 var $vomiting = "N/A";
104 var $hematemesis = "N/A";
105 var $gastro_pain = "N/A";
106 var $food_intolerance = "N/A";
107 var $hepatitis = "N/A";
108 var $jaundice = "N/A";
109 var $hematochezia = "N/A";
110 var $changed_bowel = "N/A";
111 var $diarrhea = "N/A";
112 var $constipation = "N/A";
113 var $polyuria = "N/A";
114 var $polydypsia = "N/A";
115 var $dysuria = "N/A";
116 var $hematuria = "N/A";
117 var $frequency = "N/A";
118 var $urgency = "N/A";
119 var $incontinence = "N/A";
120 var $renal_stones = "N/A";
122 var $hesitancy = "N/A";
123 var $dribbling = "N/A";
125 var $nocturia = "N/A";
126 var $erections = "N/A";
127 var $ejaculations = "N/A";
132 var $mearche = "N/A";
133 var $menopause = "N/A";
135 var $f_frequency = "N/A";
137 var $f_symptoms = "N/A";
138 var $abnormal_hair_growth = "N/A";
139 var $f_hirsutism = "N/A";
140 var $joint_pain = "N/A";
141 var $swelling = "N/A";
142 var $m_redness = "N/A";
144 var $m_stiffness = "N/A";
146 var $m_aches = "N/A";
148 var $arthritis = "N/A";
150 var $seizures = "N/A";
153 var $n_numbness = "N/A";
154 var $n_weakness = "N/A";
155 var $paralysis = "N/A";
156 var $intellectual_decline = "N/A";
157 var $memory_problems = "N/A";
158 var $dementia = "N/A";
159 var $n_headache = "N/A";
160 var $s_cancer = "N/A";
161 var $psoriasis = "N/A";
163 var $s_other = "N/A";
164 var $s_disease = "N/A";
165 var $p_diagnosis = "N/A";
166 var $p_medication = "N/A";
167 var $depression = "N/A";
168 var $anxiety = "N/A";
169 var $social_difficulties = "N/A";
170 var $thyroid_problems = "N/A";
171 var $diabetes = "N/A";
172 var $abnormal_blood = "N/A";
174 var $fh_blood_problems = "N/A";
175 var $bleeding_problems = "N/A";
176 var $allergies = "N/A";
177 var $frequent_illness = "N/A";
179 var $hai_status = "N/A";
182 * Constructor sets all Form attributes to their default value
185 function __construct($id = "", $_prefix = "")
187 if (is_numeric($id)) {
193 $this->date
= date("Y-m-d H:i:s");
194 $this->date_of_onset
= date("Y-m-d");
195 $this->_table
= "form_ros";
197 $this->pid
= $GLOBALS['pid'];
209 if (!empty($id) && is_numeric($id)) {
217 function set_pid($pid)
219 if (!empty($pid) && is_numeric($pid)) {
233 function set_date($date)
240 function get_weight_change()
242 return $this->weight_change
;
244 function set_weight_change($data)
247 $this->weight_change
= $data;
251 function get_weakness()
253 return $this->weakness
;
255 function set_weakness($data)
258 $this->weakness
= $data;
262 function get_fatigue()
264 return $this->fatigue
;
266 function set_fatigue($data)
269 $this->fatigue
= $data;
273 function get_anorexia()
275 return $this->anorexia
;
277 function set_anorexia($data)
280 $this->anorexia
= $data;
288 function set_fever($data)
291 $this->fever
= $data;
295 function get_chills()
297 return $this->chills
;
299 function set_chills($data)
302 $this->chills
= $data;
306 function get_night_sweats()
308 return $this->night_sweats
;
310 function set_night_sweats($data)
313 $this->night_sweats
= $data;
317 function get_insomnia()
319 return $this->insomnia
;
321 function set_insomnia($data)
324 $this->insomnia
= $data;
328 function get_irritability()
330 return $this->irritability
;
332 function set_irritability($data)
335 $this->irritability
= $data;
339 function get_heat_or_cold()
341 return $this->heat_or_cold
;
343 function set_heat_or_cold($data)
346 $this->heat_or_cold
= $data;
350 function get_intolerance()
352 return $this->intolerance
;
354 function set_intolerance($data)
357 $this->intolerance
= $data;
361 function get_change_in_vision()
363 return $this->change_in_vision
;
365 function set_change_in_vision($data)
368 $this->change_in_vision
= $data;
371 function get_glaucoma_history()
373 return $this->glaucoma_history
;
375 function set_glaucoma_history($data)
378 $this->glaucoma_history
= $data;
381 function get_eye_pain()
383 return $this->eye_pain
;
385 function set_eye_pain($data)
388 $this->eye_pain
= $data;
391 function get_irritation()
393 return $this->irritation
;
395 function set_irritation($data)
398 $this->irritation
= $data;
401 function get_redness()
403 return $this->redness
;
405 function set_redness($data)
408 $this->redness
= $data;
411 function get_excessive_tearing()
413 return $this->excessive_tearing
;
415 function set_excessive_tearing($data)
418 $this->excessive_tearing
= $data;
421 function get_double_vision()
423 return $this->double_vision
;
425 function set_double_vision($data)
428 $this->double_vision
= $data;
431 function get_blind_spots()
433 return $this->blind_spots
;
435 function set_blind_spots($data)
438 $this->blind_spots
= $data;
441 function get_photophobia()
443 return $this->photophobia
;
445 function set_photophobia($data)
448 $this->photophobia
= $data;
452 function get_hearing_loss()
454 return $this->hearing_loss
;
456 function set_hearing_loss($data)
459 $this->hearing_loss
= $data;
462 function get_discharge()
464 return $this->discharge
;
466 function set_discharge($data)
469 $this->discharge
= $data;
476 function set_pain($data)
482 function get_vertigo()
484 return $this->vertigo
;
486 function set_vertigo($data)
489 $this->vertigo
= $data;
492 function get_tinnitus()
494 return $this->tinnitus
;
496 function set_tinnitus($data)
499 $this->tinnitus
= $data;
502 function get_frequent_colds()
504 return $this->frequent_colds
;
506 function set_frequent_colds($data)
509 $this->frequent_colds
= $data;
512 function get_sore_throat()
514 return $this->sore_throat
;
516 function set_sore_throat($data)
519 $this->sore_throat
= $data;
522 function get_sinus_problems()
524 return $this->sinus_problems
;
526 function set_sinus_problems($data)
529 $this->sinus_problems
= $data;
532 function get_post_nasal_drip()
534 return $this->post_nasal_drip
;
536 function set_post_nasal_drip($data)
539 $this->post_nasal_drip
= $data;
542 function get_nosebleed()
544 return $this->nosebleed
;
546 function set_nosebleed($data)
549 $this->nosebleed
= $data;
552 function get_snoring()
554 return $this->snoring
;
556 function set_snoring($data)
559 $this->snoring
= $data;
566 function set_apnea($data)
569 $this->apnea
= $data;
572 function get_breast_mass()
574 return $this->breast_mass
;
576 function set_breast_mass($data)
579 $this->breast_mass
= $data;
582 function get_breast_discharge()
584 return $this->breast_discharge
;
586 function set_breast_discharge($data)
589 $this->breast_discharge
= $data;
592 function get_biopsy()
594 return $this->biopsy
;
596 function set_biopsy($data)
599 $this->biopsy
= $data;
602 function get_abnormal_mammogram()
604 return $this->abnormal_mammogram
;
606 function set_abnormal_mammogram($data)
609 $this->abnormal_mammogram
= $data;
616 function set_cough($data)
619 $this->cough
= $data;
622 function set_sputum($data)
625 $this->sputum
= $data;
628 function get_sputum()
630 return $this->sputum
;
632 function get_shortness_of_breath()
634 return $this->shortness_of_breath
;
636 function set_shortness_of_breath($data)
639 $this->shortness_of_breath
= $data;
642 function get_wheezing()
644 return $this->wheezing
;
646 function set_wheezing($data)
649 $this->wheezing
= $data;
652 function get_hemoptsyis()
654 return $this->hemoptsyis
;
656 function set_hemoptsyis($data)
659 $this->hemoptsyis
= $data;
662 function get_asthma()
664 return $this->asthma
;
666 function set_asthma($data)
669 $this->asthma
= $data;
676 function set_copd($data)
683 function get_chest_pain()
685 return $this->chest_pain
;
687 function set_chest_pain($data)
690 $this->chest_pain
= $data;
693 function get_palpitation()
695 return $this->palpitation
;
697 function set_palpitation($data)
700 $this->palpitation
= $data;
703 function get_syncope()
705 return $this->syncope
;
707 function set_syncope($data)
710 $this->syncope
= $data;
717 function set_pnd($data)
727 function set_doe($data)
733 function get_orthopnea()
735 return $this->orthopnea
;
737 function set_orthopnea($data)
740 $this->orthopnea
= $data;
743 function get_peripheal()
745 return $this->peripheal
;
747 function set_peripheal($data)
750 $this->peripheal
= $data;
757 function set_edema($data)
760 $this->edema
= $data;
763 function get_legpain_cramping()
765 return $this->legpain_cramping
;
767 function set_legpain_cramping($data)
770 $this->legpain_cramping
= $data;
773 function get_history_murmur()
775 return $this->history_murmur
;
777 function set_history_murmur($data)
780 $this->history_murmur
= $data;
783 function get_arrythmia()
785 return $this->arrythmia
;
787 function set_arrythmia($data)
790 $this->arrythmia
= $data;
793 function get_heart_problem()
795 return $this->heart_problem
;
797 function set_heart_problem($data)
800 $this->heart_problem
= $data;
804 function get_polyuria()
806 return $this->polyuria
;
808 function set_polyuria($data)
811 $this->polyuria
= $data;
814 function get_polydypsia()
816 return $this->polydypsia
;
818 function set_polydypsia($data)
821 $this->polydypsia
= $data;
824 function get_dysuria()
826 return $this->dysuria
;
828 function set_dysuria($data)
831 $this->dysuria
= $data;
834 function get_hematuria()
836 return $this->hematuria
;
838 function set_hematuria($data)
841 $this->hematuria
= $data;
844 function get_frequency()
846 return $this->frequency
;
848 function set_frequency($data)
851 $this->frequency
= $data;
854 function get_urgency()
856 return $this->urgency
;
858 function set_urgency($data)
861 $this->urgency
= $data;
864 function get_incontinence()
866 return $this->incontinence
;
868 function set_incontinence($data)
871 $this->incontinence
= $data;
874 function get_renal_stones()
876 return $this->renal_stones
;
878 function set_renal_stones($data)
881 $this->renal_stones
= $data;
888 function set_utis($data)
895 function get_hesitancy()
897 return $this->hesitancy
;
899 function set_hesitancy($data)
902 $this->hesitancy
= $data;
905 function get_dribbling()
907 return $this->dribbling
;
909 function set_dribbling($data)
912 $this->dribbling
= $data;
915 function get_stream()
917 return $this->stream
;
919 function set_stream($data)
922 $this->stream
= $data;
925 function get_nocturia()
927 return $this->nocturia
;
929 function set_nocturia($data)
932 $this->nocturia
= $data;
935 function get_erections()
937 return $this->erections
;
939 function set_erections($data)
942 $this->erections
= $data;
945 function get_ejaculations()
947 return $this->ejaculations
;
949 function set_ejaculations($data)
952 $this->ejaculations
= $data;
960 function set_g($data)
970 function set_p($data)
980 function set_ap($data)
990 function set_lc($data)
996 function get_mearche()
998 return $this->mearche
;
1000 function set_mearche($data)
1002 if (!empty($data)) {
1003 $this->mearche
= $data;
1006 function get_menopause()
1008 return $this->menopause
;
1010 function set_menopause($data)
1012 if (!empty($data)) {
1013 $this->menopause
= $data;
1020 function set_lmp($data)
1022 if (!empty($data)) {
1026 function get_f_frequency()
1028 return $this->f_frequency
;
1030 function set_f_frequency($data)
1032 if (!empty($data)) {
1033 $this->f_frequency
= $data;
1036 function get_f_flow()
1038 return $this->f_flow
;
1040 function set_f_flow($data)
1042 if (!empty($data)) {
1043 $this->f_flow
= $data;
1046 function get_f_symptoms()
1048 return $this->f_symptoms
;
1050 function set_f_symptoms($data)
1052 if (!empty($data)) {
1053 $this->f_symptoms
= $data;
1056 function get_abnormal_hair_growth()
1058 return $this->abnormal_hair_growth
;
1060 function set_abnormal_hair_growth($data)
1062 if (!empty($data)) {
1063 $this->abnormal_hair_growth
= $data;
1066 function get_f_hirsutism()
1068 return $this->f_hirsutism
;
1070 function set_f_hirsutism($data)
1072 if (!empty($data)) {
1073 $this->f_hirsutism
= $data;
1077 function get_joint_pain()
1079 return $this->joint_pain
;
1081 function set_joint_pain($data)
1083 if (!empty($data)) {
1084 $this->joint_pain
= $data;
1087 function get_swelling()
1089 return $this->swelling
;
1091 function set_swelling($data)
1093 if (!empty($data)) {
1094 $this->swelling
= $data;
1097 function get_m_redness()
1099 return $this->m_redness
;
1101 function set_m_redness($data)
1103 if (!empty($data)) {
1104 $this->m_redness
= $data;
1107 function get_m_warm()
1109 return $this->m_warm
;
1111 function set_m_warm($data)
1113 if (!empty($data)) {
1114 $this->m_warm
= $data;
1117 function get_m_stiffness()
1119 return $this->m_stiffness
;
1121 function set_m_stiffness($data)
1123 if (!empty($data)) {
1124 $this->m_stiffness
= $data;
1127 function get_muscle()
1129 return $this->muscle
;
1131 function set_muscle($data)
1133 if (!empty($data)) {
1134 $this->muscle
= $data;
1137 function get_m_aches()
1139 return $this->m_aches
;
1141 function set_m_aches($data)
1143 if (!empty($data)) {
1144 $this->m_aches
= $data;
1151 function set_fms($data)
1153 if (!empty($data)) {
1157 function get_arthritis()
1159 return $this->arthritis
;
1161 function set_arthritis($data)
1163 if (!empty($data)) {
1164 $this->arthritis
= $data;
1172 function set_loc($data)
1174 if (!empty($data)) {
1178 function get_seizures()
1180 return $this->seizures
;
1182 function set_seizures($data)
1184 if (!empty($data)) {
1185 $this->seizures
= $data;
1188 function get_stroke()
1190 return $this->stroke
;
1192 function set_stroke($data)
1194 if (!empty($data)) {
1195 $this->stroke
= $data;
1202 function set_tia($data)
1204 if (!empty($data)) {
1208 function get_n_numbness()
1210 return $this->n_numbness
;
1212 function set_n_numbness($data)
1214 if (!empty($data)) {
1215 $this->n_numbness
= $data;
1218 function get_n_weakness()
1220 return $this->n_weakness
;
1222 function set_n_weakness($data)
1224 if (!empty($data)) {
1225 $this->n_weakness
= $data;
1228 function get_paralysis()
1230 return $this->paralysis
;
1232 function set_paralysis($data)
1234 if (!empty($data)) {
1235 $this->paralysis
= $data;
1238 function get_intellectual_decline()
1240 return $this->intellectual_decline
;
1242 function set_intellectual_decline($data)
1244 if (!empty($data)) {
1245 $this->intellectual_decline
= $data;
1248 function get_memory_problems()
1250 return $this->memory_problems
;
1252 function set_memory_problems($data)
1254 if (!empty($data)) {
1255 $this->memory_problems
= $data;
1258 function get_dementia()
1260 return $this->dementia
;
1262 function set_dementia($data)
1264 if (!empty($data)) {
1265 $this->dementia
= $data;
1268 function get_n_headache()
1270 return $this->n_headache
;
1272 function set_n_headache($data)
1274 if (!empty($data)) {
1275 $this->n_headache
= $data;
1279 function get_s_cancer()
1281 return $this->s_cancer
;
1283 function set_s_cancer($data)
1285 if (!empty($data)) {
1286 $this->s_cancer
= $data;
1289 function get_psoriasis()
1291 return $this->psoriasis
;
1293 function set_psoriasis($data)
1295 if (!empty($data)) {
1296 $this->psoriasis
= $data;
1299 function get_s_acne()
1301 return $this->s_acne
;
1303 function set_s_acne($data)
1305 if (!empty($data)) {
1306 $this->s_acne
= $data;
1309 function get_s_other()
1311 return $this->s_other
;
1313 function set_s_other($data)
1315 if (!empty($data)) {
1316 $this->s_other
= $data;
1319 function get_s_disease()
1321 return $this->s_disease
;
1323 function set_s_disease($data)
1325 if (!empty($data)) {
1326 $this->s_disease
= $data;
1330 function get_p_diagnosis()
1332 return $this->p_diagnosis
;
1334 function set_p_diagnosis($data)
1336 if (!empty($data)) {
1337 $this->p_diagnosis
= $data;
1340 function get_p_medication()
1342 return $this->p_medication
;
1344 function set_p_medication($data)
1346 if (!empty($data)) {
1347 $this->p_medication
= $data;
1350 function get_depression()
1352 return $this->depression
;
1354 function set_depression($data)
1356 if (!empty($data)) {
1357 $this->depression
= $data;
1360 function get_anxiety()
1362 return $this->anxiety
;
1364 function set_anxiety($data)
1366 if (!empty($data)) {
1367 $this->anxiety
= $data;
1370 function get_social_difficulties()
1372 return $this->social_difficulties
;
1374 function set_social_difficulties($data)
1376 if (!empty($data)) {
1377 $this->social_difficulties
= $data;
1381 function get_thyroid_problems()
1383 return $this->thyroid_problems
;
1385 function set_thyroid_problems($data)
1387 if (!empty($data)) {
1388 $this->thyroid_problems
= $data;
1391 function get_diabetes()
1393 return $this->diabetes
;
1395 function set_diabetes($data)
1397 if (!empty($data)) {
1398 $this->diabetes
= $data;
1401 function get_abnormal_blood()
1403 return $this->abnormal_blood
;
1405 function set_abnormal_blood($data)
1407 if (!empty($data)) {
1408 $this->abnormal_blood
= $data;
1412 function get_anemia()
1414 return $this->anemia
;
1416 function set_anemia($data)
1418 if (!empty($data)) {
1419 $this->anemia
= $data;
1422 function get_fh_blood_problems()
1424 return $this->fh_blood_problems
;
1426 function set_fh_blood_problems($data)
1428 if (!empty($data)) {
1429 $this->fh_blood_problems
= $data;
1432 function get_bleeding_problems()
1434 return $this->bleeding_problems
;
1436 function set_bleeding_problems($data)
1438 if (!empty($data)) {
1439 $this->bleeding_problems
= $data;
1442 function get_allergies()
1444 return $this->allergies
;
1446 function set_allergies($data)
1448 if (!empty($data)) {
1449 $this->allergies
= $data;
1452 function get_frequent_illness()
1454 return $this->frequent_illness
;
1456 function set_frequent_illness($data)
1458 if (!empty($data)) {
1459 $this->frequent_illness
= $data;
1466 function set_hiv($data)
1468 if (!empty($data)) {
1472 function get_hai_status()
1474 return $this->hai_status
;
1476 function set_hai_status($data)
1478 if (!empty($data)) {
1479 $this->hai_status
= $data;
1483 function get_options()
1485 $ret = array("N/A" => xlt('N/A'),"YES" => xlt('YES'),"NO" => xlt('NO'));
1489 function get_dysphagia()
1491 return $this->dysphagia
;
1493 function set_dysphagia($data)
1495 if (!empty($data)) {
1496 $this->dysphagia
= $data;
1499 function get_heartburn()
1501 return $this->heartburn
;
1503 function set_heartburn($data)
1505 if (!empty($data)) {
1506 $this->heartburn
= $data;
1509 function get_bloating()
1511 return $this->bloating
;
1513 function set_bloating($data)
1515 if (!empty($data)) {
1516 $this->bloating
= $data;
1519 function get_belching()
1521 return $this->belching
;
1523 function set_belching($data)
1525 if (!empty($data)) {
1526 $this->belching
= $data;
1529 function get_flatulence()
1531 return $this->flatulence
;
1533 function set_flatulence($data)
1535 if (!empty($data)) {
1536 $this->flatulence
= $data;
1539 function get_nausea()
1541 return $this->nausea
;
1543 function set_nausea($data)
1545 if (!empty($data)) {
1546 $this->nausea
= $data;
1549 function get_vomiting()
1551 return $this->vomiting
;
1553 function set_vomiting($data)
1555 if (!empty($data)) {
1556 $this->vomiting
= $data;
1559 function get_hematemesis()
1561 return $this->hematemesis
;
1563 function set_hematemesis($data)
1565 if (!empty($data)) {
1566 $this->hematemesis
= $data;
1569 function get_gastro_pain()
1571 return $this->gastro_pain
;
1573 function set_gastro_pain($data)
1575 if (!empty($data)) {
1576 $this->gastro_pain
= $data;
1579 function get_food_intolerance()
1581 return $this->food_intolerance
;
1583 function set_food_intolerance($data)
1585 if (!empty($data)) {
1586 $this->food_intolerance
= $data;
1589 function get_hepatitis()
1591 return $this->hepatitis
;
1593 function set_hepatitis($data)
1595 if (!empty($data)) {
1596 $this->hepatitis
= $data;
1599 function get_jaundice()
1601 return $this->jaundice
;
1603 function set_jaundice($data)
1605 if (!empty($data)) {
1606 $this->jaundice
= $data;
1609 function get_hematochezia()
1611 return $this->hematochezia
;
1613 function set_hematochezia($data)
1615 if (!empty($data)) {
1616 $this->hematochezia
= $data;
1619 function get_changed_bowel()
1621 return $this->changed_bowel
;
1623 function set_changed_bowel($data)
1625 if (!empty($data)) {
1626 $this->changed_bowel
= $data;
1629 function get_diarrhea()
1631 return $this->diarrhea
;
1633 function set_diarrhea($data)
1635 if (!empty($data)) {
1636 $this->diarrhea
= $data;
1639 function get_constipation()
1641 return $this->constipation
;
1643 function set_constipation($data)
1645 if (!empty($data)) {
1646 $this->constipation
= $data;
1649 function toString($html = false)
1652 . "ID: " . $this->id
. "\n";
1655 return nl2br($string);