Module ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword ListLoad NameLoad Str NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Return IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Return For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return BoolOpAnd CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpAdd NameLoad Str Assign AttributeStore NameLoad attr Dict Str Str Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLtELt Num AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str BinOpAdd AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str Str BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Raise Call NameLoad Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str Str BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Raise Call NameLoad Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr TupleLoad Str Str Str Str Str Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str For NameStore SubscriptLoad NameLoad Index Str body Assign SubscriptStore AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str For NameStore SubscriptLoad NameLoad Index Str body Assign SubscriptStore AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad GeneratorExp CompareNotIn NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore ListComp Dict Str Str Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Str body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Dict Str Str Str NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str SubscriptLoad NameLoad Index Str While NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Break Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Dict Str Str Str NameLoad If UnaryOpNot SubscriptLoad NameLoad Index NameLoad body Return NameLoad If CompareGt Call NameLoad SubscriptLoad NameLoad Index NameLoad Num body Raise Call NameLoad Str Return SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad Assign NameStore DictComp SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str Str Str Str Str NameLoad Str NameLoad SubscriptLoad NameLoad Index Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad If CompareLt NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str body AugAssignAdd NameStore Num orelse Break decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str Str Str Str Str NameLoad Str NameLoad SubscriptLoad NameLoad Index Str Str BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Yield NameLoad If CompareLt NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str body AugAssignAdd NameStore Num orelse Break decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str Str Str Str NameLoad Str SubscriptLoad NameLoad Index Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Yield NameLoad If CompareLt NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str body AugAssignAdd NameStore Num orelse Break decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str Str Num NameLoad Str For NameStore SubscriptLoad NameLoad Index Str body Expr Yield NameLoad If CompareLt NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body AugAssignAdd NameStore Num orelse Break decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str NameLoad Return IfExp Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad GeneratorExp CompareEq SubscriptLoad NameLoad Index Str NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad If CompareIn NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr body Expr Call AttributeLoad NameLoad attr Dict Str Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If Call NameLoad GeneratorExp CompareNotIn NameLoad AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Return Assign NameStore Dict Str Str Str Str Str Str NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index Str Dict Str Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore Dict For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str Str body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index NameLoad Assign SubscriptStore NameLoad Index SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad keyword ListLoad Call NameLoad keyword NameLoad keyword Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr handlers ExceptHandler type NameLoad body Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore DictComp NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore DictComp NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Yield Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr attr If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Dict Str Str Str Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ print_function datetime date N/A json N/A logging casexml.apps.case.models CommCareCase corehq.apps.fixtures.models FixtureDataItem FixtureDataType FieldList FixtureItemField couchdbkit ResourceNotFound dimagi.ext.couchdbkit * dimagi.utils.couch.cache cache_core N/A requests toggle.models Toggle N/A logger N/A N/A logging getLogger __name__ Dhis2Settings N/A Document N/A N/A domain N/A StringProperty N/A dhis2 N/A DictProperty for_domain N/A N/A cls domain N/A N/A N/A res N/A N/A cache_core cached_view N/A N/A cls get_db by_domain_doc_type_date/view key N/A domain Dhis2Settings None reduce False include_docs True wrapper N/A cls wrap N/A N/A N/A N/A len res 0 N/A res N/A 0 None N/A classmethod all_enabled N/A N/A cls N/A N/A N/A 
        Yields settings of all domains for which "enabled" is true
         N/A N/A N/A toggle N/A N/A Toggle get dhis2_domain N/A N/A N/A ResourceNotFound N/A N/A N/A domain N/A toggle enabled_users N/A N/A N/A N/A domain startswith domain: N/A N/A domain N/A N/A N/A domain split : N/A 1 N/A settings N/A N/A cls for_domain domain N/A N/A settings N/A N/A settings is_enabled N/A N/A N/A settings N/A classmethod is_enabled_for_domain N/A N/A cls domain N/A N/A N/A settings N/A N/A cls for_domain domain N/A N/A N/A settings None N/A N/A settings is_enabled N/A classmethod is_enabled N/A N/A self N/A N/A N/A N/A N/A self dhis2 N/A enabled N/A N/A JsonApiError N/A Exception N/A N/A 
    JsonApiError is raised for HTTP or socket errors.
     N/A N/A Dhis2ApiQueryError N/A JsonApiError N/A N/A 
    Dhis2ApiQueryError is raised when the API returns an unexpected response.
     N/A N/A Dhis2ConfigurationError N/A Exception N/A N/A 
    DHIS2 API Integration has not been configured correctly.
     N/A N/A Dhis2IntegrationError N/A Exception N/A N/A 
    A failure has occurred in CommCareHQ related to but not caused by DHIS2.
     N/A N/A json_serializer N/A N/A obj N/A N/A N/A 
    A JSON serializer that serializes dates and times
     N/A N/A hasattr obj isoformat N/A N/A N/A N/A obj isoformat N/A JsonApiRequest N/A object N/A N/A 
    Wrap requests with URL, header and authentication for DHIS2 API
     __init__ N/A N/A self host username password N/A N/A N/A N/A self baseurl N/A host /api/ N/A N/A self headers N/A Accept application/json N/A N/A self auth N/A username password N/A json_or_error N/A N/A response N/A N/A N/A 
        Return HTTP status, JSON

        :raises JsonApiError: if HTTP status is not in the 200 (OK) range
         N/A N/A 200 N/A response status_code 300 N/A N/A N/A N/A response json N/A N/A N/A JsonApiError N/A API request to %s failed with HTTP status %s: %s N/A N/A response url N/A response status_code N/A response text N/A staticmethod get N/A N/A self path N/A kwargs N/A N/A N/A N/A logger debug DHIS2: GET %s: 
    Headers: %s
    kwargs: %s N/A N/A self baseurl path N/A self headers kwargs N/A N/A N/A response N/A N/A requests get N/A N/A self baseurl path headers N/A self headers auth N/A self auth kwargs N/A N/A N/A N/A requests RequestException N/A err N/A N/A N/A N/A logger exception JSON API raised HTTP or socket error.
Request details: %s
Error: %s N/A method url headers get N/A N/A self baseurl path N/A self headers err N/A N/A JsonApiError N/A str err N/A N/A N/A JsonApiRequest json_or_error response N/A post N/A N/A self path data N/A kwargs N/A N/A headers N/A N/A N/A self headers copy N/A N/A headers N/A Content-type application/json N/A json_data N/A N/A json dumps data default json_serializer N/A N/A N/A logger debug DHIS2: POST %s: 
    Headers: %s
    Data: %s
    kwargs: %s N/A N/A self baseurl path N/A self headers json_data kwargs N/A N/A N/A response N/A N/A requests post N/A N/A self baseurl path json_data headers headers auth N/A self auth kwargs N/A N/A N/A N/A requests RequestException N/A err N/A N/A N/A N/A logger exception JSON API raised HTTP or socket error.
Request details: %s
Error: %s N/A method url data headers post N/A N/A self baseurl path json_data headers err N/A N/A JsonApiError N/A str err N/A N/A N/A JsonApiRequest json_or_error response N/A put N/A N/A self path data N/A kwargs N/A N/A headers N/A N/A N/A self headers copy N/A N/A headers N/A Content-type application/json N/A json_data N/A N/A json dumps data default json_serializer N/A N/A N/A logger debug DHIS2: PUT %s: 
    Headers: %s
    Data: %s
    kwargs: %s N/A N/A self baseurl path N/A self headers json_data kwargs N/A N/A N/A response N/A N/A requests put N/A N/A self baseurl path json_data headers headers auth N/A self auth kwargs N/A N/A N/A N/A requests RequestException N/A err N/A N/A N/A N/A logger exception JSON API raised HTTP or socket error.
Request details: %s
Error: %s N/A method url data headers put N/A N/A self baseurl path json_data headers err N/A N/A JsonApiError N/A str err N/A N/A N/A JsonApiRequest json_or_error response N/A N/A Dhis2Api N/A object N/A __init__ N/A N/A self host username password top_org_unit_name N/A None N/A N/A N/A self _username username N/A N/A self top_org_unit_name top_org_unit_name N/A N/A self _top_org_unit None N/A N/A self _request N/A JsonApiRequest host username password N/A N/A self _tracked_entity_attributes N/A N/A N/A self _not_tracked_entity_attributes N/A Instance Created Last updated Org unit Tracked entity N/A N/A self _data_elements N/A N/A _fetch_tracked_entity_attributes N/A N/A self N/A N/A N/A response N/A N/A N/A self _request get trackedEntityAttributes params N/A links paging false false N/A te N/A response N/A trackedEntityAttributes N/A N/A N/A N/A self _tracked_entity_attributes N/A N/A te N/A name N/A te N/A id N/A _fetch_data_elements N/A N/A self N/A N/A N/A response N/A N/A N/A self _request get dataElements params N/A links paging false false N/A de N/A response N/A dataElements N/A N/A N/A N/A self _data_elements N/A N/A de N/A name N/A de N/A id N/A _data_to_attributes N/A N/A self data N/A N/A N/A 
        Convert tracked entity instance data, as returned by DHIS2, into a
        list of attributes, as accepted by DHIS2.
         N/A attr N/A self _not_tracked_entity_attributes N/A N/A N/A N/A data pop attr None N/A N/A any N/A N/A key N/A self _tracked_entity_attributes N/A key data N/A N/A N/A N/A self _fetch_tracked_entity_attributes N/A attributes N/A N/A attribute value N/A N/A self get_te_attr_id key value N/A N/A key value N/A N/A data iteritems N/A attributes N/A add_te_inst N/A N/A self te_name ou_id instance_data N/A N/A N/A 
        Add a tracked entity instance

        :param te_name: Name of the tracked entity. Add or override its ID in data.
        :param ou_id: Add or override organisation unit ID in data.
        :param instance_data: A dictionary of entity attributes and values
        :return: New tracked entity instance ID

        .. Note:: If te_name is not specified, then `data` must include the
                  *ID* of the tracked entity, not its name.

        Example request: ::

            {
                "orgUnit": "Thu5YoRCV8y",
                "trackedEntity": "djYzXj7pXIl",
                "attributes": [{
                    "attribute": "HHsieCWv2XR",
                    "value": "05e17037-4d36-4cb3-af7d-5d9db6ff6b7f"
                }]
            }

        Example response: ::

            {
                "status": "SUCCESS",
                "importCount": {
                    "imported": 1,
                    "updated": 0,
                    "ignored": 0,
                    "deleted": 0
                },
                "reference": "HI2SHTzkrHo"
            }


         N/A request_data N/A trackedEntity orgUnit attributes N/A N/A self get_te_id te_name ou_id N/A N/A self _data_to_attributes instance_data N/A response N/A N/A N/A self _request post trackedEntityInstances request_data N/A N/A N/A response N/A status SUCCESS N/A N/A N/A Dhis2ApiQueryError N/A Failed to create instance of tracked entity "%s". DHIS2 API error: %s N/A te_name response N/A N/A response N/A reference N/A update_te_inst N/A N/A self instance_data N/A N/A N/A 
        Update a tracked entity instance with the given data

        :param instance_data: Tracked entity instance data. Must include its ID,
                     organisation unit and tracked entity type
         N/A N/A N/A te_inst_id N/A N/A instance_data pop Instance N/A ou_id N/A N/A instance_data pop Org unit N/A N/A N/A KeyError N/A err N/A N/A N/A KeyError N/A Mandatory attribute missing from tracked entity instance data: %s err N/A request_data N/A trackedEntityInstance orgUnit attributes te_inst_id ou_id N/A N/A self _data_to_attributes instance_data N/A response N/A N/A N/A self _request put N/A trackedEntityInstances/ te_inst_id request_data N/A N/A N/A response N/A status SUCCESS N/A N/A N/A N/A logger error Failed to update instance of tracked entity "%s". DHIS2 API error: %s te_inst_id response N/A get_top_org_unit N/A N/A self N/A N/A N/A 
        Return the top-most organisation unit.
         N/A N/A N/A self _top_org_unit None N/A N/A N/A self top_org_unit_name N/A N/A response N/A N/A N/A self _request get organisationUnits params N/A links query false N/A self top_org_unit_name N/A N/A self _top_org_unit N/A N/A response N/A organisationUnits N/A 0 N/A N/A org_units_json N/A N/A N/A self _request get organisationUnits params N/A links false N/A org_unit N/A N/A org_units_json N/A organisationUnits N/A 0 N/A org_unit N/A N/A N/A self _request get N/A organisationUnits/ N/A org_unit N/A id N/A True N/A N/A N/A N/A N/A org_unit get parent N/A N/A N/A org_unit N/A N/A N/A self _request get N/A organisationUnits/ N/A N/A org_unit N/A parent N/A id N/A N/A self _top_org_unit org_unit N/A N/A self _top_org_unit N/A get_resource_id N/A N/A self resource name N/A N/A N/A 
        Returns the ID of the given resource type with the given name
         N/A response N/A N/A N/A self _request get resource params N/A links query false name N/A N/A N/A response N/A resource N/A N/A None N/A N/A N/A len N/A response N/A resource 1 N/A N/A N/A Dhis2ApiQueryError Query returned multiple results N/A N/A N/A N/A response N/A resource N/A 0 N/A id N/A get_program_id N/A N/A self name N/A N/A N/A 
        Returns the ID of the given program
         N/A N/A N/A self get_resource_id programs name N/A get_program_stage_id N/A N/A self name N/A N/A N/A 
        Returns the ID of the given program stage
         N/A N/A N/A self get_resource_id programStages name N/A get_te_id N/A N/A self name N/A N/A N/A 
        Returns the ID of the given tracked entity type
         N/A N/A N/A self get_resource_id trackedEntities name N/A get_te_attr_id N/A N/A self name N/A N/A N/A 
        Returns the ID of the given tracked entity attribute
         N/A N/A name N/A self _tracked_entity_attributes N/A N/A N/A N/A self _tracked_entity_attributes N/A name N/A N/A self get_resource_id trackedEntityAttributes name N/A N/A N/A self _tracked_entity_attributes N/A name N/A get_te_inst N/A N/A self te_inst_id N/A N/A N/A 
        Return the tracked entity instance identified by the give ID
         N/A inst N/A N/A N/A self _request get N/A trackedEntityInstances/ te_inst_id N/A instance N/A N/A attr N/A displayName N/A attr N/A value N/A attr N/A inst N/A attributes N/A N/A N/A instance update N/A Instance Tracked entity Org unit N/A inst N/A trackedEntityInstance N/A inst N/A trackedEntity N/A inst N/A orgUnit N/A instance N/A gen_instances_with_unset N/A N/A self te_name attr_name N/A N/A N/A 
        Returns a list of tracked entity instances with the given attribute name unset
         N/A top_ou N/A N/A self get_top_org_unit N/A te_id N/A N/A self get_te_id te_name N/A attr_id N/A N/A self get_te_attr_id attr_name N/A page 1 N/A True N/A N/A response N/A N/A N/A self _request get trackedEntityInstances params N/A paging page links trackedEntity ou ouMode attribute true page false te_id N/A top_ou N/A id DESCENDANTS attr_id N/A instances N/A N/A self entities_to_dicts response N/A inst instances N/A N/A N/A N/A N/A inst get attr_name N/A N/A N/A inst N/A N/A page N/A N/A N/A response N/A metaData N/A pager N/A pageCount N/A N/A page 1 N/A N/A N/A gen_instances_with_equals N/A N/A self te_name attr_name attr_value N/A N/A N/A 
        Yields tracked entity instances with the given attribute set to the given value
         N/A top_ou N/A N/A self get_top_org_unit N/A te_id N/A N/A self get_te_id te_name N/A attr_id N/A N/A self get_te_attr_id attr_name N/A N/A attr_id None N/A N/A N/A Dhis2ConfigurationError DHIS2 tracked entity attribute name "%s" unknown on host "%s" attr_name N/A N/A self _request baseurl N/A page 1 N/A True N/A N/A response N/A N/A N/A self _request get trackedEntityInstances params N/A paging page links trackedEntity ou ouMode attribute true page false te_id N/A top_ou N/A id DESCENDANTS N/A N/A attr_id :EQ: attr_value N/A instances N/A N/A self entities_to_dicts response N/A inst instances N/A N/A N/A inst N/A N/A page N/A N/A N/A response N/A metaData N/A pager N/A pageCount N/A N/A page 1 N/A N/A N/A gen_instances_in_program N/A N/A self program N/A N/A N/A 
        Yields tracked entity instances enrolled in the given program
         N/A top_ou N/A N/A self get_top_org_unit N/A program_id N/A N/A self get_program_id program N/A page 1 N/A True N/A N/A response N/A N/A N/A self _request get trackedEntityInstances params N/A paging page links ou ouMode program true page false N/A top_ou N/A id DESCENDANTS program_id N/A instances N/A N/A self entities_to_dicts response N/A inst instances N/A N/A N/A inst N/A N/A page N/A N/A N/A response N/A metaData N/A pager N/A pageCount N/A N/A page 1 N/A N/A N/A gen_org_units N/A N/A self N/A N/A N/A 
        Yields organisation units
         N/A page 1 N/A True N/A N/A response N/A N/A N/A self _request get organisationUnits params N/A paging pageSize page links true 500 page false N/A org_unit N/A response N/A organisationUnits N/A N/A N/A org_unit N/A N/A page N/A N/A response N/A pager N/A pageCount N/A N/A page 1 N/A N/A N/A gen_org_units_with_parents N/A N/A self N/A N/A N/A 
        Yields organisation units with parent IDs
         N/A ou N/A N/A self gen_org_units N/A N/A N/A ou N/A parent_id N/A N/A self get_org_unit_parent_id N/A ou N/A id N/A N/A ou N/A get_org_unit_parent_id N/A N/A self ou_id N/A N/A N/A details N/A N/A N/A self _request get N/A organisationUnits/ ou_id N/A N/A N/A N/A details get parent N/A N/A details N/A parent N/A id None N/A enroll_in N/A N/A self te_inst_id program when data N/A None None N/A N/A 
        Enroll the given tracked entity instance in the given program

        :param te_inst_id: The ID of a tracked entity instance
        :param program: The *name* of a program
        :param when: The date ("YYYY-MM-DD") of enrollment. Defaults to today.
        :param data: Dictionary of additional data values of event.
        :return: The API response
         N/A program_id N/A N/A self get_resource_id programs program N/A N/A N/A self enroll_in_id te_inst_id program_id when data N/A enroll_in_id N/A N/A self te_inst_id program_id when data N/A None None N/A N/A 
        Enroll the given tracked entity instance in the given program

        :param te_inst_id: The ID of a tracked entity instance
        :param program_id: The ID of a program
        :param when: The date ("YYYY-MM-DD") of enrollment. Defaults to today.
        :param data: Dictionary of additional data values of event.
        :return: The API response
         N/A N/A when None N/A N/A when N/A N/A date today N/A request_data N/A trackedEntityInstance program dateOfEnrollment dateOfIncident te_inst_id program_id when when N/A data N/A N/A N/A request_data N/A attributes N/A N/A self _data_to_attributes data N/A N/A N/A N/A self _request post enrollments request_data N/A enrolled_in N/A N/A self te_inst_id program N/A N/A N/A 
        Checks whether a given tracked entity instance is enrolled in a given
        program

        :param te_inst_id: The ID of a tracked entity instance
        :param program: The name of a program
        :return: boolean
         N/A N/A any N/A N/A N/A inst N/A Instance te_inst_id N/A inst N/A N/A self gen_instances_in_program program N/A _get_event_data_values N/A N/A self xform data_element_names N/A N/A N/A 
        Return event dataElement-value pairs.

        The data_element_names map caters for both a simple mapping, and
        mapping dropdown field-value tuples to DHIS2 boolean dataElements. See
        RISK_ASSESSMENT_EVENT_FIELDS for an example.
         N/A data_values N/A N/A N/A field element_name N/A N/A data_element_names iteritems N/A N/A N/A isinstance field tuple N/A N/A N/A field_name field_value field N/A N/A field_value N/A N/A N/A N/A N/A xform form get field_name split N/A N/A N/A N/A data_values append N/A dataElement value N/A N/A self _data_elements N/A element_name True N/A N/A N/A field N/A xform form N/A N/A N/A N/A data_values append N/A dataElement value N/A N/A self _data_elements N/A element_name N/A N/A xform form N/A field N/A data_values N/A form_to_event N/A N/A self program_id xform data_element_names program_stage_id te_inst_id N/A None None N/A N/A 
        Builds a dict representing a DHIS2 event

        :param program_id: The program can't be determined from form data.
        :param xform: An XFormInstance
        :param data_element_names: A dictionary mapping CCHQ form field names
                                   to DHIS2 tracked entity attribute names
        :param program_stage_id: Program stage for programs with stages
        :param te_inst_id: Tracked entity instance ID, for creating an event
                           with registration

        An example of an event: ::

            {
              "program": "eBAyeGv0exc",
              "orgUnit": "DiszpKrYNg8",
              "eventDate": "2013-05-17",
              "status": "COMPLETED",
              "storedBy": "admin",
              "coordinate": {
                "latitude": "59.8",
                "longitude": "10.9"
              },
              "dataValues": [
                { "dataElement": "qrur9Dvnyt5", "value": "22" },
                { "dataElement": "oZg33kd9taw", "value": "Male" },
                { "dataElement": "msodh3rEMJa", "value": "2013-05-18" }
              ]
            }

        See the DHIS2 `Events documentation`_ for more information.


        .. _Events documentation: https://www.dhis2.org/doc/snapshot/en/user/html/ch28s09.html

         N/A N/A any N/A N/A e N/A self _data_elements N/A e N/A N/A data_element_names values N/A N/A N/A N/A self _fetch_data_elements N/A N/A N/A N/A xform form get dhis_org_id N/A N/A org_unit N/A N/A xform form N/A dhis_org_id N/A N/A case_id N/A N/A N/A xform form N/A case N/A @case_id N/A case N/A N/A CommCareCase get case_id N/A N/A getattr case dhis_org_id None N/A N/A org_unit N/A case N/A dhis_org_id N/A N/A N/A event N/A program orgUnit eventDate status storedBy dataValues program_id org_unit N/A N/A N/A xform received_on date COMPLETED N/A self _username N/A N/A self _get_event_data_values xform data_element_names N/A program_stage_id N/A N/A N/A event N/A programStage program_stage_id N/A te_inst_id N/A N/A N/A event N/A trackedEntityInstance te_inst_id N/A N/A N/A xform metadata location N/A N/A N/A event N/A coordinate N/A latitude longitude N/A N/A N/A xform metadata location latitude N/A N/A N/A xform metadata location longitude N/A event N/A send_events N/A N/A self events N/A N/A N/A 
        Send events to the DHIS2 API.

        :param events: A dictionary of an event or an eventList.

        See DHIS2 `Events documentation`_ for details.


        .. _Events documentation: https://www.dhis2.org/doc/snapshot/en/user/html/ch28s09.html
         N/A N/A N/A N/A self _request post events events N/A entities_to_dicts N/A N/A response N/A N/A N/A 
        Parse the list of lists returned by a DHIS2 API entity request,
        and return it as a list of dictionaries.

        The DHIS2 API returns entity instances with a list of headers, and
        then a list of lists, as if it was dumping a spreadsheet. e.g. ::

            {
                'headers': [
                    {
                        'name': 'instance',
                        'column': 'Instance',
                        'type': 'java.lang.String',
                        'hidden': False,
                        'meta': False
                    },
                    {
                        'name': 'ou',
                        'column': 'Org unit',
                        'type': 'java.lang.String',
                        'hidden': False,
                        'meta': False
                    },
                    {
                        'name': 'dv3nChNSIxy',
                        'column': 'First name',
                        'type': 'java.lang.String',
                        'hidden': False,
                        'meta': False
                    },
                    {
                        'name': 'hwlRTFIFSUq',
                        'column': 'Last name',
                        'type': 'java.lang.String',
                        'hidden': False,
                        'meta': False
                    }
                ],
                'rows': [
                    [
                        'GpetderUTA7',
                        'Qw7c6Ckb0XC',
                        'Tesmi',
                        'Petros'
                    ],
                    [
                        'LTxvKtKq48t',
                        'Qw7c6Ckb0XC',
                        'Luwam',
                        'Rezene'
                    ],
                ]
            }

        Header "name" values like "dv3nChNSIxy" and "hwlRTFIFSUq" are not
        friendly, and so the returned dictionary uses the "column" value
        as key. The return value for this example would be ::

            [
                {
                    'Instance': 'GpetderUTA7',
                    'Org unit': 'Qw7c6Ckb0XC',
                    'First name: 'Tesmi',
                    'Last name': 'Petros'
                },
                {
                    'Instance': 'LTxvKtKq48t',
                    'Org unit': 'Qw7c6Ckb0XC',
                    'First name: 'Luwam',
                    'Last name': 'Rezene'
                }
            ]

        The row value of "Tracked entity" will look like "cyl5vuJ5ETQ".
        This isn't very friendly either. But the entity name is given in
        "metaData", which looks like this: ::

            "metaData": {
                "pager": {
                    "page": 1,
                    "total": 50,
                    "pageSize": 50,
                    "pageCount": 1
                },
                "names": {
                    "cyl5vuJ5ETQ": "Person"
                }
            }

        So we look up tracked entity names, and include them in the dictionary.

         N/A entities N/A N/A row N/A response N/A rows N/A N/A entity N/A N/A N/A i item N/A enumerate row N/A N/A N/A N/A N/A N/A response N/A headers N/A i N/A column Tracked entity N/A N/A item N/A N/A N/A response N/A metaData N/A names N/A item N/A N/A entity N/A N/A N/A N/A response N/A headers N/A i N/A column item N/A N/A N/A entities append entity N/A entities N/A staticmethod N/A FixtureManagerError N/A Exception N/A N/A N/A to_field_list N/A N/A value N/A N/A N/A 
    Return a field value as a FieldList
     N/A N/A FieldList field_list N/A N/A FixtureItemField field_value value properties N/A N/A to_field_value N/A N/A field_list N/A N/A N/A 
    Return the first field value in a FieldList
     N/A N/A N/A N/A N/A N/A field_list field_list N/A 0 field_value N/A N/A N/A IndexError N/A N/A None N/A FixtureManager N/A object N/A N/A 
    Reuses the Django manager pattern for fixtures
     __init__ N/A N/A self model_class domain tag N/A N/A N/A N/A self model_class model_class N/A N/A self domain domain N/A N/A self tag tag N/A get N/A N/A self fixture_id N/A N/A N/A item N/A N/A FixtureDataItem get fixture_id N/A fields N/A k N/A to_field_value v N/A N/A k v N/A N/A N/A item fields iteritems N/A N/A N/A self model_class _fixture_id N/A item get_id fields N/A all N/A N/A self N/A N/A N/A item N/A N/A FixtureDataItem get_item_list N/A self domain N/A self tag N/A N/A fields N/A k N/A to_field_value v N/A N/A k v N/A N/A N/A item fields iteritems N/A N/A N/A N/A self model_class _fixture_id N/A item get_id fields N/A N/A Dhis2OrgUnit N/A object N/A N/A 
    Simplify the management of DHIS2 Organisation Units, which are
    stored in a lookup table.
     N/A objects None __init__ N/A N/A self id name parent_id _fixture_id N/A None N/A N/A N/A self id id N/A N/A self name name N/A N/A self parent_id parent_id N/A N/A self _fixture_id _fixture_id N/A get_id N/A N/A self N/A N/A N/A N/A self _fixture_id N/A save N/A N/A self N/A N/A N/A N/A N/A self objects None N/A N/A N/A FixtureManagerError FixtureManager not set. e.g. `Dhis2OrgUnit.objects = FixtureManager(Dhis2OrgUnit, domain, ORG_UNIT_FIXTURES)` N/A data_type N/A N/A N/A N/A FixtureDataType by_domain_tag N/A N/A self objects domain N/A N/A self objects tag one N/A N/A data_type None N/A N/A N/A Dhis2ConfigurationError N/A Unable to find lookup table in domain "%s" with ID "%s". N/A N/A N/A self objects domain N/A N/A self objects tag N/A data_item N/A FixtureDataItem data_type_id N/A data_type get_id domain N/A N/A self objects domain fields N/A id name parent_id N/A to_field_list N/A self id N/A to_field_list N/A self name N/A to_field_list N/A self parent_id N/A N/A N/A data_item save N/A N/A self _fixture_id N/A data_item get_id N/A N/A self _fixture_id N/A delete N/A N/A self N/A N/A N/A N/A N/A self _fixture_id None N/A N/A N/A item N/A N/A FixtureDataItem get N/A self _fixture_id N/A N/A N/A item delete N/A N/A