Skip to contents

Combines the "Variables (main)" and "Variables (additional)" sheets released alongside the annual NHS Talking Therapies reports.

Usage

get_metadata_variables_annual(periods = NULL, use_cache = TRUE)

Arguments

periods

Character vector, specifying periods (e.g., "2023-24", "2024-25"). If NULL (default), returns all available annual periods

use_cache

Logical, specifying whether to use cached data if available. Default TRUE.

Value

Tibble containing metadata rows for each annual variable definition

Details

If network download fails (e.g., in GitHub Actions), falls back to bundled metadata shipped with the package. This is a temporary workaround for digital.nhs.uk not allowing me to download from GitHub actions.

Examples

if (FALSE) { # \dontrun{
variables_meta <- get_metadata_variables_annual()
} # }