add_cohort_intersect_days

add_cohort_intersect_days(
    table,
    cdm,
    target_cohort_table,
    *,
    target_cohort_id=None,
    index_date='cohort_start_date',
    censor_date=None,
    target_date='cohort_start_date',
    order='first',
    window=[(0, float('inf'))],
    name_style='{cohort_name}_{window_name}',
)

Add days to first/last cohort entry within each window.