Pathology report list: exclude mixed ultrasound by requiring lab_repotests mapping
This commit is contained in:
parent
d9e4d50dc6
commit
ab4b9a39f8
|
|
@ -161,6 +161,7 @@ HTML;
|
|||
|
||||
$sql = "select COALESCE(g.RepoGrp, 'Unassigned') as RepoGrp, r.Title, r.mstRepoKey
|
||||
from lab_repo r
|
||||
join (select distinct mstRepoKey from lab_repotests) t on t.mstRepoKey = r.mstRepoKey
|
||||
left join lab_rgroups g on r.GrpKey = g.mstRGrpKey
|
||||
order by r.mstRepoKey asc";
|
||||
$query = $this->db->query($sql);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user