def get_year_set(year_int):
    """
    Given an integer year, get Redcap event names up to and including the year.

    Redcap event names are formatted as in redcap_event_name returned by Redcap
    API (i.e. "X_visit_arm_1").

    Integer-based year: 0 = baseline, 1 = followup_1y, ...

    Only allows for full-year standard-arm events.
    """
    events = ["baseline"]
    events.extend([str(i) + "y" for i in range(1, 10)])
    events = [e + "_visit_arm_1" for e in events]
    return events[0:(year_int + 1)]