CCR Import, made changes per comments in github.
[openemr.git] / contrib / forms / neurologicalreview / save.php
bloba83d7fb318d7916d7713dae4bb3e9bfd69a5a5a9
1 <?php
2 //------------Forms generated from formsWiz
3 include_once("../../globals.php");
4 include_once("$srcdir/api.inc");
5 include_once("$srcdir/forms.inc");
6 foreach ($_POST as $k => $var) {
7 $_POST[$k] = mysql_escape_string($var);
8 echo "$var\n";
10 if ($encounter == "")
11 $encounter = date("Ymd");
12 if ($_GET["mode"] == "new"){
13 $newid = formSubmit("form_neurologicalreview", $_POST, $_GET["id"], $userauthorized);
14 addForm($encounter, "Neurological Review", $newid, "neurologicalreview", $pid, $userauthorized);
15 }elseif ($_GET["mode"] == "update") {
16 sqlInsert("update form_neurologicalreview set pid = {$_SESSION["pid"]},groupname='".$_SESSION["authProvider"]."',user='".$_SESSION["authUser"]."',authorized=$userauthorized,activity=1, date = NOW(), burning='".$_POST["burning"]."', confusion='".$_POST["confusion"]."', dizziness='".$_POST["dizziness"]."', dysphasia='".$_POST["dysphasia"]."', facial_tic='".$_POST["facial_tic"]."', focal_weakness='".$_POST["focal_weakness"]."', forgetfulness='".$_POST["forgetfulness"]."', headache='".$_POST["headache"]."', hyperesthesia='".$_POST["hyperesthesia"]."', lightheadedness='".$_POST["lightheadedness"]."', numbness='".$_POST["numbness"]."', paralysis='".$_POST["paralysis"]."', paresthesia='".$_POST["paresthesia"]."', symptoms_of_problems='".$_POST["symptoms_of_problems"]."', additional_notes='".$_POST["additional_notes"]."' where id=$id");
18 $_SESSION["encounter"] = $encounter;
19 formHeader("Redirecting....");
20 formJump();
21 formFooter();