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) {
11 global $attendant_type;
13 $attendant_id = $attendant_type == 'pid' ? $pid : $_SESSION['therapy_group'];
16 if (getFormByEncounter($attendant_id,$enc)) {
17 //there is an encounter enterred for today
19 //addForm($enc, "New Patient Encounter", 0, $pid, 1);
24 $_SESSION['encounter']=$enc;
28 //returns 1 on successful global set, or 0 if there was no
29 //current encounter, signifying that the interface should load
30 //the screen for a new encounter