def get_modality(config_file):
    """
    Gets the list of modalities to be searched.
    Return None if the search is by date only.
    :param config_file:
    :return:
    """
    if not config_file['StudyInfo']['Modality']:
        return None
    else:
        return config_file['StudyInfo']['Modality']