2 include_once("../../globals.php");
3 include_once("$srcdir/forms.inc");
5 //function called to set the global session variable for encounter number
6 function setencounter($enc) {
14 if (getFormByEncounter($pid,$enc)) {
15 //there is an encounter enterred for today
17 //addForm($enc, "New Patient Encounter", 0, $pid, 1);
22 $_SESSION['encounter']=$enc;
26 //returns 1 on successful global set, or 0 if there was no
27 //current encounter, signifying that the interface should load
28 //the screen for a new encounter