def METHOD_NAME(self):
    cleaned_data = super(OpenmrsRepeaterForm, self).METHOD_NAME()
    white_listed_case_types = cleaned_data.get('white_listed_case_types', [])
    atom_feed_enabled = cleaned_data.get('atom_feed_enabled', False)
    location_id = cleaned_data.get('location_id', None)
    if atom_feed_enabled:
        if len(white_listed_case_types) != 1:
            raise ValidationError(gettext_lazy(
                'Specify a single case type so that CommCare can add '
                'cases using the Atom feed for patients created in '
                'OpenMRS/Bahmni.'
            ))
        if not location_id:
            raise ValidationError(gettext_lazy(
                'Specify a location so that CommCare can set an owner for '
                'cases added via the Atom feed.'
            ))
    return cleaned_data