Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases body Assign NameStore Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict For NameStore NameLoad body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr ListLoad NameLoad orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore BinOpSub NameLoad Call NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call NameLoad attr NameLoad attr NameLoad attr keyword NameLoad attr keyword NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareGt AttributeLoad NameLoad attr BinOpSub NameLoad Call NameLoad keyword AttributeLoad NameLoad attr body Return NameLoad Return Call NameLoad ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Assign NameStore NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str If BoolOpOr UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str If AttributeLoad NameLoad attr body Return NameLoad If AttributeLoad NameLoad attr body Return NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad ClassDef bases body Assign NameStore Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad Num Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return CompareLtE NameLoad BinOpSub NameLoad Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return CompareEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return CompareNotEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call Call AttributeLoad Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Str Assign NameStore TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad ClassDef bases body Assign NameStore Str decorator_list decorator_list
N/A N/A re casexml.apps.case.models CommCareCase corehq.apps.es.cases CaseES datetime date datetime time timedelta dateutil.parser parse django.db models corehq.apps.hqcase.utils update_case corehq.form_processor.models CommCareCaseSQL N/A ALLOWED_DATE_REGEX N/A N/A re compile ^\d{4}-\d{2}-\d{2} N/A AUTO_UPDATE_XMLNS http://commcarehq.org/hq_case_update_rule AutomaticUpdateRule N/A N/A models Model N/A N/A domain N/A N/A models CharField max_length 126 db_index True N/A name N/A N/A models CharField max_length 126 N/A case_type N/A N/A models CharField max_length 126 N/A active N/A N/A models BooleanField default False N/A deleted N/A N/A models BooleanField default False N/A last_run N/A N/A models DateTimeField null True N/A server_modified_boundary N/A N/A models IntegerField Meta N/A N/A N/A app_label data_interfaces N/A by_domain N/A N/A cls domain active_only N/A True N/A N/A filters N/A domain domain N/A active_only N/A N/A N/A filters N/A active True N/A N/A N/A N/A AutomaticUpdateRule objects filter deleted False filters N/A classmethod organize_rules_by_case_type N/A N/A cls rules N/A N/A N/A rules_by_case_type N/A N/A rule rules N/A N/A N/A N/A rule case_type rules_by_case_type N/A N/A N/A rules_by_case_type N/A N/A rule case_type N/A rule N/A N/A N/A N/A N/A rules_by_case_type N/A N/A rule case_type append rule N/A rules_by_case_type N/A classmethod get_boundary_date N/A N/A cls rules now N/A N/A N/A min_boundary N/A min N/A N/A rule server_modified_boundary N/A rule rules N/A date N/A now N/A timedelta days min_boundary N/A date N/A classmethod get_case_ids N/A N/A cls domain boundary_date case_type N/A N/A N/A query N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A CaseES domain domain case_type case_type server_modified_range lte boundary_date is_closed closed False exclude_source N/A results N/A N/A query run N/A N/A results doc_ids N/A classmethod rule_matches_case N/A N/A self case now N/A N/A N/A N/A N/A case type N/A self case_type N/A N/A False N/A N/A N/A case server_modified_on N/A now N/A timedelta days N/A self server_modified_boundary N/A N/A False N/A N/A all N/A N/A N/A criterion matches case now N/A criterion N/A N/A N/A self automaticupdaterulecriteria_set all N/A apply_actions N/A N/A self case N/A N/A N/A properties N/A N/A close False N/A action N/A N/A N/A self automaticupdateaction_set all N/A N/A N/A N/A action action N/A AutomaticUpdateAction ACTION_UPDATE N/A N/A N/A properties N/A N/A action property_name N/A action property_value N/A N/A N/A N/A action action N/A AutomaticUpdateAction ACTION_CLOSE N/A N/A close True N/A N/A update_case N/A case domain N/A case case_id case_properties properties close close xmlns AUTO_UPDATE_XMLNS N/A close N/A apply_rule N/A N/A self case now N/A N/A N/A 
        Returns True if the case was closed, False otherwise.
         N/A N/A self deleted N/A N/A N/A Exception Attempted to call apply_rule on a deleted rule N/A N/A N/A self active N/A N/A N/A Exception Attempted to call apply_rule on an inactive rule N/A N/A N/A N/A isinstance case N/A CommCareCase CommCareCaseSQL N/A N/A case domain N/A self domain N/A N/A N/A Exception Invalid case given N/A N/A case is_deleted N/A N/A False N/A N/A case closed N/A N/A False N/A N/A N/A self rule_matches_case case now N/A N/A N/A N/A self apply_actions case N/A False N/A activate N/A N/A self active N/A True N/A N/A N/A self active active N/A N/A N/A self save N/A soft_delete N/A N/A self N/A N/A N/A N/A self deleted True N/A N/A N/A self save N/A N/A AutomaticUpdateRuleCriteria N/A N/A models Model N/A N/A MATCH_DAYS_SINCE DAYS N/A MATCH_EQUAL EQUAL N/A MATCH_NOT_EQUAL NOT_EQUAL N/A MATCH_HAS_VALUE HAS_VALUE N/A MATCH_TYPE_CHOICES N/A N/A MATCH_DAYS_SINCE MATCH_DAYS_SINCE N/A MATCH_EQUAL MATCH_EQUAL N/A MATCH_NOT_EQUAL MATCH_NOT_EQUAL N/A MATCH_HAS_VALUE MATCH_HAS_VALUE N/A rule N/A N/A models ForeignKey AutomaticUpdateRule on_delete N/A models PROTECT N/A property_name N/A N/A models CharField max_length 126 N/A property_value N/A N/A models CharField max_length 126 null True N/A match_type N/A N/A models CharField max_length 10 choices MATCH_TYPE_CHOICES Meta N/A N/A N/A app_label data_interfaces N/A get_case_value N/A N/A self case N/A N/A N/A N/A N/A case resolve_case_property N/A self property_name N/A check_days_since N/A N/A self case now N/A N/A N/A date_to_check N/A N/A self get_case_value case N/A N/A N/A N/A isinstance date_to_check date N/A isinstance date_to_check basestring N/A N/A ALLOWED_DATE_REGEX match date_to_check N/A N/A date_to_check N/A parse date_to_check N/A N/A N/A isinstance date_to_check date N/A N/A False N/A N/A N/A isinstance date_to_check datetime N/A N/A date_to_check N/A N/A datetime combine date_to_check N/A time 0 0 N/A days N/A int N/A self property_value N/A N/A date_to_check N/A now N/A timedelta days days N/A check_equal N/A N/A self case now N/A N/A N/A N/A N/A N/A self get_case_value case N/A self property_value N/A check_not_equal N/A N/A self case now N/A N/A N/A N/A N/A N/A self get_case_value case N/A self property_value N/A check_has_value N/A N/A self case now N/A N/A N/A value N/A N/A self get_case_value case N/A N/A value None N/A N/A False N/A N/A N/A isinstance value basestring N/A N/A N/A value strip N/A N/A False N/A True N/A matches N/A N/A self case now N/A N/A N/A N/A N/A N/A N/A N/A self MATCH_DAYS_SINCE N/A self MATCH_EQUAL N/A self MATCH_NOT_EQUAL N/A self MATCH_HAS_VALUE N/A self check_days_since N/A self check_equal N/A self check_not_equal N/A self check_has_value get N/A self match_type case now N/A N/A AutomaticUpdateAction N/A N/A models Model N/A N/A ACTION_UPDATE UPDATE N/A ACTION_CLOSE CLOSE N/A ACTION_CHOICES N/A N/A ACTION_UPDATE ACTION_UPDATE N/A ACTION_CLOSE ACTION_CLOSE N/A rule N/A N/A models ForeignKey AutomaticUpdateRule on_delete N/A models PROTECT N/A action N/A N/A models CharField max_length 10 choices ACTION_CHOICES N/A property_name N/A N/A models CharField max_length 126 null True N/A property_value N/A N/A models CharField max_length 126 null True Meta N/A N/A N/A app_label data_interfaces N/A N/A