#NEWLINE# def _get_numerator_action_filter( self , form , date ) : #NEWLINE# #INDENT# '\n        The filter used to determine relevant actions from the numerator.\n        The form is the form contributing to the denominator and the date is\n        the due date for the visit.\n        ' #NEWLINE# def _filter( a ) : #NEWLINE# #INDENT# return ( visit_is ( a , self . visit_type ) and date_in_range ( a . date . date ( ) , date ) and ( a . date > getters . date_modified ( form , force_to_date = False , force_to_datetime = True ) ) and ( a . xform_id not in self . _visits_used ) ) #NEWLINE# #UNINDENT# return self