saveCohortDefinitionSet function

Save the cohort definition set to the file system