// $app->get('/passwordChange/', function() use ($app) {
 //
 // 		$user = getCurrentUser();
 // 		$app->view->setData(array('user' => $user));
 // 		$app->render('passwordChange.php');
 //
 // });
 /**
  *
  * Physician Signature View
  *
  **/
 $app->get('/physSigs/:npi/', function ($NPI) use($app) {
     $user = getCurrentUser();
     $provider = new \OnlineOrders\Provider($NPI);
     $signatures = $provider->getOutstandingSignatures();
     $app->view->setData(array('provider' => $provider, 'user' => $user, 'pageTitle' => 'My Account', 'bodyClass' => 'account'));
     $app->render('physSigs.php');
 });
 /**
  *
  * User Management View
  *
  **/
 $app->get('/userManagement/', function () use($app) {
     $user = getCurrentUser();
     $users = array();
     if ($user->isAdmin()) {
         $userQuery = "SELECT UserID, FName, LName FROM AT_WebUsers WHERE UserID IN (SELECT DISTINCT UserID FROM AT_WebClinics WHERE ClinicID IN (";
         $clinics = $user->getClinics();
         foreach ($clinics as $clinic) {
Beispiel #2
0
 public function getOutstandingSignatures()
 {
     if ($this->isPhysician()) {
         $provider = new \OnlineOrders\Provider($this->userInfo['NPI']);
         return $provider->getOutstandingSignatures();
     } else {
         return NULL;
     }
 }