add utility function to CaseBlock
Merge pull request #183 from dimagi/cz

add utility function to CaseBlock