allow lastname,firstname in patient search
[openemr.git] / library / pid.inc
blob8dde6f9066a08f8c817e102c26b75e581d705d49
1 <?
2 include_once("$srcdir/../interface/globals.php");
3 include_once("$srcdir/log.inc");
5 //function called to set the global session variable for patient id (pid) number
6 function setpid($new_pid) {
7 global $pid;
9 $_SESSION['pid']=$new_pid;
10 $pid=$new_pid;
12 newEvent("view",$_SESSION["authUser"],$_SESSION["authProvider"],$pid);