Skip to contents

Returns basic details of all indicators for a given system level and time period. Only returns indicators for which data exists in selected time period, and on selected system level. Used to populate available indicator list in Data Explorer.

Usage

cvd_indicator_list(time_period_id = 1, system_level_id = 2)

Arguments

time_period_id

integer - time period to reutrn data for (compulsory)

system_level_id

integer - system level to return data for (compulsory)

Value

Tibble of details for indicators for the time period and system level

Details

CVD Prevent API documentation: Indicator list

Examples

# List four indicators for time point 17 and GP practice level (system level 5)
cvd_indicator_list(time_period_id = 17, system_level_id = 5) |>
  dplyr::select(IndicatorID, IndicatorCode, IndicatorShortName) |>
  dplyr::slice_head(n = 4)
#> # A tibble: 4 × 3
#>   IndicatorID IndicatorCode IndicatorShortName                 
#>         <int> <chr>         <chr>                              
#> 1          13 CVDP002CKD    CKD: uncoded case finder           
#> 2          20 CVDP005HYP    Hypertension: high risk case finder
#> 3          23 CVDP010CHOL   Cholesterol: CKD treated with LLT  
#> 4          24 CVDP001SMOK   Smoking: record of smoking status