Annoying CKEditor4 security warning (#7543)
[openemr.git] / interface / forms / reviewofs / save.php
blobb94cbdd56bb984683d2c16bcf322d273b4995ad2
1 <?php
3 /**
4 * Forms generated from formsWiz
5 * script to save Review of Systems Checks Form
7 * @package OpenEMR
8 * @link http://www.open-emr.org
9 * @author Roberto Vasquez <robertogagliotta@gmail.com>
10 * @author Brady Miller <brady.g.miller@gmail.com>
11 * @copyright Copyright (c) 2015 Roberto Vasquez <robertogagliotta@gmail.com>
12 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
13 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
16 require_once(__DIR__ . "/../../globals.php");
17 require_once("$srcdir/api.inc.php");
18 require_once("$srcdir/forms.inc.php");
20 use OpenEMR\Common\Csrf\CsrfUtils;
22 if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
23 CsrfUtils::csrfNotVerified();
26 if ($encounter == "") {
27 $encounter = date("Ymd");
30 if ($_GET["mode"] == "new") {
31 $newid = formSubmit("form_reviewofs", $_POST, ($_GET["id"] ?? ''), $userauthorized);
32 addForm($encounter, "Review of Systems Checks", $newid, "reviewofs", $pid, $userauthorized);
33 } elseif ($_GET["mode"] == "update") {
34 sqlStatement(
35 "UPDATE form_reviewofs set pid = ?,
36 groupname=?,
37 user=?,
38 authorized=?,
39 activity=1,
40 date = NOW(),
41 fever=?,
42 chills=?,
43 night_sweats=?,
44 weight_loss=?,
45 poor_appetite=?,
46 insomnia=?,
47 fatigued=?,
48 depressed=?,
49 hyperactive=?,
50 exposure_to_foreign_countries=?,
51 cataracts=?,
52 cataract_surgery=?,
53 glaucoma=?,
54 double_vision=?,
55 blurred_vision=?,
56 poor_hearing=?,
57 headaches=?,
58 ringing_in_ears=?,
59 bloody_nose=?,
60 sinusitis=?,
61 sinus_surgery=?,
62 dry_mouth=?,
63 strep_throat=?,
64 tonsillectomy=?,
65 swollen_lymph_nodes=?,
66 throat_cancer=?,
67 throat_cancer_surgery=?,
68 heart_attack=?,
69 irregular_heart_beat=?,
70 chest_pains=?,
71 shortness_of_breath=?,
72 high_blood_pressure=?,
73 heart_failure=?,
74 poor_circulation=?,
75 vascular_surgery=?,
76 cardiac_catheterization=?,
77 coronary_artery_bypass=?,
78 heart_transplant=?,
79 stress_test=?,
80 emphysema=?,
81 chronic_bronchitis=?,
82 interstitial_lung_disease=?,
83 shortness_of_breath_2=?,
84 lung_cancer=?,
85 lung_cancer_surgery=?,
86 pheumothorax=?,
87 stomach_pains=?,
88 peptic_ulcer_disease=?,
89 gastritis=?,
90 endoscopy=?,
91 polyps=?,
92 colonoscopy=?,
93 colon_cancer=?,
94 colon_cancer_surgery=?,
95 ulcerative_colitis=?,
96 crohns_disease=?,
97 appendectomy=?,
98 divirticulitis=?,
99 divirticulitis_surgery=?,
100 gall_stones=?,
101 cholecystectomy=?,
102 hepatitis=?,
103 cirrhosis_of_the_liver=?,
104 splenectomy=?,
105 kidney_failure=?,
106 kidney_stones=?,
107 kidney_cancer=?,
108 kidney_infections=?,
109 bladder_infections=?,
110 bladder_cancer=?,
111 prostate_problems=?,
112 prostate_cancer=?,
113 kidney_transplant=?,
114 sexually_transmitted_disease=?,
115 burning_with_urination=?,
116 discharge_from_urethra=?,
117 rashes=?,
118 infections=?,
119 ulcerations=?,
120 pemphigus=?,
121 herpes=?,
122 osetoarthritis=?,
123 rheumotoid_arthritis=?,
124 lupus=?,
125 ankylosing_sondlilitis=?,
126 swollen_joints=?,
127 stiff_joints=?,
128 broken_bones=?,
129 neck_problems=?,
130 back_problems=?,
131 back_surgery=?,
132 scoliosis=?,
133 herniated_disc=?,
134 shoulder_problems=?,
135 elbow_problems=?,
136 wrist_problems=?,
137 hand_problems=?,
138 hip_problems=?,
139 knee_problems=?,
140 ankle_problems=?,
141 foot_problems=?,
142 insulin_dependent_diabetes=?,
143 noninsulin_dependent_diabetes=?,
144 hypothyroidism=?,
145 hyperthyroidism=?,
146 cushing_syndrom=?,
147 addison_syndrom=?,
148 additional_notes=? WHERE id=?",
150 $_SESSION["pid"],
151 $_SESSION["authProvider"],
152 $_SESSION["authUser"],
153 $userauthorized,
154 ($_POST["fever"] ?? null),
155 ($_POST["chills"] ?? null),
156 ($_POST["night_sweats"] ?? null),
157 ($_POST["weight_loss"] ?? null),
158 ($_POST["poor_appetite"] ?? null),
159 ($_POST["insomnia"] ?? null),
160 ($_POST["fatigued"] ?? null),
161 ($_POST["depressed"] ?? null),
162 ($_POST["hyperactive"] ?? null),
163 ($_POST["exposure_to_foreign_countries"] ?? null),
164 ($_POST["cataracts"] ?? null),
165 ($_POST["cataract_surgery"] ?? null),
166 ($_POST["glaucoma"] ?? null),
167 ($_POST["double_vision"] ?? null),
168 ($_POST["blurred_vision"] ?? null),
169 ($_POST["poor_hearing"] ?? null),
170 ($_POST["headaches"] ?? null),
171 ($_POST["ringing_in_ears"] ?? null),
172 ($_POST["bloody_nose"] ?? null),
173 ($_POST["sinusitis"] ?? null),
174 ($_POST["sinus_surgery"] ?? null),
175 ($_POST["dry_mouth"] ?? null),
176 ($_POST["strep_throat"] ?? null),
177 ($_POST["tonsillectomy"] ?? null),
178 ($_POST["swollen_lymph_nodes"] ?? null),
179 ($_POST["throat_cancer"] ?? null),
180 ($_POST["throat_cancer_surgery"] ?? null),
181 ($_POST["heart_attack"] ?? null),
182 ($_POST["irregular_heart_beat"] ?? null),
183 ($_POST["chest_pains"] ?? null),
184 ($_POST["shortness_of_breath"] ?? null),
185 ($_POST["high_blood_pressure"] ?? null),
186 ($_POST["heart_failure"] ?? null),
187 ($_POST["poor_circulation"] ?? null),
188 ($_POST["vascular_surgery"] ?? null),
189 ($_POST["cardiac_catheterization"] ?? null),
190 ($_POST["coronary_artery_bypass"] ?? null),
191 ($_POST["heart_transplant"] ?? null),
192 ($_POST["stress_test"] ?? null),
193 ($_POST["emphysema"] ?? null),
194 ($_POST["chronic_bronchitis"] ?? null),
195 ($_POST["interstitial_lung_disease"] ?? null),
196 ($_POST["shortness_of_breath_2"] ?? null),
197 ($_POST["lung_cancer"] ?? null),
198 ($_POST["lung_cancer_surgery"] ?? null),
199 ($_POST["pheumothorax"] ?? null),
200 ($_POST["stomach_pains"] ?? null),
201 ($_POST["peptic_ulcer_disease"] ?? null),
202 ($_POST["gastritis"] ?? null),
203 ($_POST["endoscopy"] ?? null),
204 ($_POST["polyps"] ?? null),
205 ($_POST["colonoscopy"] ?? null),
206 ($_POST["colon_cancer"] ?? null),
207 ($_POST["colon_cancer_surgery"] ?? null),
208 ($_POST["ulcerative_colitis"] ?? null),
209 ($_POST["crohns_disease"] ?? null),
210 ($_POST["appendectomy"] ?? null),
211 ($_POST["divirticulitis"] ?? null),
212 ($_POST["divirticulitis_surgery"] ?? null),
213 ($_POST["gall_stones"] ?? null),
214 ($_POST["cholecystectomy"] ?? null),
215 ($_POST["hepatitis"] ?? null),
216 ($_POST["cirrhosis_of_the_liver"] ?? null),
217 ($_POST["splenectomy"] ?? null),
218 ($_POST["kidney_failure"] ?? null),
219 ($_POST["kidney_stones"] ?? null),
220 ($_POST["kidney_cancer"] ?? null),
221 ($_POST["kidney_infections"] ?? null),
222 ($_POST["bladder_infections"] ?? null),
223 ($_POST["bladder_cancer"] ?? null),
224 ($_POST["prostate_problems"] ?? null),
225 ($_POST["prostate_cancer"] ?? null),
226 ($_POST["kidney_transplant"] ?? null),
227 ($_POST["sexually_transmitted_disease"] ?? null),
228 ($_POST["burning_with_urination"] ?? null),
229 ($_POST["discharge_from_urethra"] ?? null),
230 ($_POST["rashes"] ?? null),
231 ($_POST["infections"] ?? null),
232 ($_POST["ulcerations"] ?? null),
233 ($_POST["pemphigus"] ?? null),
234 ($_POST["herpes"] ?? null),
235 ($_POST["osetoarthritis"] ?? null),
236 ($_POST["rheumotoid_arthritis"] ?? null),
237 ($_POST["lupus"] ?? null),
238 ($_POST["ankylosing_sondlilitis"] ?? null),
239 ($_POST["swollen_joints"] ?? null),
240 ($_POST["stiff_joints"] ?? null),
241 ($_POST["broken_bones"] ?? null),
242 ($_POST["neck_problems"] ?? null),
243 ($_POST["back_problems"] ?? null),
244 ($_POST["back_surgery"] ?? null),
245 ($_POST["scoliosis"] ?? null),
246 ($_POST["herniated_disc"] ?? null),
247 ($_POST["shoulder_problems"] ?? null),
248 ($_POST["elbow_problems"] ?? null),
249 ($_POST["wrist_problems"] ?? null),
250 ($_POST["hand_problems"] ?? null),
251 ($_POST["hip_problems"] ?? null),
252 ($_POST["knee_problems"] ?? null),
253 ($_POST["ankle_problems"] ?? null),
254 ($_POST["foot_problems"] ?? null),
255 ($_POST["insulin_dependent_diabetes"] ?? null),
256 ($_POST["noninsulin_dependent_diabetes"] ?? null),
257 ($_POST["hypothyroidism"] ?? null),
258 ($_POST["hyperthyroidism"] ?? null),
259 ($_POST["cushing_syndrom"] ?? null),
260 ($_POST["addison_syndrom"] ?? null),
261 ($_POST["additional_notes"] ?? null),
262 $_GET["id"]
267 formHeader("Redirecting....");
268 formJump();
269 formFooter();