add locfull to pv by patient

This commit is contained in:
mahdahar 2025-10-08 16:26:41 +07:00
parent b258584553
commit 70de4fcfc6

View File

@ -27,6 +27,7 @@ class PatVisitModel extends Model {
public function showByPatient($InternalPID) {
$rows = $this->join('patdiag pd', 'pd.InternalPVID=patvisit.InternalPVID', 'left')
->join('patvisitadt pva', 'pd.InternalPVID=pva.InternalPVID', 'left')
->join('location l', 'l.LocationID=pva.LocationID', 'left')
->where('patvisit.InternalPID',$InternalPID)->get()->getResultArray();
return $rows;
}