(self, datum, module)
return FormDatumMeta(
            datum=RemoteRequestQuery(
                url=absolute_reverse('registry_case', args=[self.app.domain, self.app.get_id]),
                storage_instance=REGISTRY_INSTANCE,
                template='case',
                data=data,
                default_search='true',
            ),
            case_type=None,
            requires_selection=False,
            action=None
        )
When a data registry is the source of the search results we can't assume that the case
        the user selected is in the user's casedb so we have to get the data directly from HQ before
        entering the form. This data is then available in the 'registry' instance (``instance('registry')``)
When a data registry is the source of the search results we can't assume that the case
        the user selected is in the user's casedb so we have to get the data directly from HQ before
        entering the form. This data is then available in the 'registry' instance (``instance('registry')``)
When a data registry is the source of the search results we can t assume that the case the user selected is in the user s casedb so we have to get the data directly from HQ before entering the form . This data is then available in the registry instance ( instance ( registry ) )
def get_data_registry_case_datums(self, datum, module):
        """When a data registry is the source of the search results we can't assume that the case
        the user selected is in the user's casedb so we have to get the data directly from HQ before
        entering the form. This data is then available in the 'registry' instance (``instance('registry')``)
        """
        from corehq.apps.app_manager.suite_xml.post_process.remote_requests import REGISTRY_INSTANCE

        case_ids_expressions = {session_var(datum.datum.id)} | set(module.search_config.additional_registry_cases)
        data = [
            QueryData(key=CASE_SEARCH_REGISTRY_ID_KEY, ref=f"'{module.search_config.data_registry}'")
        ]
        data.extend([
            QueryData(key='case_type', ref=f"'{case_type}'")
            for case_type in get_ordered_case_types(datum.case_type, module.search_config.additional_case_types)
        ])
        data.extend([
            QueryData(key='case_id', ref=case_id_xpath)
            for case_id_xpath in sorted(case_ids_expressions)
        ])

        return FormDatumMeta(
            datum=RemoteRequestQuery(
                url=absolute_reverse('registry_case', args=[self.app.domain, self.app.get_id]),
                storage_instance=REGISTRY_INSTANCE,
                template='case',
                data=data,
                default_search='true',
            ),
            case_type=None,
            requires_selection=False,
            action=None
        )
def get_data_registry_case_datums ( self , datum , module ) : from corehq . apps . app_manager . suite_xml . post_process . remote_requests import REGISTRY_INSTANCE case_ids_expressions = { session_var ( datum . datum . id ) } | set ( module . search_config . additional_registry_cases ) data = [ QueryData ( key = CASE_SEARCH_REGISTRY_ID_KEY , ref = f"'{module.search_config.data_registry}'" ) ] data . extend ( [ QueryData ( key = 'case_type' , ref = f"'{case_type}'" ) for case_type in get_ordered_case_types ( datum . case_type , module . search_config . additional_case_types ) ] ) data . extend ( [ QueryData ( key = 'case_id' , ref = case_id_xpath ) for case_id_xpath in sorted ( case_ids_expressions ) ] ) return FormDatumMeta ( datum = RemoteRequestQuery ( url = absolute_reverse ( 'registry_case' , args = [ self . app . domain , self . app . get_id ] ) , storage_instance = REGISTRY_INSTANCE , template = 'case' , data = data , default_search = 'true' , ) , case_type = None , requires_selection = False , action = None )