getTemplateDefinitions function

Extract template definitions from a cohort definition set