[CSM-58] Define categories

fixed issue with select all and deselect all categories | https://issues.openmrs.org/browse/CSM-58