(self)
Iterates the candidates returned by the search.
Iterates the candidates returned by the search.
Iterates the candidates returned by the search .
def iter_candidates(self) -> Generator:
        """
        Iterates the candidates returned by the search.
        """
        for params in self._get_request_params():
            # One search usually involves one dictionary of request
            # params, but can involve many. e.g. Searching for a
            # patient by each of their given names is done with a series
            # of requests.
            endpoint = f"{self.resource['resourceType']}/"
            searchset_bundle = get_bundle(self.requests, endpoint, params=params)
            while True:
                yield from iter_bundle(searchset_bundle)
                url = get_next_url(searchset_bundle)
                if url:
                    searchset_bundle = get_bundle(self.requests, url=url)
                else:
                    break
def iter_candidates ( self ) -> Generator : for params in self . _get_request_params ( ) : # One search usually involves one dictionary of request # params, but can involve many. e.g. Searching for a # patient by each of their given names is done with a series # of requests. endpoint = f"{self.resource['resourceType']}/" searchset_bundle = get_bundle ( self . requests , endpoint , params = params ) while True : yield from iter_bundle ( searchset_bundle ) url = get_next_url ( searchset_bundle ) if url : searchset_bundle = get_bundle ( self . requests , url = url ) else : break