Skip to content

Commit

Permalink
separating facility from user maintenance, improved support for multi…
Browse files Browse the repository at this point in the history
…ple facilities from Bill Himmelstoss, and a bit of cleanup
  • Loading branch information
sunsetsystems committed Jul 15, 2009
1 parent ee6e309 commit 28286c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion library/patient.inc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,15 @@ function getProviderInfo($providerID = "%", $providers_only = true, $facility =
//(CHEMED) facility filter
$param2 = "";
if ($facility) {
$param2 = " AND facility_id = $facility ";
// $param2 = " AND facility_id = $facility ";
$param2 = " AND (facility_id = $facility
OR $facility IN
(select facility_id
from users_facility
where tablename = 'users'
and table_id = id)
)
";
}
//--------------------------------

Expand Down

0 comments on commit 28286c7

Please sign in to comment.