def redcap_event_to_vbr_protocol(event_name: str) -> int:
    """Map redcap event name to VBR protocol."""
    # NOTE - this must be manually synced with src/scripts/data/protocol.csv
    events = {
        "informed_consent_arm_1": 2,
        "baseline_visit_arm_1": 3,
        "6wks_postop_arm_1": 30,
        "3mo_postop_arm_1": 31,
        "event_1_arm_1": 50,
    }
    try:
        return events[event_name]
    except KeyError:
        raise ValueError("Unknown redcap event name: %s", event_name)