Added filtering to patients