CVD Prevent cvdprevent website

CRAN status

The goal of CVD Prevent is to provide an R wrapper to the CVD Prevent application programming interface (API). Users can make API requests through built-in R functions.

The Cardiovascular Disease Prevention Audit (CVDPREVENT) is an England-wide primary care audit that automatically extracts routinely held GP data. The Data & Improvement Tool provides open access to the data, with clear, actionable insights for those tasked with improving cardiovascular health.

Installation

You can install the development version of cvdprevent from GitHub with:

# install.packages("devtools")
devtools::install_github("craig-parylo/cvdprevent")

Alternatively, install the latest stable release from CRAN with:

utils::install.packages("cvdprevent")

Example

This is a basic example which shows you how to solve a common problem:

library(cvdprevent)

## basic example code
cvd_indicator_list() |> 
  head(n = 4)
#> # A tibble: 4 × 10
#>   AxisCharacter DataUpdateInterval FormatDisplayName IndicatorCode
#>   <chr>         <lgl>              <chr>             <chr>        
#> 1 %             NA                 Proportion %      CVDP001AF    
#> 2 %             NA                 Proportion %      CVDP002AF    
#> 3 %             NA                 Proportion %      CVDP001HYP   
#> 4 %             NA                 Proportion %      CVDP004HYP   
#> # ℹ 6 more variables: IndicatorFormatID <int>, IndicatorID <int>,
#> #   IndicatorName <chr>, IndicatorOrder <int>, IndicatorShortName <chr>,
#> #   IndicatorStatus <chr>

See vignette('using_cvdprevent', package = 'cvdprevent') for more guidance on use