(requests, reference)
return response.json()
Fetches a resource.

    ``reference`` must be a relative reference. e.g. "Patient/12345"
Fetches a resource.
Fetches a resource .
def get_resource(requests, reference):
    """
    Fetches a resource.

    ``reference`` must be a relative reference. e.g. "Patient/12345"
    """
    response = requests.get(endpoint=reference, raise_for_status=True)
    return response.json()
def get_resource ( requests , reference ) : response = requests . get ( endpoint = reference , raise_for_status = True ) return response . json ( )