(requests)
Return "Unknown" encounter role for legacy providers with no
    encounter role set
Return "Unknown" encounter role for legacy providers with no
    encounter role set
Return Unknown encounter role for legacy providers with no encounter role set
def get_unknown_encounter_role(requests):
    """
    Return "Unknown" encounter role for legacy providers with no
    encounter role set
    """
    response_json = requests.get('/ws/rest/v1/encounterrole').json()
    for encounter_role in response_json['results']:
        if encounter_role['display'] == 'Unknown':
            return encounter_role
    raise OpenmrsConfigurationError(
        'The standard "Unknown" EncounterRole was not found on the OpenMRS server at "{}". Please notify the '
        'administrator of that server.'.format(requests.base_url)
    )
def get_unknown_encounter_role ( requests ) : response_json = requests . get ( '/ws/rest/v1/encounterrole' ) . json ( ) for encounter_role in response_json [ 'results' ] : if encounter_role [ 'display' ] == 'Unknown' : return encounter_role raise OpenmrsConfigurationError ( 'The standard "Unknown" EncounterRole was not found on the OpenMRS server at "{}". Please notify the ' 'administrator of that server.' . format ( requests . base_url ) )