Skip to contents

Returns all available time periods along with the systems levels included in each time period.

Usage

cvd_time_period_system_levels()

Value

tibble of time periods and associated system levels

Details

CVD Prevent API documentation: Time period system levels

Examples

# get a tibble of all periods and levels
periods_levels <- cvd_time_period_system_levels()

# see which levels are available for the latest period
periods_levels |>
  dplyr::filter(TimePeriodID == max(TimePeriodID)) |>
  dplyr::select(TimePeriodID, TimePeriodName, SystemLevelID, SystemLevelName)
#> # A tibble: 6 × 4
#>   TimePeriodID TimePeriodName SystemLevelID SystemLevelName
#>          <int> <chr>                  <int> <chr>          
#> 1           17 To March 2024              1 England        
#> 2           17 To March 2024              4 PCN            
#> 3           17 To March 2024              5 Practice       
#> 4           17 To March 2024              6 Region         
#> 5           17 To March 2024              7 ICB            
#> 6           17 To March 2024              8 Sub-ICB