def find_patient(patient_id, patients):  # test
    """Retrieves the index corresponding to a specified patient

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

    Returns:
        Boolean or int: Index corresponding to patient in list;
                        False if patient is not in list
    """
    for i in range(len(patients)):
        if patients[i]["patient_id"] == patient_id:
            return i
    return False