hemanth, mario | #1528 | adding query to get active patients with non lab orders pending