def get_list(index, patients):  # test
    """Retrieves list of previous heart rates for the specified patient

    Args:
        index (int): index of patient to be located in list
        patients (dictionary): list of patients in database

    Returns:
        int: if data available, list of heart rate measurements
        boolean: returns False if data not available
    """
    if len(patients[index]["heart_rate"]) == 0:
        return False
    list = patients[index]["heart_rate"]
    return list