Skip to contents

Returns all available system levels along with the time periods where the system levels occur.

Usage

cvd_area_system_level_time_periods()

Value

tibble of system levels and reporting periods

Details

Note: this is the inverse of cvd_time_period_system_levels().

CVD Prevent API documentation: All system levels and time periods

Examples

# list the latest four reporting periods at GP practice level
cvd_area_system_level_time_periods() |>
  dplyr::filter(SystemLevelName == 'Practice') |>
  dplyr::slice_max(order_by = TimePeriodID, n = 4) |>
  dplyr::select(SystemLevelName, TimePeriodID, TimePeriodName)
#> # A tibble: 4 × 3
#>   SystemLevelName TimePeriodID TimePeriodName   
#>   <chr>                  <int> <chr>            
#> 1 Practice                  17 To March 2024    
#> 2 Practice                  15 To December 2023 
#> 3 Practice                  10 To September 2023
#> 4 Practice                   9 To June 2023