(self)
return [providers_dict[x] for x in pt_providers if x in providers_dict]
return a list of all the providers for this patient
return a list of all the providers for this patient
return a list of all the providers for this patient
def get_providers(self):
        """
        return a list of all the providers for this patient
        """
        from pact.api import get_all_providers
        all_providers = get_all_providers()
        pt_providers = list(self.get_provider_ids())

        providers_dict = {x.fields['id']: x.fields for x in all_providers}

        return [providers_dict[x] for x in pt_providers if x in providers_dict]
def get_providers ( self ) : from pact . api import get_all_providers all_providers = get_all_providers ( ) pt_providers = list ( self . get_provider_ids ( ) ) providers_dict = { x . fields [ 'id' ] : x . fields for x in all_providers } return [ providers_dict [ x ] for x in pt_providers if x in providers_dict ]