add get_subcases function
Merge pull request #102 from dimagi/cz

add get_subcases function