Modified:
branches/bmas-staging/lib/org/freemedsoftware/module/Authorizations.class.php
Log:
Modified: branches/bmas-staging/lib/org/freemedsoftware/module/Authorizations.class.php
===================================================================
--- branches/bmas-staging/lib/org/freemedsoftware/module/Authorizations.class.php 2010-03-12 19:07:20 UTC (rev 5296)
+++ branches/bmas-staging/lib/org/freemedsoftware/module/Authorizations.class.php 2010-03-13 10:15:41 UTC (rev 5297)
@@ -111,6 +111,10 @@
return $GLOBALS['sql']->queryAll( $q );
} // end method GetCoverages
+ public function getValidAuthorizations($ptid,$pdate){
+ $q="SELECT id AS Id,concat(authnum,'(',authdtbegin,' - ',authdtend,')') AS auth_info FROM authorizations WHERE active='active' AND '".$GLOBALS['sql']->quote( $pdate )."'>= authdtbegin AND '".$GLOBALS['sql']->quote( $pdate )."' <= authdtend AND authvisitsremain > 0 AND authpatient=".$GLOBALS['sql']->quote( $ptid );
+ return $GLOBALS['sql']->queryAll( $q );
+ }
} // end class Authorizations
register_module ("Authorizations");