fix: set default if only 1 effective insurance (#7546)
[openemr.git] / contrib / forms / reviewofs / save.php
blob63d385b9c7cb72ddaaa28c9b5a3f5840db3aa319
1 <?php
3 //------------Forms generated from formsWiz
4 require_once("../../globals.php");
5 require_once("$srcdir/api.inc.php");
6 require_once("$srcdir/forms.inc.php");
8 if ($encounter == "") {
9 $encounter = date("Ymd");
12 if ($_GET["mode"] == "new") {
13 $newid = formSubmit("form_reviewofs", $_POST, $_GET["id"], $userauthorized);
14 addForm($encounter, "Review of Systems Checks", $newid, "reviewofs", $pid, $userauthorized);
15 } elseif ($_GET["mode"] == "update") {
16 sqlStatement("update form_reviewofs set pid = ?, groupname= ?, user= ?, authorized= ?, activity=1, date = NOW(), fever=?,
17 chills=?, night_sweats=?, weight_loss=?,
18 poor_appetite=?, insomnia=?,
19 fatigued=?, depressed=?, hyperactive=?, exposure_to_foreign_countries=?,
20 cataracts=?, cataract_surgery=?, glaucoma=?, double_vision=?,
21 blurred_vision=?, poor_hearing=?, headaches=?, ringing_in_ears=?,
22 bloody_nose=?, sinusitis=?, sinus_surgery=?,
23 dry_mouth=?, strep_throat=?, tonsillectomy=?, swollen_lymph_nodes=?,
24 throat_cancer=?, throat_cancer_surgery=?, heart_attack=?, irregular_heart_beat=?,
25 chest_pains=?, shortness_of_breath=?, high_blood_pressure=?,
26 heart_failure=?, poor_circulation=?, vascular_surgery=?,
27 cardiac_catheterization=?, coronary_artery_bypass=?, heart_transplant=?,
28 stress_test=?, emphysema=?, chronic_bronchitis=?, interstitial_lung_disease=?,
29 shortness_of_breath_2=?, lung_cancer=?, lung_cancer_surgery=?, pheumothorax=?,
30 stomach_pains=?, peptic_ulcer_disease=?, gastritis=?, endoscopy=?,
31 polyps=?, colonoscopy=?, colon_cancer=?, colon_cancer_surgery=?,
32 ulcerative_colitis=?, crohns_disease=?, appendectomy=?, divirticulitis=?,
33 divirticulitis_surgery=?, gall_stones=?, cholecystectomy=?, hepatitis=?,
34 cirrhosis_of_the_liver=?, splenectomy=?, kidney_failure=?, kidney_stones=?,
35 kidney_cancer=?, kidney_infections=?, bladder_infections=?, bladder_cancer=?,
36 prostate_problems=?, prostate_cancer=?, kidney_transplant=?, sexually_transmitted_disease=?,
37 burning_with_urination=?, discharge_from_urethra=?, rashes=?,
38 infections=?, ulcerations=?, pemphigus=?, herpes=?,
39 osetoarthritis=?, rheumotoid_arthritis=?, lupus=?, ankylosing_sondlilitis=?,
40 swollen_joints=?, stiff_joints=?, broken_bones=?, neck_problems=?,
41 back_problems=?, back_surgery=?, scoliosis=?, herniated_disc=?,
42 shoulder_problems=?, elbow_problems=?, wrist_problems=?, hand_problems=?,
43 hip_problems=?, knee_problems=?, ankle_problems=?, foot_problems=?,
44 insulin_dependent_diabetes=?, noninsulin_dependent_diabetes=?, hypothyroidism=?,
45 hyperthyroidism=?, cushing_syndrom=?, addison_syndrom=?, additional_notes=? where id=?", array($_SESSION["pid"], $_SESSION["authProvider"], $_SESSION["authUser"], $userauthorized, $_POST['weight_loss'], $_POST['poor_appetite'], $_POST['insomnia'], $_POST['fatigued'],
46 $_POST['depressed'], $_POST['hyperactive'], $_POST['exposure_to_foreign_countries'], $_POST['cataracts'],
47 $_POST['cataract_surgery'], $_POST['glaucoma'], $_POST['double_vision'], $_POST['blurred_vision'],
48 $_POST['poor_hearing'], $_POST['headaches'], $_POST['ringing_in_ears'], $_POST['bloody_nose'],
49 $_POST['sinusitis'], $_POST['sinus_surgery'], $_POST['dry_mouth'], $_POST['strep_throat'],
50 $_POST['tonsillectomy'], $_POST['swollen_lymph_nodes'], $_POST['throat_cancer'], $_POST['throat_cancer_surgery'],
51 $_POST['heart_attack'], $_POST['irregular_heart_beat'], $_POST['chest_pains'], $_POST['shortness_of_breath'],
52 $_POST['high_blood_pressure'], $_POST['heart_failure'], $_POST['poor_circulation'], $_POST['vascular_surgery'],
53 $_POST['cardiac_catheterization'], $_POST['coronary_artery_bypass'], $_POST['heart_transplant'], $_POST['stress_test'],
54 $_POST['emphysema'], $_POST['chronic_bronchitis'], $_POST['interstitial_lung_disease'], $_POST['shortness_of_breath_2'],
55 $_POST['lung_cancer'], $_POST['lung_cancer_surgery'], $_POST['pheumothorax'], $_POST['stomach_pains'],
56 $_POST['peptic_ulcer_disease'], $_POST['gastritis'], $_POST['endoscopy'], $_POST['polyps'],
57 $_POST['colonoscopy'], $_POST['colon_cancer'], $_POST['colon_cancer_surgery'], $_POST['ulcerative_colitis'],
58 $_POST['crohns_disease'], $_POST['appendectomy'], $_POST['divirticulitis'], $_POST['divirticulitis_surgery'],
59 $_POST['gall_stones'], $_POST['cholecystectomy'], $_POST['hepatitis'], $_POST['cirrhosis_of_the_liver'],
60 $_POST['splenectomy'], $_POST['kidney_failure'], $_POST['kidney_stones'], $_POST['kidney_cancer'],
61 $_POST['kidney_infections'], $_POST['bladder_infections'], $_POST['bladder_cancer'], $_POST['prostate_problems'],
62 $_POST['prostate_cancer'], $_POST['kidney_transplant'], $_POST['sexually_transmitted_disease'], $_POST['burning_with_urination'],
63 $_POST['discharge_from_urethra'], $_POST['rashes'], $_POST['infections'], $_POST['ulcerations'],
64 $_POST['pemphigus'], $_POST['herpes'], $_POST['osetoarthritis'], $_POST['rheumotoid_arthritis'],
65 $_POST['lupus'], $_POST['ankylosing_sondlilitis'], $_POST['swollen_joints'], $_POST['stiff_joints'],
66 $_POST['broken_bones'], $_POST['neck_problems'], $_POST['back_problems'], $_POST['back_surgery'],
67 $_POST['scoliosis'], $_POST['herniated_disc'], $_POST['shoulder_problems'], $_POST['elbow_problems'],
68 $_POST['wrist_problems'], $_POST['hand_problems'], $_POST['hip_problems'], $_POST['knee_problems'],
69 $_POST['ankle_problems'], $_POST['foot_problems'], $_POST['insulin_dependent_diabetes'], $_POST['noninsulin_dependent_diabetes'],
70 $_POST['hypothyroidism'], $_POST['hyperthyroidism'], $_POST['cushing_syndrom'], $_POST['addison_syndrom'],
71 $_POST['additional_notes'], $_GET["id"]));
74 formHeader("Redirecting....");
75 formJump();
76 formFooter();