fix: x12837 billing 5 or 9 digit zip check (#7760)
[openemr.git] / contrib / forms / ped_GI / save.php
blob3322c3c4a4a36797f88ef1a0a602210c091ad123
1 <?php
3 //
5 require_once("../../globals.php");
6 require_once("$srcdir/api.inc.php");
7 require_once("$srcdir/forms.inc.php");
9 if ($encounter == "") {
10 $encounter = date("Ymd");
13 if ($_GET["mode"] == "new") {
14 $newid = formSubmit("form_ped_GI", $_POST, $_GET["id"], $userauthorized);
15 addForm($encounter, "Pediatric GI Evaluation", $newid, "ped_GI", $pid, $userauthorized);
16 } elseif ($_GET["mode"] == "update") {
17 sqlStatement("update form_ped_GI set pid = ?,
18 groupname = ?,
19 user = ?,
20 authorized = ?,
21 activity =1,
22 date = NOW(),
23 diarrhea = ?,
24 with_every_bowel_movement = ?,
25 after_every_meal = ?,
26 blood_or_mucus_in_stool = ?,
27 diarrhea_onset = ?,
28 worms = ?,
29 vomits = ?,
30 duration = ?,
31 projectile = ?,
32 more_often_than_2_hours = ?,
33 vomit_after_every_meal = ?,
34 blood_in_vomitus = ?,
35 taking_medication = ?,
36 oral_rehydration = ?,
37 eating_solid_food = ?,
38 fever = ?,
39 pain = ?,
40 lethargy = ?,
41 oral_hydration_capable = ?,
42 urine_output_last_6_hours = ?,
43 pain_with_urination = ?,
44 cough_or_breathing_difficulty = ?,
45 able_to_sleep = ?,
46 nasal_discharge = ?,
47 previous_hospitalization = ?,
48 siblings_affected = ?,
49 immunization_up_to_date = ?,
50 notes = ?
51 WHERE id = ?", array($_SESSION["pid"], $_SESSION["authProvider"], $_SESSION["authUser"], $userauthorized, $_POST["diarrhea"], $_POST["with_every_bowel_movement"], $_POST["after_every_meal"], $_POST["blood_or_mucus_in_stool"], $_POST["diarrhea_onset"],
52 $_POST["worms"], $_POST["vomits"], $_POST["duration"], $_POST["projectile"], $_POST["more_often_than_2_hours"], $_POST["vomit_after_every_meal"],
53 $_POST["blood_in_vomitus"], $_POST["taking_medication"], $_POST["oral_rehydration"], $_POST["eating_solid_food"], $_POST["fever"],
54 $_POST["pain"], $_POST["lethargy"], $_POST["oral_hydration_capable"], $_POST["urine_output_last_6_hours"], $_POST["pain_with_urination"],
55 $_POST["cough_or_breathing_difficulty"], $_POST["able_to_sleep"], $_POST["nasal_discharge"], $_POST["previous_hospitalization"],
56 $_POST["siblings_affected"], $_POST["immunization_up_to_date"], $_POST["notes"], $id));
60 formHeader("Redirecting....");
61 formJump();
62 formFooter();