(self, case_properties)
return all_match or any_match
Given a list of case properties, returns whether these will be pertinent in
        finding duplicate cases.

        Used when deciding whether to run the action from the pillow.
Given a list of case properties, returns whether these will be pertinent in
        finding duplicate cases.
Given a list of case properties returns whether these will be pertinent in finding duplicate cases .
def properties_fit_definition(self, case_properties):
        """Given a list of case properties, returns whether these will be pertinent in
        finding duplicate cases.

        Used when deciding whether to run the action from the pillow.

        """

        definition_properties = set(self.case_properties)
        case_properties = set(case_properties)

        all_match = (
            self.match_type == CaseDeduplicationMatchTypeChoices.ALL
            and case_properties.issuperset(definition_properties)
        )

        any_match = (
            self.match_type == CaseDeduplicationMatchTypeChoices.ANY
            and case_properties.intersection(definition_properties)
        )

        return all_match or any_match
def properties_fit_definition ( self , case_properties ) : definition_properties = set ( self . case_properties ) case_properties = set ( case_properties ) all_match = ( self . match_type == CaseDeduplicationMatchTypeChoices . ALL and case_properties . issuperset ( definition_properties ) ) any_match = ( self . match_type == CaseDeduplicationMatchTypeChoices . ANY and case_properties . intersection ( definition_properties ) ) return all_match or any_match