pull out passes filter functionality into it's own function
Merge pull request #28 from dimagi/cz

pull out passes filter functionality into it's own function