4 * Forms generated from formsWiz
5 * script to save Review of Systems Checks Form
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") {
35 "UPDATE form_reviewofs set pid = ?,
50 exposure_to_foreign_countries=?,
65 swollen_lymph_nodes=?,
67 throat_cancer_surgery=?,
69 irregular_heart_beat=?,
71 shortness_of_breath=?,
72 high_blood_pressure=?,
76 cardiac_catheterization=?,
77 coronary_artery_bypass=?,
82 interstitial_lung_disease=?,
83 shortness_of_breath_2=?,
85 lung_cancer_surgery=?,
88 peptic_ulcer_disease=?,
94 colon_cancer_surgery=?,
99 divirticulitis_surgery=?,
103 cirrhosis_of_the_liver=?,
109 bladder_infections=?,
114 sexually_transmitted_disease=?,
115 burning_with_urination=?,
116 discharge_from_urethra=?,
123 rheumotoid_arthritis=?,
125 ankylosing_sondlilitis=?,
142 insulin_dependent_diabetes=?,
143 noninsulin_dependent_diabetes=?,
148 additional_notes=? WHERE id=?",
151 $_SESSION["authProvider"],
152 $_SESSION["authUser"],
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),
267 formHeader("Redirecting....");