def get_patient_status(index, patients):  # test
    """Retrieves most recent heart rate with associated status and time stamp

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

    Returns:
        dictionary: if data available, contains HR, status, and time stamp
        boolean: returns False if data not available
    """
    if len(patients[index]["heart_rate"]) == 0:
        return False
    heart_rate = patients[index]["heart_rate"][-1]
    status = patients[index]["status"]
    timestamp = patients[index]["time_stamp"][-1]
    return_dictionary = {
        "heart_rate": heart_rate,
        "status": status,
        "timestamp": timestamp
        }
    return return_dictionary